]> git.pld-linux.org Git - packages/speech-dispatcher.git/blame - speech-dispatcher.spec
- updated to 0.8.8
[packages/speech-dispatcher.git] / speech-dispatcher.spec
CommitLineData
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#
20Summary: A device independent layer for speech synthesis
de0cb8a8 21Summary(pl.UTF-8): Niezależna od urządzenia warstwa obsługująca syntezę mowy
28b37384 22Name: speech-dispatcher
07f62659
JB
23Version: 0.8.8
24Release: 1
44baac39 25License: LGPL v2.1+ (library and audio drivers), GPL v2+ (programs and speech modules)
de0cb8a8 26Group: Applications/Sound
07f62659
JB
27Source0: https://freebsoft.org/pub/projects/speechd/%{name}-%{version}.tar.gz
28# Source0-md5: ad9fb4798004983abd9de15a08cddebc
162dab2c 29Source1: %{name}.init
30Source2: %{name}.sysconfig
dbfacddb 31Source3: %{name}.tmpfiles
835877b3 32Patch0: %{name}-info.patch
07f62659 33URL: https://freebsoft.org/speechd
44e46910 34%{?with_alsa:BuildRequires: alsa-lib-devel}
73bed315 35BuildRequires: autoconf >= 2.63
168868f0
JB
36# for __pycache__ support (python 3.2+)
37BuildRequires: automake >= 1:1.13
73bed315 38BuildRequires: dotconf-devel >= 1.3
44e46910 39%{?with_espeak:BuildRequires: espeak-devel}
4e834987
JB
40%{?with_espeak_ng:BuildRequires: espeak-ng-devel}
41BuildRequires: gettext-tools
73bed315 42BuildRequires: glib2-devel >= 1:2.28
44e46910 43%{?with_flite:BuildRequires: flite-devel}
44%{?with_ibmtts:BuildRequires: ibmtts-devel}
73bed315 45BuildRequires: intltool >= 0.40.0
73bed315 46%{?with_libao:BuildRequires: libao-devel}
44baac39 47%{?with_ivona:BuildRequires: libdumbtts-devel}
a6cb3d1a 48BuildRequires: libsndfile-devel >= 1.0.2
73bed315 49BuildRequires: libtool >= 2:2.2
44e46910 50%{?with_nas:BuildRequires: nas-devel}
3da736bf 51BuildRequires: pkgconfig
59135ce9 52%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
73bed315 53%{?with_python:BuildRequires: python3-devel >= 1:3.2}
93ca17ef 54BuildRequires: rpm-pythonprov
7f679c05 55BuildRequires: rpmbuild(macros) >= 1.527
f0bc316e 56%{?with_svox:BuildRequires: svox-devel}
93ca17ef 57BuildRequires: texinfo
73bed315 58%{?with_nas:BuildRequires: xorg-lib-libXau-devel}
59135ce9
ER
59Requires(post,preun): /sbin/chkconfig
60Requires(postun): /usr/sbin/groupdel
61Requires(postun): /usr/sbin/userdel
93ca17ef
JB
62Requires(pre): /bin/id
63Requires(pre): /usr/bin/getgid
64Requires(pre): /usr/sbin/groupadd
65Requires(pre): /usr/sbin/useradd
93ca17ef 66Requires: %{name}-libs = %{version}-%{release}
73bed315 67Requires: dotconf >= 1.3
a6cb3d1a 68Requires: libsndfile >= 1.0.2
93ca17ef 69Requires: rc-scripts
162dab2c 70Provides: group(%{name})
71Provides: user(%{name})
28b37384 72BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73
74%description
75Speech Dispatcher provides a device independent layer for speech
76synthesis.
77
de0cb8a8
JB
78%description -l pl.UTF-8
79Speech Dispatcher zapewnia niezależną od urządzenia warstwę
80obsługującą syntezę mowy.
28b37384 81
73bed315
JB
82%package audio-libao
83Summary: libao audio output module for Speech Dispatcher
84Summary(pl.UTF-8): Moduł wyjścia dźwięku libao dla Speech Dispatchera
44baac39 85License: LGPL v2.1+
73bed315
JB
86Group: Applications/Sound
87Requires: %{name} = %{version}-%{release}
88
89%description audio-libao
90libao audio output module for Speech Dispatcher.
91
92%description audio-libao -l pl.UTF-8
93Moduł wyjścia dźwięku libao dla Speech Dispatchera.
94
95%package audio-nas
96Summary: NAS audio output module for Speech Dispatcher
97Summary(pl.UTF-8): Moduł wyjścia dźwięku NAS dla Speech Dispatchera
44baac39 98License: LGPL v2.1+
73bed315
JB
99Group: Applications/Sound
100Requires: %{name} = %{version}-%{release}
101
102%description audio-nas
103NAS audio output module for Speech Dispatcher.
104
105%description audio-nas -l pl.UTF-8
106Moduł wyjścia dźwięku NAS dla Speech Dispatchera.
107
108%package audio-pulse
109Summary: PulseAudio audio output module for Speech Dispatcher
110Summary(pl.UTF-8): Moduł wyjścia dźwięku PulseAudio dla Speech Dispatchera
44baac39 111License: LGPL v2.1+
73bed315
JB
112Group: Applications/Sound
113Requires: %{name} = %{version}-%{release}
114
115%description audio-pulse
116PulseAudio audio output module for Speech Dispatcher.
117
118%description audio-pulse -l pl.UTF-8
119Moduł wyjścia dźwięku PulseAudio dla Speech Dispatchera.
120
4cf58c26 121%package module-espeak
8b9cbd5f 122Summary: eSpeak synthesizer module for Speech Dispatcher
4cf58c26
JB
123Summary(pl.UTF-8): Moduł syntezatora eSpeak dla Speech Dispatchera
124Group: Applications/Sound
125Requires: %{name} = %{version}-%{release}
126
127%description module-espeak
8b9cbd5f 128eSpeak synthesizer module for Speech Dispatcher.
4cf58c26
JB
129
130%description module-espeak -l pl.UTF-8
131Moduł syntezatora eSpeak dla Speech Dispatchera.
132
4e834987
JB
133%package module-espeak-ng
134Summary: eSpeak NG synthesizer module for Speech Dispatcher
135Summary(pl.UTF-8): Moduł syntezatora eSpeak NG dla Speech Dispatchera
136Group: Applications/Sound
137Requires: %{name} = %{version}-%{release}
138
139%description module-espeak-ng
140eSpeak NG synthesizer module for Speech Dispatcher.
141
142%description module-espeak-ng -l pl.UTF-8
143Moduł syntezatora eSpeak NG dla Speech Dispatchera.
144
4cf58c26 145%package module-flite
8b9cbd5f 146Summary: Flite synthesizer module for Speech Dispatcher
4cf58c26
JB
147Summary(pl.UTF-8): Moduł syntezatora Flite dla Speech Dispatchera
148Group: Applications/Sound
149Requires: %{name} = %{version}-%{release}
150
151%description module-flite
8b9cbd5f 152Flite synthesizer module for Speech Dispatcher.
4cf58c26
JB
153
154%description module-flite -l pl.UTF-8
155Moduł syntezatora Flite dla Speech Dispatchera.
156
157%package module-ibmtts
8b9cbd5f 158Summary: IBM TTS synthesizer module for Speech Dispatcher
4cf58c26
JB
159Summary(pl.UTF-8): Moduł syntezatora IBM TTS dla Speech Dispatchera
160Group: Applications/Sound
161Requires: %{name} = %{version}-%{release}
162
163%description module-ibmtts
8b9cbd5f 164IBM TTS synthesizer module for Speech Dispatcher.
4cf58c26
JB
165
166%description module-ibmtts -l pl.UTF-8
167Moduł syntezatora IBM TTS dla Speech Dispatchera.
168
169%package module-ivona
8b9cbd5f 170Summary: Ivona synthesizer module for Speech Dispatcher
4cf58c26
JB
171Summary(pl.UTF-8): Moduł syntezatora Ivona dla Speech Dispatchera
172Group: Applications/Sound
173Requires: %{name} = %{version}-%{release}
174
175%description module-ivona
8b9cbd5f 176Ivona synthesizer module for Speech Dispatcher.
4cf58c26
JB
177
178%description module-ivona -l pl.UTF-8
179Moduł syntezatora Ivona dla Speech Dispatchera.
180
f0bc316e
JB
181%package module-pico
182Summary: SVOX Pico synthesizer module for Speech Dispatcher
183Summary(pl.UTF-8): Moduł syntezatora SVOX Pico dla Speech Dispatchera
184Group: Applications/Sound
185Requires: %{name} = %{version}-%{release}
186
187%description module-pico
188SVOX Pico synthesizer module for Speech Dispatcher.
189
190%description module-pico -l pl.UTF-8
191Moduł syntezatora SVOX Pico dla Speech Dispatchera.
192
93ca17ef
JB
193%package libs
194Summary: Speech Dispatcher client library
195Summary(pl.UTF-8): Biblioteka kliencka Speech Dispatchera
44baac39 196License: LGPL v2.1+
93ca17ef 197Group: Libraries
73bed315 198Requires: glib2 >= 1:2.28
93ca17ef
JB
199
200%description libs
201Speech Dispatcher provides a device independent layer for speech
202synthesis. This package contains client library.
203
204%description libs -l pl.UTF-8
205Speech Dispatcher zapewnia niezależną od urządzenia warstwę
206obsługującą syntezę mowy. Ten pakiet zawiera biblitotekę kliencką.
207
28b37384 208%package devel
de0cb8a8
JB
209Summary: Header files for speech-dispatcher library
210Summary(pl.UTF-8): Pliki nagłówkowe biblioteki speech-dispatcher
44baac39 211License: LGPL v2.1+
28b37384 212Group: Development/Libraries
93ca17ef 213Requires: %{name}-libs = %{version}-%{release}
73bed315 214Requires: glib2-devel >= 1:2.28
28b37384 215
216%description devel
de0cb8a8 217Header files for speech-dispatcher library.
28b37384 218
219%description devel -l pl.UTF-8
de0cb8a8 220Pliki nagłówkowe biblioteki speech-dispatcher.
28b37384 221
222%package static
de0cb8a8
JB
223Summary: Static speech-dispatcher library
224Summary(pl.UTF-8): Statyczna biblioteka speech-dispatcher
44baac39 225License: LGPL v2.1+
28b37384 226Group: Development/Libraries
227Requires: %{name}-devel = %{version}-%{release}
228
229%description static
de0cb8a8 230Static speech-dispatcher library.
28b37384 231
232%description static -l pl.UTF-8
de0cb8a8 233Statyczna biblioteka speech-dispatcher.
28b37384 234
73bed315
JB
235%package -n python3-%{name}
236Summary: Python 3 library for communication with Speech Dispatcher
237Summary(pl.UTF-8): Biblioteka Pythona 3 do komunikacji ze Speech Dispatcherem
44baac39 238License: LGPL v2.1+
b4140df7 239Group: Libraries/Python
73bed315
JB
240Requires: python3-modules
241Obsoletes: python-speech-dispatcher
b4140df7 242
73bed315 243%description -n python3-%{name}
b4140df7 244Speech Dispatcher provides a device independent layer for speech
73bed315 245synthesis. This package contains a Python 3 library for communication
b4140df7 246with Speech Dispatcher.
247
73bed315 248%description -n python3-%{name} -l pl.UTF-8
de0cb8a8 249Speech Dispatcher zapewnia niezależną od urządzenia warstwę
73bed315 250obsługującą syntezę mowy. Ten pakiet zawiera bibliotekę Pythona 3 do
de0cb8a8 251komunikacji 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
281rm -rf $RPM_BUILD_ROOT
dbfacddb
JR
282install -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 288install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
289install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
dbfacddb 290install %{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
303rm -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
315if [ "$1" = "0" ]; then
316 %service %{name} stop
317 /sbin/chkconfig --del %{name}
318fi
b4140df7 319
320%postun
b4140df7 321[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
162dab2c 322if [ "$1" = "0" ]; then
323 %userremove %{name}
324 %groupremove %{name}
325fi
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
This page took 0.694008 seconds and 4 git commands to generate.