Blame SPECS/espeak-ng.spec

ffb410
Name:           espeak-ng
ffb410
Version:        1.49.2
ffb410
Release:        4%{?dist}
ffb410
Summary:        eSpeak NG Text-to-Speech
ffb410
ffb410
License:        GPLv3+
ffb410
URL:            https://github.com/espeak-ng/espeak-ng
ffb410
Source0:        %{url}/archive/%{version}.tar.gz
ffb410
ffb410
BuildRequires:  gcc make autoconf automake libtool pkgconfig
ffb410
BuildRequires:  rubygem-kramdown
ffb410
BuildRequires:  pcaudiolib-devel
ffb410
ffb410
# Downstream-only so far. I tried two different formats for the man pages,
ffb410
# but both seem unsuitable for upstream at this point, because they would
ffb410
# be problematic on Debian, which seems to be the primary development
ffb410
# platform of espeak-ng. The two formats are:
ffb410
# 1. kramdown - used in the below patch. The problem is that Debian has
ffb410
#    an old version of the kramdown tool, which does not support generating
ffb410
#    man pages
ffb410
# 2. asciidoc - the asciidoc tool on Debian pulls in ~1GB of dependencies,
ffb410
#    which is unacceptable
ffb410
Patch0: 0001-Use-kramdown-in-man-pages.patch
ffb410
ffb410
%description
ffb410
The eSpeak NG (Next Generation) Text-to-Speech program is an open source speech
ffb410
synthesizer that supports over 70 languages. It is based on the eSpeak engine
ffb410
created by Jonathan Duddington. It uses spectral formant synthesis by default
ffb410
which sounds robotic, but can be configured to use Klatt formant synthesis
ffb410
or MBROLA to give it a more natural sound.
ffb410
ffb410
%package devel
ffb410
Summary: Development files for espeak-ng
ffb410
Requires: %{name}%{?_isa} = %{version}-%{release}
ffb410
ffb410
%description devel
ffb410
Development files for eSpeak NG, a software speech synthesizer.
ffb410
ffb410
%package vim
ffb410
Summary: Vim syntax highlighting for espeak-ng data files
ffb410
BuildArch: noarch
ffb410
Requires: %{name} = %{version}-%{release}
ffb410
ffb410
%description vim
ffb410
%{summary}.
ffb410
ffb410
%package doc
ffb410
Summary: Documentation for espeak-ng
ffb410
BuildArch: noarch
ffb410
Requires: %{name} = %{version}-%{release}
ffb410
ffb410
%description doc
ffb410
Documentation for eSpeak NG, a software speech synthesizer.
ffb410
ffb410
%prep
ffb410
%autosetup -p1
ffb410
# Remove unused files to make sure we've got the License tag right
ffb410
rm -rf src/include/compat/endian.h src/compat/getopt.c android/
ffb410
ffb410
%build
ffb410
./autogen.sh
ffb410
%configure
ffb410
make %{?_smp_mflags} src/espeak-ng src/speak-ng
ffb410
make
ffb410
# Force utf8 for docs building
ffb410
LC_ALL=en_US.utf8 make docs
ffb410
ffb410
%install
ffb410
%make_install
ffb410
rm -vf %{buildroot}%{_libdir}/libespeak-ng-test.so*
ffb410
rm -vf %{buildroot}%{_libdir}/*.{a,la}
ffb410
# Remove files conflicting with espeak
ffb410
rm -vf %{buildroot}%{_bindir}/{speak,espeak}
ffb410
rm -vrf %{buildroot}%{_includedir}/espeak
ffb410
# Move Vim files
ffb410
mv %{buildroot}%{_datadir}/vim/addons %{buildroot}%{_datadir}/vim/vimfiles
ffb410
rm -vrf %{buildroot}%{_datadir}/vim/registry
ffb410
ffb410
%check
ffb410
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} src/espeak-ng ...
ffb410
ffb410
%post -p /sbin/ldconfig
ffb410
ffb410
%postun -p /sbin/ldconfig
ffb410
ffb410
%files
ffb410
%defattr(-,root,root)
ffb410
%license COPYING
ffb410
%license COPYING.IEEE
ffb410
%doc README.md
ffb410
%doc CHANGELOG.md
ffb410
%{_bindir}/speak-ng
ffb410
%{_bindir}/espeak-ng
ffb410
%{_libdir}/libespeak-ng.so.*
ffb410
%{_datadir}/espeak-ng-data
ffb410
%{_mandir}/man1/speak-ng.1.gz
ffb410
%{_mandir}/man1/espeak-ng.1.gz
ffb410
ffb410
%files devel
ffb410
%defattr(-,root,root)
ffb410
%{_libdir}/pkgconfig/espeak-ng.pc
ffb410
%{_libdir}/libespeak-ng.so
ffb410
%{_includedir}/espeak-ng
ffb410
ffb410
%files vim
ffb410
%defattr(-,root,root)
ffb410
%{_datadir}/vim/vimfiles/ftdetect/espeakfiletype.vim
ffb410
%{_datadir}/vim/vimfiles/syntax/espeaklist.vim
ffb410
%{_datadir}/vim/vimfiles/syntax/espeakrules.vim
ffb410
ffb410
%files doc
ffb410
%defattr(-,root,root)
ffb410
%doc docs/*.html
ffb410
ffb410
%changelog
ffb410
* Tue Jul 31 2018 Ondřej Lysoněk <olysonek@redhat.com> - 1.49.2-4
ffb410
- Remove some unsed files in %%prep
ffb410
ffb410
* Fri Jul 13 2018 Ondřej Lysoněk <olysonek@redhat.com> - 1.49.2-3
ffb410
- Drop dependency on rubygem-ronn
ffb410
- Resolves: rhbz#1588339
ffb410
ffb410
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.2-2
ffb410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ffb410
ffb410
* Tue Oct 03 2017 Ondřej Lysoněk <olysonek@redhat.com> - 1.49.2-1
ffb410
- New version
ffb410
ffb410
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.1-5
ffb410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ffb410
ffb410
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.1-4
ffb410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ffb410
ffb410
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.1-3
ffb410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ffb410
ffb410
* Tue Jan 24 2017 Ondřej Lysoněk <olysonek@redhat.com> 1.49.1-2
ffb410
- Corrected use of the ISA macro
ffb410
- Included the COPYING.IEEE file
ffb410
ffb410
* Tue Jan 24 2017 Ondřej Lysoněk <olysonek@redhat.com> 1.49.1-1
ffb410
- New version
ffb410
ffb410
* Fri Sep 16 2016 Ondřej Lysoněk <olysonek@redhat.com> 1.49.0-1
ffb410
- Initial package