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