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