6d2634
Name:           flite
6d2634
Version:        1.3
6d2634
Release:        22%{?dist}
6d2634
Summary:        Small, fast speech synthesis engine (text-to-speech)
6d2634
6d2634
Group:          Applications/Multimedia
6d2634
License:        MIT
6d2634
URL:            http://www.speech.cs.cmu.edu/flite/
6d2634
Source0:        http://www.speech.cs.cmu.edu/flite/packed/%{name}-%{version}/%{name}-%{version}-release.tar.gz
6d2634
Source1:        README-ALSA.txt
6d2634
Patch0:         flite-1.3-sharedlibs.patch
6d2634
Patch1:         flite-1.3-doc_texinfo.patch
6d2634
Patch2:         flite-1.3-alsa_support.patch
6d2634
Patch3:         flite-1.3-implicit_dso_linking.patch
6d2634
Patch4:         0001-auserver.c-Only-write-audio-data-to-a-file-in-debug-.patch
6d2634
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6d2634
6d2634
%if 0%{?el4}
6d2634
# there is no texi2html for RHEL 4
6d2634
%else
6d2634
BuildRequires:  texi2html
6d2634
%endif
6d2634
BuildRequires:  ed alsa-lib-devel autoconf
6d2634
6d2634
6d2634
%description
6d2634
Flite (festival-lite) is a small, fast run-time speech synthesis engine
6d2634
developed at CMU and primarily designed for small embedded machines and/or
6d2634
large servers. Flite is designed as an alternative synthesis engine to
6d2634
Festival for voices built using the FestVox suite of voice building tools.
6d2634
6d2634
6d2634
%package devel
6d2634
Summary: Development files for flite
6d2634
Group: Development/Libraries
6d2634
Requires: flite = %{version}-%{release}
6d2634
6d2634
6d2634
%description devel
6d2634
Development files for Flite, a small, fast speech synthesis engine.
6d2634
6d2634
6d2634
%prep
6d2634
%setup -q -n %{name}-%{version}-release
6d2634
%patch0 -p1 -b .flite-1.3-sharedlibs
6d2634
%patch1 -p1 -b .flite-1.3-doc_texinfo
6d2634
%patch2 -p1 -b .flite-1.3-alsa_support
6d2634
%patch3 -p1 -b .flite-1.3-implicit_dso_linking
6d2634
%patch4 -p1
6d2634
cp -p %{SOURCE1} .
6d2634
6d2634
6d2634
%build
6d2634
autoconf
6d2634
%configure --enable-shared --with-audio=alsa
6d2634
# This package fails parallel make (thus cannot be built using "_smp_flags")
6d2634
make
6d2634
# Build documentation
6d2634
%if 0%{?el4}
6d2634
# there is no texi2html for RHEL 4
6d2634
%else
6d2634
cd doc
6d2634
make flite.html
6d2634
%endif
6d2634
6d2634
6d2634
%install
6d2634
rm -rf %{buildroot}
6d2634
make install INSTALLBINDIR=%{buildroot}%{_bindir} INSTALLLIBDIR=%{buildroot}%{_libdir}  INSTALLINCDIR=%{buildroot}%{_includedir}/flite
6d2634
6d2634
6d2634
%clean
6d2634
rm -rf %{buildroot}
6d2634
6d2634
6d2634
%post -p /sbin/ldconfig
6d2634
6d2634
6d2634
%postun -p /sbin/ldconfig
6d2634
6d2634
6d2634
%files
6d2634
%defattr(-,root,root,-)
6d2634
%if 0%{?el4}
6d2634
# there is no texi2html for RHEL 4
6d2634
%doc ACKNOWLEDGEMENTS README COPYING README-ALSA.txt
6d2634
%else
6d2634
%doc ACKNOWLEDGEMENTS README COPYING doc/html README-ALSA.txt
6d2634
%endif
6d2634
%{_libdir}/*.so.*
6d2634
%{_bindir}/*
6d2634
6d2634
6d2634
%files devel
6d2634
%defattr(-,root,root)
6d2634
%{_libdir}/*.so
6d2634
%{_includedir}/flite
6d2634
6d2634
6d2634
%changelog
6d2634
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.3-22
6d2634
- Mass rebuild 2014-01-24
6d2634
6d2634
* Mon Jan  6 2014 Rui Matos <rmatos@redhat.com> - 1.3-21
6d2634
- Resolves: (CVE-2014-0027) flite: insecure temporary file use
6d2634
6d2634
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3-20
6d2634
- Mass rebuild 2013-12-27
6d2634
6d2634
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-19
6d2634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6d2634
6d2634
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-18
6d2634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6d2634
6d2634
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-17
6d2634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6d2634
6d2634
* Mon Mar 13 2011 Francois Aucamp <faucamp@fedoraproject.org> - 1.3-16
6d2634
- Added patch declaring explicit libm linking dependency (RHBZ #564899)
6d2634
- Updated source and URL tags
6d2634
6d2634
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-15
6d2634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6d2634
6d2634
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-14
6d2634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6d2634
6d2634
* Sat Mar 21 2009 Robert Scheck <robert@fedoraproject.org> - 1.3-13
6d2634
- Removed moving of non-existing documentation flite directory
6d2634
6d2634
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-12
6d2634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6d2634
6d2634
* Sat Oct 11 2008 Peter Lemenkov <lemenkov@gmail.com> - 1.3-11
6d2634
- Fix for RHEL 4
6d2634
 
6d2634
* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-10
6d2634
- fix license tag
6d2634
6d2634
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3-9
6d2634
- Autorebuild for GCC 4.3
6d2634
6d2634
* Tue Nov 14 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-8
6d2634
- Added comment to %%build stating why "_smp_flags" isn't used with make
6d2634
6d2634
* Mon Nov 13 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-7
6d2634
- Modified alsa support patch file to patch "configure.in" instead of "configure"
6d2634
- Added "autoconf" step to %%build
6d2634
- Added BuildRequires: autoconf
6d2634
- Fixed patch backup file suffixes
6d2634
- Renamed patch files to a more standard format
6d2634
- Moved header files from /usr/include to /usr/include/flite
6d2634
- Added -p option to all cp operations (to preserve timestamps)
6d2634
6d2634
* Sun Nov 12 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-6
6d2634
- Recreated patch to allow shared libraries to build correctly (sharedlibs.patch)
6d2634
- "flite" and "flite_time" binaries now link to flite shared libraries (sharedlibs.patch)
6d2634
- Simplified the documentation patch filename
6d2634
- Modified patch steps in %%prep to create backup files with different suffixes
6d2634
- Removed "_smp_flags" macro from %%build for all archs
6d2634
6d2634
* Fri Oct 20 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-5
6d2634
- Modified "build" so that "_smp_flags" is only used for i386 arch
6d2634
6d2634
* Mon Oct 10 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-4
6d2634
- Removed "_smp_flags" macro from "build" for x86_64 arch
6d2634
6d2634
* Tue Sep 26 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-3
6d2634
- Added README-ALSA.txt (Source1)
6d2634
- Removed subpackage: flite-devel-static
6d2634
- Modified shared libraries patch (Patch0) to prevent building static libraries
6d2634
- Renamed patch files: Patch0, Patch1
6d2634
6d2634
* Tue Sep 26 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-2
6d2634
- Added flite 1.3 ALSA patch (Patch2) by Lukas Loehrer - thanks Anthony Green for pointing it out
6d2634
- Added configure option: --with-audio=alsa
6d2634
- Added BuildRequires: alsa-lib-devel
6d2634
6d2634
* Fri Sep 22 2006 Francois Aucamp <faucamp@csir.co.za> - 1.3-1
6d2634
- Initial RPM build