]> git.pld-linux.org Git - packages/speech-dispatcher.git/blame - speech-dispatcher.spec
- corrected lang tag in Summary
[packages/speech-dispatcher.git] / speech-dispatcher.spec
CommitLineData
de0cb8a8 1#
28b37384 2# Conditional build:
de0cb8a8 3%bcond_with ibmtts # commercial, proprietary IBM TTS synthesizer support
93ca17ef
JB
4%bcond_without flite # flite synthetizer support
5%bcond_without espeak # espeak synthetizer support
6%bcond_without nas # NAS audio output support
7%bcond_without alsa # ALSA audio output supprot
59135ce9 8%bcond_without pulseaudio # pulse audio output support
de0cb8a8 9%bcond_without static_libs # don't build static libraries
44e46910 10%bcond_without ivona # don't build ivona support
28b37384 11#
12Summary: A device independent layer for speech synthesis
de0cb8a8 13Summary(pl.UTF-8): Niezależna od urządzenia warstwa obsługująca syntezę mowy
28b37384 14Name: speech-dispatcher
2627d4d3 15Version: 0.6.7
1d17c41a 16Release: 3
28b37384 17License: GPL v2
de0cb8a8 18Group: Applications/Sound
28b37384 19Source0: http://www.freebsoft.org/pub/projects/speechd/%{name}-%{version}.tar.gz
2627d4d3 20# Source0-md5: 67432ad655b50fd7c1f1f79e012cfe3f
162dab2c 21Source1: %{name}.init
22Source2: %{name}.sysconfig
b45d13c8 23Patch0: %{name}-python-install.patch
93ca17ef 24Patch1: %{name}-info.patch
5b7af74c 25Patch2: %{name}-gcc.patch
28b37384 26URL: http://www.freebsoft.org/
44e46910 27%{?with_alsa:BuildRequires: alsa-lib-devel}
28b37384 28BuildRequires: autoconf
29BuildRequires: automake
b4140df7 30BuildRequires: dotconf-devel
44e46910 31%{?with_espeak:BuildRequires: espeak-devel}
32%{?with_flite:BuildRequires: flite-devel}
33%{?with_ibmtts:BuildRequires: ibmtts-devel}
34BuildRequires: libatomic_ops
44e46910 35%{?with_ivona:BuildRequires: libdumbtts-devel}
59135ce9 36BuildRequires: libtool
44e46910 37%{?with_nas:BuildRequires: nas-devel}
3da736bf 38BuildRequires: pkgconfig
59135ce9 39%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
93ca17ef
JB
40BuildRequires: python-devel >= 1:2.5
41BuildRequires: rpm-pythonprov
42BuildRequires: rpmbuild(macros) >= 1.228
43BuildRequires: texinfo
59135ce9
ER
44Requires(post,preun): /sbin/chkconfig
45Requires(postun): /usr/sbin/groupdel
46Requires(postun): /usr/sbin/userdel
93ca17ef
JB
47Requires(pre): /bin/id
48Requires(pre): /usr/bin/getgid
49Requires(pre): /usr/sbin/groupadd
50Requires(pre): /usr/sbin/useradd
93ca17ef
JB
51Requires: %{name}-libs = %{version}-%{release}
52Requires: rc-scripts
162dab2c 53Provides: group(%{name})
54Provides: user(%{name})
28b37384 55BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57%description
58Speech Dispatcher provides a device independent layer for speech
59synthesis.
60
de0cb8a8
JB
61%description -l pl.UTF-8
62Speech Dispatcher zapewnia niezależną od urządzenia warstwę
63obsługującą syntezę mowy.
28b37384 64
93ca17ef
JB
65%package libs
66Summary: Speech Dispatcher client library
67Summary(pl.UTF-8): Biblioteka kliencka Speech Dispatchera
68Group: Libraries
69
70%description libs
71Speech Dispatcher provides a device independent layer for speech
72synthesis. This package contains client library.
73
74%description libs -l pl.UTF-8
75Speech Dispatcher zapewnia niezależną od urządzenia warstwę
76obsługującą syntezę mowy. Ten pakiet zawiera biblitotekę kliencką.
77
28b37384 78%package devel
de0cb8a8
JB
79Summary: Header files for speech-dispatcher library
80Summary(pl.UTF-8): Pliki nagłówkowe biblioteki speech-dispatcher
28b37384 81Group: Development/Libraries
93ca17ef 82Requires: %{name}-libs = %{version}-%{release}
28b37384 83
84%description devel
de0cb8a8 85Header files for speech-dispatcher library.
28b37384 86
87%description devel -l pl.UTF-8
de0cb8a8 88Pliki nagłówkowe biblioteki speech-dispatcher.
28b37384 89
90%package static
de0cb8a8
JB
91Summary: Static speech-dispatcher library
92Summary(pl.UTF-8): Statyczna biblioteka speech-dispatcher
28b37384 93Group: Development/Libraries
94Requires: %{name}-devel = %{version}-%{release}
95
96%description static
de0cb8a8 97Static speech-dispatcher library.
28b37384 98
99%description static -l pl.UTF-8
de0cb8a8 100Statyczna biblioteka speech-dispatcher.
28b37384 101
b4140df7 102%package -n python-%{name}
103Summary: Python library for communication with Speech Dispatcher
d202b835 104Summary(pl.UTF-8): Biblioteka Pythona do komunikacji ze Speech Dispatcherem
b4140df7 105Group: Libraries/Python
106%pyrequires_eq python-modules
107
108%description -n python-%{name}
109Speech Dispatcher provides a device independent layer for speech
110synthesis. This package contains a Python library for communication
111with Speech Dispatcher.
112
d202b835 113%description -n python-%{name} -l pl.UTF-8
de0cb8a8
JB
114Speech Dispatcher zapewnia niezależną od urządzenia warstwę
115obsługującą syntezę mowy. Ten pakiet zawiera bibliotekę Pythona do
116komunikacji ze Speech Dispatcherem.
b4140df7 117
28b37384 118%prep
119%setup -q
b45d13c8 120%patch0 -p1
93ca17ef 121%patch1 -p1
5b7af74c 122%patch2 -p0
28b37384 123
124%build
125%{__libtoolize}
126%{__aclocal}
127%{__autoconf}
128%{__autoheader}
129%{__automake}
130%configure \
131 %{?with_flite:--with-flite}%{!?with_flite:--without-flite} \
b45d13c8 132 %{?with_ibmtts:--with-ibmtts}%{!?with_ibmtts:--without-ibmtts} \
133 %{?with_espeak:--with-espeak}%{!?with_espeak:--without-espeak} \
134 %{?with_nas:--with-nas}%{!?with_nas:--without-nas} \
135 %{?with_alsa:--with-alsa}%{!?with_alsa:--without-alsa} \
59135ce9 136 %{?with_pulseaudio:--with-pulse}%{!?with_pulseaudio:--without-pulse} \
44e46910 137 %{?with_ivona:--with-ivona}%{!?with_ivona:--without-ivona} \
b4140df7 138 --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
28b37384 139
140%{__make}
141
142%install
143rm -rf $RPM_BUILD_ROOT
144
3ef6373a 145install -d $RPM_BUILD_ROOT/var/{log,run}/speech-dispatcher
162dab2c 146
28b37384 147%{__make} install \
148 DESTDIR=$RPM_BUILD_ROOT
149
162dab2c 150install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
151install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
152
93ca17ef
JB
153%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/speechd
154%py_postclean
155# library for engines output, API not included in -devel
156rm $RPM_BUILD_ROOT%{_libdir}/speech-dispatcher/libsdaudio.{so,la,a}
157
28b37384 158%clean
159rm -rf $RPM_BUILD_ROOT
160
162dab2c 161%pre
66b2a9e1 162%groupadd -g 224 %{name}
163%useradd -u 224 -g 224 -G audio -d /usr/share/empty -s /bin/false -c "%{name} user" %{name}
162dab2c 164
b4140df7 165%post
b4140df7 166[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
162dab2c 167/sbin/chkconfig --add %{name}
168%service %{name} restart
169
170%preun
171if [ "$1" = "0" ]; then
172 %service %{name} stop
173 /sbin/chkconfig --del %{name}
174fi
b4140df7 175
176%postun
b4140df7 177[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
162dab2c 178if [ "$1" = "0" ]; then
179 %userremove %{name}
180 %groupremove %{name}
181fi
b4140df7 182
93ca17ef
JB
183%post libs -p /sbin/ldconfig
184%postun libs -p /sbin/ldconfig
185
28b37384 186%files
187%defattr(644,root,root,755)
48a0efe4 188%doc AUTHORS ChangeLog NEWS README TODO
162dab2c 189%attr(754,root,root) /etc/rc.d/init.d/%{name}
190%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
28b37384 191%attr(755,root,root) %{_bindir}/*
b4140df7 192%dir %{_libdir}/speech-dispatcher
93ca17ef 193%attr(755,root,root) %{_libdir}/speech-dispatcher/libsdaudio.so.*
b4140df7 194%dir %{_sysconfdir}/speech-dispatcher
195%dir %{_sysconfdir}/speech-dispatcher/clients
196%dir %{_sysconfdir}/speech-dispatcher/modules
197%dir %{_libdir}/speech-dispatcher-modules
3ef6373a 198%attr(755,root,root) %{_libdir}/speech-dispatcher-modules/sd_*
b4140df7 199%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/*.conf
200%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/clients/*.conf
201%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/speech-dispatcher/modules/*.conf
162dab2c 202%dir %attr(755,%{name},%{name}) /var/run/speech-dispatcher
3ef6373a 203%dir %attr(755,%{name},%{name}) /var/log/speech-dispatcher
404d22f5 204%{_infodir}/spd-say.info*
205%lang(cs) %{_infodir}/speech-dispatcher-cs.info*
206%{_infodir}/speech-dispatcher.info*
207%{_infodir}/ssip.info*
28b37384 208
93ca17ef
JB
209%files libs
210%defattr(644,root,root,755)
211%attr(755,root,root) %{_libdir}/libspeechd.so.*.*.*
212%attr(755,root,root) %ghost %{_libdir}/libspeechd.so.2
213
28b37384 214%files devel
215%defattr(644,root,root,755)
93ca17ef
JB
216%attr(755,root,root) %{_libdir}/libspeechd.so
217%{_libdir}/libspeechd.la
218%{_includedir}/libspeechd.h
28b37384 219
b4140df7 220%if %{with static_libs}
28b37384 221%files static
222%defattr(644,root,root,755)
93ca17ef 223%{_libdir}/libspeechd.a
b4140df7 224%endif
48a0efe4 225
b4140df7 226%files -n python-%{name}
227%defattr(644,root,root,755)
228%dir %{py_sitescriptdir}/speechd
93ca17ef
JB
229%{py_sitescriptdir}/speechd/*.py[co]
230%{py_sitescriptdir}/speechd-*.egg-info
This page took 0.120974 seconds and 4 git commands to generate.