%global commit cda9907fbd8225b894a73f3f0b90db9326c73d8b %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapdate 20260126 %global debug_package %{nil} Name: RHVoice Version: 1.16.5^git%{snapdate}.%{shortcommit} Release: 2%{?dist} Summary: Free and open-source speech synthesizer License: LGPLv2+ and GPLv3+ and CC-BY-SA-4.0 URL: https://github.com/RHVoice/RHVoice Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: scons BuildRequires: pkg-config BuildRequires: pulseaudio-libs-devel BuildRequires: speech-dispatcher-devel Requires: speech-dispatcher %description RHVoice is a free and open-source multilingual speech synthesizer. This package includes all supported languages and voices, with the speech-dispatcher module for integration with screen readers such as Orca. %package devel Summary: Development files for RHVoice Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header files for developing applications that use RHVoice. %prep %setup -q -n %{name} %build scons \ prefix=%{_prefix} \ libdir=%{_libdir} \ sysconfdir=%{_sysconfdir} \ -j%{_smp_build_ncpus} %install scons \ prefix=%{_prefix} \ libdir=%{_libdir} \ sysconfdir=%{_sysconfdir} \ DESTDIR=%{buildroot} \ install # Install speech-dispatcher module config (upstream doesn't ship one) install -d %{buildroot}%{_sysconfdir}/speech-dispatcher/modules cat > %{buildroot}%{_sysconfdir}/speech-dispatcher/modules/rhvoice.conf << 'EOF' # RHVoice module configuration for speech-dispatcher # Debugging (0 = off, 1 = on) Debug 0 EOF # Run ldconfig scriptlets %ldconfig_scriptlets # Enable the RHVoice module in speech-dispatcher config %post if [ -f %{_sysconfdir}/speech-dispatcher/speechd.conf ]; then sed -i 's/^#\(AddModule "rhvoice".*\)/\1/' %{_sysconfdir}/speech-dispatcher/speechd.conf fi # Disable the RHVoice module on uninstall %postun if [ "$1" -eq 0 ] && [ -f %{_sysconfdir}/speech-dispatcher/speechd.conf ]; then sed -i 's/^\(AddModule "rhvoice".*\)/#\1/' %{_sysconfdir}/speech-dispatcher/speechd.conf fi %files %license LICENSE.md %{_bindir}/RHVoice-test %{_libdir}/libRHVoice.so.5* %{_libdir}/libRHVoice_core.so.10* %{_libdir}/libRHVoice_audio.so.2* %{_libdir}/speech-dispatcher-modules/sd_rhvoice %{_datadir}/RHVoice/ %dir %{_sysconfdir}/RHVoice %config(noreplace) %{_sysconfdir}/RHVoice/RHVoice.conf %config(noreplace) %{_sysconfdir}/speech-dispatcher/modules/rhvoice.conf %files devel %{_includedir}/RHVoice.h %{_includedir}/RHVoice_common.h %{_libdir}/libRHVoice.so %{_libdir}/libRHVoice_core.so %{_libdir}/libRHVoice_audio.so %changelog * Thu Feb 12 2026 Harley Richardson - 1.16.5^git20260126.cda9907-2 - Ship speech-dispatcher module config (rhvoice.conf) - Enable AddModule in speechd.conf via post scriptlet - Comment out AddModule on uninstall via postun scriptlet - Fixes RHVoice not being discovered by speech-dispatcher on stock configs * Wed Feb 11 2026 Harley Richardson - 1.16.5^git20260126.cda9907-1 - Initial RPM package built from git snapshot - 41 commits past 1.16.5 release - Fixes compilation with GCC 15 (std::binary_function removal) - English language with Alan, Bdl, Clb, Slt voices - Speech-dispatcher module included