espeak-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. Name: espeak
  2. Summary: Software speech synthesizer (text-to-speech)
  3. Version: 1.48.04
  4. Release: 2%{?_dist_release}
  5. Group: Applications/Multimedia
  6. License: GPLv3+
  7. URL: http://espeak.sourceforge.net
  8. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.zip
  9. # Upstream ticket: https://sourceforge.net/p/espeak/patches/10/
  10. Source1: espeak.1
  11. Patch0: espeak-1.47-makefile-nostaticlibs.patch
  12. Patch1: espeak-1.47-ftbs-ld-libm.patch
  13. # Upstream ticket: https://sourceforge.net/p/espeak/patches/10/
  14. Patch2: espeak-1.48-help-fix.patch
  15. # Upstream ticket: https://sourceforge.net/p/espeak/bugs/105/
  16. Patch3: espeak-1.47-wav-close.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: portaudio-devel
  19. BuildRequires: pulseaudio-libs-devel
  20. BuildRequires: gcc-c++
  21. %description
  22. eSpeak is a software speech synthesizer for English and other languages.
  23. eSpeak produces good quality English speech. It uses a different synthesis
  24. method from other open source TTS engines, and sounds quite different.
  25. It's perhaps not as natural or "smooth", but some people may find the
  26. articulation clearer and easier to listen to for long periods. eSpeak supports
  27. several languages, however in most cases these are initial drafts and need more
  28. work to improve them.
  29. It can run as a command line program to speak text from a file or from stdin.
  30. #'
  31. %package devel
  32. Summary: Development files for %{name}
  33. Summary(ja): %{name} の開発用ファイル
  34. Group: Development/Libraries
  35. Requires: %{name} = %{version}-%{release}
  36. %description devel
  37. Development files for eSpeak, a software speech synthesizer.
  38. %prep
  39. %setup -q -n espeak-%{version}-source
  40. %patch0 -p1 -b .nostaticlibs
  41. %patch1 -p1 -b .ftbs-ld-libm
  42. %patch2 -p1 -b .help-fix
  43. %patch3 -p1 -b .wav-close
  44. # Fix file permissions
  45. find . -type f -exec chmod 0644 {} ";"
  46. # Prepare documentation
  47. rm -rf docs/images/.svn
  48. mv docs html
  49. sed -i 's/\r//' License.txt
  50. # Compile against portaudio v19 (see ReadMe)
  51. cp -f src/portaudio19.h src/portaudio.h
  52. # Don't use the included binary voice dictionaries; we compile these from source
  53. rm -f espeak-data/*_dict
  54. %build
  55. # Compile espeak
  56. cd src
  57. make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" AUDIO=pulseaudio
  58. # Compile the TTS voice dictionaries
  59. export ESPEAK_DATA_PATH=$RPM_BUILD_DIR/espeak-%{version}-source
  60. cd ../dictsource
  61. # Strange sed regex to parse ambiguous output from 'speak --voices', filled upstream BZ 3608811
  62. for voice in $(../src/speak --voices | \
  63. LANG=C sed -n '/Age\/Gender/ ! s/ *[0-9]\+ *\([^ ]\+\) *M\? *[^ ]\+ *\(\((\|[A-Z]\)[^ ]\+\)\? *\([^ ]\+\).*/\1 \4/ p' | \
  64. sort | uniq); do \
  65. ../src/speak --compile=$voice; \
  66. done
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. cd $RPM_BUILD_DIR/espeak-%{version}-source/src
  70. make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} INCDIR=%{_includedir}/espeak LIBDIR=%{_libdir}
  71. # Install manpage
  72. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  73. cp -pf %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT
  76. %post -p /sbin/ldconfig
  77. %postun -p /sbin/ldconfig
  78. %files
  79. %defattr(-,root,root,-)
  80. %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/
  81. %{_mandir}/man1/espeak.1.gz
  82. %{_bindir}/espeak
  83. %{_datadir}/espeak-data
  84. %{_libdir}/libespeak.so.*
  85. %files devel
  86. %defattr(-,root,root)
  87. %{_libdir}/*.so
  88. %{_includedir}/espeak
  89. %changelog
  90. * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> - 1.48.04-2
  91. - rebuild with gcc-5.4.0
  92. * Mon Dec 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.48.04-1
  93. - updated to 1.48.04
  94. - replaced Patch0, 1, 2 and 3 based FC
  95. * Sun May 27 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.43-4
  96. - rebuilt with rpm-4.8.1-3
  97. * Sun Mar 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.43-3
  98. - Initial build for Vine Linux
  99. * Thu Feb 18 2010 Francois Aucamp <faucamp@fedoraproject.org> - 1.43-2
  100. - Added patch declaring explicit libm linking dependency (RHBZ #565186)
  101. * Sat Feb 13 2010 Francois Aucamp <faucamp@fedoraproject.org> - 1.43-1
  102. - Update to version 1.43
  103. - Added patch for runtime detection of pulseaudio, contributed by Kevin Kofler (RHBZ #512190)
  104. * Thu Dec 17 2009 Francois Aucamp <faucamp@fedoraproject.org> - 1.42.04-1
  105. - Update to version 1.42.04
  106. - Revert: build against PortAudio instead of native PulseAudio (RHBZ #512190, #532674)
  107. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40.02-3
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  109. * Tue Jun 30 2009 Francois Aucamp <faucamp@fedoraproject.org> - 1.40.02-2
  110. - Compile against pulseaudio instead of portaudio (RHBZ #481651)
  111. * Mon Jun 22 2009 Francois Aucamp <faucamp@fedoraproject.org> - 1.40.02-1
  112. - Update to version 1.40.02
  113. - Added patch to compile with GCC and not to link to libstdc++ (not needed)
  114. - Added manpage (thanks goes to Luke Yelavich from Ubuntu for writing it)
  115. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.39-2
  116. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  117. * Tue Oct 21 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.39-1
  118. - Update to version 1.39
  119. * Tue Feb 26 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.31-5
  120. - Export ESPEAK_DATA_PATH in %%build to allow proper compilation of voice dictionaries
  121. * Tue Jan 29 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.31-4
  122. - Removed libjack patches as they are unnecessary
  123. * Tue Jan 29 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.31-3
  124. - Added "makefile_libjack" patch to link to libjack
  125. - Added BuildRequires: jack-audio-connection-kit-devel
  126. * Fri Jan 25 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.31-2
  127. - Removed espeakedit (and associated patches and BuildRequires) from package
  128. until all phoneme table compilation functions can be moved into espeak (or a
  129. separate commandline app without wxGTK dependencies)
  130. - Voices are still compiled from source, but using pre-compiled phoneme table
  131. from upstream until the above issue is resolved
  132. * Thu Jan 24 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.31-1
  133. - Update to version 1.31
  134. - Compile phoneme tables and voice dictionaries from source instead of
  135. packaging pre-compiled binary data
  136. - Added espeakedit as Source1
  137. - Added BuildRequires: wxGTK-devel for espeakedit
  138. - Added "makefile_rpmoptflags_wxversion" espeakedit patch to enable
  139. RPM_OPT_FLAGS and set the correct wxWidgets version
  140. - Added "espeak_data_path" espeakedit patch to be able to set control the
  141. source directory that espeakedit's compiler uses
  142. * Tue Jan 15 2008 Francois Aucamp <faucamp@fedoraproject.org> - 1.30-1
  143. - Update to version 1.30
  144. - Removed local "synthdata_strlen" patch (included upstream)
  145. * Mon Aug 20 2007 Francois Aucamp <faucamp@csir.co.za> - 1.28-1
  146. - Update to version 1.28
  147. - Added "synthdata_strlen" patch to fix memory allocation issue on x86_64 (RHBZ #252712)
  148. - Modified %%prep to build against portaudio v19 for F8 and later
  149. - Upstream license changed from GPLv2+ to GPLv3+
  150. * Tue Jun 19 2007 Francois Aucamp <faucamp@csir.co.za> - 1.26-1
  151. - Update to version 1.26
  152. - Modified %%prep to build against portaudio v19
  153. * Tue Jun 05 2007 Francois Aucamp <faucamp@csir.co.za> - 1.25-1
  154. - Update to version 1.25
  155. * Tue May 08 2007 Francois Aucamp <faucamp@csir.co.za> - 1.24-1
  156. - Update to version 1.24
  157. * Tue Apr 24 2007 Francois Aucamp <faucamp@csir.co.za> - 1.23-1
  158. - Update to version 1.23
  159. - Added "makefile_nostaticlibs" patch so static libraries aren't installed
  160. * Thu Feb 08 2007 Francois Aucamp <faucamp@csir.co.za> - 1.20-1
  161. - Update to version 1.20
  162. - Solves stack smash bug (RHBZ #227316)
  163. * Fri Jan 26 2007 Francois Aucamp <faucamp@csir.co.za> - 1.19-1
  164. - Update to version 1.19
  165. - Removed "espeak-1.18-makefile_lpthread" patch as it has been included upstream
  166. - Removed "espeak-1.18-makefile_smp" patch as it has been included upstream
  167. - Removed "espeak-1.18-ptr_64bit" patch as it has been solved upstream
  168. - Fixed espeak-data file permissions
  169. * Tue Jan 16 2007 Francois Aucamp <faucamp@csir.co.za> - 1.18-2
  170. - Created "espeak-1.18-ptr_64bit" patch to allow compilation on x86_64 (fixes 64-bit pointer issues)
  171. - Created "espeak-1.18-makefile_smp" patch to allow parallel make ("_smp_mflags")
  172. - Renamed "makefile_lpthread" patch to "espeak-1.18-makefile_lpthread"
  173. * Mon Jan 15 2007 Francois Aucamp <faucamp@csir.co.za> - 1.18-1
  174. - Update to version 1.18
  175. - Dropped statically-linked "speak" executable (replaced by dynamically-linked "espeak" executable)
  176. - Removed the "espeak program name" patch as it has been included upstream
  177. - Removed "espeak program name" patch backup file cleanup from %%install
  178. - Minor modification to "makefile lpthread" patch to account for new lib/executable
  179. - Removed "BIN_NAME" variable from make in %%build (implemented upstream)
  180. * Mon Nov 20 2006 Francois Aucamp <faucamp@csir.co.za> - 1.17-1
  181. - Update to version 1.17
  182. - Removed "makefile install target" patch as it has been included upstream
  183. - Removed "AMD64 sizeof(char *)" patch as it has been included upstream
  184. - Minor modification to "espeak program name" patch to allow patching current version
  185. * Tue Nov 07 2006 Francois Aucamp <faucamp@csir.co.za> - 1.16-4
  186. - Modified patch steps to create backups with different suffixes
  187. - Renamed patch file extensions to .patch
  188. - Added step in %%install to remove patch backup files in documentation
  189. * Sat Nov 04 2006 Francois Aucamp <faucamp@csir.co.za> - 1.16-3
  190. - Fixed source file permissions for -debuginfo package in %%prep
  191. - Added RPM_OPT_FLAGS to "make" command in %%build; removed RPM_OPT_FLAGS makefile patch
  192. - Modified makefile install target patch to include general support for setting compiler optimization flags via CXXFLAGS
  193. - Removed creation of .orig backup files during patching
  194. - Modified patch files to have different suffixes
  195. * Thu Nov 02 2006 Francois Aucamp <faucamp@csir.co.za> - 1.16-2
  196. - Added "install" target to makefile (makefile_install_target.patch)
  197. - Added patch to fix AMD64 sizeof(char *) assumption bug (upstream request ID 1588938)
  198. - Changed "portaudio" BuildRequires to "portaudio-devel"
  199. - Added patch to makefile to allow RPM_OPT_FLAGS
  200. - Added patch to replace all references to "speak" binary with "espeak"
  201. - Moved header files to /usr/include/espeak
  202. - Added rmdir command to "install" to remove empty soundicons directory
  203. * Wed Oct 04 2006 Francois Aucamp <faucamp@csir.co.za> - 1.16-1
  204. - Initial RPM build