2 # NOTE: - building is memory consuming (up to c.a. 537MB)
3 # TODO: - review -link, version patches
4 # - --disable-static doesn't work
5 # - install manpages via makefile
8 %bcond_without static_libs # don't pack static liraries
13 Summary: flite - a small, fast speech synthesis engine
14 Summary(ru_RU.KOI8-R):flite - ÍÁÌÅÎØËÏÅ, ÂÙÓÔÒÏÅ ÓÒÅÄÓÔ×Ï ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ
15 License: Custom, see COPYING
16 Group: Applications/Sound
17 Source0: http://www.speech.cs.cmu.edu/flite/packed/flite-1.2/%{name}-%{version}-release.tar.bz2
18 # Source0-md5: 24c1576f5b3eb23ecedf4bebde96710f
20 Patch0: %{name}-link.patch
21 Patch1: %{name}-fix-readonly-assignments.patch
23 Patch2: %{name}-doc.patch
24 Patch3: %{name}-version.patch
26 Patch4: %{name}-DESTDIR.patch
27 Patch5: %{name}-fix-audiodriver-setup.patch
28 URL: http://cmuflite.org/
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: alsa-lib-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Flite - a small, fast speech synthesis engine. It is the latest
36 addition to the suite of free software synthesis tools including
37 University of Edinburgh's Festival Speech Synthesis System and
38 Carnegie Mellon University's FestVox project, tools, scripts and
39 documentation for building synthetic voices. However, flite itself
40 does not require either of these systems to compile and run.
42 %description -l ru_RU.KOI8-R
43 Flite -- ÍÁÌÅÎØËÏÅ, ÂÙÓÔÒÏÅ ÓÒÅÄÓÔ×Ï ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ. üÔÏ ÐÏÓÌÅÄÎÅÅ
44 ÄÏÂÁ×ÌÅÎÉÅ Ë ÎÁÂÏÒÕ Ó×ÏÂÏÄÎÏÇÏ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ ÄÌÑ ÓÉÎÔÅÚÁ
45 ÒÅÞÉ, ÐÒÏÅËÔÙ FestVox É Festival. ïÄÎÁËÏ, ÓÁÍ flite ÎÅ ÔÒÅÂÕÅÔ ÎÉ
46 ÏÄÎÏÇÏ ÉÚ ÜÔÉÈ ÐÁËÅÔÏ× ÄÌÑ ËÏÍÐÉÌÑÃÉÉ É ÚÁÐÕÓËÁ.
49 Summary: development files for flite
50 Group: Applications/Sound
51 Requires: %{name} = %{version}-%{release}
54 development files for flite, a small, fast speech synthesis engine
56 %description devel -l ru_RU.KOI8-R
57 æÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ flite - ÍÁÌÅÎØËÏÇÏ, ÂÙÓÔÒÏÇÏ
58 ÓÒÅÄÓÔ×Á ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ.
61 Summary: static development files for flite
62 Group: Applications/Sound
63 Requires: %{name}-devel = %{version}-%{release}
66 static development files for flite, a small, fast speech synthesis
69 %description static -l ru_RU.KOI8-R
70 óÔÁÔÉÞÅÓËÉÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ flite - ÍÁÌÅÎØËÏÇÏ,
71 ÂÙÓÔÒÏÇÏ ÓÒÅÄÓÔ×Á ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ.
74 %setup -qn %{name}-%{version}-release
83 cp -f /usr/share/automake/config.sub .
88 %{!?with_static_libs:--disable-static} \
89 --with-vox=cmu_us_kal16
94 rm -rf $RPM_BUILD_ROOT
95 # temp. workaround - put manpages in better place and install them via Makefile
96 install -d $RPM_BUILD_ROOT%{_mandir}/man1
99 DESTDIR=$RPM_BUILD_ROOT
101 install debian/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc ACKNOWLEDGEMENTS README COPYING doc/html
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
117 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/lib*.so
121 %if %{with static_libs}
123 %defattr(644,root,root,755)