espeak-vl.spec 9.6 KB

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