Browse Source

NEW: orca,brltty,festival,festival-freebsoft-utils
speech-dispatcher,sox,wireshark: new upstream release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5110 ec354946-7b23-47d6-9f5a-488ba84defc7

Takemikaduchi 12 years ago
parent
commit
7cd8e16b8e

+ 454 - 0
b/brltty/brltty-vl.spec

@@ -0,0 +1,454 @@
+%define pkg_version 4.2
+%define api_version 0.5.5
+
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?pyver: %define pyver %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v")}
+
+%define _exec_prefix %{nil}
+%define _libdir /%{_lib}
+
+# with speech dispatcher iff on Fedora:
+%define with_speech_dispatcher 0%{?fedora}
+
+Name: brltty
+Version: %{pkg_version}
+Release: 1%{?_dist_release}
+License: GPLv2+
+Group: System Environment/Daemons
+URL: http://mielke.cc/brltty/
+Source: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz
+Patch0: brltty-cppflags.patch
+Patch1: brltty-autoconf-quote.patch
+Patch2: brltty-4.2-S_ISCHR.patch
+Patch3: brltty-parallel.patch
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Summary: Braille display driver for Linux/Unix
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: autoconf
+# work around a bug in the install process:
+Requires(post): coreutils
+
+%description
+BRLTTY is a background process (daemon) which provides
+access to the Linux/Unix console (when in text mode)
+for a blind person using a refreshable braille display.
+It drives the braille display and provides complete
+screen review functionality.
+%if %{with_speech_dispatcher}
+BRLTTY can also work with speech synthetizers; if you want to use it with
+Speech Dispatcher, please install also package %{name}-speech-dispatcher.
+
+%package speech-dispatcher
+Summary: Speech Dispatcher driver for BRLTTY
+Group: System Environment/Daemons
+License: GPLv2+
+BuildRequires: speech-dispatcher-devel
+Requires: %{name} = %{pkg_version}-%{release}
+%description speech-dispatcher
+This package provides the Speech Dispatcher driver for BRLTTY.
+%endif
+
+%package xw
+Summary: XWindow driver for BRLTTY
+Group: System Environment/Daemons
+License: GPLv2+
+BuildRequires: libSM-devel libICE-devel libX11-devel libXaw-devel libXext-devel libXt-devel libXtst-devel
+Requires: %{name} = %{pkg_version}-%{release}
+%description xw
+This package provides the XWindow driver for BRLTTY.
+
+%package at-spi
+Summary: AtSpi driver for BRLTTY
+Group: System Environment/Daemons
+# The data files are licensed under LGPLv2+, see the README file.
+License: GPLv2+ and LGPLv2+
+BuildRequires: at-spi-devel
+Requires: %{name} = %{pkg_version}-%{release}
+%description at-spi
+This package provides the AtSpi driver for BRLTTY.
+
+%package -n brlapi
+Version: %{api_version}
+Group: Applications/System
+License: LGPLv2+
+Summary: Appliation Programming Interface for BRLTTY
+Requires: %{name} = %{pkg_version}-%{release}
+%description -n brlapi
+This package provides the run-time support for the Application
+Programming Interface to BRLTTY.
+
+Install this package if you have an application which directly accesses
+a refreshable braille display.
+
+%package -n brlapi-devel
+Version: %{api_version}
+Group: Development/System
+License: LGPLv2+
+Requires: brlapi = %{api_version}-%{release}
+Summary: Headers, static archive, and documentation for BrlAPI
+
+%description -n brlapi-devel
+This package provides the header files, static archive, shared object
+linker reference, and reference documentation for BrlAPI (the
+Application Programming Interface to BRLTTY).  It enables the
+implementation of applications which take direct advantage of a
+refreshable braille display in order to present information in ways
+which are more appropriate for blind users and/or to provide user
+interfaces which are more specifically atuned to their needs.
+
+Install this package if you are developing or maintaining an application
+which directly accesses a refreshable braille display.
+
+%package -n tcl-brlapi
+Version: %{api_version}
+Group: Development/System
+License: LGPLv2+
+Requires: brlapi = %{api_version}-%{release}
+BuildRequires: tcl
+Summary: Tcl binding for BrlAPI
+%description -n tcl-brlapi
+This package provides the Tcl binding for BrlAPI.
+
+%package -n python-brlapi
+Version: %{api_version}
+Group: Development/System
+License: LGPLv2+
+Requires: brlapi = %{api_version}-%{release}
+BuildRequires: python-pyrex
+Summary: Python binding for BrlAPI
+%description -n python-brlapi
+This package provides the Python binding for BrlAPI.
+
+%package -n brlapi-java
+Version: %{api_version}
+Group: Development/System
+License: LGPLv2+
+Requires: brlapi = %{api_version}-%{release}
+## temporary work around, java-devel is not resolved consistently acrss archs
+BuildRequires: java-devel
+#BuildRequires: java-1.5.0-gcj-devel
+Summary: Java binding for BrlAPI
+%description -n brlapi-java
+This package provides the Java binding for BrlAPI.
+
+%define version %{pkg_version}
+
+%prep
+%setup -q
+%patch0 -p1 -b .cppflags
+%patch1 -p1 -b .quote
+%patch2 -p1 -b .S_ISCHR
+%patch3 -p1 -b .parallel
+
+%build
+# Patch6 changes aclocal.m4:
+autoconf
+for i in -I/usr/lib/jvm/java/include{,/linux}; do
+      java_inc="$java_inc $i"
+done
+# there is no curses packages in BuildRequires, so the package builds
+# without them in mock; let's express this decision explicitly
+%configure CPPFLAGS="$java_inc" --disable-stripping --without-curses \
+%if %{with_speech_dispatcher}
+  --with-speechd=%{_prefix} \
+%endif
+  --with-install-root="${RPM_BUILD_ROOT}"
+make %{?_smp_mflags}
+
+find . \( -path ./doc -o -path ./Documents \) -prune -o \
+  \( -name 'README*' -o -name '*.txt' -o -name '*.html' -o \
+     -name '*.sgml' -o -name '*.patch' -o \
+     \( -path './Bootdisks/*' -type f -perm +ugo=x \) \) -print |
+while read file; do
+   mkdir -p doc/${file%/*} && cp -rp $file doc/$file || exit 1
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# does not seem to be parallel safe
+make install
+rm "$RPM_BUILD_ROOT%{_libdir}/libbrlapi.so"
+ln -s ../../%{_lib}/libbrlapi.so "$RPM_BUILD_ROOT%{_prefix}/%{_lib}/"
+install -d -m 755 "${RPM_BUILD_ROOT}%{_sysconfdir}" "$RPM_BUILD_ROOT%{_mandir}/man5"
+install -m 644 Documents/brltty.conf "${RPM_BUILD_ROOT}%{_sysconfdir}"
+echo ".so man1/brltty.1" > $RPM_BUILD_ROOT%{_mandir}/man5/brltty.conf.5
+
+# clean up the manuals:
+rm Documents/Manual-*/*/{*.mk,*.made,Makefile*}
+mv Documents/BrlAPIref/{html,BrlAPIref}
+
+# Don't want static lib
+rm -rf $RPM_BUILD_ROOT/%{_lib}/libbrlapi.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+devices="/dev/vcsa /dev/vcsa0 /dev/vcc/a"
+install=true
+for device in ${devices}
+do
+   if [ -c "${device}" ]
+   then
+      install=false
+      break
+   fi
+done
+if $install
+then
+   device="$(set -- ${devices} && echo "${1}")"
+   mkdir -p "${device%/*}"
+   mknod -m o= "${device}" c 7 128
+   chmod 660 "${device}"
+   chown root.tty "${device}"
+fi
+exit 0
+
+%post   -n brlapi -p /sbin/ldconfig
+%postun -n brlapi -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%config(noreplace) %{_sysconfdir}/brltty.conf
+%{_sysconfdir}/brltty/
+%{_bindir}/brltty
+%{_bindir}/brltty-*
+%{_libdir}/brltty/
+%exclude %{_libdir}/brltty/libbrlttybba.so
+%exclude %{_libdir}/brltty/libbrlttybxw.so
+%if %{with_speech_dispatcher}
+%exclude %{_libdir}/brltty/libbrlttyssd.so
+%endif
+%exclude %{_libdir}/brltty/libbrlttyxas.so
+%doc LICENSE-GPL LICENSE-LGPL
+%doc Documents/ChangeLog Documents/TODO
+%doc Documents/Manual-BRLTTY/
+%doc doc/*
+%doc %{_mandir}/man[15]/brltty.*
+
+%if %{with_speech_dispatcher}
+%files speech-dispatcher
+%doc Drivers/Speech/SpeechDispatcher/README
+%{_libdir}/brltty/libbrlttyssd.so
+%endif
+
+%files xw
+%doc Drivers/Braille/XWindow/README
+%{_libdir}/brltty/libbrlttybxw.so
+
+%files at-spi
+%{_libdir}/brltty/libbrlttyxas.so
+
+%files -n brlapi
+%defattr(-,root,root)
+%{_bindir}/vstp
+%{_bindir}/xbrlapi
+%{_libdir}/brltty/libbrlttybba.so
+%{_libdir}/libbrlapi.so.*
+%doc Drivers/Braille/XWindow/README
+%doc Documents/Manual-BrlAPI/
+%doc %{_mandir}/man1/xbrlapi.*
+%doc %{_mandir}/man1/vstp.*
+
+%files -n brlapi-devel
+%defattr(-,root,root)
+%{_prefix}/%{_lib}/libbrlapi.so
+%{_includedir}/brltty
+%{_includedir}/brlapi*.h
+%doc %{_mandir}/man3/brlapi_*.3*
+%doc Documents/BrlAPIref/BrlAPIref/
+
+%files -n tcl-brlapi
+%defattr(-,root,root)
+%{_prefix}/%{_lib}/brlapi-%{api_version}
+
+%files -n python-brlapi
+%defattr(-,root,root)
+%{python_sitearch}/brlapi.so
+%{python_sitearch}/Brlapi-%{api_version}-py%{pyver}.egg-info
+
+%files -n brlapi-java
+%defattr(-,root,root)
+%{_jnidir}/libbrlapi_java.so
+%{_javadir}/brlapi.jar
+
+
+%changelog
+* Sat Nov 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2-1
+- initial build for Vine Linux
+
+
+
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 4.2-3
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Fri May 21 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 4.2-2
+- rework parallel patch slightly and reapply
+
+* Fri May 21 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 4.2-1
+- update to 4.2
+- drop static lib (bz 556041)
+- fix undefined S_ISCHR call
+
+* Wed Jan 20 2010 Stepan Kasal <skasal@redhat.com> - 4.1-5
+- requires(post): coreutils to work around an installator bug
+- Resolves: #540437
+
+* Wed Jan 13 2010 Stepan Kasal <skasal@redhat.com> - 4.1-4
+- limit building against speech-dispatcher to Fedora
+- Resolves: rhbz#553795
+
+* Sun Nov  1 2009 Stepan Kasal <skasal@redhat.com> - 4.1-3
+- build the TTY driver (it was disabled since it first appered in 3.7.2-1)
+- build with speech-dispatcher, packed into a separate sub-package
+
+* Fri Oct 30 2009 Stepan Kasal <skasal@redhat.com> - 4.1-2
+- move data-directory back to default: /etc/brltty
+- move brltty to /bin and /lib, so that it can be used to repair the system
+  without /usr mounted (#276181)
+- move vstp and libbrlttybba.so to brlapi
+- brltty no longer requires brlapi
+- brlapi now requires brltty from the same build
+
+* Wed Oct 28 2009 Stepan Kasal <skasal@redhat.com> - 4.1-1
+- new upstream version
+- use --disable-stripping instead of make variable override
+- install the default brltty-pm.conf to docdir only (#526168)
+- remove the duplicate copies of rhmkboot and rhmkroot from docdir
+- patch configure so that the dirs in summary are not garbled:
+  brltty-autoconf-quote.patch
+- move data-directory to ${datadir}/brltty
+
+* Tue Oct 20 2009 Stepan Kasal <skasal@redhat.com> - 4.0-2
+- escape rpm macros in the rpm change log
+- add requires to bind subpackages from one build together
+
+* Wed Oct  7 2009 Stepan Kasal <skasal@redhat.com> - 4.0-1
+- new upstream version
+- drop upstreamed patches; ./autogen not needed anymore
+- pack the xbrlapi server; move its man page to brlapi package
+- add man-page for brltty.conf (#526168)
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Tue May 12 2009 Stepan Kasal <skasal@redhat.com> - 3.10-5
+- rebuild after java-1.5.0-gcj rebuild
+
+* Thu Apr 30 2009 Stepan Kasal <skasal@redhat.com> - 3.10-4
+- own the tcl subdirectory (#474032)
+- set CPPFLAGS to java include dirs, so that the java bindings build with
+  any java implementation (#498964)
+- add --without-curses; there is no curses package BuildRequired anyway
+
+* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.10-2
+- Rebuild for Python 2.6
+
+* Sat Sep 13 2008 Stepan Kasal <skasal@redhat.com> - 3.10-1
+- new upstream release
+- drop brltty-3.9-java-svn.patch, brltty-3.9-tcl85path.patch,
+  and brltty-3.9-pyxfix.patch, they are upstream
+- fix BuildRoot
+- fix many sub-packages' Requires on brlapi
+
+* Wed Sep 10 2008 Stepan Kasal <skasal@redhat.com> - 3.9-3
+- add brltty-3.9-autoconf.patch to fix to build with Autoconf 2.62
+- add brltty-3.9-parallel.patch to fix race condition with parallel make
+- add brltty-3.9-pyxfix.patch to fix build with current pyrex
+- Summary lines shall not end with a dot
+
+* Thu Feb 28 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-2.2
+- glibc build fixes
+- applied java reorganisations from svn
+
+* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.9-2.1
+- Autorebuild for GCC 4.3
+
+* Wed Jan 09 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-1.1
+- specfile update to comply with tcl packaging guidelines
+
+* Mon Jan 07 2008 Tomas Janousek <tjanouse@redhat.com> - 3.9-1
+- update to latest upstream (3.9)
+
+* Tue Sep 18 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-2.svn3231
+- update to r3231 from svn
+- added java binding subpackage
+
+* Wed Aug 29 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-2.svn3231
+- update to r3231 from svn
+
+* Tue Aug 21 2007 Tomas Janousek <tjanouse@redhat.com> - 3.8-1
+- update to latest upstream
+- added the at-spi driver, tcl and python bindings
+- fixed the license tags
+
+* Mon Mar 05 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-3
+- added the XWindow driver
+- build fix for newer byacc
+
+* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2.1
+- quiet postinstall scriptlet, really fixes #224570
+
+* Tue Jan 30 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-2
+- failsafe postinstall script, fixes #224570
+- makefile fix - debuginfo extraction now works
+
+* Thu Jan 25 2007 Tomas Janousek <tjanouse@redhat.com> - 3.7.2-1.1
+- fix building with newer kernel-headers (#224149)
+
+* Wed Jul 12 2006 Petr Rockai <prockai@redhat.com> - 3.7.2-1
+- upgrade to latest upstream version
+- split off brlapi and brlapi-devel packages
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.2-12.1
+- rebuild
+
+* Sun Jul 02 2006 Florian La Roche <laroche@redhat.com>
+- for the post script require coreutils
+
+* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.2-11
+- Added byacc BuildRequires, removed prereq, coreutils is always there
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2.1
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.2-10.2
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> 3.2-10
+- rebuild
+
+* Fri Nov 26 2004 Florian La Roche <laroche@redhat.com>
+- add a %%clean into .spec
+
+* Thu Oct 14 2004 Adrian Havill <havill@redhat.com> 3.2-5
+- chmod a-x for conf file (#116244)
+
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Tue Sep 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
+- prereq coreutils for mknod/chown/chmod
+
+* Mon Jul 07 2003 Adrian Havill <havill@redhat.com> 3.2-2
+- changed spec "Copyright" to "License"
+- use %%configure macro, %%{_libdir} for non-ia32 archs
+- removed unnecessary set and unset, assumed/default spec headers
+- fixed unpackaged man page, duplicate /bin and /lib entries
+- use plain install vs scripts for non-i386 buildsys

+ 71 - 0
f/festival-freebsoft-utils/festival-freebsoft-utils-vl.spec

@@ -0,0 +1,71 @@
+Name:          festival-freebsoft-utils
+Version:       0.10
+Release:       1%{?_dist_release}
+Summary:       A collection of utilities that enhance Festival with some useful features
+
+Group:         System Environment/Libraries
+BuildArch:     noarch
+License:       GPLv2+
+URL:           http://www.freebsoft.org/festival-freebsoft-utils
+Source0:       http://www.freebsoft.org/pub/projects/%{name}/%{name}-%{version}.tar.gz
+
+BuildRequires: festival
+
+Requires: festival
+Requires: sox
+
+%description
+A collection of utilities that enhance Festival with some useful features. They 
+provide all that is needed for interaction with Speech Dispatcher.
+
+Key festival-freebsoft-utils features are:
+- Generalized concept of input events. festival-freebsoft-utils allows not only 
+  plain text synthesis, but also combining it with sounds. Additionally, 
+  mechanism of logical events mapped to other events is provided. 
+- Substitution of events for given words. 
+- High-level voice selection mechanism and setting of basic prosodic parameters. 
+- Spelling mode. 
+- Capital letter signalization. 
+- Punctuation modes, for explicit reading or not reading punctuation characters. 
+- Incremental synthesis of texts and events. 
+- Speech Dispatcher support. 
+- Rudimentary SSML support. 
+- Enhance the Festival extension language with functions commonly used in Lisp.
+- Support for wrapping already defined Festival functions by your own code.
+- Everything is written in the extension language, no patching of the Festival 
+  C++ sources is needed.
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}/%{_datadir}/festival/lib/
+cp -p *.scm %{buildroot}/%{_datadir}/festival/lib/
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING NEWS README
+%{_datadir}/festival/lib/*.scm
+
+%changelog
+* Sat Nov 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.10-1
+- initial build for Vine Linux
+
+
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Mon Aug 30 2010 Peter Robinson <pbrobinson@gmail.com> 0.10-1
+- Initial packaging

+ 1260 - 0
f/festival/festival-vl.spec

@@ -0,0 +1,1260 @@
+%define festivalversion 1.96
+# we ship the 1.4.2 docs for now.
+%define docversion 1.4.2
+%define speechtoolsversion 1.2.96
+
+Name: festival
+Summary: Speech synthesis and text-to-speech system
+Version: %{festivalversion}
+Release: 1%{?_dist_release}
+
+URL: http://www.cstr.ed.ac.uk/projects/festival/
+Group: Applications/Multimedia
+# the emacs file is GPL+, there is one TCL licensed source file
+License: MIT and GPL+ and TCL
+
+
+# Files needed for everything...
+%define baseURL  http://festvox.org/packed/festival/%{festivalversion}
+Source0: %{baseURL}/festival-%{festivalversion}-beta.tar.gz
+Source1: %{baseURL}/speech_tools-%{speechtoolsversion}-beta.tar.gz
+
+# Docs haven't been updated yet; here's the old ones
+Source2: http://festvox.org/packed/festival/%{docversion}/festdoc-%{docversion}.tar.gz
+
+# Our local site config files.
+Source50: festival-1.96-0.7-fedora-siteinit.scm
+Source51: festival-1.96-0.7-fedora-sitevars.scm
+
+### DICTIONARIES
+# Generic English dictionary
+Source100: %{baseURL}/festlex_POSLEX.tar.gz
+# American English dictionary
+Source101: %{baseURL}/festlex_CMU.tar.gz
+# OALD isn't included because it's got a more restrictive (non-commercial
+# only) license. OALD voices not included for same reason.
+
+# Note on voice versions: I'm simply using the file date of the newest file
+# in each set of tarballs. It happens that the dates for all files from each
+# source (diphone, cmu_arctic, etc.) match, which is handy.
+
+### DIPHONE VOICES
+%define diphoneversion 0.19990610
+Source200: %{baseURL}/festvox_kallpc16k.tar.gz
+Source202: %{baseURL}/festvox_kedlpc16k.tar.gz
+
+### HTS VOICES (use Nagoya Institute of Technology's HTS based synthesizer)
+# The Festvox site packages older versions of these as cmu_us_*_hts.
+# These are from <http://hts.sp.nitech.ac.jp/>.
+# And, ugh, the files seem to be only served via a script, not directly.
+%define nitechbaseURL http://hts.sp.nitech.ac.jp/?plugin=attach&refer=Download&openfile=
+%define nitechhtsversion 0.20061229
+Source220: %{nitechbaseURL}/festvox_nitech_us_awb_arctic_hts.tar.bz2
+Source221: %{nitechbaseURL}/festvox_nitech_us_bdl_arctic_hts.tar.bz2
+Source222: %{nitechbaseURL}/festvox_nitech_us_clb_arctic_hts.tar.bz2
+Source223: %{nitechbaseURL}/festvox_nitech_us_jmk_arctic_hts.tar.bz2
+Source224: %{nitechbaseURL}/festvox_nitech_us_rms_arctic_hts.tar.bz2
+Source225: %{nitechbaseURL}/festvox_nitech_us_slt_arctic_hts.tar.bz2
+
+### Hispavoces Spanish voices http://forja.guadalinex.org/repositorio/projects/hispavoces/
+%define hispavocesversion 1.0.0
+Source300: http://v4.guadalinex.org/guadalinex-toro/pool-test/main/f/festival-spanish-voices/festival-spanish-voices_1.0.0.orig.tar.gz
+Source301: COPYING.hispavoces
+
+### Multisyn voices left out because they're ~ 100MB each.
+
+### MBROLA voices left out, because they require MBROLA, which ain't free.
+
+
+# Set defaults to American English instead of British English - the OALD
+# dictionary (free for non-commercial use only) is needed for BE support
+# Additionally, prefer the smaller (and I think nicer sounding) nitech hts
+# voices.
+Patch1: festival-1.96-nitech-american.patch
+
+# Whack some buildroot references
+Patch2: festival_buildroot.patch
+
+# Use shared libraries
+Patch3: festival-1.96-speechtools-shared-build.patch
+
+# Fix a coding error (see bug #162137). Need to upstream.
+Patch5: festival-1.96-speechtools-rateconvtrivialbug.patch
+
+# Link libs with libm, libtermcap (see bug #198190).
+# Need to upstream this.
+Patch6: festival-1.96-speechtools-linklibswithotherlibs.patch
+
+# For some reason, CXX is set to gcc on everything but Mac OS Darwin,
+# where it's set to g++. Yeah, well. We need it to be right too.
+Patch7: festival-1.96-speechtools-ohjeezcxxisnotgcc.patch
+
+# Look for siteinit and sitevars in /etc/festival
+Patch8: festival-1.96-etcsiteinit.patch
+
+# Alias old cmu names to new nitech ones
+Patch9: festival-1.96-alias_cmu_to_nitech.patch
+
+# Look for speech tools here, not back there.
+Patch10: festival-1.96-findspeechtools.patch
+
+# Build main library as shared, not just speech-tools
+Patch11: festival-1.96-main-shared-build.patch
+
+# This is a hack to make the shared libraries build with actual
+# sonames. Should pretty much do the right thing, although note
+# of course that the sonames aren't official upstream.
+Patch12: festival-1.96-bettersonamehack.patch
+
+# this updates speech_tools to a development version which fixes
+# a 64-bit cleanliness issue (among other changes).
+Patch20: festival-1.96-speechtools-1.2.96-beta+awb.patch
+
+# This makes festival use /usr/lib[arch]/festival/etc for its
+# arch-specific "etc-path", rather than /usr/share/festival/etc/system_type.
+# Then I use sed to replace the token with actual arch-specific libdir.
+# A better way would be to actually make this a flexible makefile parameter,
+# but that's something to take up with upstream.
+Patch31: festival-1.96-kludge-etcpath-into-libarch.patch
+
+# For some reason, the Nitech voices (and the previous CMU versions) fail to
+# define proclaim_voice, which makes them not show up in the voice
+# descriptions, which makes gnome-speech not show them.
+Patch90: festival-1.96-nitech-proclaimvoice.patch
+
+# Cure "SIOD ERROR: unbound variable : f2b_f0_lr_start"
+Patch91: festival-1.96-nitech-fixmissingrequire.patch
+
+# An apparent copy-paste error in these voices -- slt is referenced
+# in all of them.
+Patch92: festival-1.96-nitech-sltreferences.patch
+
+Patch93: gcc43.patch
+
+# Native pulseaudio support, https://bugzilla.redhat.com/show_bug.cgi?id=471047
+Patch94: festival-speech-tools-pulse.patch
+
+Patch95: gcc44.patch
+
+BuildRequires: pulseaudio-libs-devel
+BuildRequires: texlive
+BuildRequires: ncurses-devel
+
+# Requires: festival-voice
+# The hard dep below provides a festival-voice, no need to require it here.
+
+# This is hard-coded as a requirement because it's the smallest voice (and,
+# subjectively I think the most pleasant to listen to and so a good
+# default).
+#
+# Ideally, this would be a "suggests" instead of a hard requirement.
+#
+# Update: with the new nitech versions of the voices, slt-arctic is no
+# longer the smallest. But... AWB has a strong scottish accent, and JMK a
+# kind of odd canadian one, so they're not great candidates for inclusion.
+# And I find RMS a bit hard to understand. BDL isn't much smaller than SLT,
+# and since I like it better, I think I'm going to keep it as the default
+# for a price 12k. So, in case anyone later questions why this is the
+# default, there's the answer. :)
+Requires: festvox-slt-arctic-hts
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{festivalversion}-%{release}-XXXXXX)
+
+
+
+%package lib
+Summary: Library for the Festival speech synthesis system
+# this is here to make sure upgrades go cleanly. In other cases,
+# the auto-deps should handle this just fine.
+Requires: festival-speechtools-libs
+Group: System Environment/Libraries
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%package docs
+Summary: Documentation for the Festival speech synthesis system
+Group: Applications/Multimedia
+Version: %{docversion}
+Requires(post): /sbin/install-info
+Requires(postun): /sbin/install-info
+BuildArch: noarch
+
+%package speechtools-libs
+Summary: The Edinburgh Speech Tools libraries
+Group: System Environment/Libraries
+Version: %{speechtoolsversion}
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%package speechtools-utils
+Summary: Miscellaneous utilities from the Edinburgh Speech Tools 
+Group: Applications/Multimedia
+Version: %{speechtoolsversion}
+
+%package speechtools-devel
+Summary: Development files for Edinburgh Speech Tools libraries
+Version: %{speechtoolsversion}
+Group: Development/Libraries
+# Note: rpmlint complains incorrectly about
+# "no-dependency-on festival-speechtools".
+Requires: festival-speechtools-libs = %{speechtoolsversion}
+
+%package -n festvox-kal-diphone
+Group: Applications/Multimedia
+Summary: American English male speaker "Kevin" for Festival
+Version: %{diphoneversion}
+Provides: festival-voice
+Provides: festvox-kallpc16k
+BuildArch: noarch
+
+%package -n festvox-ked-diphone
+Group: Applications/Multimedia
+Summary: American English male speaker "Kurt" for Festival
+Version: %{diphoneversion}
+Requires: festival
+Provides: festival-voice
+Provides: festvox-kedlpc16k
+BuildArch: noarch
+
+%package -n festvox-awb-arctic-hts
+Group: Applications/Multimedia
+Summary: Scottish-accent US English male speaker "AWB" for Festival
+Version: %{nitechhtsversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n festvox-bdl-arctic-hts
+Group: Applications/Multimedia
+Summary: US English male speaker "BDL" for Festival
+Version: %{nitechhtsversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n festvox-clb-arctic-hts
+Group: Applications/Multimedia
+Summary: US English female speaker "CLB" for Festival
+Version: %{nitechhtsversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n festvox-jmk-arctic-hts
+Group: Applications/Multimedia
+Summary: Canadian-accent US English male speaker "JMK" for Festival
+Version: %{nitechhtsversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n festvox-rms-arctic-hts
+Group: Applications/Multimedia
+Summary: US English male speaker "RMS" for Festival
+Version: %{nitechhtsversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n festvox-slt-arctic-hts
+Group: Applications/Multimedia
+Summary: US English female speaker "SLT" for Festival
+Version: %{nitechhtsversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n hispavoces-pal-diphone
+Group: Applications/Multimedia
+Summary: Male Spanish voice «PAL» for Festival
+Version: %{hispavocesversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+%package -n hispavoces-sfl-diphone
+Group: Applications/Multimedia
+Summary: Female Spanish voice «SFL» for Festival
+Version: %{hispavocesversion}
+Requires: festival
+Provides: festival-voice
+BuildArch: noarch
+
+# This is last as a lovely hack to make sure Version gets set back
+# to what it should be. Grr.
+%package devel
+Summary: Development files for the Festival speech synthesis system
+Version: %{festivalversion}
+Group: Development/Libraries
+# Note: rpmlint complains incorrectly about
+# "no-dependency-on festival"
+Requires: festival-speechtools-devel = %{speechtoolsversion}
+Requires: festival-lib
+
+
+
+%description
+Festival is a general multi-lingual speech synthesis system developed
+at CSTR. It offers a full text to speech system with various APIs, as
+well as an environment for development and research of speech synthesis
+techniques. It is written in C++ with a Scheme-based command interpreter
+for general control.
+
+%description lib
+The shared library used by the Festival text-to-speech and speech synthesis
+system.
+
+%description docs
+HTML, Postscript, and Texinfo documentation for the Festival text-to-speech
+and speech synthesis system.
+
+%description speechtools-libs
+The Edinburgh Speech Tools libraries, used by the Festival text-to-speech
+and speech synthesis system.
+
+%description speechtools-utils 
+Miscellaneous utilities from the Edinburgh Speech Tools. Unless you have a
+specific need for one of these programs, you probably don't need to install
+this.
+
+%description speechtools-devel
+Development files for the Edinburgh Speech Tools Library, used by the
+Festival speech synthesis system.
+
+
+%description -n festvox-kal-diphone
+American English male speaker ("Kevin") for Festival.
+
+This voice provides an American English male voice using a residual excited
+LPC diphone synthesis method. It uses the CMU Lexicon pronunciations.
+Prosodic phrasing is provided by a statistically trained model using part of
+speech and local distribution of breaks. Intonation is provided by a CART
+tree predicting ToBI accents and an F0 contour generated from a model
+trained from natural speech. The duration model is also trained from data
+using a CART tree.
+
+
+%description -n festvox-ked-diphone
+American English male speaker ("Kurt") for Festival.
+
+This voice provides an American English male voice using a residual excited
+LPC diphone synthesis method. It uses the CMU Lexicon for pronunciations.
+Prosodic phrasing is provided by a statistically trained model using part of
+speech and local distribution of breaks. Intonation is provided by a CART
+tree predicting ToBI accents and an F0 contour generated from a model
+trained from natural speech. The duration model is also trained from data
+using a CART tree.
+
+
+%description -n festvox-awb-arctic-hts
+US English male speaker ("AWB") for Festival. AWB is a native Scottish
+English speaker, but the voice uses the US English front end.
+
+This is a HMM-based Speech Synthesis System (HTS) voice from the Nagoya
+Institute of Technology, trained using the CMU ARCTIC database. This voice
+is based on 1138 utterances spoken by a Scottish English male speaker. The
+speaker is very experienced in building synthetic voices and matched
+prompted US English, though his vowels are very different from US English
+vowels. Scottish English speakers will probably find synthesizers based on
+this voice strange. Unlike the other CMU_ARCTIC databases this was recorded
+in 16 bit 16KHz mono without EGG, on a Dell Laptop in a quiet office. The
+database was automatically labelled using CMU Sphinx using the FestVox
+labelling scripts. No hand correction has been made.
+
+
+%description -n festvox-bdl-arctic-hts
+US English male speaker ("BDL") for Festival.
+
+This is a HMM-based Speech Synthesis System (HTS) voice from the Nagoya
+Institute of Technology, trained using the CMU ARCTIC database. This voice
+is based on 1132 utterances spoken by a US English male speaker. The speaker
+is experienced in building synthetic voices. This was recorded at 16bit
+32KHz, in a sound proof room, in stereo, one channel was the waveform, the
+other EGG. The database was automatically labelled using CMU Sphinx using
+the FestVox labelling scripts. No hand correction has been made.
+
+
+%description -n festvox-clb-arctic-hts
+US English female speaker ("CLB") for Festival.
+
+This is a HMM-based Speech Synthesis System (HTS) voice from the Nagoya
+Institute of Technology, trained using the CMU ARCTIC database. This voice
+is based on 1132 utterances spoken by a US English female speaker. The
+speaker is experienced in building synthetic voices. This was recorded at
+16bit 32KHz, in a sound proof room, in stereo, one channel was the waveform,
+the other EGG. The database was automatically labelled using CMU Sphinx
+using the FestVox labelling scripts. No hand correction has been made.
+
+
+%description -n festvox-jmk-arctic-hts
+US English male speaker ("JMK") voice for Festival. JMK is a native Canadian
+English speaker, but the voice uses the US English front end.
+
+This is a HMM-based Speech Synthesis System (HTS) voice from the Nagoya
+Institute of Technology, trained using the CMU ARCTIC database. This voice
+is based on 1138 utterances spoken by a US English male speaker. The speaker
+is experienced in building synthetic voices. This was recorded at 16bit
+32KHz, in a sound proof room, in stereo, one channel was the waveform, the
+other EGG. The database was automatically labelled using CMU Sphinx using
+the FestVox labelling scripts. No hand correction has been made.
+
+%description -n festvox-rms-arctic-hts
+US English male speaker ("RMS") voice for Festival.
+
+This is a HMM-based Speech Synthesis System (HTS) voice from the Nagoya
+Institute of Technology, trained using the CMU ARCTIC database. This voice
+is based on 1132 utterances spoken by a US English male speaker. The speaker
+is experienced in building synthetic voices. This was recorded at 16bit
+32KHz, in a sound proof room, in stereo, one channel was the waveform, the
+other EGG. The database was automatically labelled using EHMM an HMM labeler
+that is included in the FestVox distribution. No hand correction has been
+made.
+
+%description -n festvox-slt-arctic-hts
+US English female speaker ("SLT") voice for Festival.
+
+This is a HMM-based Speech Synthesis System (HTS) voice from the Nagoya
+Institute of Technology, trained using the CMU ARCTIC database. This voice
+is based on 1132 utterances spoken by a US English female speaker. The
+speaker is experienced in building synthetic voices. This was recorded at
+16bit 32KHz, in a sound proof room, in stereo, one channel was the waveform,
+the other EGG. The database was automatically labelled using CMU Sphinx
+using the FestVox labelling scripts. No hand correction has been made.
+
+%description -n hispavoces-sfl-diphone
+Female Castillian-Spanish (es_ES) voice «SFL» for Festival.
+
+This is a diphone-based male Spanish voice for the Festival speech synthesis
+system. These original audio files were recorded by a professional voice
+talent in a recording studio.
+
+This voice was developed by the Consejeria de Innovacion, Ciencia y Empresa
+of the Junta de Andalucia on a project awarded to MP Sistemas in
+collaboration with Intelligent Dialogue Systems (INDISYS).
+
+The primary objective was to integrate a higher-quality diphone-based
+Spanish voice in Guadalinex v4.0, an Ubuntu-based Linux distribution
+promoted by the Government of Andalusia (Spain). See
+http://www.guadalinex.org for more information.
+
+%description -n hispavoces-pal-diphone
+Male Castillian-Spanish (es_ES) voice «PAL» for Festival.
+
+This is a diphone-based male Spanish voice for the Festival speech synthesis
+system. These original audio files were recorded by a professional voice
+talent in a recording studio.
+
+This voice was developed by the Consejeria de Innovacion, Ciencia y Empresa
+of the Junta de Andalucia on a project awarded to MP Sistemas in
+collaboration with Intelligent Dialogue Systems (INDISYS).
+
+The primary objective was to integrate a higher-quality diphone-based
+Spanish voice in Guadalinex v4.0, an Ubuntu-based Linux distribution
+promoted by the Government of Andalusia (Spain). See
+http://www.guadalinex.org for more information.
+
+%description devel
+Development files for the Festival speech synthesis system. Install
+festival-devel if you want to use Festival's capabilities from within your
+own programs, or if you intend to compile other programs using it. Note that
+you can also interface with Festival in via the shell or with BSD sockets.
+
+
+
+%prep
+%setup -q -n festival -a 1
+
+# speech tools
+%setup -q -n festival -D -T -a 2
+
+# exit out if they've fixed this, so we can remove this hack.
+[ -x speech_tools/base_class/string/EST_strcasecmp.c ] || exit 1
+chmod -x speech_tools/base_class/string/EST_strcasecmp.c
+
+# dictionaries
+%setup -q -n festival -D -T -b 100
+%setup -q -n festival -D -T -b 101
+
+# voices
+%setup -q -n festival -D -T -b 200
+%setup -q -n festival -D -T -b 202
+%setup -q -n festival -D -T -b 220
+%setup -q -n festival -D -T -b 221
+%setup -q -n festival -D -T -b 222
+%setup -q -n festival -D -T -b 223
+%setup -q -n festival -D -T -b 224
+%setup -q -n festival -D -T -b 225
+%setup -c -q -n festival -D -T -b 300
+
+%patch1 -p1 -b .nitech
+%patch2 -p1 -b .buildrootrefs
+%patch3 -p1 -b .shared
+%patch5 -p1 -b .bugfix
+%patch6 -p1 -b .liblinking
+%patch7 -p1 -b .cxx
+%patch8 -p1 -b .etc
+%patch9 -p1 -b .cmu2nitech
+# patch9 creates a new file; patch helpfully makes a "backup" of the
+# non-existent "original", which then has bad permissions. zap.
+rm -f lib/alias_cmu_to_nitech.scm.cmu2nitech
+%patch10 -p1 -b .findspeechtools
+%patch11 -p1 -b .shared
+%patch12 -p1 -b .soname
+
+%patch20 -p1 -b .awb
+
+%patch31 -p1 -b .libarch
+# finish the kludge for arch-specific "etc" (misc. binaries)
+for f in speech_tools/main/siod_main.cc src/arch/festival/festival.cc; do
+  sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"%{_libdir}",' $f
+done
+
+# no backups for these patches because 
+# the voice directories are copied wholesale
+%patch90 -p1 
+%patch91 -p1
+%patch92 -p1
+%patch93 -p1 -b .gcc43
+%patch94 -p1 -b .pulse
+%patch95 -p1 -b .gcc44
+
+# zero length
+rm festdoc-%{docversion}/speech_tools/doc/index_html.jade
+rm festdoc-%{docversion}/speech_tools/doc/examples_gen/error_example_section.sgml
+rm festdoc-%{docversion}/speech_tools/doc/tex_stuff.jade
+
+
+
+%build
+
+# build speech tools (and libraries)
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/speech_tools/lib
+pushd speech_tools
+  %configure
+  # -fPIC 'cause we're building shared libraries and it doesn't hurt
+  # -fno-strict-aliasing because of a couple of warnings about code
+  #   problems; if $RPM_OPT_FLAGS contains -O2 or above, this puts
+  #   it back. Once that problem is gone upstream, remove this for
+  #   better optimization.
+  make \
+    CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" \
+    CXXFLAGS="$RPM_OPT_FLAGS  -fPIC -fno-strict-aliasing"
+popd
+
+# build the main program
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/src/lib
+# instead of doing this, maybe we should patch the make process
+# so it looks in the right place explicitly:
+export PATH=$(pwd)/bin:$PATH
+%configure
+make \
+  FTLIBDIR="%{_datadir}/festival/lib" \
+  CFLAGS="$RPM_OPT_FLAGS -fPIC" \
+  CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
+
+# build the patched CMU dictionary
+pushd lib/dicts/cmu
+  make
+popd
+
+
+%install
+# "make install" for this package is, um, "interesting". It seems geared for
+# local user-level builds. So, rather than doing that and then patching it
+# up, do the right parts by hand as necessary.
+
+# install speech tools libs, binaries, and include files
+pushd speech_tools
+
+  make INSTALLED_LIB=$RPM_BUILD_ROOT%{_libdir} make_installed_lib_shared
+  # no thanks, static libs.
+  rm $RPM_BUILD_ROOT%{_libdir}/*.a
+
+  make INSTALLED_BIN=$RPM_BUILD_ROOT%{_libexecdir}/speech-tools make_installed_bin_static
+  # this list of the useful programs in speech_tools comes from
+  # upstream developer Alan W. Black; the other stuff is to be removed.
+  pushd $RPM_BUILD_ROOT%{_libexecdir}/speech-tools
+    ls |
+        grep -Evw "ch_wave|ch_track|na_play|na_record|wagon|wagon_test" |
+        grep -Evw "make_wagon_desc|pitchmark|pm|sig2fv|wfst_build" |
+        grep -Evw "wfst_run|wfst_run" |
+        xargs rm
+  popd
+
+  pushd include
+    for d in $( find . -type d | grep -v win32 ); do
+      make -w -C $d INCDIR=$RPM_BUILD_ROOT%{_includedir}/speech_tools/$d install_incs
+    done  
+    # Um, yeah, so, "EST" is not a very meaningful name for the include dir.
+    # The Red Hat / Fedora package has traditionally put this stuff under
+    # "speech_tools", and that's what we're gonna do here too.
+    mv $RPM_BUILD_ROOT%{_includedir}/speech_tools/EST/*.h \
+       $RPM_BUILD_ROOT%{_includedir}/speech_tools/
+    rmdir $RPM_BUILD_ROOT%{_includedir}/speech_tools/EST
+  popd
+
+  cp README ../README.speechtools
+
+popd
+
+# install the dictionaries
+TOPDIR=$( pwd )
+pushd lib/dicts
+  mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/lib/dicts
+  # we want to put the licenses in the docs...
+  cp COPYING.poslex $OLDPWD/COPYING.poslex
+  cp cmu/COPYING $OLDPWD/COPYING.cmudict
+  for f in wsj.wp39.poslexR wsj.wp39.tri.ngrambin ; do
+    install -m 644 $f $RPM_BUILD_ROOT%{_datadir}/festival/lib/dicts/
+  done
+  mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/lib/dicts/cmu
+  pushd cmu
+    # note I'm keeping cmudict-0.4.diff and cmudict_extensions.scm to
+    # satisfy the "all changes clearly marked" part of the license -- these
+    # are the changes. And yes, the ".out" file is the one actually used.
+    # Sigh.
+    for f in allowables.scm cmudict-0.4.diff cmudict-0.4.out \
+             cmudict_extensions.scm cmulex.scm cmu_lts_rules.scm; do
+      install -m 644 $f $RPM_BUILD_ROOT%{_datadir}/festival/lib/dicts/cmu/
+    done
+  popd
+popd
+
+# install the voices
+pushd lib/voices
+  # get the licenses. This is probably too clever by half, but oh well.
+  for f in $( find . -name COPYING ); do
+    n=$( echo $f | sed 's/.*\/\(.*\)\/COPYING/COPYING.\1/' )
+    mv $f $OLDPWD/$n
+  done
+  # ditch the readme files -- these aren't very useful. 
+  # Except keep a README.htsvoice, because it contains license information.
+  cp us/nitech_us_awb_arctic_hts/hts/README.htsvoice $OLDPWD/README.htsvoice
+  find . -name 'README*' -exec rm {} \;
+popd
+# kludge! nitech_us_awb_arctic_hts is missing its COPYING file. It should
+# be the same as the other nitech files, though, so just copy one.
+cp COPYING.nitech_us_bdl_arctic_hts COPYING.nitech_us_awb_arctic_hts
+cp -a lib/voices $RPM_BUILD_ROOT%{_datadir}/festival/lib
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/lib/voices/es/
+cp -a festival-spanish-voices-1.0.0/* $RPM_BUILD_ROOT%{_datadir}/festival/lib/voices/es/
+cp %{SOURCE301} .
+
+# okay, now install the main festival program.
+
+# binaries:
+make INSTALLED_BIN=$RPM_BUILD_ROOT%{_bindir} make_installed_bin_static
+install -m 755 bin/text2wave $RPM_BUILD_ROOT%{_bindir}
+
+# install the shared library
+cp -a src/lib/libFestival.so* $RPM_BUILD_ROOT%{_libdir}
+
+# this is just nifty. and it's small.
+install -m 755 examples/saytime $RPM_BUILD_ROOT%{_bindir}
+
+# man pages
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+# lib: the bulk of the program -- the scheme stuff and so on
+pushd lib
+  mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/lib
+  for f in *.scm festival.el *.ent *.gram *.dtd *.ngrambin speech.properties ; do
+    install -m 644 $f $RPM_BUILD_ROOT%{_datadir}/festival/lib/
+  done
+  mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/lib/multisyn/
+  install -m 644 multisyn/*.scm $RPM_BUILD_ROOT%{_datadir}/festival/lib/multisyn/
+popd 
+
+# "etc" -- not in the configuration sense, but in the sense of "extra helper
+# binaries".
+pushd lib/etc
+  # not arch-specific
+  mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/lib/etc
+  install -m 755 email_filter $RPM_BUILD_ROOT%{_datadir}/festival/lib/etc
+  # arch-specific
+  mkdir -p $RPM_BUILD_ROOT%{_libdir}/festival/etc
+  install -m 755 */audsp $RPM_BUILD_ROOT%{_libdir}/festival/etc
+popd
+
+# the actual /etc. :)
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/festival
+# use our version of this file
+rm $RPM_BUILD_ROOT%{_datadir}/festival/lib/siteinit.scm 
+install -m 644 %{SOURCE50} $RPM_BUILD_ROOT%{_sysconfdir}/festival/siteinit.scm
+install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/festival/sitevars.scm
+
+# copy in the intro.text. It's small and makes (intro) work. in the future,
+# we may want include more examples in an examples subpackage
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/festival/examples/
+install -m 644 examples/intro.text $RPM_BUILD_ROOT%{_datadir}/festival/examples
+
+
+# header files
+mkdir -p $RPM_BUILD_ROOT%{_includedir}/festival
+cp -a src/include/* $RPM_BUILD_ROOT%{_includedir}/festival
+
+# Clean up some junk from the docs tarball.
+pushd festdoc-%{docversion}/speech_tools/doc
+  rm -fr CVS arch_doc/CVS man/CVS  speechtools/arch_doc/CVS
+  rm -f .*_made .speechtools_html .tex_done
+popd
+
+# info pages
+mkdir -p $RPM_BUILD_ROOT%{_infodir}
+cp -p festdoc-%{docversion}/festival/info/* $RPM_BUILD_ROOT%{_infodir}
+
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+
+%post docs
+/sbin/install-info %{_infodir}/festival.info.gz %{_infodir}/dir --section "Accessibility" > /dev/null 2>&1
+:
+
+%post lib -p /sbin/ldconfig
+
+%post speechtools-libs -p /sbin/ldconfig
+
+
+%postun docs
+if [ "$1" = 0 ]; then
+	/sbin/install-info --delete %{_infodir}/festival.info.gz %{_infodir}/dir --section "Accessibility" > /dev/null 2>&1
+fi
+:
+
+%postun lib -p /sbin/ldconfig
+
+%postun speechtools-libs -p /sbin/ldconfig
+
+
+
+%files
+%defattr(-,root,root)
+%doc ACKNOWLEDGMENTS COPYING NEWS README
+%doc COPYING.poslex COPYING.cmudict
+%dir %{_sysconfdir}/festival
+%config(noreplace)  %{_sysconfdir}/festival/siteinit.scm
+%config(noreplace)  %{_sysconfdir}/festival/sitevars.scm
+%{_bindir}/festival
+%{_bindir}/festival_client
+%{_bindir}/festival_server
+%{_bindir}/festival_server_control
+%{_bindir}/text2wave
+%{_bindir}/saytime
+%dir %{_datadir}/festival
+%dir %{_datadir}/festival/lib
+%{_datadir}/festival/lib/*.scm
+%{_datadir}/festival/lib/festival.el
+%{_datadir}/festival/lib/*.ent
+%{_datadir}/festival/lib/*.gram
+%{_datadir}/festival/lib/*.dtd
+%{_datadir}/festival/lib/*.ngrambin
+%{_datadir}/festival/lib/speech.properties
+%{_datadir}/festival/lib/dicts
+%{_datadir}/festival/lib/etc
+%dir %{_datadir}/festival/lib/multisyn
+%{_datadir}/festival/lib/multisyn/*.scm
+%dir %{_datadir}/festival/examples
+%{_datadir}/festival/examples/intro.text
+%dir %{_libdir}/festival
+%dir %{_libdir}/festival/etc
+%{_libdir}/festival/etc/*
+%{_mandir}/man1/*
+
+%files lib
+%defattr(-,root,root)
+%doc COPYING
+%{_libdir}/libFestival.so.*
+
+%files docs
+%defattr(-,root,root)
+%doc festdoc-%{docversion}/festival/html/*html
+%{_infodir}/*
+
+%files speechtools-libs
+%defattr(-,root,root)
+%doc README.speechtools
+%{_libdir}/libestbase.so.*
+%{_libdir}/libestools.so.*
+%{_libdir}/libeststring.so.*
+
+%files speechtools-utils
+%defattr(-,root,root)
+%doc README.speechtools
+%dir %{_libexecdir}/speech-tools
+%{_libexecdir}/speech-tools/*
+
+%files speechtools-devel
+%defattr(-,root,root)
+%doc festdoc-%{docversion}/speech_tools
+%{_libdir}/libestbase.so
+%{_libdir}/libestools.so
+%{_libdir}/libeststring.so
+%dir %{_includedir}/speech_tools
+%{_includedir}/speech_tools/*
+
+%files -n festvox-kal-diphone
+%defattr(-,root,root)
+%doc COPYING.kal_diphone
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/english
+%{_datadir}/festival/lib/voices/english/kal_diphone
+
+%files -n festvox-ked-diphone
+%defattr(-,root,root)
+%doc COPYING.ked_diphone 
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/english
+%{_datadir}/festival/lib/voices/english/ked_diphone
+
+%files -n festvox-awb-arctic-hts
+%defattr(-,root,root)
+%doc COPYING.nitech_us_awb_arctic_hts COPYING.hts README.htsvoice
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/us
+%{_datadir}/festival/lib/voices/us/nitech_us_awb_arctic_hts
+
+%files -n festvox-bdl-arctic-hts
+%defattr(-,root,root)
+%doc COPYING.nitech_us_bdl_arctic_hts COPYING.hts README.htsvoice
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/us
+%{_datadir}/festival/lib/voices/us/nitech_us_bdl_arctic_hts
+
+%files -n festvox-clb-arctic-hts
+%defattr(-,root,root)
+%doc COPYING.nitech_us_clb_arctic_hts COPYING.hts README.htsvoice
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/us
+%{_datadir}/festival/lib/voices/us/nitech_us_clb_arctic_hts
+
+%files -n festvox-jmk-arctic-hts
+%defattr(-,root,root)
+%doc COPYING.nitech_us_jmk_arctic_hts COPYING.hts README.htsvoice
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/us
+%{_datadir}/festival/lib/voices/us/nitech_us_jmk_arctic_hts
+
+%files -n festvox-rms-arctic-hts
+%defattr(-,root,root)
+%doc COPYING.nitech_us_rms_arctic_hts COPYING.hts README.htsvoice
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/us
+%{_datadir}/festival/lib/voices/us/nitech_us_rms_arctic_hts
+
+%files -n festvox-slt-arctic-hts
+%defattr(-,root,root)
+%doc COPYING.nitech_us_slt_arctic_hts COPYING.hts README.htsvoice
+%dir %{_datadir}/festival/lib/voices
+%dir %{_datadir}/festival/lib/voices/us
+%{_datadir}/festival/lib/voices/us/nitech_us_slt_arctic_hts
+
+%files -n hispavoces-pal-diphone
+%defattr(-,root,root)
+%doc COPYING.hispavoces
+%dir %{_datadir}/festival/lib/voices/es/JuntaDeAndalucia_es_pa_diphone/
+%{_datadir}/festival/lib/voices/es/JuntaDeAndalucia_es_pa_diphone/*
+
+%files -n hispavoces-sfl-diphone
+%defattr(-,root,root)
+%doc COPYING.hispavoces
+%dir %{_datadir}/festival/lib/voices/es/JuntaDeAndalucia_es_sf_diphone/
+%{_datadir}/festival/lib/voices/es/JuntaDeAndalucia_es_sf_diphone/*
+
+%files devel
+%defattr(-,root,root)
+%doc COPYING
+%{_libdir}/libFestival.so
+%dir %{_includedir}/festival
+%{_includedir}/festival/*
+
+
+
+%changelog
+* Sun Dec 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.96-1
+- initial build for Vine Linux
+
+
+* Tue Sep 29 2009 Matthias Clasen <mclasen@redhat.com> - 1.96-16
+- Add native pulseaudio support (#471047)
+
+* Thu Sep 10 2009 Bernie Innocenti <bernie@codewiz.org> - 1.96-15
+- Disable esd support (resolves: rhbz#492982)
+
+* Wed Jul 29 2009 Matthias Clasen <mclasen@redhat.com> - 1.96-14
+- Rebuild
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-13
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Sat Apr 18 2009 Matthias Clasen <mclasen@redhat.com> - 1.96-12
+- Add Spanish voices from the guadalinex project, in the
+  hispavoces-pal-diphone and hispavoces-sfl-diphone subpackages
+  (#496011)
+
+* Tue Mar 24 2009 Jesse Keating <jkeating@redhat.com> - 1.96-11
+- Drop the explicit dep on festival-voice, as it is redundant and
+  causes problems with multiple providers
+
+* Thu Feb 26 2009 Matthias Clasen  <mclasen@redhat.com> 1.96-10
+- Fix build with gcc 4.4
+
+* Tue Feb 24 2009 Matthias Clasen  <mclasen@redhat.com> 1.96-9
+- Make -docs and all the festvox subpackages noarch
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sun Nov 23 2008 Matthias Clasen <mclasen@redhat.com> - 1.96-7
+- Tweak summaries
+
+* Mon Oct 27 2008 Ray Strode <rstrode@redhat.com> - 1.96-6
+- interoperate with other apps by using pacat for audio output
+  (bug 467531)
+
+* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.96-5
+- fix license tag
+
+* Fri Feb 22 2008 Matthias Clasen  <mclasen@redhat.com> - 1.96-4
+- Fix the build with gcc 4.3
+
+* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.96-3
+- Autorebuild for GCC 4.3
+
+* Wed Nov  7 2007 Stepan Kasal <skasal@redhat.com>1.96-2
+- fix a typo in a summary and in festival-1.96-nitech-proclaimvoice.patch
+- Resolves: #239216
+
+* Tue Mar 20 2007 Ray Strode <rstrode@redhat.com> 1.96-1
+- rebuild
+
+* Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> 1.96-0.11
+- Forgot to add the .scm files
+
+* Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> 1.96-0.10
+- Update to Matthew Miller's much improved package (#232105)
+- Move the buildroot patch around
+
+* Sun Mar 18 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.9
+- fix the library link patch to use -lncurses instead of -ltinfo --
+  the later is all that's really needed, but the former works on older
+  distros too.
+
+* Fri Mar 16 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.8
+- festival-devel depends on the libraries package, not base festival. this
+  raises an multilib question: need to obsolete festival.i386 on x86_64.
+  Right now, there's no mechanism for doing that. Fortunately, all the
+  changes in packaging happen to make it so that the current version doesn't
+  conflict with the old release, so one will get unused cruft but not
+  breakage when upgrading.
+- Bite teh proverbial bullet and make libFestival build shared.
+- update speech-tools soname patch to work in the more general case needed
+  by the festival main build
+- make said shared-lib a subpackage to avoid multiarching the whole thing
+- split festival-devel and speechutils-devel in anticipation of future
+  plan of actually decoupling these packages.
+- note that rpmlint complains about "missing" deps on the devel packages. it
+  should be fixed to recognize requiring a -lib/libs package is sufficent or
+  better.
+- add saytime script. Because, really, what else is this package *for*?
+- add the intro.text so (intro) works. 196 more bytes won't kill us. :)
+- remove $PATH from LD_LIBRARY_PATH used in build. (What the heck?)
+- add defattr to all subpackages. I don't think it's strictly necessary
+  since putting it in the first package seems sufficient, but that's
+  probably not behavior to count on.
+- make descriptions and summaries use more consistant language
+
+* Thu Mar 15 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.7
+- Upstream baseurl now includes version. (Thanks Alan Black @ cmu)
+- Update siteinit patch to also incorporate sitevars
+- Add sitevars as a config file
+- Ship our own siteinit and sitevars as sources
+- In default sitevars, reference /usr/local/share/festival/lib as another
+  place to look for voices (it's okay if that doesn't exist). Hopefully,
+  this will encourage people who want to install non-RPM-packaged voices to
+  keep from doing it in /usr/share.
+- Fix wrong references to slt voice in other nitech voices
+- Fix wrongly commented-out (require 'f2bf0lr) in awb, clb, and rms voices.
+- Stop untarring source files and use the setup macro properly.
+- Get rid of silly DATA.TMP directories for installing voices and 
+  dictionaries.
+- Stop making ../speechtools link. Currently solved by patching to look
+  in the current directory; could also do this by moving everything up
+  a directory.
+- TODO: festival-buildroot.patch could stand to be updated. May not
+  even be needed anymore.
+- Drop the 8k versions of the diphone voices, since there's not really
+  any point. If you want smaller, use one of the arctic_hts voices
+  instead. And overall, this saves us about 4.5M.
+
+* Wed Mar 14 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.6
+- Fix copy-paste error in JMK description (thanks Matthias Clasen)
+- Remove "nitech-us-" from the names of those voice packages to make the
+  package names shorter. (This will also be more convenient if we switch to
+  the cmu versions in the future.)
+- made aliases so old cmu_us_*_arctic_hts voice names still work.
+- Look for /etc/festival/siteinit.scm (and move siteinit.scm there!)
+- Mark siteinit.scm as a config file
+- Remove some non-useful stuff from speech-tools-utils.
+- Move main dir from /usr/share/festival to /usr/share/festival/lib at
+  request of upstream. Also, we can drop the FHS (well, "fsstnd" -- it's
+  old) patch and just pass FTLIBDIR to make. Which, hey, we were already
+  doing. Yay redundancy.
+- clean up CFLAGS and CXXFLAGS. "-fpermissive" was hiding bad stuff.
+- update speech tools with patch from AWB to fix 64-bit build issue 
+  with EST_DProbDist
+- there's still some compiler warnings which should be addressed upstream.
+- The nitech hts voices don't properly proclaim_voice, making them not
+  show up for gnome-speech and thus making orca crash. See details in the
+  comments in bug #232105.
+
+* Tue Mar 13 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.5
+- use festvox- instead of festival-voice for voice packages -- matches
+  upstream tarballs, and is shorter. Also, use shorter form of
+  the date-based version.
+- get the README.htsvoice from the nitech voices -- it contains
+  license info.
+- build (but don't enable by default) ESD support in speech-tools (bug
+  #198908)
+- fix coding error noted in bug #162137 -- need to push this upstream.
+- link speech tools libraries with -lm, -ltermcap, -lesd and with themselves
+  (bug #198190, partially)
+- holy sheesh. Use g++ for CXX, not gcc. Fixes bug #198190 completely.
+
+* Tue Mar 13 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.4
+- subpackages! Split out speech-tools, docs, voices.
+- long descriptions for the individual voices, carefully gathered from
+  readmes and web sites.
+- ooh. replace cmu_hts voices with the updated versions from upstream
+  <http://hts.sp.nitech.ac.jp/>. Two new voices, and updated versions of
+  the others. (The voices packaged at festvox.org are apparently based on
+  older versions of these, which in turn are from the CMU upstream.)
+- TODO: make aliases for the cmu voices.
+- arguably, voices should be made in to their own src.rpms. They don't need
+  anything from here to build. That's for a future version. (At that time,
+  the gigantic multisyn voices could be added.) The CMU dict needs festival
+  installed to build, but I don't think it needs the source, so dicts could
+  be subpackages too. And the docs are also a good candidate for separation.
+  speech-tools, though, is incestuously used in the festival build process
+  and I think it makes sense to keep that bundled.
+- TODO: check through the speechtools-utils for what should actually be 
+  packaged; fix the include path for siod (and anything else that needs it).
+- TODO: package festival.el so it just works with emacs.
+- TODO: reinvent festival_server_control as a proper init script
+- TODO: put the festival server in sbin, maybe?
+- Another question: should we drop the 8k diphone voices? Any point?
+- Changed "X11-like" to "MIT-style" (which is what X11 is) to make rpmlint
+  happy.
+- make %{festivalversion} macro to deal with all of the changes to version
+  in subpackages. Kludgy, but there's RPM for you.
+
+* Tue Mar 13 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.3
+- oh! The "etc-path" is important after all. Map that into
+  /usr/lib[arch]/festival via a kludge.
+- make cmu_us_slt_arctic_hts the default voice, in preparation for
+  splitting the voice packages. (thankfully, there's already a fallback
+  mechanism -- cool!)
+
+* Mon Mar 12 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.2
+- clean up accidental backup file left in updated awb_arctic_hts 
+  tarball
+- remove /usr/share/festival/etc (see bug #228315)
+- move unpackage voices to the prep section where it belongs
+- other minor spec file readability changes
+- "make install" for this package is, um, "interesting". It seems
+  geared for local user-level builds. So, rather than doing that and
+  then patching it up, do the right parts by hand as necessary. (The
+  previous version of the spec file did a convoluted mix of both.)
+- don't install static libs.
+- took out the massive hack that munges EST_*.h to speech_tools/EST_*.h in
+  the installed header files -- programs should instead use
+  -I/usr/include/speech_tools, shouldn't they? Put this back if I'm wrong.
+- TODO -- autogenerated speech_tools docs
+- festvox_ellpc11k.tar.gz, the spanish voice, wasn't getting installed anyway
+  due to a license question. Since it's also gone upstream, removing.
+
+* Fri Mar 09 2007 Matthew Miller <mattdm@mattdm.org> 1.96-0.1
+- Preliminary update to 1.96
+- Update to new cmu_us_*_arctic files -- they're changed upstream,
+  although they don't appear to be versioned. Awesome. The current
+  versions are those found in the same directory with the 1.96 files.
+- ditto festlex_CMU.tar.gz
+- add macro for speechtoolsversion
+- minor update to festival-1.96-american.patch.
+- update shared build patch and rename to make more obvious that
+  it applies to the speechtools portion of the package.
+- gcc 4 build patches now upstream.
+- localhost-connections patch now upstream.
+- note that festvox_ellpc11k.tar.gz and festvox_kallpc8k.tar.gz are no longer 
+  in the directory tree upstream; drop?
+
+* Fri Jan 19 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.95-6
+- link with ncurses
+- add dist tag
+- make scriptlets safer
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.95-5.2.1
+- rebuild
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.95-5.2
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.95-5.1
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Sun Jan 22 2006 Ray Strode <rstrode@redhat.com> - 1.95-5
+- get gnopernicus working again. Patch from 
+  Fernando Herrera <fherrera@gmail.com> (bug 178312)
+- add a lot of compiler flags and random cruft to get
+  festival to build with gcc 4.1
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Mon Oct 10 2005 Florian La Roche <laroche@redhat.com>
+- another try to get it to compile again
+
+* Tue Apr 28 2005  <johnp@redhat.com> - 1.95-3
+- require info packages so the post does not fail
+- remove /usr/bin/VCLocalRule from buildroot since it is
+  an extranious file that does not need to be installed
+
+* Wed Apr 27 2005 Miloslav Trmac <mitr@redhat.com> - 1.95-2
+- Fix build with gcc 4 (#156132)
+- Require /sbin/install-info for scriptlets (#155698)
+- Don't ship %{_bindir}/VCLocalRules (#75645)
+
+* Fri Feb 25 2005  <jrb@redhat.com> - 1.95-1
+- patch from Matthew Miller to update to 1.95.  Full changelog below
+
+* Mon Feb  7 2005 Matthew Miller <mattdm@mattdm.org> 1.95-0.mattdm8
+- put speech-tools binaries in /usr/libexec/speech-tools so as to not
+  clutter /usr/bin. Another approach would be to make speech-tools a 
+  separate package and to make these utilities a subpackage of that.
+- macro-ize /usr/bin, /usr/lib, /usr/include
+
+* Sun Feb  6 2005 Matthew Miller <mattdm@mattdm.org> 1.95-0.mattdm6
+- worked on this some more
+- made actually work -- put back rest of fsstnd patch which I had broken
+- made kludge for lack of sonames in shared libraries -- I think I did the
+  right thing
+- put back american as the default -- british dicts are non-free.
+
+* Wed Jan  5 2005 Matthew Miller <mattdm@mattdm.org> 1.95-0.mattdm1
+- preliminary update to 1.95 beta
+- add really nice CMU_ARCTIC HTS voices, which is the whole point of wanting
+  to do this. (They have a free license.)
+- switch to festvox.org north american upstream urls
+- keep old doc files -- there's no new ones yet.
+- add comment to specfile about reason for lack of OALD (British) voices --
+  they've got a more restrictive license.
+- change license to "X11-style", because that's how they describe it.
+- remove exclusivearch. I dunno if this builds on other archs, but I
+  also don't know why it wouldn't.
+- fancier buildroot string, 'cause hey, why not.
+- more "datadir" macros
+- remove most of Patch0 (fsstnd) -- can be done by setting variables instead.
+  there's some bits in speechtools still, though
+- update Patch3 (shared-build)
+- don't apply patches 20 and 21 -- no longer needed.
+- disable adding "FreeBSD" and "OpenBSD" to the dictionary for now. Probably
+  a whole list of geek words should be added. Also, the patch was applied
+  in an icky kludgy way.
+
+* Thu Jul 29 2004 Miloslav Trmac <mitr@redhat.com> - 1.4.2-25
+- Update for gcc 3.4
+
+* Wed Jul 28 2004 Miloslav Trmac <mitr@redhat.com> - 1.4.2-24
+- Use shared libraries to reduce package size
+- Don't ship patch backup files
+
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Tue May  4 2004 Jonathan Blandford <jrb@redhat.com> 1.4.2-21
+- Remove the spanish voices until we get clarification on the license
+
+* Sat Apr 10 2004 Warren Togami <wtogami@redhat.com>
+- BR libtermcap-devel #104722
+
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Mon Aug 25 2003 Bill Nottingham <notting@redhat.com> 1.4.2-19
+- clean up buildroot references (#75643, #77908, #102985)
+- remove some extraneous scripts
+- fix build with gcc-3.3
+
+* Thu Jun 12 2003 Elliot Lee <sopwith@redhat.com> 1.4.2-17
+- Rebuild
+
+* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
+- rebuilt
+
+* Thu Jan  9 2003 Tim Powers <timp@redhat.com> 1.4.2-15
+- redirect install-info spewage
+
+* Tue Jan  7 2003 Jens Petersen <petersen@redhat.com> 1.4.2-14
+- put info files in infodir
+- add post and postun script to install and uninstall info dir file entry
+- drop postscript and info files from docs
+
+* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 1.4.2-13
+- rebuild
+
+* Thu Aug 15 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.4.2-12
+- Adapt to current libstdc++
+
+* Tue Jul 23 2002 Tim Powers <timp@redhat.com> 1.4.2-10
+- build using gcc-3.2-0.1
+
+* Wed Jul  3 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.4.2-9
+- Add some missing helpprograms (# 67698)
+
+* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
+- automated rebuild
+
+* Mon Jun 10 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.4.2-7
+- Fix some rpmlint errors
+
+* Mon Jun 10 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.4.2-6
+- Fix ISO C++ compliance
+
+* Mon Mar 18 2002 Tim Powers <timp@redhat.com>
+- rebuilt
+
+* Thu Mar 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.4.2-2
+- Get rid of CVS directiories in doc dir
+- Fix broken symlinks for components from speech_tools
+
+* Wed Mar  6 2002 Trond Eivind Glomsrød <teg@redhat.com>
+- 1.4.2
+- Lots of fixes to make it build, more needed
+- Cleanups
+- Update URL
+- Fix docs inclusion
+- Drop prefix
+- Use %%{_tmppath}
+
+* Wed Aug  2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- Add defattr (Bug #15033)
+
+* Tue Jul 25 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- fix build on current 7.0
+
+* Mon Jul 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- fix build on current 7.0
+
+* Thu Jul  6 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- FHSify
+
+* Mon Jun 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- Fix build on non-x86
+
+* Sun Apr 22 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- initial packaging

+ 93 - 0
o/orca/orca-vl.spec

@@ -0,0 +1,93 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+Summary:        A free, open source, flexible, and extensible screen reader 
+Name:           orca
+Version:        3.2.1
+Release:        1%{?_dist_release}
+
+Group:          User Interface/Desktops
+License:        LGPLv2+
+URL:            http://projects.gnome.org/orca/
+Source0:        http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.2/%{name}-%{version}.tar.xz
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+
+BuildRequires:	gnome-doc-utils >= 0.17.3
+BuildRequires:	gtk3-devel >= 3.1.91
+BuildRequires:	pygobject3-devel >= 2.90.3
+BuildRequires:	at-spi2-core-devel >= 2.1.92
+BuildRequires:	python-brlapi
+BuildRequires:	brlapi-devel
+BuildRequires:	brltty
+BuildRequires:	speech-dispatcher-python
+
+Requires: python-brlapi
+Requires: speech-dispatcher
+Requires: speech-dispatcher-python
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: Takemikaduchi
+
+%description
+Orca is a free, open source, flexible, and extensible screen reader
+that provides access to the graphical desktop via user-customizable
+combinations of speech, braille, and/or magnification.
+
+Orca works with applications and toolkits that support the assistive
+technology service provider interface (AT-SPI), which is the primary
+assistive technology infrastructure for the Solaris and Linux
+operating environments.  Applications and toolkits supporting the
+AT-SPI include the GNOME GTK+ toolkit, the Java platform's Swing
+toolkit, OpenOffice, and Mozilla.  AT-SPI support for the KDE Qt
+toolkit is currently being pursued.
+
+%prep
+%setup -q
+
+%build
+%configure --disable-static
+
+make V=0
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c"
+
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post 
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x /usr/bin/gtk-update-icon-cache ]; then
+	gtk-update-icon-cache -q %{_datadir}/icons/hicolor
+fi
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x /usr/bin/gtk-update-icon-cache ]; then
+	gtk-update-icon-cache -q %{_datadir}/icons/hicolor
+fi
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc ChangeLog AUTHORS COPYING NEWS README
+%{_sysconfdir}/xdg/autostart/orca-autostart.desktop
+%{_bindir}/%{name}
+%{python_sitearch}/%{name}/*
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/gnome/help/%{name}
+%{_datadir}/icons/hicolor/*/apps/*
+%{_datadir}/%{name}
+%{_mandir}/man1/%{name}.1.gz
+
+
+%changelog
+* Fri Nov 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-1
+- initial build for Vine Linux
+

+ 20 - 9
s/sox/sox-vl.spec

@@ -7,15 +7,16 @@
 Summary:     A general purpose sound file conversion tool.
 Summary(ja): 汎用サウンドファイル変換ツール
 Name: sox
-Version: 12.18.1
-Release: 2%{?_dist_release}
+Version: 14.3.2
+Release: 1%{?_dist_release}
 License: LGPL
 Group: Applications/Multimedia
-Source:  http://prdownloads.sourceforge.net/sox/sox-%{version}.tar.gz
+Source:  http://prdownloads.sourceforge.net/sox/sox-%{version}.tar.bz2
 URL: http://sox.sourceforge.net/
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 BuildRequires: alsa-lib-devel
+BuildRequires: pulseaudio-lib-devel
 Build%{?nomad:Conflicts}%{!?nomad:Requires}: libmad-devel
 Build%{?nogsm:Conflicts}%{!?nogsm:Requires}: gsm-devel
 
@@ -58,7 +59,9 @@ SoX を利用するプログラムを開発する場合は sox-devel パッケ
 %setup -q 
 
 %build
-%configure  --includedir=%{_includedir}/sox \
+%configure \
+	--disable-static \
+	--includedir=%{_includedir}/sox \
 %{!?nogsm: --with-gsm}
 make 
 
@@ -71,7 +74,7 @@ mkdir -p $RPM_BUILD_ROOT%{_libdir}
 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
 
-%makeinstall install-lib MANDIR=$RPM_BUILD_ROOT/%{_mandir}
+make install DESTDIR=$RPM_BUILD_ROOT
 
 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
@@ -84,33 +87,41 @@ ln -snf play $RPM_BUILD_ROOT%{_bindir}/rec
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/rec.1
 ln -snf play.1 $RPM_BUILD_ROOT%{_mandir}/man1/rec.1
 ln -snf sox.1 $RPM_BUILD_ROOT%{_mandir}/man1/soxmix.1
-install -m 644 play.1 $RPM_BUILD_ROOT%{_mandir}/man1/
 
 mkdir -p $RPM_BUILD_ROOT%{_includedir}/sox
 install -m 644 src/*.h $RPM_BUILD_ROOT%{_includedir}/sox
 
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
-install -m 644 libst.3 $RPM_BUILD_ROOT%{_mandir}/man3
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
 %doc Changelog README TODO INSTALL
 %{_bindir}/*
+%{_libdir}/libsox.so.*
 %{_mandir}/man1/*
 
 %files -n sox-devel
 %defattr(-,root,root)
 %{_includedir}/*
-%{_libdir}/libst.a
+%{_libdir}/libsox.so
+%{_libdir}/pkgconfig/sox.pc
 %{_mandir}/man3/*
+%{_mandir}/man7/*
 
 
 %changelog
+* Sat Nov 05 2011 Yoji TOYODA <owa@bg.wakwak.com> 14.3.2-1
+- new upstream release
+- add BuildRequires: pulseaudio-lib-devel
+
 * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 12.18.1-2
 - rebuilt with rpm-4.8.1-3
 

+ 11 - 31
s/speech-dispatcher/speech-dispatcher-vl.spec

@@ -1,12 +1,12 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 %define with_nas   1 
 %define with_pulse 1
 %define with_flite 1
 
 Name:           speech-dispatcher
-Version:        0.6.7
-Release:        5%{?_dist_release}
+Version:        0.7.1
+Release:        1%{?_dist_release}
 Summary:        To provide a high-level device independent layer for speech synthesis
 Group:          System Environment/Libraries
 
@@ -18,10 +18,6 @@ URL:            http://www.freebsoft.org/pub/projects/speechd/
 Source0:        http://www.freebsoft.org/pub/projects/speechd/%{name}-%{version}.tar.gz
 Source1:        http://www.nsitonline.in/hemant/stuff/speechd-rpm/speech-dispatcherd
 
-Patch0:         http://www.nsitonline.in/hemant/stuff/speechd-rpm/speechd.patch
-Patch1:		speech-dispatcher-gcc44-0.6.7.patch
-Patch2:         speech-dispatcher-fixdso.patch
-
 BuildRoot:     %{_tmppath}/%{name}-%{version}-root
 BuildRequires: python-setuptools
 BuildRequires: espeak-devel
@@ -85,10 +81,6 @@ speechd python module
 
 %prep
 %setup -q
-# patch needs further review as it has olpc specific changes in it.
-#%patch0 -p1
-%patch1 -p1 -b .gcc44
-%patch2 -p1 -b .fixdso
 
 %build
 iconv -f ISO-8859-2 -t UTF-8 doc/speech-dispatcher-cs.texi -o doc/speech-dispatcher-cs_c.texi
@@ -96,27 +88,13 @@ mv doc/speech-dispatcher-cs_c.texi doc/speech-dispatcher-cs.texi
 
 %configure --disable-static --with-alsa --with-pulse --without-flite --sysconfdir=%{_sysconfdir}
 
-# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-#Install the Python Modules
-cd src/python/
-mkdir -p build/lib/speechd
-python setup.py install --root $RPM_BUILD_ROOT
-
-chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/speechd/_test.py
-
-#Move to the base BUILD folder
-cd ../../
-
 for dir in \
- config/ doc/ src/audio/ src/c/ src/modules/ src/tests/ src/server/ 
+ config/ doc/ src/audio/ src/c/ src/modules/ src/tests/ src/server/ src/python/
  do
   pushd $dir
   make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
@@ -208,12 +186,10 @@ fi
 %{_libdir}/speech-dispatcher-modules/sd_*
 %dir %{_libdir}/speech-dispatcher-modules
 
-%{_libdir}/libspeechd.so.2
-%{_libdir}/libspeechd.so.2.1.1
+%{_libdir}/libspeechd.so.*
 %dir %{_libdir}/speech-dispatcher
 %{_libdir}/speech-dispatcher/lib*.so
-%{_libdir}/speech-dispatcher/libsdaudio.so.2
-%{_libdir}/speech-dispatcher/libsdaudio.so.2.0.2
+%{_libdir}/speech-dispatcher/libsdaudio.so.*
 
 %dir %attr(0700, root, root) %{_localstatedir}/log/speech-dispatcher/
 %attr(0755,root,root)%{_initrddir}/speech-dispatcherd
@@ -229,9 +205,13 @@ fi
 
 %files python
 %defattr(-,root,root,-)
-%{python_sitelib}/speechd*
+%{python_sitearch}/speechd*
 
 %changelog
+* Sat Nov 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.7.1-1
+- new upstream release
+- remove all patches
+
 * Sun Mar 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6.7-5
 - Initial build for Vine Linux
 

+ 4 - 1
w/wireshark/wireshark-vl.spec

@@ -3,7 +3,7 @@
 Summary: 	Network traffic analyzer
 Summary(ja):    ネットワークトラフィック解析プログラム
 Name: 		wireshark
-Version:	1.6.2
+Version:	1.6.3
 Release: 	1%{_dist_release}
 License: 	GPLv2
 Group: 		Applications/System
@@ -201,6 +201,9 @@ update-desktop-database -q
 
 
 %changelog
+* Sat Nov 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.3-1
+- new upstream release
+
 * Thu Sep 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1
 - new upstream release