Name: espeak Version: 1.16 Release: 4%{?dist} Summary: Software speech synthesizer (text-to-speech) Group: Applications/Multimedia License: GPL URL: http://espeak.sourceforge.net Source0: http://kent.dl.sourceforge.net/sourceforge/espeak/espeak-1.16-source.zip Patch0: makefile_lpthread.patch Patch1: makefile_install_target.patch Patch2: compiledict-amd64_sizeof.patch Patch3: espeak_program_name.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: portaudio-devel %description eSpeak is a software speech synthesizer for English and other languages. eSpeak produces good quality English speech. It uses a different synthesis method from other open source TTS engines, and sounds quite different. It's perhaps not as natural or "smooth", but some people may find the articulation clearer and easier to listen to for long periods. eSpeak supports several languages, however in most cases these are initial drafts and need more work to improve them. It can run as a command line program to speak text from a file or from stdin. %package devel Summary: Development files for espeak Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development files for eSpeak, a software speech synthesizer. %prep %setup -q -n espeak-%{version}-source chmod 0644 src/* %patch0 -p1 -b .pthread %patch1 -p1 -b .install_target %patch2 -p1 -b .amd64sizeof %patch3 -p1 -b .espeak_name # Prepare documentation mv docs html sed -i 's/\r//' License.txt %build cd src make %{?_smp_mflags} BIN_NAME=espeak CXXFLAGS="${RPM_OPT_FLAGS}" %install rm -rf %{buildroot} rmdir --ignore-fail-on-non-empty espeak-data/soundicons # Remove backup files in documentation created by espeak_program_name patch rm -f html/*.espeak_name cd src make install DESTDIR=%{buildroot} BINDIR=%{_bindir} INCDIR=%{_includedir}/espeak LIBDIR=%{_libdir} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc ReadMe ChangeLog License.txt html/ %{_bindir}/espeak %{_datadir}/espeak-data %{_libdir}/libespeak.so.* %files devel %defattr(-,root,root) %{_libdir}/*.so %{_includedir}/espeak %changelog * Tue Nov 07 2006 Francois Aucamp - 1.16-4 - Modified patch steps to create backups with different suffixes - Renamed patch file extensions to .patch - Added step in %%install to remove patch backup files in documentation * Sat Nov 04 2006 Francois Aucamp - 1.16-3 - Fixed source file permissions for -debuginfo package in %%prep - Added RPM_OPT_FLAGS to "make" command in %%build; removed RPM_OPT_FLAGS makefile patch - Modified makefile install target patch to include general support for setting compiler optimization flags via CXXFLAGS - Removed creation of .orig backup files during patching - Modified patch files to have different suffixes * Thu Nov 02 2006 Francois Aucamp - 1.16-2 - Added "install" target to makefile (makefile_install_target.patch) - Added patch to fix AMD64 sizeof(char *) assumption bug (upstream request ID 1588938) - Changed "portaudio" BuildRequires to "portaudio-devel" - Added patch to makefile to allow RPM_OPT_FLAGS - Added patch to replace all references to "speak" binary with "espeak" - Moved header files to /usr/include/espeak - Added rmdir command to "install" to remove empty soundicons directory * Wed Oct 04 2006 Francois Aucamp - 1.16-1 - Initial RPM build