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