SPECS: speech-dispatcher.spec - separated -libs, added ghost soname symlink...

qboosh qboosh at pld-linux.org
Tue Jun 17 21:13:38 CEST 2008


Author: qboosh                       Date: Tue Jun 17 19:13:38 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separated -libs, added ghost soname symlink
- added info patch to unify direntries
- cleanup

---- Files affected:
SPECS:
   speech-dispatcher.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/speech-dispatcher.spec
diff -u SPECS/speech-dispatcher.spec:1.12 SPECS/speech-dispatcher.spec:1.13
--- SPECS/speech-dispatcher.spec:1.12	Tue Jun 17 19:54:21 2008
+++ SPECS/speech-dispatcher.spec	Tue Jun 17 21:13:32 2008
@@ -2,11 +2,11 @@
 #
 # Conditional build:
 %bcond_with	ibmtts		# commercial, proprietary IBM TTS synthesizer support
-%bcond_without	flite		# flite support
-%bcond_without	espeak		# espeak support
-%bcond_without	nas		# NAS support
-%bcond_without	alsa		# ALSA supprot
-%bcond_without	pulse		# pulse support
+%bcond_without	flite		# flite synthetizer support
+%bcond_without	espeak		# espeak synthetizer support
+%bcond_without	nas		# NAS audio output support
+%bcond_without	alsa		# ALSA audio output supprot
+%bcond_without	pulse		# pulse audio output support
 %bcond_without	static_libs	# don't build static libraries
 #
 Summary:	A device independent layer for speech synthesis
@@ -21,20 +21,32 @@
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Patch0:		%{name}-python-install.patch
+Patch1:		%{name}-info.patch
 URL:		http://www.freebsoft.org/
+%{?with_alsa:Buildrequires:	alsa-lib-devel}
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	dotconf-devel
-Buildrequires:	libatomic_ops
-BuildRequires:	libtool
-BuildRequires:	rpmbuild(macros) >= 1.228
-%{?with_alsa:Buildrequires:	alsa-lib-devel}
+%{?with_espeak:Buildrequires:	espeak-devel}
 %{?with_flite:Buildrequires:	flite-devel}
 %{?with_ibmtts:Buildrequires:	ibmtts-devel}
-%{?with_espeak:Buildrequires:	espeak-devel}
+Buildrequires:	libatomic_ops
+BuildRequires:	libtool
 %{?with_nas:Buildrequires:	nas-devel}
 %{?with_pulse:Buildrequires:	pulseaudio-devel}
+BuildRequires:	python-devel >= 1:2.5
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.228
+BuildRequires:	texinfo
+Requires(pre):	/bin/id
+Requires(pre):	/usr/bin/getgid
+Requires(pre):	/usr/sbin/groupadd
+Requires(pre):	/usr/sbin/useradd
 Requires(post,preun):	/sbin/chkconfig
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	rc-scripts
 Provides:	group(%{name})
 Provides:	user(%{name})
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -47,11 +59,24 @@
 Speech Dispatcher zapewnia niezależną od urządzenia warstwę
 obsługującą syntezę mowy.
 
+%package libs
+Summary:	Speech Dispatcher client library
+Summary(pl.UTF-8):	Biblioteka kliencka Speech Dispatchera
+Group:		Libraries
+
+%description libs
+Speech Dispatcher provides a device independent layer for speech
+synthesis. This package contains client library.
+
+%description libs -l pl.UTF-8
+Speech Dispatcher zapewnia niezależną od urządzenia warstwę
+obsługującą syntezę mowy. Ten pakiet zawiera biblitotekę kliencką.
+
 %package devel
 Summary:	Header files for speech-dispatcher library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki speech-dispatcher
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-libs = %{version}-%{release}
 
 %description devel
 Header files for speech-dispatcher library.
@@ -90,6 +115,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -119,6 +145,11 @@
 install -D %{SOURCE1}	$RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install -D %{SOURCE2}	$RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/speechd
+%py_postclean
+# library for engines output, API not included in -devel
+rm $RPM_BUILD_ROOT%{_libdir}/speech-dispatcher/libsdaudio.{so,la,a}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -127,7 +158,6 @@
 %useradd -u 224 -g 224 -G audio -d /usr/share/empty -s /bin/false -c "%{name} user" %{name}
 
 %post
-/sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/chkconfig --add %{name}
 %service %{name} restart
@@ -139,24 +169,23 @@
 fi
 
 %postun
-/sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 if [ "$1" = "0" ]; then
 	%userremove %{name}
 	%groupremove %{name}
 fi
 
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
 %dir %{_libdir}/speech-dispatcher
-%attr(755,root,root) %{_libdir}/speech-dispatcher/lib*.so.*.*.*
-# XXX: ? below
-%attr(755,root,root) %{_libdir}/speech-dispatcher/lib*.so.[^.]
+%attr(755,root,root) %{_libdir}/speech-dispatcher/libsdaudio.so.*
 %dir %{_sysconfdir}/speech-dispatcher
 %dir %{_sysconfdir}/speech-dispatcher/clients
 %dir %{_sysconfdir}/speech-dispatcher/modules
@@ -172,25 +201,28 @@
 %{_infodir}/speech-dispatcher.info*
 %{_infodir}/ssip.info*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libspeechd.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libspeechd.so.2
+
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_libdir}/speech-dispatcher/lib*.so
-%{_libdir}/speech-dispatcher/lib*.la
-%{_includedir}/*
+%attr(755,root,root) %{_libdir}/libspeechd.so
+%{_libdir}/libspeechd.la
+%{_includedir}/libspeechd.h
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
-%{_libdir}/speech-dispatcher/lib*.a
+%{_libdir}/libspeechd.a
 %endif
 
 %files -n python-%{name}
 %defattr(644,root,root,755)
 %dir %{py_sitescriptdir}/speechd
-%{py_sitescriptdir}/speechd/*.py[c]
+%{py_sitescriptdir}/speechd/*.py[co]
+%{py_sitescriptdir}/speechd-*.egg-info
 
 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -198,6 +230,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2008/06/17 19:13:32  qboosh
+- separated -libs, added ghost soname symlink
+- added info patch to unify direntries
+- cleanup
+
 Revision 1.12  2008/06/17 17:54:21  qboosh
 - pl, typos
 - Group changed to Applications/Sound
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/speech-dispatcher.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list