%define major 1 %define libname %mklibname %name %major %define libnamedev %mklibname -d %name Summary: Text to speech synthesis engine Name: espeak Version: 1.46.02 Release: %mkrel 3 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.zip Source1: espeak.1 License: GPLv3+ Group: Sound/Utilities Url: http://espeak.sourceforge.net/ BuildRequires: portaudio-devel Requires: sox %description eSpeak is a compact open source 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 I find the articulation clearer and easier to listen to for long periods. %package -n %libname Group: System/Libraries Summary: Text to speech library Requires: %name >= %version %description -n %libname eSpeak is a compact open source 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 I find the articulation clearer and easier to listen to for long periods. %package -n %libnamedev Group: Development/C++ Summary: Text to speech library Requires: %libname = %version Provides: libespeak-devel = %version-%release Obsoletes: %mklibname -d %name %major %description -n %libnamedev eSpeak is a compact open source 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 I find the articulation clearer and easier to listen to for long periods. %prep %setup -q -n %name-%version-source chmod 644 ReadMe *.txt rm -f src/portaudio.h # (Fedora) Don't use the included binary voice dictionaries; we compile these from source rm -f espeak-data/*_dict %build cd src make CXXFLAGS="%{optflags}" LDFLAGS="%{?ldflags}" # (Fedora) Compile the TTS voice dictionaries export ESPEAK_DATA_PATH=%{_builddir}/espeak-%{version}-source cd ../dictsource for voice in $(../src/speak --voices | awk '{print $2}{print $5}' | egrep -v Language\|File\|/ | uniq); do ../src/speak --compile=$voice; done %install cd src %makeinstall_std BINDIR=%_bindir INCDIR=%_includedir/%name LIBDIR=%_libdir DATADIR=%_datadir/%name-data install -m 644 -D %SOURCE1 %buildroot%_mandir/man1/%name.1 # don't ship .a rm -f %buildroot%_libdir/libespeak.a %files %doc ReadMe *.txt docs %_bindir/%name %_datadir/%name-data %_mandir/man1/%name.1* %files -n %libname %_libdir/libespeak.so.%{major}* %files -n %libnamedev %_includedir/%name %_libdir/libespeak.so %changelog * Fri Jan 11 2013 umeabot <umeabot> 1.46.02-3.mga3 + Revision: 349734 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Nov 29 2012 malo <malo> 1.46.02-2.mga3 + Revision: 322795 - update RPM group * Sat Jan 28 2012 kamil <kamil> 1.46.02-1.mga2 + Revision: 202610 - new version 1.46.02 * Sun Dec 11 2011 fwang <fwang> 1.46.01-1.mga2 + Revision: 180718 - new version 1.46.01 * Fri Sep 23 2011 doktor5000 <doktor5000> 1.45.05-1.mga2 + Revision: 147074 - dropped ldflags patch, not needed anymore - dropped pulseaudio-runtime-detection patch, not needed anymore * Thu Jan 20 2011 ahmad <ahmad> 1.43.03-2.mga1 + Revision: 25800 - don't use the included binary voice dictionaries; compile them from source instead (from Fedora) - drop old/unneeded scriptlets - don't ship .a - imported package espeak