2 # NOTE: - building is memory consuming (up to c.a. 537MB)
3 # TODO: - review -link,-alsa, 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}-alsa.patch
22 Patch2: %{name}-DESTDIR.patch
23 Patch3: %{name}-fix-readonly-assignments.patch
25 Patch4: %{name}-doc.patch
26 Patch5: %{name}-version.patch
27 URL: http://cmuflite.org/
28 BuildRequires: autoconf
29 BuildRequires: automake
30 BuildRequires: alsa-lib-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Flite - a small, fast speech synthesis engine. It is the latest
35 addition to the suite of free software synthesis tools including
36 University of Edinburgh's Festival Speech Synthesis System and
37 Carnegie Mellon University's FestVox project, tools, scripts and
38 documentation for building synthetic voices. However, flite itself
39 does not require either of these systems to compile and run.
41 %description -l ru_RU.KOI8-R
42 Flite -- ÍÁÌÅÎØËÏÅ, ÂÙÓÔÒÏÅ ÓÒÅÄÓÔ×Ï ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ. üÔÏ ÐÏÓÌÅÄÎÅÅ
43 ÄÏÂÁ×ÌÅÎÉÅ Ë ÎÁÂÏÒÕ Ó×ÏÂÏÄÎÏÇÏ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ ÄÌÑ ÓÉÎÔÅÚÁ
44 ÒÅÞÉ, ÐÒÏÅËÔÙ FestVox É Festival. ïÄÎÁËÏ, ÓÁÍ flite ÎÅ ÔÒÅÂÕÅÔ ÎÉ
45 ÏÄÎÏÇÏ ÉÚ ÜÔÉÈ ÐÁËÅÔÏ× ÄÌÑ ËÏÍÐÉÌÑÃÉÉ É ÚÁÐÕÓËÁ.
48 Summary: development files for flite
49 Group: Applications/Sound
50 Requires: %{name} = %{version}-%{release}
53 development files for flite, a small, fast speech synthesis engine
55 %description devel -l ru_RU.KOI8-R
56 æÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ flite - ÍÁÌÅÎØËÏÇÏ, ÂÙÓÔÒÏÇÏ
57 ÓÒÅÄÓÔ×Á ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ.
60 Summary: static development files for flite
61 Group: Applications/Sound
62 Requires: %{name}-devel = %{version}-%{release}
65 static development files for flite, a small, fast speech synthesis
68 %description static -l ru_RU.KOI8-R
69 óÔÁÔÉÞÅÓËÉÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ flite - ÍÁÌÅÎØËÏÇÏ,
70 ÂÙÓÔÒÏÇÏ ÓÒÅÄÓÔ×Á ÄÌÑ ÓÉÎÔÅÚÁ ÒÅÞÉ.
73 %setup -qn %{name}-%{version}-release
82 cp -f /usr/share/automake/config.sub .
86 %{!?with_static_libs:--disable-static} \
87 --with-vox=cmu_us_kal16
92 rm -rf $RPM_BUILD_ROOT
93 # temp. workaround - put manpages in better place and install them via Makefile
94 install -d $RPM_BUILD_ROOT%{_mandir}/man1
97 DESTDIR=$RPM_BUILD_ROOT
99 install debian/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %defattr(644,root,root,755)
109 %doc ACKNOWLEDGEMENTS README COPYING doc/html
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so.*.*
115 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/lib*.so
119 %if %{with static_libs}
121 %defattr(644,root,root,755)