fix for missing version in headers [release 0.9.0-2mamba;Tue Mar 19 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 18:03:03 +01:00
parent de717d7dae
commit 3c83857d04

View File

@ -1,13 +1,14 @@
Name: speech-dispatcher Name: speech-dispatcher
Version: 0.8.8 Version: 0.9.0
Release: 3mamba Release: 2mamba
Summary: A high-level device independent layer for speech synthesis Summary: A high-level device independent layer for speech synthesis
Group: System/Multimedia Group: System/Multimedia
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.freebsoft.org/speechd URL: http://www.freebsoft.org/speechd
Source: http://www.freebsoft.org/pub/projects/speechd/speech-dispatcher-%{version}.tar.gz Source: https://github.com/brailcom/speechd.git/%{version}/speechd-%{version}.tar.bz2
#Source: http://www.freebsoft.org/pub/projects/speechd/speech-dispatcher-%{version}.tar.gz
Source1: speech-dispatcher.init Source1: speech-dispatcher.init
Patch0: %{name}-0.7.1-alsa_set_default.patch Patch0: %{name}-0.7.1-alsa_set_default.patch
Patch1: %{name}-0.8-enable_espeak_mbrola.patch Patch1: %{name}-0.8-enable_espeak_mbrola.patch
@ -22,14 +23,17 @@ BuildRequires: libaudio-devel
BuildRequires: libdotconf-devel BuildRequires: libdotconf-devel
BuildRequires: libespeak-devel BuildRequires: libespeak-devel
BuildRequires: libflac-devel BuildRequires: libflac-devel
BuildRequires: libgcc
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libltdl-devel BuildRequires: libltdl-devel
BuildRequires: libogg-devel BuildRequires: libogg-devel
BuildRequires: libpcre-devel BuildRequires: libpcre-devel
BuildRequires: libpulseaudio-devel BuildRequires: libpulseaudio-devel
BuildRequires: libsndfile-devel BuildRequires: libsndfile-devel
BuildRequires: libstdc++6-devel
BuildRequires: libvorbis-devel BuildRequires: libvorbis-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: python-xdg-py36
Requires(post):%{__install_info} Requires(post):%{__install_info}
Obsoletes: opentts Obsoletes: opentts
Provides: python-speech-dispatcher Provides: python-speech-dispatcher
@ -37,6 +41,7 @@ Requires: espeak
Requires: espeak-mbrola Requires: espeak-mbrola
Obsoletes: python-speech-dispatcher Obsoletes: python-speech-dispatcher
Requires: libspeechd = %{?epoch:%epoch:}%{version}-%{release} Requires: libspeechd = %{?epoch:%epoch:}%{version}-%{release}
Requires: python-speechd = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
# *** IBM TTS ECI library missing. Compiling without IBM TTS support! See INSTALL. # *** IBM TTS ECI library missing. Compiling without IBM TTS support! See INSTALL.
@ -58,6 +63,7 @@ The application neither needs to talk to the devices directly nor to handle conc
%package -n libspeechd %package -n libspeechd
Group: Development/Libraries Group: Development/Libraries
Summary: Shared libraries provided by %{name} Summary: Shared libraries provided by %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n libspeechd %description -n libspeechd
The goal of Speech Dispatcher project is to provide a high-level device independent layer for speech synthesis through a simple, stable and well documented interface. The goal of Speech Dispatcher project is to provide a high-level device independent layer for speech synthesis through a simple, stable and well documented interface.
@ -76,22 +82,33 @@ Obsoletes: opentts-devel
The goal of Speech Dispatcher project is to provide a high-level device independent layer for speech synthesis through a simple, stable and well documented interface. The goal of Speech Dispatcher project is to provide a high-level device independent layer for speech synthesis through a simple, stable and well documented interface.
This package contains static libraries and header files needed for development. This package contains static libraries and header files needed for development.
%package -n python-%{name} %package -n python-speechd
Summary: Python wrapper for %{name} Summary: Python wrapper for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: python-xdg-py36
%description -n python-%{name} %description -n python-speechd
Contains Python language bindings for developing Python applications that use %{name}. Contains Python language bindings for developing Python applications that use %{name}.
%prep %prep
%setup -q %setup -q -n speechd-%{version}
%patch0 -p1 #%patch0 -p1
%patch1 -p1 #%patch1 -p1
%patch2 -p1 %patch2 -p1
sed -i "s|env python3$|env python3.6|" src/api/python/speechd_config/spd-conf
cat > .tarball-version << _EOF
%{version}
_EOF
%build %build
%configure autoreconf -f -i
%configure \
PYTHON=%{__python36}
%make %make
%install %install
@ -99,10 +116,11 @@ Contains Python language bindings for developing Python applications that use %{
%makeinstall %makeinstall
install -d -m0755 \ install -d -m0755 \
%{buildroot}/var/log/speech-dispatcher \ %{buildroot}/var/log/speech-dispatcher
%{buildroot}/var/run/speech-dispatcher
install -D -m0755 %{S:1} %{buildroot}%{_initrddir}/speech-dispatcherd #install -D -m0755 %{S:1} %{buildroot}%{_initrddir}/speech-dispatcherd
cp src/modules/lib*.so %{buildroot}%{_libdir}/speech-dispatcher/
%find_lang %{name} %find_lang %{name}
@ -111,6 +129,7 @@ install -D -m0755 %{S:1} %{buildroot}%{_initrddir}/speech-dispatcherd
%post %post
/sbin/ldconfig /sbin/ldconfig
%systemd_post speech_dispatcherd
#if [ $1 -eq 1 ]; then #if [ $1 -eq 1 ]; then
# /sbin/chkconfig --add speech-dispatcherd # /sbin/chkconfig --add speech-dispatcherd
# /sbin/service speech-dispatcherd start >/dev/null 2>&1 # /sbin/service speech-dispatcherd start >/dev/null 2>&1
@ -124,6 +143,7 @@ install -D -m0755 %{S:1} %{buildroot}%{_initrddir}/speech-dispatcherd
exit 0 exit 0
%preun %preun
%systemd_preun speech_dispatcherd
#if [ $1 -eq 1 ]; then #if [ $1 -eq 1 ]; then
# /sbin/service speech-dispatcherd stop >/dev/null 2>&1 # /sbin/service speech-dispatcherd stop >/dev/null 2>&1
# /sbin/chkconfig --del speech-dispatcherd # /sbin/chkconfig --del speech-dispatcherd
@ -132,20 +152,26 @@ exit 0
%uninstall_info speech-dispatcher-cs.info %uninstall_info speech-dispatcher-cs.info
%uninstall_info speech-dispatcher.info %uninstall_info speech-dispatcher.info
%uninstall_info ssip.info %uninstall_info ssip.info
:
exit 0
%postun %postun
/sbin/ldconfig /sbin/ldconfig
exit 0 %systemd_postun speech_dispatcherd
:
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_initrddir}/speech-dispatcherd %dir %{_sysconfdir}/speech-dispatcher/
%dir %{_sysconfdir}/speech-dispatcher/clients
%dir %{_sysconfdir}/speech-dispatcher/modules
%config(noreplace) %{_sysconfdir}/speech-dispatcher/speechd.conf
%config(noreplace) %{_sysconfdir}/speech-dispatcher/clients/*.conf
%config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/*.conf
%{_bindir}/spd-conf %{_bindir}/spd-conf
%{_bindir}/spd-say %{_bindir}/spd-say
%{_bindir}/spdsend %{_bindir}/spdsend
%{_bindir}/speech-dispatcher %{_bindir}/speech-dispatcher
%{_unitdir}/speech-dispatcherd.service
%dir %{_datadir}/speech-dispatcher %dir %{_datadir}/speech-dispatcher
%dir %{_datadir}/speech-dispatcher/conf %dir %{_datadir}/speech-dispatcher/conf
%{_datadir}/speech-dispatcher/conf/speechd.conf %{_datadir}/speech-dispatcher/conf/speechd.conf
@ -155,33 +181,32 @@ exit 0
%{_datadir}/speech-dispatcher/conf/desktop/speechd.desktop %{_datadir}/speech-dispatcher/conf/desktop/speechd.desktop
%dir %{_datadir}/speech-dispatcher/conf/modules %dir %{_datadir}/speech-dispatcher/conf/modules
%{_datadir}/speech-dispatcher/conf/modules/*.conf %{_datadir}/speech-dispatcher/conf/modules/*.conf
%dir %{_datadir}/speech-dispatcher/locale
%{_datadir}/speech-dispatcher/locale/*
%{_datadir}/sounds/speech-dispatcher/*.wav %{_datadir}/sounds/speech-dispatcher/*.wav
%dir /var/log/speech-dispatcher %dir /var/log/speech-dispatcher
%dir /var/run/speech-dispatcher %{_mandir}/man1/spd-conf.1*
%{_mandir}/man1/spd-say.1*
%{_mandir}/man1/speech-dispatcher.1*
%{_infodir}/spd-say.info.* %{_infodir}/spd-say.info.*
%{_infodir}/speech-dispatcher-cs.info.* %{_infodir}/speech-dispatcher-cs.info.*
%{_infodir}/speech-dispatcher.info.* %{_infodir}/speech-dispatcher.info.*
%{_infodir}/ssip.info.* %{_infodir}/ssip.info.*
%{python3_sitearch}/speechd* %doc COPYING.GPL-2 COPYING.GPL-3
%files -n libspeechd %files -n libspeechd
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_sysconfdir}/speech-dispatcher/
%dir %{_sysconfdir}/speech-dispatcher/clients
%dir %{_sysconfdir}/speech-dispatcher/modules
%config(noreplace) %{_sysconfdir}/speech-dispatcher/speechd.conf
%config(noreplace) %{_sysconfdir}/speech-dispatcher/clients/*.conf
%config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/*.conf
%{_libdir}/libspeechd.so.* %{_libdir}/libspeechd.so.*
%dir %{_libdir}/speech-dispatcher-modules %dir %{_libdir}/speech-dispatcher-modules
%{_libdir}/speech-dispatcher-modules/sd_* %{_libdir}/speech-dispatcher-modules/sd_*
%dir %{_libdir}/speech-dispatcher %dir %{_libdir}/speech-dispatcher
%{_libdir}/speech-dispatcher/lib*.so
%{_libdir}/speech-dispatcher/spd_alsa.so %{_libdir}/speech-dispatcher/spd_alsa.so
%{_libdir}/speech-dispatcher/spd_libao.so %{_libdir}/speech-dispatcher/spd_libao.so
%{_libdir}/speech-dispatcher/spd_nas.so %{_libdir}/speech-dispatcher/spd_nas.so
%{_libdir}/speech-dispatcher/spd_oss.so %{_libdir}/speech-dispatcher/spd_oss.so
%{_libdir}/speech-dispatcher/spd_pulse.so %{_libdir}/speech-dispatcher/spd_pulse.so
%doc AUTHORS COPYING %doc AUTHORS COPYING.LGPL
%files -n libspeechd-devel %files -n libspeechd-devel
%defattr(-,root,root) %defattr(-,root,root)
@ -195,10 +220,17 @@ exit 0
%{_libdir}/pkgconfig/speech-dispatcher.pc %{_libdir}/pkgconfig/speech-dispatcher.pc
%doc NEWS BUGS TODO %doc NEWS BUGS TODO
#%files -n python-%{name} %files -n python-speechd
#%defattr(-,root,root) %defattr(-,root,root)
%{python36_sitearch}/speechd*
%changelog %changelog
* Tue Mar 19 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-2mamba
- fix for missing version in headers
* Sun Mar 17 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-1mamba
- update to 0.9.0
* Sun Dec 03 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.8-3mamba * Sun Dec 03 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.8-3mamba
- libspeechd-devel: provide and obsolete speech-dispatcher-devel - libspeechd-devel: provide and obsolete speech-dispatcher-devel