Blame SPECS/espeak-ng.spec

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