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