]>
Commit | Line | Data |
---|---|---|
4e834987 JB |
1 | # TODO: |
2 | # - think about default configuration (DefaultModule is espeak, which is not loaded by default) | |
3 | # - espeak-ng support [pkgconfig(espeak-ng)] | |
4 | # - common-lisp and guile bindings (src/api/{cl,guile}) | |
de0cb8a8 | 5 | # |
28b37384 | 6 | # Conditional build: |
73bed315 | 7 | %bcond_with ibmtts # IBM TTS synthesizer support (commercial, proprietary) |
8b9cbd5f | 8 | %bcond_without espeak # eSpeak synthesizer support |
4e834987 | 9 | %bcond_without espeak_ng # eSpeak-NG synthesizer support |
8b9cbd5f JB |
10 | %bcond_without flite # Flite synthesizer support |
11 | %bcond_without ivona # Ivona synthesizer support | |
f0bc316e | 12 | %bcond_without svox # SVOX Pico synthesizer support |
93ca17ef | 13 | %bcond_without alsa # ALSA audio output supprot |
73bed315 | 14 | %bcond_without libao # libao audio output supprot |
4cf58c26 | 15 | %bcond_without nas # NAS audio output support |
835877b3 | 16 | %bcond_without pulseaudio # pulse audio output support |
73bed315 | 17 | %bcond_without python # Python 3 binding (python 2.x no longer supported) |
de0cb8a8 | 18 | %bcond_without static_libs # don't build static libraries |
28b37384 | 19 | # |
20 | Summary: A device independent layer for speech synthesis | |
de0cb8a8 | 21 | Summary(pl.UTF-8): Niezależna od urządzenia warstwa obsługująca syntezę mowy |
28b37384 | 22 | Name: speech-dispatcher |
07f62659 JB |
23 | Version: 0.8.8 |
24 | Release: 1 | |
44baac39 | 25 | License: LGPL v2.1+ (library and audio drivers), GPL v2+ (programs and speech modules) |
de0cb8a8 | 26 | Group: Applications/Sound |
07f62659 JB |
27 | Source0: https://freebsoft.org/pub/projects/speechd/%{name}-%{version}.tar.gz |
28 | # Source0-md5: ad9fb4798004983abd9de15a08cddebc | |
162dab2c | 29 | Source1: %{name}.init |
30 | Source2: %{name}.sysconfig | |
dbfacddb | 31 | Source3: %{name}.tmpfiles |
835877b3 | 32 | Patch0: %{name}-info.patch |
07f62659 | 33 | URL: https://freebsoft.org/speechd |
44e46910 | 34 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
73bed315 | 35 | BuildRequires: autoconf >= 2.63 |
168868f0 JB |
36 | # for __pycache__ support (python 3.2+) |
37 | BuildRequires: automake >= 1:1.13 | |
73bed315 | 38 | BuildRequires: dotconf-devel >= 1.3 |
44e46910 | 39 | %{?with_espeak:BuildRequires: espeak-devel} |
4e834987 JB |
40 | %{?with_espeak_ng:BuildRequires: espeak-ng-devel} |
41 | BuildRequires: gettext-tools | |
73bed315 | 42 | BuildRequires: glib2-devel >= 1:2.28 |
44e46910 | 43 | %{?with_flite:BuildRequires: flite-devel} |
44 | %{?with_ibmtts:BuildRequires: ibmtts-devel} | |
73bed315 | 45 | BuildRequires: intltool >= 0.40.0 |
73bed315 | 46 | %{?with_libao:BuildRequires: libao-devel} |
44baac39 | 47 | %{?with_ivona:BuildRequires: libdumbtts-devel} |
a6cb3d1a | 48 | BuildRequires: libsndfile-devel >= 1.0.2 |
73bed315 | 49 | BuildRequires: libtool >= 2:2.2 |
44e46910 | 50 | %{?with_nas:BuildRequires: nas-devel} |
3da736bf | 51 | BuildRequires: pkgconfig |
59135ce9 | 52 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
73bed315 | 53 | %{?with_python:BuildRequires: python3-devel >= 1:3.2} |
93ca17ef | 54 | BuildRequires: rpm-pythonprov |
7f679c05 | 55 | BuildRequires: rpmbuild(macros) >= 1.527 |
f0bc316e | 56 | %{?with_svox:BuildRequires: svox-devel} |
93ca17ef | 57 | BuildRequires: texinfo |
73bed315 | 58 | %{?with_nas:BuildRequires: xorg-lib-libXau-devel} |
59135ce9 ER |
59 | Requires(post,preun): /sbin/chkconfig |
60 | Requires(postun): /usr/sbin/groupdel | |
61 | Requires(postun): /usr/sbin/userdel | |
93ca17ef JB |
62 | Requires(pre): /bin/id |
63 | Requires(pre): /usr/bin/getgid | |
64 | Requires(pre): /usr/sbin/groupadd | |
65 | Requires(pre): /usr/sbin/useradd | |
93ca17ef | 66 | Requires: %{name}-libs = %{version}-%{release} |
73bed315 | 67 | Requires: dotconf >= 1.3 |
a6cb3d1a | 68 | Requires: libsndfile >= 1.0.2 |
93ca17ef | 69 | Requires: rc-scripts |
162dab2c | 70 | Provides: group(%{name}) |
71 | Provides: user(%{name}) | |
28b37384 | 72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73 | ||
74 | %description | |
75 | Speech Dispatcher provides a device independent layer for speech | |
76 | synthesis. | |
77 | ||
de0cb8a8 JB |
78 | %description -l pl.UTF-8 |
79 | Speech Dispatcher zapewnia niezależną od urządzenia warstwę | |
80 | obsługującą syntezę mowy. | |
28b37384 | 81 | |
73bed315 JB |
82 | %package audio-libao |
83 | Summary: libao audio output module for Speech Dispatcher | |
84 | Summary(pl.UTF-8): Moduł wyjścia dźwięku libao dla Speech Dispatchera | |
44baac39 | 85 | License: LGPL v2.1+ |
73bed315 JB |
86 | Group: Applications/Sound |
87 | Requires: %{name} = %{version}-%{release} | |
88 | ||
89 | %description audio-libao | |
90 | libao audio output module for Speech Dispatcher. | |
91 | ||
92 | %description audio-libao -l pl.UTF-8 | |
93 | Moduł wyjścia dźwięku libao dla Speech Dispatchera. | |
94 | ||
95 | %package audio-nas | |
96 | Summary: NAS audio output module for Speech Dispatcher | |
97 | Summary(pl.UTF-8): Moduł wyjścia dźwięku NAS dla Speech Dispatchera | |
44baac39 | 98 | License: LGPL v2.1+ |
73bed315 JB |
99 | Group: Applications/Sound |
100 | Requires: %{name} = %{version}-%{release} | |
101 | ||
102 | %description audio-nas | |
103 | NAS audio output module for Speech Dispatcher. | |
104 | ||
105 | %description audio-nas -l pl.UTF-8 | |
106 | Moduł wyjścia dźwięku NAS dla Speech Dispatchera. | |
107 | ||
108 | %package audio-pulse | |
109 | Summary: PulseAudio audio output module for Speech Dispatcher | |
110 | Summary(pl.UTF-8): Moduł wyjścia dźwięku PulseAudio dla Speech Dispatchera | |
44baac39 | 111 | License: LGPL v2.1+ |
73bed315 JB |
112 | Group: Applications/Sound |
113 | Requires: %{name} = %{version}-%{release} | |
114 | ||
115 | %description audio-pulse | |
116 | PulseAudio audio output module for Speech Dispatcher. | |
117 | ||
118 | %description audio-pulse -l pl.UTF-8 | |
119 | Moduł wyjścia dźwięku PulseAudio dla Speech Dispatchera. | |
120 | ||
4cf58c26 | 121 | %package module-espeak |
8b9cbd5f | 122 | Summary: eSpeak synthesizer module for Speech Dispatcher |
4cf58c26 JB |
123 | Summary(pl.UTF-8): Moduł syntezatora eSpeak dla Speech Dispatchera |
124 | Group: Applications/Sound | |
125 | Requires: %{name} = %{version}-%{release} | |
126 | ||
127 | %description module-espeak | |
8b9cbd5f | 128 | eSpeak synthesizer module for Speech Dispatcher. |
4cf58c26 JB |
129 | |
130 | %description module-espeak -l pl.UTF-8 | |
131 | Moduł syntezatora eSpeak dla Speech Dispatchera. | |
132 | ||
4e834987 JB |
133 | %package module-espeak-ng |
134 | Summary: eSpeak NG synthesizer module for Speech Dispatcher | |
135 | Summary(pl.UTF-8): Moduł syntezatora eSpeak NG dla Speech Dispatchera | |
136 | Group: Applications/Sound | |
137 | Requires: %{name} = %{version}-%{release} | |
138 | ||
139 | %description module-espeak-ng | |
140 | eSpeak NG synthesizer module for Speech Dispatcher. | |
141 | ||
142 | %description module-espeak-ng -l pl.UTF-8 | |
143 | Moduł syntezatora eSpeak NG dla Speech Dispatchera. | |
144 | ||
4cf58c26 | 145 | %package module-flite |
8b9cbd5f | 146 | Summary: Flite synthesizer module for Speech Dispatcher |
4cf58c26 JB |
147 | Summary(pl.UTF-8): Moduł syntezatora Flite dla Speech Dispatchera |
148 | Group: Applications/Sound | |
149 | Requires: %{name} = %{version}-%{release} | |
150 | ||
151 | %description module-flite | |
8b9cbd5f | 152 | Flite synthesizer module for Speech Dispatcher. |
4cf58c26 JB |
153 | |
154 | %description module-flite -l pl.UTF-8 | |
155 | Moduł syntezatora Flite dla Speech Dispatchera. | |
156 | ||
157 | %package module-ibmtts | |
8b9cbd5f | 158 | Summary: IBM TTS synthesizer module for Speech Dispatcher |
4cf58c26 JB |
159 | Summary(pl.UTF-8): Moduł syntezatora IBM TTS dla Speech Dispatchera |
160 | Group: Applications/Sound | |
161 | Requires: %{name} = %{version}-%{release} | |
162 | ||
163 | %description module-ibmtts | |
8b9cbd5f | 164 | IBM TTS synthesizer module for Speech Dispatcher. |
4cf58c26 JB |
165 | |
166 | %description module-ibmtts -l pl.UTF-8 | |
167 | Moduł syntezatora IBM TTS dla Speech Dispatchera. | |
168 | ||
169 | %package module-ivona | |
8b9cbd5f | 170 | Summary: Ivona synthesizer module for Speech Dispatcher |
4cf58c26 JB |
171 | Summary(pl.UTF-8): Moduł syntezatora Ivona dla Speech Dispatchera |
172 | Group: Applications/Sound | |
173 | Requires: %{name} = %{version}-%{release} | |
174 | ||
175 | %description module-ivona | |
8b9cbd5f | 176 | Ivona synthesizer module for Speech Dispatcher. |
4cf58c26 JB |
177 | |
178 | %description module-ivona -l pl.UTF-8 | |
179 | Moduł syntezatora Ivona dla Speech Dispatchera. | |
180 | ||
f0bc316e JB |
181 | %package module-pico |
182 | Summary: SVOX Pico synthesizer module for Speech Dispatcher | |
183 | Summary(pl.UTF-8): Moduł syntezatora SVOX Pico dla Speech Dispatchera | |
184 | Group: Applications/Sound | |
185 | Requires: %{name} = %{version}-%{release} | |
186 | ||
187 | %description module-pico | |
188 | SVOX Pico synthesizer module for Speech Dispatcher. | |
189 | ||
190 | %description module-pico -l pl.UTF-8 | |
191 | Moduł syntezatora SVOX Pico dla Speech Dispatchera. | |
192 | ||
93ca17ef JB |
193 | %package libs |
194 | Summary: Speech Dispatcher client library | |
195 | Summary(pl.UTF-8): Biblioteka kliencka Speech Dispatchera | |
44baac39 | 196 | License: LGPL v2.1+ |
93ca17ef | 197 | Group: Libraries |
73bed315 | 198 | Requires: glib2 >= 1:2.28 |
93ca17ef JB |
199 | |
200 | %description libs | |
201 | Speech Dispatcher provides a device independent layer for speech | |
202 | synthesis. This package contains client library. | |
203 | ||
204 | %description libs -l pl.UTF-8 | |
205 | Speech Dispatcher zapewnia niezależną od urządzenia warstwę | |
206 | obsługującą syntezę mowy. Ten pakiet zawiera biblitotekę kliencką. | |
207 | ||
28b37384 | 208 | %package devel |
de0cb8a8 JB |
209 | Summary: Header files for speech-dispatcher library |
210 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki speech-dispatcher | |
44baac39 | 211 | License: LGPL v2.1+ |
28b37384 | 212 | Group: Development/Libraries |
93ca17ef | 213 | Requires: %{name}-libs = %{version}-%{release} |
73bed315 | 214 | Requires: glib2-devel >= 1:2.28 |
28b37384 | 215 | |
216 | %description devel | |
de0cb8a8 | 217 | Header files for speech-dispatcher library. |
28b37384 | 218 | |
219 | %description devel -l pl.UTF-8 | |
de0cb8a8 | 220 | Pliki nagłówkowe biblioteki speech-dispatcher. |
28b37384 | 221 | |
222 | %package static | |
de0cb8a8 JB |
223 | Summary: Static speech-dispatcher library |
224 | Summary(pl.UTF-8): Statyczna biblioteka speech-dispatcher | |
44baac39 | 225 | License: LGPL v2.1+ |
28b37384 | 226 | Group: Development/Libraries |
227 | Requires: %{name}-devel = %{version}-%{release} | |
228 | ||
229 | %description static | |
de0cb8a8 | 230 | Static speech-dispatcher library. |
28b37384 | 231 | |
232 | %description static -l pl.UTF-8 | |
de0cb8a8 | 233 | Statyczna biblioteka speech-dispatcher. |
28b37384 | 234 | |
73bed315 JB |
235 | %package -n python3-%{name} |
236 | Summary: Python 3 library for communication with Speech Dispatcher | |
237 | Summary(pl.UTF-8): Biblioteka Pythona 3 do komunikacji ze Speech Dispatcherem | |
44baac39 | 238 | License: LGPL v2.1+ |
b4140df7 | 239 | Group: Libraries/Python |
73bed315 JB |
240 | Requires: python3-modules |
241 | Obsoletes: python-speech-dispatcher | |
b4140df7 | 242 | |
73bed315 | 243 | %description -n python3-%{name} |
b4140df7 | 244 | Speech Dispatcher provides a device independent layer for speech |
73bed315 | 245 | synthesis. This package contains a Python 3 library for communication |
b4140df7 | 246 | with Speech Dispatcher. |
247 | ||
73bed315 | 248 | %description -n python3-%{name} -l pl.UTF-8 |
de0cb8a8 | 249 | Speech Dispatcher zapewnia niezależną od urządzenia warstwę |
73bed315 | 250 | obsługującą syntezę mowy. Ten pakiet zawiera bibliotekę Pythona 3 do |
de0cb8a8 | 251 | komunikacji ze Speech Dispatcherem. |
b4140df7 | 252 | |
28b37384 | 253 | %prep |
254 | %setup -q | |
b45d13c8 | 255 | %patch0 -p1 |
28b37384 | 256 | |
257 | %build | |
258 | %{__libtoolize} | |
259 | %{__aclocal} | |
260 | %{__autoconf} | |
261 | %{__autoheader} | |
262 | %{__automake} | |
263 | %configure \ | |
73bed315 | 264 | %{__disable python} \ |
4e834987 | 265 | --disable-silent-rules \ |
73bed315 JB |
266 | %{__enable_disable static_libs static} \ |
267 | %{__with_without alsa} \ | |
268 | --with-default-audio-method=%{?with_alsa:alsa}%{!?with_alsa:oss} \ | |
269 | %{__with_without espeak} \ | |
835877b3 AF |
270 | %{__with_without flite} \ |
271 | %{__with_without ibmtts} \ | |
835877b3 | 272 | %{__with_without ivona} \ |
73bed315 JB |
273 | %{__with_without libao} \ |
274 | %{__with_without nas} \ | |
f0bc316e JB |
275 | %{__with_without pulseaudio pulse} \ |
276 | %{__with_without svox pico} | |
28b37384 | 277 | |
278 | %{__make} | |
279 | ||
280 | %install | |
281 | rm -rf $RPM_BUILD_ROOT | |
dbfacddb JR |
282 | install -d $RPM_BUILD_ROOT/var/{log,run}/speech-dispatcher \ |
283 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
162dab2c | 284 | |
28b37384 | 285 | %{__make} install \ |
286 | DESTDIR=$RPM_BUILD_ROOT | |
287 | ||
162dab2c | 288 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
289 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
dbfacddb | 290 | install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
162dab2c | 291 | |
73bed315 JB |
292 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/speech-dispatcher/spd_*.la |
293 | %if %{with static_libs} | |
294 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/speech-dispatcher/spd_*.a | |
295 | %endif | |
296 | %if %{without ibmtts} | |
297 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/speech-dispatcher/modules/ibmtts.conf | |
298 | %endif | |
299 | ||
300 | %find_lang %{name} | |
93ca17ef | 301 | |
28b37384 | 302 | %clean |
303 | rm -rf $RPM_BUILD_ROOT | |
304 | ||
162dab2c | 305 | %pre |
66b2a9e1 | 306 | %groupadd -g 224 %{name} |
307 | %useradd -u 224 -g 224 -G audio -d /usr/share/empty -s /bin/false -c "%{name} user" %{name} | |
162dab2c | 308 | |
b4140df7 | 309 | %post |
b4140df7 | 310 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
162dab2c | 311 | /sbin/chkconfig --add %{name} |
312 | %service %{name} restart | |
313 | ||
314 | %preun | |
315 | if [ "$1" = "0" ]; then | |
316 | %service %{name} stop | |
317 | /sbin/chkconfig --del %{name} | |
318 | fi | |
b4140df7 | 319 | |
320 | %postun | |
b4140df7 | 321 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
162dab2c | 322 | if [ "$1" = "0" ]; then |
323 | %userremove %{name} | |
324 | %groupremove %{name} | |
325 | fi | |
b4140df7 | 326 | |
93ca17ef JB |
327 | %post libs -p /sbin/ldconfig |
328 | %postun libs -p /sbin/ldconfig | |
329 | ||
73bed315 | 330 | %files -f %{name}.lang |
28b37384 | 331 | %defattr(644,root,root,755) |
4e834987 | 332 | %doc ANNOUNCE AUTHORS BUGS FAQ NEWS README TODO |
162dab2c | 333 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
334 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
835877b3 AF |
335 | %attr(755,root,root) %{_bindir}/spd-conf |
336 | %attr(755,root,root) %{_bindir}/spd-say | |
337 | %attr(755,root,root) %{_bindir}/spdsend | |
338 | %attr(755,root,root) %{_bindir}/speech-dispatcher | |
b4140df7 | 339 | %dir %{_libdir}/speech-dispatcher |
73bed315 JB |
340 | %{?with_alsa:%attr(755,root,root) %{_libdir}/speech-dispatcher/spd_alsa.so} |
341 | %{_libdir}/speech-dispatcher/spd_oss.so | |
b4140df7 | 342 | %dir %{_libdir}/speech-dispatcher-modules |
835877b3 AF |
343 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_cicero |
344 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_dummy | |
835877b3 | 345 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_festival |
835877b3 | 346 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_generic |
835877b3 AF |
347 | %{_datadir}/speech-dispatcher |
348 | %{_datadir}/sounds/speech-dispatcher | |
73bed315 | 349 | %dir %{_sysconfdir}/speech-dispatcher |
835877b3 | 350 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/speechd.conf |
73bed315 | 351 | %dir %{_sysconfdir}/speech-dispatcher/clients |
835877b3 | 352 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/clients/emacs.conf |
73bed315 | 353 | %dir %{_sysconfdir}/speech-dispatcher/modules |
835877b3 AF |
354 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/cicero.conf |
355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/dtk-generic.conf | |
356 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/epos-generic.conf | |
357 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/espeak-generic.conf | |
358 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/espeak-mbrola-generic.conf | |
835877b3 | 359 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/festival.conf |
835877b3 AF |
360 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/llia_phon-generic.conf |
361 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/swift-generic.conf | |
162dab2c | 362 | %dir %attr(755,%{name},%{name}) /var/run/speech-dispatcher |
3ef6373a | 363 | %dir %attr(755,%{name},%{name}) /var/log/speech-dispatcher |
dbfacddb | 364 | /usr/lib/tmpfiles.d/%{name}.conf |
404d22f5 | 365 | %{_infodir}/spd-say.info* |
404d22f5 | 366 | %{_infodir}/speech-dispatcher.info* |
089f4e80 | 367 | %lang(cs) %{_infodir}/speech-dispatcher-cs.info* |
404d22f5 | 368 | %{_infodir}/ssip.info* |
28b37384 | 369 | |
73bed315 JB |
370 | %if %{with libao} |
371 | %files audio-libao | |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{_libdir}/speech-dispatcher/spd_libao.so | |
374 | %endif | |
375 | ||
376 | %if %{with nas} | |
377 | %files audio-nas | |
378 | %defattr(644,root,root,755) | |
379 | %attr(755,root,root) %{_libdir}/speech-dispatcher/spd_nas.so | |
380 | %endif | |
381 | ||
382 | %if %{with pulseaudio} | |
383 | %files audio-pulse | |
384 | %defattr(644,root,root,755) | |
385 | %attr(755,root,root) %{_libdir}/speech-dispatcher/spd_pulse.so | |
386 | %endif | |
387 | ||
4cf58c26 JB |
388 | %if %{with espeak} |
389 | %files module-espeak | |
390 | %defattr(644,root,root,755) | |
391 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_espeak | |
392 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/espeak.conf | |
393 | %endif | |
394 | ||
4e834987 JB |
395 | %if %{with espeak_ng} |
396 | %files module-espeak-ng | |
397 | %defattr(644,root,root,755) | |
398 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_espeak-ng | |
399 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/espeak-ng.conf | |
400 | %endif | |
401 | ||
4cf58c26 JB |
402 | %if %{with flite} |
403 | %files module-flite | |
404 | %defattr(644,root,root,755) | |
405 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_flite | |
406 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/flite.conf | |
407 | %endif | |
408 | ||
409 | %if %{with ibmtts} | |
410 | %files module-ibmtts | |
411 | %defattr(644,root,root,755) | |
412 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_ibmtts | |
413 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/ibmtts.conf | |
414 | %endif | |
415 | ||
416 | %if %{with ivona} | |
417 | %files module-ivona | |
418 | %defattr(644,root,root,755) | |
419 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_ivona | |
420 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/ivona.conf | |
421 | %endif | |
422 | ||
f0bc316e JB |
423 | %if %{with svox} |
424 | %files module-pico | |
425 | %defattr(644,root,root,755) | |
426 | %attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_pico | |
427 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/pico.conf | |
37fb4489 | 428 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/pico-generic.conf |
f0bc316e JB |
429 | %endif |
430 | ||
93ca17ef JB |
431 | %files libs |
432 | %defattr(644,root,root,755) | |
433 | %attr(755,root,root) %{_libdir}/libspeechd.so.*.*.* | |
434 | %attr(755,root,root) %ghost %{_libdir}/libspeechd.so.2 | |
435 | ||
28b37384 | 436 | %files devel |
437 | %defattr(644,root,root,755) | |
93ca17ef JB |
438 | %attr(755,root,root) %{_libdir}/libspeechd.so |
439 | %{_libdir}/libspeechd.la | |
73bed315 JB |
440 | %{_includedir}/speech-dispatcher |
441 | %{_pkgconfigdir}/speech-dispatcher.pc | |
28b37384 | 442 | |
b4140df7 | 443 | %if %{with static_libs} |
28b37384 | 444 | %files static |
445 | %defattr(644,root,root,755) | |
93ca17ef | 446 | %{_libdir}/libspeechd.a |
b4140df7 | 447 | %endif |
48a0efe4 | 448 | |
73bed315 JB |
449 | %if %{with python} |
450 | %files -n python3-%{name} | |
b4140df7 | 451 | %defattr(644,root,root,755) |
73bed315 JB |
452 | %dir %{py3_sitedir}/speechd |
453 | %{py3_sitedir}/speechd/*.py | |
454 | %{py3_sitedir}/speechd/__pycache__ | |
455 | %dir %{py3_sitedir}/speechd_config | |
456 | %{py3_sitedir}/speechd_config/*.py | |
457 | %{py3_sitedir}/speechd_config/__pycache__ | |
458 | %endif |