41092b
Name:           flite
41092b
Version:        1.3
41092b
Release:        31%{?dist}
41092b
Summary:        Small, fast speech synthesis engine (text-to-speech)
41092b
License:        MIT
41092b
URL:            http://www.speech.cs.cmu.edu/flite/
41092b
41092b
Source0:        http://www.speech.cs.cmu.edu/flite/packed/%{name}-%{version}/%{name}-%{version}-release.tar.gz
41092b
Source1:        README-ALSA.txt
41092b
Patch0:         flite-1.3-sharedlibs.patch
41092b
Patch1:         flite-1.3-doc_texinfo.patch
41092b
Patch2:         flite-1.3-alsa_support.patch
41092b
Patch3:         flite-1.3-implicit_dso_linking.patch
41092b
Patch4:         0001-auserver.c-Only-write-audio-data-to-a-file-in-debug-.patch
41092b
Patch5:         flite-0001-Fixed-texi2html-ambiguity.patch
41092b
BuildRequires:  texi2html
41092b
# texi2pdf
41092b
# WARNING see explanation about PDF doc below.
41092b
#BuildRequires:  texinfo-tex
41092b
BuildRequires:  gcc
41092b
BuildRequires:  autoconf automake libtool
41092b
BuildRequires:  ed alsa-lib-devel
41092b
41092b
41092b
%description
41092b
Flite (festival-lite) is a small, fast run-time speech synthesis engine
41092b
developed at CMU and primarily designed for small embedded machines and/or
41092b
large servers. Flite is designed as an alternative synthesis engine to
41092b
Festival for voices built using the FestVox suite of voice building tools.
41092b
41092b
41092b
%package devel
41092b
Summary: Development files for flite
41092b
Requires: %{name}%{?_isa} = %{version}-%{release}
41092b
41092b
%description devel
41092b
Development files for Flite, a small, fast speech synthesis engine.
41092b
41092b
41092b
%prep
41092b
%setup -q -n %{name}-%{version}-release
41092b
%patch0 -p1 -b .flite-1.3-sharedlibs
41092b
%patch1 -p1 -b .flite-1.3-doc_texinfo
41092b
%patch2 -p1 -b .flite-1.3-alsa_support
41092b
%patch3 -p1 -b .flite-1.3-implicit_dso_linking
41092b
%patch4 -p1
41092b
%patch5 -p1
41092b
cp -p %{SOURCE1} .
41092b
41092b
41092b
%build
41092b
autoreconf -vif
41092b
%configure --enable-shared --with-audio=alsa
41092b
# This package fails parallel make (thus cannot be built using "_smp_flags")
41092b
make
41092b
# Build documentation
41092b
cd doc
41092b
# WARNING "make doc" provides a huge PDF file. It was decided not to produce/package it.
41092b
#make doc
41092b
make flite.html
41092b
41092b
41092b
%install
41092b
make install INSTALLBINDIR=%{buildroot}%{_bindir} INSTALLLIBDIR=%{buildroot}%{_libdir}  INSTALLINCDIR=%{buildroot}%{_includedir}/flite
41092b
41092b
41092b
%post -p /sbin/ldconfig
41092b
41092b
41092b
%postun -p /sbin/ldconfig
41092b
41092b
41092b
%files
41092b
%license COPYING
41092b
%doc ACKNOWLEDGEMENTS README doc/html README-ALSA.txt
41092b
%{_libdir}/*.so.*
41092b
%{_bindir}/*
41092b
41092b
41092b
%files devel
41092b
%{_libdir}/*.so
41092b
%{_includedir}/flite
41092b
41092b
41092b
%changelog
41092b
* Wed Mar  7 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-31
41092b
- Add gcc BR, minor spec cleanups
41092b
41092b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-30
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
41092b
41092b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-29
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
41092b
41092b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-28
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
41092b
41092b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-27
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
41092b
41092b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-26
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
41092b
41092b
* Fri Jan  8 2016 Peter Lemenkov <lemenkov@gmail.com> - 1.3-25
41092b
- Fixed FTBFS in Rawhide
41092b
- Remove pre-EPEL6 support
41092b
41092b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-24
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
41092b
41092b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-23
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
41092b
41092b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-22
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
41092b
41092b
* Mon Jan  6 2014 Rui Matos <rmatos@redhat.com> - 1.3-21
41092b
- Resolves: (CVE-2014-0027) flite: insecure temporary file use
41092b
41092b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-20
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
41092b
41092b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-19
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
41092b
41092b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-18
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
41092b
41092b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-17
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
41092b
41092b
* Mon Mar 13 2011 Francois Aucamp <faucamp@fedoraproject.org> - 1.3-16
41092b
- Added patch declaring explicit libm linking dependency (RHBZ #564899)
41092b
- Updated source and URL tags
41092b
41092b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-15
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
41092b
41092b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-14
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
41092b
41092b
* Sat Mar 21 2009 Robert Scheck <robert@fedoraproject.org> - 1.3-13
41092b
- Removed moving of non-existing documentation flite directory
41092b
41092b
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-12
41092b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
41092b
41092b
* Sat Oct 11 2008 Peter Lemenkov <lemenkov@gmail.com> - 1.3-11
41092b
- Fix for RHEL 4
41092b
 
41092b
* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-10
41092b
- fix license tag
41092b
41092b
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3-9
41092b
- Autorebuild for GCC 4.3
41092b
41092b
* Tue Nov 14 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-8
41092b
- Added comment to %%build stating why "_smp_flags" isn't used with make
41092b
41092b
* Mon Nov 13 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-7
41092b
- Modified alsa support patch file to patch "configure.in" instead of "configure"
41092b
- Added "autoconf" step to %%build
41092b
- Added BuildRequires: autoconf
41092b
- Fixed patch backup file suffixes
41092b
- Renamed patch files to a more standard format
41092b
- Moved header files from /usr/include to /usr/include/flite
41092b
- Added -p option to all cp operations (to preserve timestamps)
41092b
41092b
* Sun Nov 12 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-6
41092b
- Recreated patch to allow shared libraries to build correctly (sharedlibs.patch)
41092b
- "flite" and "flite_time" binaries now link to flite shared libraries (sharedlibs.patch)
41092b
- Simplified the documentation patch filename
41092b
- Modified patch steps in %%prep to create backup files with different suffixes
41092b
- Removed "_smp_flags" macro from %%build for all archs
41092b
41092b
* Fri Oct 20 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-5
41092b
- Modified "build" so that "_smp_flags" is only used for i386 arch
41092b
41092b
* Mon Oct 10 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-4
41092b
- Removed "_smp_flags" macro from "build" for x86_64 arch
41092b
41092b
* Tue Sep 26 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-3
41092b
- Added README-ALSA.txt (Source1)
41092b
- Removed subpackage: flite-devel-static
41092b
- Modified shared libraries patch (Patch0) to prevent building static libraries
41092b
- Renamed patch files: Patch0, Patch1
41092b
41092b
* Tue Sep 26 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-2
41092b
- Added flite 1.3 ALSA patch (Patch2) by Lukas Loehrer - thanks Anthony Green for pointing it out
41092b
- Added configure option: --with-audio=alsa
41092b
- Added BuildRequires: alsa-lib-devel
41092b
41092b
* Fri Sep 22 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-1
41092b
- Initial RPM build