]> git.pld-linux.org Git - packages/festival.git/blobdiff - festival.spec
- updated to 2.5.0
[packages/festival.git] / festival.spec
index 952b66126e30fd843e5c8e4b09311d4d17c1b990..400e5d0f4b55e389caf30d97a309a95f40b8bfaf 100644 (file)
@@ -2,29 +2,20 @@
 Summary:       The Festival speech sythesis system
 Summary(pl.UTF-8):     System syntezy mowy Festival
 Name:          festival
-Version:       1.4.4
-%define                rel     6
-%define                _snap   20030803
-Release:       0.%{_snap}.%{rel}
+Version:       2.5.0
+Release:       1
 License:       BSD-like (except for festival.el, which is on GPL)
 Group:         Applications/Sound
-#Source0:      http://www.cstr.ed.ac.uk/download/festival/%{version}/%{name}-%{version}-release.tar.gz
-Source0:       http://www.festvox.org/packed/festival/latest/festival-%{version}-current%{_snap}.tar.gz
-# Source0-md5: ffaa7533b3f50791aabfbf1cee09ca85
-Source1:       http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_us1.tar.gz
-# Source1-md5: d0c3e727003e715a65daf01003101813
-Source2:       http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_us2.tar.gz
-# Source2-md5: fbcc8baacbff3aa2aaaf5a93701bb5e0
-Source3:       http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_us3.tar.gz
-# Source3-md5: 06dbfe2edaab6ffa31deeaf522e0c33e
-Source4:       http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_en1.tar.gz
-# Source4-md5: 66e3bc07751d7e31826185649c5ada5a
+Source0:       http://www.festvox.org/packed/festival/2.5/%{name}-%{version}-release.tar.gz
+# Source0-md5: 6cc3730fc5175f04d4d2f05e6bbab6b5
 Patch0:                %{name}-config.patch
-Patch1:                %{name}-asterisk.patch
-Patch2:                %{name}-gcc4.patch
+Patch1:                %{name}-pulse.patch
 URL:           http://www.cstr.ed.ac.uk/projects/festival/
 BuildRequires: automake
-BuildRequires: speech_tools-devel
+BuildRequires: speech_tools-devel >= 2.5
+Requires:      festival-voice
+Requires:      speech_tools >= 2.5
+Suggests:      festival-voice-english-slt-cg
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %ifarch alpha
@@ -59,111 +50,86 @@ Festival developement environment.
 %description devel -l pl.UTF-8
 Festival - środowisko rozwojowe.
 
-%package voices-english-mbrola-us
-Summary:       Festival's files for voices us1, us2, us3
-Summary(pl.UTF-8):     Pliki Festival do głosów us1, us2, us3
-Group:         Applications/Sound
-Requires:      mbrola
-
-%description voices-english-mbrola-us
-Files needed to use us1, us2, us3 voices from mbrola packages.
-
-%description voices-english-mbrola-us -l pl.UTF-8
-Pliki potrzebne do użycia głosów us1, us2, us3 z pakietu mbrola.
-
-%package voices-english-mbrola-en
-Summary:       Festival's files for voice en1
-Summary(pl.UTF-8):     Pliki Festival do głosu en1
-Group:         Applications/Sound
-Requires:      mbrola
-
-%description voices-english-mbrola-en
-Files needed to use en1 voice from mbrola packages.
-
-%description voices-english-mbrola-en -l pl.UTF-8
-Pliki potrzebne do użycia głosu en1 z pakietu mbrola.
-
 %prep
-%setup -q -n %{name} -b1 -b2 -b3 -b4
+%setup -q -n %{name}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
+
+ln -s %{_libdir}/speech_tools/base_class src/modules/MultiSyn
+ln -s %{_libdir}/speech_tools/config/modules/pulse_audio.mak config/modules
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r rm -v
 
 %build
 cp -f /usr/share/automake/config.* .
 %{__perl} -pi -e 's,^EST=.*,EST=%{_libdir}/speech_tools,' config/config.in
 %configure2_13
-%{__make} \
+%{__make} -j1 \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
        ECHO_N='printf "%%s"' \
        OPTIMISE_CCFLAGS="%{rpmcflags}" \
        OPTIMISE_CXXFLAGS="%{rpmcflags}" \
        OPTIMISE_LINK="%{rpmldflags}" \
-       REQUIRED_LIBDEPS= 
-# REQUIRED_LIBDPES is workaround not to need static speech_tools libraries
+       REQUIRED_LIBDEPS=
+# REQUIRED_LIBDEPS is workaround not to need static speech_tools libraries
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/lib/{voices/english,dicts},%{_libdir},%{_includedir}/%{name},%{_mandir}/man1}
 
 # bin
-install bin/festival_server* bin/text2wave $RPM_BUILD_ROOT%{_bindir}
-install src/main/festival{,_client} $RPM_BUILD_ROOT%{_bindir}
+install -p bin/festival_server* bin/text2wave $RPM_BUILD_ROOT%{_bindir}
+install -p src/main/festival{,_client} $RPM_BUILD_ROOT%{_bindir}
+cp -p doc/festival*.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 # devel
-install src/lib/libFestival.a $RPM_BUILD_ROOT%{_libdir}
-install src/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
+cp -p src/lib/libFestival.a $RPM_BUILD_ROOT%{_libdir}
+cp -p src/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
 
 # data
-cp -r lib config examples $RPM_BUILD_ROOT%{_datadir}/%{name}
-find $RPM_BUILD_ROOT%{_datadir}/%{name} -name Makefile -exec rm \{\} \;
-
-install doc/festival{,_client}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a lib config examples $RPM_BUILD_ROOT%{_datadir}/%{name}
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/festival/lib/etc/unknown_Linux/.made
+find $RPM_BUILD_ROOT%{_datadir}/%{name} -name Makefile | xargs rm -v
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ACKNOWLEDGMENTS COPYING NEWS README
-%{_mandir}/man1/*
-%attr(755,root,root) %{_bindir}/*
+%doc ACKNOWLEDGMENTS COPYING NEWS README.md
+%attr(755,root,root) %{_bindir}/festival
+%attr(755,root,root) %{_bindir}/festival_client
+%attr(755,root,root) %{_bindir}/festival_server
+%attr(755,root,root) %{_bindir}/festival_server_control
+%attr(755,root,root) %{_bindir}/text2wave
+%{_mandir}/man1/festival.1*
+%{_mandir}/man1/festival_client.1*
 %dir %{_datadir}/%{name}
+%{_datadir}/%{name}/examples
 %dir %{_datadir}/%{name}/lib
-%dir %{_datadir}/%{name}/lib/dicts
-%dir %{_datadir}/%{name}/lib/voices
-%dir %{_datadir}/%{name}/lib/voices/english
-%dir %{_datadir}/%{name}/lib/etc
-%dir %{_datadir}/%{name}/lib/etc/%{fostype}
-# XXX: ELF binary, fix it!
-%attr(755,root,root) %{_datadir}/%{name}/lib/etc/%{fostype}/audsp
-%{_datadir}/%{name}/lib/etc/email_filter
-%{_datadir}/%{name}/lib/*.scm
-%{_datadir}/%{name}/lib/Sable.v0_2.dtd
+%{_datadir}/%{name}/lib/VCLocalRules
 %{_datadir}/%{name}/lib/festival.el
 %{_datadir}/%{name}/lib/sable-latin.ent
 %{_datadir}/%{name}/lib/scfg_wsj_wp20.gram
 %{_datadir}/%{name}/lib/sec.*.ngrambin
 %{_datadir}/%{name}/lib/speech.properties
-%{_datadir}/%{name}/examples
+%{_datadir}/%{name}/lib/*.dtd
+%{_datadir}/%{name}/lib/*.scm
+%dir %{_datadir}/%{name}/lib/etc
+%{_datadir}/%{name}/lib/etc/email_filter
+%dir %{_datadir}/%{name}/lib/etc/%{fostype}
+# XXX: ELF binary, fix it!
+%attr(755,root,root) %{_datadir}/%{name}/lib/etc/%{fostype}/audsp
+%dir %{_datadir}/%{name}/lib/multisyn
+%{_datadir}/%{name}/lib/multisyn/*.scm
+# directories for festival data
+%dir %{_datadir}/%{name}/lib/dicts
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/%{name}
 %{_libdir}/libFestival.a
+%{_includedir}/%{name}
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/config
-
-# no mbrola on amd64
-%ifarch %{ix86} ppc alpha sparc
-%files voices-english-mbrola-us
-%defattr(644,root,root,755)
-%{_datadir}/%{name}/lib/voices/english/us1_mbrola
-%{_datadir}/%{name}/lib/voices/english/us2_mbrola
-%{_datadir}/%{name}/lib/voices/english/us3_mbrola
-
-%files voices-english-mbrola-en
-%defattr(644,root,root,755)
-%{_datadir}/%{name}/lib/voices/english/en1_mbrola
-%endif
This page took 0.135759 seconds and 4 git commands to generate.