espeak-ng/espeak-ng.spec

135 lines
4.0 KiB
RPMSpec
Raw Normal View History

2017-01-31 18:12:25 +00:00
Name: espeak-ng
2017-10-03 16:31:13 +00:00
Version: 1.49.2
2018-11-19 21:44:39 +00:00
Release: 5%{?dist}
2017-01-31 18:12:25 +00:00
Summary: eSpeak NG Text-to-Speech
License: GPLv3+
URL: https://github.com/espeak-ng/espeak-ng
Source0: %{url}/archive/%{version}.tar.gz
BuildRequires: gcc make autoconf automake libtool pkgconfig
BuildRequires: rubygem-ronn rubygem-kramdown
BuildRequires: pcaudiolib-devel
%description
The eSpeak NG (Next Generation) Text-to-Speech program is an open source speech
synthesizer that supports over 70 languages. It is based on the eSpeak engine
created by Jonathan Duddington. It uses spectral formant synthesis by default
which sounds robotic, but can be configured to use Klatt formant synthesis
or MBROLA to give it a more natural sound.
%package devel
Summary: Development files for espeak-ng
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for eSpeak NG, a software speech synthesizer.
%package vim
Summary: Vim syntax highlighting for espeak-ng data files
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description vim
%{summary}.
%package doc
Summary: Documentation for espeak-ng
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description doc
Documentation for eSpeak NG, a software speech synthesizer.
%prep
%autosetup
2018-07-19 14:44:20 +00:00
# Remove unused files to make sure we've got the License tag right
rm -rf src/include/compat/endian.h src/compat/getopt.c android/
2017-01-31 18:12:25 +00:00
%build
./autogen.sh
%configure
make %{?_smp_mflags} src/espeak-ng src/speak-ng
make
# Force utf8 for docs building
2018-11-19 21:44:39 +00:00
LC_ALL=C.UTF-8 make docs
2017-01-31 18:12:25 +00:00
%install
%make_install
2017-10-03 16:31:13 +00:00
rm -vf %{buildroot}%{_libdir}/libespeak-ng-test.so*
2017-01-31 18:12:25 +00:00
rm -vf %{buildroot}%{_libdir}/*.{a,la}
# Remove files conflicting with espeak
rm -vf %{buildroot}%{_bindir}/{speak,espeak}
rm -vrf %{buildroot}%{_includedir}/espeak
# Move Vim files
mv %{buildroot}%{_datadir}/vim/addons %{buildroot}%{_datadir}/vim/vimfiles
rm -vrf %{buildroot}%{_datadir}/vim/registry
%check
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} src/espeak-ng ...
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%license COPYING.IEEE
%doc README.md
%doc CHANGELOG.md
%{_bindir}/speak-ng
%{_bindir}/espeak-ng
%{_libdir}/libespeak-ng.so.*
%{_datadir}/espeak-ng-data
%{_mandir}/man1/speak-ng.1.gz
%{_mandir}/man1/espeak-ng.1.gz
%files devel
%{_libdir}/pkgconfig/espeak-ng.pc
%{_libdir}/libespeak-ng.so
%{_includedir}/espeak-ng
%files vim
%{_datadir}/vim/vimfiles/ftdetect/espeakfiletype.vim
%{_datadir}/vim/vimfiles/syntax/espeaklist.vim
%{_datadir}/vim/vimfiles/syntax/espeakrules.vim
%files doc
%doc docs/*.html
%changelog
2018-11-19 21:44:39 +00:00
* Mon Nov 19 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.49.2-5
- Use C.UTF-8 locale
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
2018-07-19 14:44:20 +00:00
* Thu Jul 19 2018 Ondřej Lysoněk <olysonek@redhat.com> - 1.49.2-4
2018-07-31 09:09:45 +00:00
- Remove some unsed files in %%prep
2018-07-19 14:44:20 +00:00
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-10-03 16:31:13 +00:00
* Tue Oct 03 2017 Ondřej Lysoněk <olysonek@redhat.com> - 1.49.2-1
- New version
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-31 18:12:25 +00:00
* Tue Jan 24 2017 Ondřej Lysoněk <olysonek@redhat.com> 1.49.1-2
- Corrected use of the ISA macro
- Included the COPYING.IEEE file
* Tue Jan 24 2017 Ondřej Lysoněk <olysonek@redhat.com> 1.49.1-1
- New version
* Fri Sep 16 2016 Ondřej Lysoněk <olysonek@redhat.com> 1.49.0-1
- Initial package