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