|
@@ -1,19 +1,23 @@
|
|
|
Name: espeak
|
|
|
-Version: 1.43
|
|
|
-Release: 3%{?_dist_release}
|
|
|
Summary: Software speech synthesizer (text-to-speech)
|
|
|
+Version: 1.48.04
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
License: GPLv3+
|
|
|
URL: http://espeak.sourceforge.net
|
|
|
-Source0: http://kent.dl.sourceforge.net/sourceforge/espeak/espeak-%{version}-source.zip
|
|
|
+
|
|
|
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.zip
|
|
|
+# Upstream ticket: https://sourceforge.net/p/espeak/patches/10/
|
|
|
Source1: espeak.1
|
|
|
-Patch0: espeak-1.23-makefile_nostaticlibs.patch
|
|
|
-Patch1: espeak-1.40.02-gcc_no_libstdc++.patch
|
|
|
-Patch2: espeak-1.42.04-runtime-detection.patch
|
|
|
-Patch3: espeak-1.43-ftbs_ld_libm.patch
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+Patch0: espeak-1.47-makefile-nostaticlibs.patch
|
|
|
+Patch1: espeak-1.47-ftbs-ld-libm.patch
|
|
|
+# Upstream ticket: https://sourceforge.net/p/espeak/patches/10/
|
|
|
+Patch2: espeak-1.48-help-fix.patch
|
|
|
+# Upstream ticket: https://sourceforge.net/p/espeak/bugs/105/
|
|
|
+Patch3: espeak-1.47-wav-close.patch
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: portaudio-devel
|
|
|
BuildRequires: pulseaudio-libs-devel
|
|
|
BuildRequires: gcc-c++
|
|
@@ -33,11 +37,11 @@ It can run as a command line program to speak text from a file or from stdin.
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
-Summary: Development files for espeak
|
|
|
+Summary: Development files for %{name}
|
|
|
+Summary(ja): %{name} の開発用ファイル
|
|
|
Group: Development/Libraries
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
-
|
|
|
%description devel
|
|
|
Development files for eSpeak, a software speech synthesizer.
|
|
|
|
|
@@ -45,9 +49,9 @@ Development files for eSpeak, a software speech synthesizer.
|
|
|
%prep
|
|
|
%setup -q -n espeak-%{version}-source
|
|
|
%patch0 -p1 -b .nostaticlibs
|
|
|
-%patch1 -p1 -b .gcc_no_libstdc++
|
|
|
-%patch2 -p1 -b .runtime-detection
|
|
|
-%patch3 -p1 -b .ftbs_ld_libm
|
|
|
+%patch1 -p1 -b .ftbs-ld-libm
|
|
|
+%patch2 -p1 -b .help-fix
|
|
|
+%patch3 -p1 -b .wav-close
|
|
|
|
|
|
# Fix file permissions
|
|
|
find . -type f -exec chmod 0644 {} ";"
|
|
@@ -64,12 +68,15 @@ rm -f espeak-data/*_dict
|
|
|
%build
|
|
|
# Compile espeak
|
|
|
cd src
|
|
|
-make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
|
|
+make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" AUDIO=pulseaudio
|
|
|
|
|
|
# Compile the TTS voice dictionaries
|
|
|
export ESPEAK_DATA_PATH=$RPM_BUILD_DIR/espeak-%{version}-source
|
|
|
cd ../dictsource
|
|
|
-for voice in $(../src/speak --voices | awk '{print $2}{print $5}' | egrep -v Language\|File\|/ | uniq); do \
|
|
|
+# Strange sed regex to parse ambiguous output from 'speak --voices', filled upstream BZ 3608811
|
|
|
+for voice in $(../src/speak --voices | \
|
|
|
+LANG=C sed -n '/Age\/Gender/ ! s/ *[0-9]\+ *\([^ ]\+\) *M\? *[^ ]\+ *\(\((\|[A-Z]\)[^ ]\+\)\? *\([^ ]\+\).*/\1 \4/ p' | \
|
|
|
+sort | uniq); do \
|
|
|
../src/speak --compile=$voice; \
|
|
|
done
|
|
|
|
|
@@ -88,19 +95,17 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
-
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc $RPM_BUILD_DIR/espeak-%{version}-source/ReadMe $RPM_BUILD_DIR/espeak-%{version}-source/ChangeLog $RPM_BUILD_DIR/espeak-%{version}-source/License.txt $RPM_BUILD_DIR/espeak-%{version}-source/html/
|
|
|
+%doc $RPM_BUILD_DIR/espeak-%{version}-source/ReadMe $RPM_BUILD_DIR/espeak-%{version}-source/ChangeLog.txt $RPM_BUILD_DIR/espeak-%{version}-source/License.txt $RPM_BUILD_DIR/espeak-%{version}-source/html/
|
|
|
%{_mandir}/man1/espeak.1.gz
|
|
|
%{_bindir}/espeak
|
|
|
%{_datadir}/espeak-data
|
|
|
%{_libdir}/libespeak.so.*
|
|
|
|
|
|
-
|
|
|
%files devel
|
|
|
%defattr(-,root,root)
|
|
|
%{_libdir}/*.so
|
|
@@ -108,8 +113,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Dec 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.48.04-1
|
|
|
+- updated to 1.48.04
|
|
|
+- replaced Patch0, 1, 2 and 3 based FC
|
|
|
+
|
|
|
+* Sun May 27 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.43-4
|
|
|
+- rebuilt with rpm-4.8.1-3
|
|
|
+
|
|
|
* Sun Mar 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.43-3
|
|
|
-- Added patch declaring explicit libm linking dependency (RHBZ #565186)
|
|
|
+- Initial build for Vine Linux
|
|
|
|
|
|
* Thu Feb 18 2010 Francois Aucamp <faucamp@fedoraproject.org> - 1.43-2
|
|
|
- Added patch declaring explicit libm linking dependency (RHBZ #565186)
|