espeak-ng/espeak-ng.spec

133 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

%define gitcommit %(echo %version | cut -d+ -f2 | cut -d. -f2)
Name: espeak-ng
Version: 1.51.1+20240504git.f57b594
Release: 1mamba
Summary: eSpeak NG is an open source speech synthesizer that supports 108 languages and accents
Group: System/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/espeak-ng/espeak-ng
Source: https://github.com/espeak-ng/espeak-ng.git/master@%{gitcommit}/espeak-ng-%{version}.tar.bz2
# Taken from fork used by piper-phonemized
Patch0: espeak-ng-1.51.1+20240504git.f57b594-add-espeak_TextToPhonemesWithTerminator.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: ruby-ronn-ng
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: espeak
Obsoletes: espeak < 1.50
Provides: espeak-mbrola
Obsoletes: espeak-mbrola < 1.50
%description
eSpeak NG is an open source speech synthesizer that supports 108 languages and accents.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch 0 -p1 -b .add-espeak_TextToPhonemesWithTerminator
./autogen.sh
%build
%configure \
CFLAGS="%{optflags} -fcommon"
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}%{_libdir}/libespeak.la
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/espeak
%{_bindir}/espeak-ng
%{_bindir}/speak
%{_bindir}/speak-ng
%dir %{_datadir}/espeak-ng-data
%{_datadir}/espeak-ng-data/*_dict
%{_datadir}/espeak-ng-data/intonations
%dir %{_datadir}/espeak-ng-data/lang
%{_datadir}/espeak-ng-data/lang/*
%dir %{_datadir}/espeak-ng-data/mbrola_ph
%{_datadir}/espeak-ng-data/mbrola_ph/*
%{_datadir}/espeak-ng-data/phondata
%{_datadir}/espeak-ng-data/phondata-manifest
%{_datadir}/espeak-ng-data/phonindex
%{_datadir}/espeak-ng-data/phontab
%dir %{_datadir}/espeak-ng-data/voices
%dir %{_datadir}/espeak-ng-data/voices/!v
%{_datadir}/espeak-ng-data/voices/!v/*
%dir %{_datadir}/espeak-ng-data/voices/mb
%{_datadir}/espeak-ng-data/voices/mb/*
%{_datadir}/vim/addons/ftdetect/espeakfiletype.vim
%{_datadir}/vim/addons/syntax/espeaklist.vim
%{_datadir}/vim/addons/syntax/espeakrules.vim
%{_datadir}/vim/registry/espeak.yaml
%{_mandir}/man1/espeak-ng.1*
%{_mandir}/man1/speak-ng.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libespeak-ng.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/espeak-ng
%{_includedir}/espeak-ng/*.h
%{_includedir}/espeak/speak_lib.h
%{_libdir}/libespeak-ng.a
%{_libdir}/libespeak-ng.so
%{_libdir}/pkgconfig/espeak-ng.pc
%doc README.md
%changelog
* Fri Jun 07 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.51.1+20240504git.f57b594-1mamba
- update to 1.51.1+20240504git.f57b594
* Wed Jun 22 2022 Automatic Build System <autodist@mambasoft.it> 1.51.1-1mamba
- automatic version update by autodist
* Sun Apr 03 2022 Automatic Build System <autodist@mambasoft.it> 1.51-1mamba
- automatic version update by autodist
* Fri May 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.50-2mamba
- obsolete espeak and espeak-mbrola
* Sun Dec 01 2019 Automatic Build System <autodist@mambasoft.it> 1.50-1mamba
- automatic version update by autodist
* Sat Nov 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.49.2-1mamba
- package created using the webbuild interface