代码拉取完成,页面将自动刷新
Name: speech-dispatcher
Version: 0.12.1
Release: 1
Summary: Common high-level interface to speech synthesis
License: GPL-2.0-or-later and LGPL-2.1-only or LGPL-2.0-only
URL: https://devel.freebsoft.org/speechd
Source0: https://github.com/brailcom/speechd/releases/download/%{version}/speech-dispatcher-%{version}.tar.gz
Source1: http://www.freebsoft.org/pub/projects/sound-icons/sound-icons-0.1.tar.gz
Patch0001: 0001-Remove-pyxdg-dependency.patch
BuildRequires: gcc make gettext
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(ao)
BuildRequires: pkgconfig(dotconf) >= 1.3
BuildRequires: pkgconfig(espeak-ng)
BuildRequires: pkgconfig(glib-2.0) >= 2.36
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(sndfile) >= 1.0.2
BuildRequires: flite-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: /usr/bin/desktop-file-validate
Provides: speech-dispatcher-utils = %{version}-%{release}
Obsoletes: speech-dispatcher-utils < %{version}-%{release}
Requires: python3-speechd = %{version}-%{release} speech-dispatcher-espeak-ng
%{?systemd_requires}
%description
Speech Dispatcher project provides a high-level device independent layer for
access to speech synthesis through a simple, stable and well documented interface.
%package devel
Summary: Development files for speech-dispatcher
License: GPL-2.0-or-later
Requires: speech-dispatcher = %{version}-%{release}
%description devel
The package contains libraries and header files for developing applications that
use speech-dispatcher.
%package help
Summary: Documentation for speech-dispatcher
License: GPL-2.0-or-later
Requires: speech-dispatcher = %{version}-%{release}
Provides: speech-dispatcher-doc = %{version}-%{release}
Obsoletes: speech-dispatcher-doc < %{version}-%{release}
BuildArch: noarch
%description help
Documentation for speech-dispatcher
%package espeak-ng
Summary: Speech Dispatcher espeak-ng module
Requires: speech-dispatcher = %{version}-%{release}
Obsoletes: speech-dispatcher-espeak < 0.8.8-5
%description espeak-ng
This package contains the espeak-ng output module for Speech Dispatcher.
%package festival
Summary: Speech Dispatcher festival module
Requires: speech-dispatcher = %{version}-%{release} festival-freebsoft-utils
Obsoletes: speech-dispatcher < 0.8.1-2
%description festival
This package contains the festival output module for Speech Dispatcher.
%package flite
Summary: Speech Dispatcher flite module
Requires: speech-dispatcher = %{version}-%{release}
Obsoletes: speech-dispatcher < 0.8.1-2
%description flite
This package contains the flite output module for Speech Dispatcher.
%package -n python3-speechd
Summary: Python v3 Client API for speech-dispatcher
License: GPL-2.0-or-later
Requires: speech-dispatcher = %{version}-%{release}
%description -n python3-speechd
Python v3 module for speech-dispatcher
%prep
%autosetup -n speech-dispatcher-%{version} -p1
tar xf %{SOURCE1}
%build
%configure \
--disable-static \
--with-pipewire \
--with-alsa \
--with-pulse \
--with-libao \
--without-oss \
--without-nas \
--with-flite \
--without-espeak \
--with-espeak-ng \
--sysconfdir=%{_sysconfdir} \
--with-default-audio-method=pulse \
--with-kali=no \
--with-baratinoo=no \
--with-voxin=no \
--with-ibmtts=no \
--with-module-bindir=%{_libdir}/speech-dispatcher-modules/
%make_build
%install
%make_install
install -d %{buildroot}%{_unitdir}
install -p -m 0644 sound-icons-0.1/* %{buildroot}%{_datadir}/sounds/speech-dispatcher/
%find_lang speech-dispatcher
%delete_la
install -d %{buildroot}%{_sysconfdir}/speech-dispatcher/clients
install -d %{buildroot}%{_sysconfdir}/speech-dispatcher/modules
mv %{buildroot}%{_datadir}/speech-dispatcher/conf/speechd.conf %{buildroot}%{_sysconfdir}/speech-dispatcher/
mv %{buildroot}%{_datadir}/speech-dispatcher/conf/clients/* %{buildroot}%{_sysconfdir}/speech-dispatcher/clients
mv %{buildroot}%{_datadir}/speech-dispatcher/conf/modules/* %{buildroot}%{_sysconfdir}/speech-dispatcher/modules
install -d -m 0700 %{buildroot}%{_localstatedir}/log/speech-dispatcher/
sed 's/^# AudioOutputMethod "pipewire"/AudioOutputMethod "pulse"/' %{buildroot}%{_sysconfdir}/speech-dispatcher/speechd.conf
%check
desktop-file-validate %{buildroot}/%{_datadir}/speech-dispatcher/conf/desktop/speechd.desktop
%pre espeak-ng
espeak_ng_conf=%{_sysconfdir}/speech-dispatcher/modules/espeak-ng.conf
if [ 0$1 -eq 1 -a ! -f $espeak_ng_conf ]; then
espeak_conf=%{_sysconfdir}/speech-dispatcher/modules/espeak.conf
if [ -f $espeak_conf ]; then
cp $espeak_conf $espeak_ng_conf || :
fi
speechd_conf=%{_sysconfdir}/speech-dispatcher/speechd.conf
if [ -f $speechd_conf ]; then
sed -i.bak-espeak -r \
-e 's/^(\s*AddModule\s+)("?)espeak\2\s+("?)sd_espeak\3\s+("?)espeak.conf\4(\s*(#.*)?)$/\1"espeak-ng" "sd_espeak-ng" "espeak-ng.conf"\5/' \
-e 's/^(\s*AddModule\s+("?)[^"]*\2\s+)("?)sd_espeak\3(\s+("?)[^"]*\5(\s*(#.*)?))$/\1"sd_espeak-ng"\4/' \
-e 's/^(\s*DefaultModule\s+)("?)espeak\2(\s*(#.*)?)$/\1espeak-ng\3/' \
-e 's/^(\s*LanguageDefaultModule\s+("?)[^"]*\2\s+)("?)espeak\3(\s*(#.*)?)$/\1"espeak-ng"\4/' \
$speechd_conf || :
fi
fi
%post
%systemd_post speech-dispatcherd.service
%postun
%systemd_postun_with_restart speech-dispatcherd.service
%preun
%systemd_preun speech-dispatcherd.service
%files -f speech-dispatcher.lang
%license COPYING.LGPL
%doc NEWS README.md
%dir %{_sysconfdir}/speech-dispatcher/{clients,modules}
%config(noreplace) %{_sysconfdir}/speech-dispatcher/speechd.conf
%config(noreplace) %{_sysconfdir}/speech-dispatcher/clients/*.conf
%config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/*.conf
%exclude %{_sysconfdir}/speech-dispatcher/modules/{espeak*.conf,festival.conf,flite.conf}
%{_bindir}/speech-dispatcher
%{_datadir}/speech-dispatcher
%{_libdir}/libspeechd.so.2
%{_libdir}/libspeechd.so.2.*
%{_libdir}/libspeechd_module.so.*
%{_libdir}/speech-dispatcher-modules/sd_cicero
%{_libdir}/speech-dispatcher-modules/sd_dummy
%{_libdir}/speech-dispatcher-modules/sd_generic
%{_libdir}/speech-dispatcher-modules/sd_openjtalk
%{_libdir}/speech-dispatcher/*.so
%{_datadir}/sounds/speech-dispatcher
%dir %attr(0700, root, root) %{_localstatedir}/log/speech-dispatcher/
%{_unitdir}/speech-dispatcherd.service
%{_bindir}/{spd-conf,spd-say,spdsend}
%{_userunitdir}/speech-dispatcher.service
%{_userunitdir}/speech-dispatcher.socket
%files devel
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%files help
%{_infodir}/*
%files espeak-ng
%config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/espeak-ng.conf
%{_libdir}/speech-dispatcher-modules/sd_espeak-ng
%{_libdir}/speech-dispatcher-modules/sd_espeak-ng-mbrola
%files festival
%config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/festival.conf
%{_libdir}/speech-dispatcher-modules/sd_festival
%files flite
%config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/flite.conf
%{_libdir}/speech-dispatcher-modules/sd_flite
%files -n python3-speechd
%{python3_sitearch}/speechd*
%changelog
* Thu May 08 2025 Funda Wang <fundawang@yeah.net> - 0.12.1-1
- update to 0.12.1
* Fri Feb 28 2025 Funda Wang <fundawang@yeah.net> - 0.12.0-1
- update to 0.12.0
* Tue Aug 13 2024 yaoxin <yao_xin001@hoperun.com> - 0.11.5-2
- Remove rpath
* Thu Sep 28 2023 wulei <wu_lei@hoperun.com> - 0.11.5-1
- Update to 0.11.5
* Tue Jul 25 2023 chenchen <chen_aka_jan@163.com> - 0.11.4-1
- Upgrade to version 0.11.4
* Mon May 23 2022 wulei <wulei80@h-partners.com> - 0.11.1-1
- Update package
* Sat Jul 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.8.8-12
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Fri Jul 30 2021 yaokai <yaokai13@huawei.com> - 0.8.8-11
- Fix global variable gcc10
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 0.8.8-10
- Completing build dependencies to fix gcc compiler missing error
* Sat Nov 30 2019 Ling Yang <lingyang2@huawei.com> - 0.8.8-9
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。