1 # TODO: kill ELF binary from %{_datadir}, see files
2 Summary: The Festival speech sythesis system
3 Summary(pl.UTF-8): System syntezy mowy Festival
7 License: BSD-like (except for festival.el, which is on GPL)
8 Group: Applications/Sound
9 Source0: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/%{name}-%{version}-release.tar.gz
10 # Source0-md5: c93eb3e389ed171ab9abd46afe8897a8
11 Source1: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_awb_cg.tar.gz
12 # Source1-md5: 2c14269587ad018ee93176bb44f4c38b
13 Source2: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_rms_cg.tar.gz
14 # Source2-md5: a9514a9df32401774c074abec42ffb22
15 Source3: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_slt_arctic_hts.tar.gz
16 # Source3-md5: a9b53441968f6bc612b85c04bbc4cf0f
17 Source4: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_kallpc16k.tar.gz
18 # Source4-md5: 3869af78f473b616601cac3fa83cc14e
19 Source5: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_rablpc16k.tar.gz
20 # Source5-md5: 34cb2478f5b8fa1ed02f5cbb496c1dcd
21 Patch0: %{name}-config.patch
22 URL: http://www.cstr.ed.ac.uk/projects/festival/
23 BuildRequires: automake
24 BuildRequires: speech_tools-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define fostype alpha_Linux
30 %define fostype unknown_Linux
34 Festival offers a general framework for building speech synthesis
35 systems as well as including examples of various modules. As a whole
36 it offers full text to speech through a number APIs: from shell level,
37 though a Scheme command interpreter, as a C++ library, from Java, and
38 an Emacs interface. Festival is multi-lingual, though English is the
41 %description -l pl.UTF-8
42 Festival jest platformą przeznaczoną do budowania systemów syntezy
43 mowy oraz do łatwego testowania różnych modułów składających się na
44 syntezator mowy. Można też używać programu jako maszynki czytającej
45 pliki tekstowe. Festival jest wielojęzyczny, lecz język angielski jest
46 najbardziej zaawansowany.
49 Summary: Festival developement environment
50 Summary(pl.UTF-8): Festival - środowidko rozwojowe
51 Group: Applications/Sound
54 Festival developement environment.
56 %description devel -l pl.UTF-8
57 Festival - środowisko rozwojowe.
59 %package voices-english-mbrola-us
60 Summary: Festival's files for voices us1, us2, us3
61 Summary(pl.UTF-8): Pliki Festival do głosów us1, us2, us3
62 Group: Applications/Sound
65 %description voices-english-mbrola-us
66 Files needed to use us1, us2, us3 voices from mbrola packages.
68 %description voices-english-mbrola-us -l pl.UTF-8
69 Pliki potrzebne do użycia głosów us1, us2, us3 z pakietu mbrola.
71 %package voices-english-mbrola-en
72 Summary: Festival's files for voice en1
73 Summary(pl.UTF-8): Pliki Festival do głosu en1
74 Group: Applications/Sound
77 %description voices-english-mbrola-en
78 Files needed to use en1 voice from mbrola packages.
80 %description voices-english-mbrola-en -l pl.UTF-8
81 Pliki potrzebne do użycia głosu en1 z pakietu mbrola.
84 %setup -q -n %{name} -b1 -b2 -b3 -b4 -b5
88 cp -f /usr/share/automake/config.* .
89 %{__perl} -pi -e 's,^EST=.*,EST=%{_libdir}/speech_tools,' config/config.in
94 ECHO_N='printf "%%s"' \
95 OPTIMISE_CCFLAGS="%{rpmcflags}" \
96 OPTIMISE_CXXFLAGS="%{rpmcflags}" \
97 OPTIMISE_LINK="%{rpmldflags}" \
99 # REQUIRED_LIBDPES is workaround not to need static speech_tools libraries
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/lib/{voices/english,dicts},%{_libdir},%{_includedir}/%{name},%{_mandir}/man1}
106 install bin/festival_server* bin/text2wave $RPM_BUILD_ROOT%{_bindir}
107 install src/main/festival{,_client} $RPM_BUILD_ROOT%{_bindir}
110 install src/lib/libFestival.a $RPM_BUILD_ROOT%{_libdir}
111 install src/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
114 cp -r lib config examples $RPM_BUILD_ROOT%{_datadir}/%{name}
115 find $RPM_BUILD_ROOT%{_datadir}/%{name} -name Makefile -exec rm \{\} \;
117 install doc/festival{,_client}.1 $RPM_BUILD_ROOT%{_mandir}/man1
120 rm -rf $RPM_BUILD_ROOT
123 %defattr(644,root,root,755)
124 %doc ACKNOWLEDGMENTS COPYING NEWS README
126 %attr(755,root,root) %{_bindir}/*
127 %dir %{_datadir}/%{name}
128 %dir %{_datadir}/%{name}/lib
129 %dir %{_datadir}/%{name}/lib/dicts
130 %dir %{_datadir}/%{name}/lib/voices
131 %dir %{_datadir}/%{name}/lib/voices/english
132 %dir %{_datadir}/%{name}/lib/etc
133 %dir %{_datadir}/%{name}/lib/etc/%{fostype}
134 # XXX: ELF binary, fix it!
135 %attr(755,root,root) %{_datadir}/%{name}/lib/etc/%{fostype}/audsp
136 %{_datadir}/%{name}/lib/etc/email_filter
137 %{_datadir}/%{name}/lib/*.scm
138 %{_datadir}/%{name}/lib/Sable.v0_2.dtd
139 %{_datadir}/%{name}/lib/festival.el
140 %{_datadir}/%{name}/lib/sable-latin.ent
141 %{_datadir}/%{name}/lib/scfg_wsj_wp20.gram
142 %{_datadir}/%{name}/lib/sec.*.ngrambin
143 %{_datadir}/%{name}/lib/speech.properties
144 %{_datadir}/%{name}/examples
147 %defattr(644,root,root,755)
148 %{_includedir}/%{name}
149 %{_libdir}/libFestival.a
150 %dir %{_datadir}/%{name}
151 %{_datadir}/%{name}/config
154 %ifarch %{ix86} ppc alpha sparc
155 %files voices-english-mbrola-us
156 %defattr(644,root,root,755)
157 %{_datadir}/%{name}/lib/voices/english/us1_mbrola
158 %{_datadir}/%{name}/lib/voices/english/us2_mbrola
159 %{_datadir}/%{name}/lib/voices/english/us3_mbrola
161 %files voices-english-mbrola-en
162 %defattr(644,root,root,755)
163 %{_datadir}/%{name}/lib/voices/english/en1_mbrola