# # spec file for package espeakedit # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: espeakedit Version: 1.46.02 Release: 0 %define _version %{version}-source License: GPL-3.0+ Summary: Software speech synthesizer (text-to-speech) Url: http://espeak.sourceforge.net Group: Productivity/Other Source: %{name}-%{version}.zip Source1: espeakedit.1 Patch0: makefile_rpmoptflags_wxversion.patch BuildRequires: gcc-c++ BuildRequires: portaudio-devel BuildRequires: pulseaudio-devel BuildRequires: unzip BuildRequires: wxWidgets-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description eSpeak is a software speech synthesizer for English, and some other languages. eSpeakEdit provides a User Interface to edit the eSpeak voices. %prep %setup -q -n %{name}-%{version} %patch0 -p1 #%patch1 -p1 # Don't use the included binary voice dictionaries; we compile these from # source #%{__rm} espeak-data/*_dict # Build against portaudio v19 (see ReadMe) %{__cp} -f src/portaudio19.h src/portaudio.h %ifarch i386 i486 i586 i686 sed "s/lib64/lib/g" -i src/Makefile %endif %build cd src make %{?_smp_mflags} CFLAGS="%{optflags}" cd .. # Build the TTS voice dictionaries export ESPEAK_DATA_PATH=%{_builddir}/%{name}-%{version} #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 mkdir -p %{buildroot}/%{_bindir}/ cp espeakedit %{buildroot}/%{_bindir}/ cd .. # Remove static libraries #%{__rm} %{buildroot}%{_libdir}/*.a # Install manpage %{__install} -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/espeakedit.1 # Rename docs subdir for installation with %doc %{__mv} docs/ html/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr (-,root,root,755) %{_bindir}/espeakedit %doc %{_mandir}/man1/espeakedit.1.* %changelog