1 # 2 # spec file for package freetts 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: laca 9 # 10 Name: freetts 11 License: Other 12 Group: System/Libraries 13 Version: 1.2.1 14 Release: 40 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: FreeTTS Speech Synthesis System 18 Source: http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}-src.zip 19 URL: http://sourceforge.net/projects/freetts/ 20 BuildRoot: %{_tmppath}/%{name}-%{version}-build 21 Docdir: %{_defaultdocdir}/%{name} 22 Autoreqprov: on 23 24 BuildRequires: jdk 25 Requires: jdk 26 27 %description 28 FreeTTS Speech Synthesis System 29 FreeTTS is a speech synthesis system written entirely in the Java 30 programming language. It is based upon Flite, a small, fast, run-time speech 31 synthesis engine, which in turn is based upon University of Edinburgh's 32 Festival Speech Synthesis Sytem and Carnegie Mellon University's 33 FestVox project. 34 35 %prep 36 %setup -q -c -n freetts 37 %build 38 cd freetts-%{version} 39 %ifos solaris 40 export JAVA_HOME=/usr/jdk/instances/jdk1.5.0 41 %else 42 export JAVA_HOME="/usr/java/jdk1.5.0_03" 43 %endif 44 ant 45 46 %install 47 cd freetts-%{version} 48 cd lib 49 mkdir -p $RPM_BUILD_ROOT%{_datadir}/lib/freetts 50 cp freetts.jar cmudict04.jar cmulex.jar en_us.jar cmu_us_kal.jar $RPM_BUILD_ROOT%{_datadir}/lib/freetts 51 cd ../bin 52 cp FreeTTSEmacspeakServer.jar $RPM_BUILD_ROOT%{_datadir}/lib/freetts 53 54 %clean 55 rm -rf $RPM_BUILD_ROOT 56 57 %files 58 %dir %attr (0755, root, root) %{_datadir}/lib/freetts 59 %defattr(-,root,root) 60 %{_datadir}/lib/freetts/* 61 62 %changelog 63 * Thu Feb 01 2007 - damien.carbery@sun.com 64 - Set JAVA_HOME to use jdk1.5.0 to sync with java-access-bridge (fixes 6498805, 65 6519357). 66 * Fri Jul 29 2005 - damien.carbery@sun.com 67 - Use stable JAVA_HOME directory, not the one that changes each Java release. 68 * Mon May 09 2005 - dermot.mccluskey@sun.com 69 - New jdk (1.5.0_03) 70 * Mon Feb 28 2005 - william.walker@sun.com 71 - Upgrade to FreeTTS 1.2.1, fix for bug #6228329. 72 * Fri Oct 08 2004 - bill.haneman@sun.com 73 - cp SOURCE1 to the right place. 74 * Fri Oct 08 2004 - bill.haneman@sun.com 75 - Replace freetts.jar with %SOURCE1, patched jarfile from 76 Philip Kwok of SunLabs. Part of fix for #5087408. 77 * Mon Jul 05 2004 - damien.carbery@sun.com 78 - Updated to 1.2beta2 tarball. 79 * Thu Jun 10 2004 - damien.carbery@sun.com 80 - Correct name of source tarball, including replacing hard coded ver number 81 with %{version}. 82 * Thu Jun 10 2004 - bill.haneman@sun.com 83 - Updated spec file to freetts 1.2 (beta); changed jarfiles to match 1.2. 84 * Thu Mar 11 2004 - damien.carbery@sun.com 85 - Created new spec file for freetts 86