Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWespeak
      3 #
      4 # Copyright (c) 2008 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 %define owner liyuan
      9 #
     10 
     11 %include Solaris.inc
     12 
     13 %define OSR 8874:1.37
     14 
     15 %define src_name espeak
     16 %define src_url http://downloads.sourceforge.net/%{src_name}
     17 
     18 Name:		SUNWespeak
     19 Summary:	eSpeak - compact open source software speech synthesizer
     20 Version:	1.41.01
     21 Vendor:		Sun Microsystems, Inc.
     22 License:	GPL v3
     23 Source:		%{src_url}/%{src_name}-%{version}-source.zip
     24 Source1:        %{name}-manpages-0.1.tar.gz
     25 # date:2008-08-15 owner:ww36193 type:bug
     26 Patch1:         espeak-01-makefile.diff
     27 # date:2009-09-23 owner:ww36193 type:bug sourceforge:2860912 bugzilla:595336
     28 Patch2:         espeak-02-busy.diff
     29 SUNW_BaseDir:	%{_basedir}
     30 SUNW_Copyright: %{name}.copyright
     31 BuildRoot:	%{_tmppath}/%{name}-%{version}-build
     32 
     33 %include default-depend.inc
     34 BuildRequires:	SUNWaudh
     35 Requires: SUNWlibC
     36 Requires: SUNWlibmsr
     37 
     38 %package devel
     39 Summary:                 %{summary} - development files
     40 SUNW_BaseDir:            %{_basedir}
     41 %include default-depend.inc
     42 Requires: %name
     43 
     44 %prep
     45 %setup -q -n %{src_name}-%{version}-source
     46 %patch1 -p1
     47 %patch2 -p1
     48 gzcat %SOURCE1 | tar xf -
     49 
     50 %build
     51 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     52 if test "x$CPUS" = "x" -o $CPUS = 0; then
     53      CPUS=1
     54 fi
     55 %ifarch sparc
     56 %define endian_macro "-DBYTE_ORDER=BIG_ENDIAN"
     57 cd platforms/big_endian
     58 make -j$CPUS CFLAGS="%{endian_macro}"
     59 ./espeak-phoneme-data ../../espeak-data ../../espeak-data ../../espeak-data/phondata-manifest
     60 cd ../..
     61 %else
     62 %define endian_macro ""
     63 %endif
     64 cd src
     65 make -j$CPUS EXTRA_LIBS=-lm AUDIO=sada CXXFLAGS="-O2 %{endian_macro}"
     66 make install EXTRA_LIBS=-lm AUDIO=sada DESTDIR=$RPM_BUILD_ROOT CXXFLAGS="-O2 %{endian_macro}"
     67 rm $RPM_BUILD_ROOT/%{_libdir}/lib*.a
     68 
     69 %install
     70 #Install manpages
     71 rm -rf $RPM_BUILD_ROOT%{_mandir}
     72 cd %{_builddir}/%src_name-%version-source/sun-manpages
     73 make install DESTDIR=$RPM_BUILD_ROOT
     74 
     75 
     76 %clean
     77 rm -rf $RPM_BUILD_ROOT
     78 
     79 %files
     80 %defattr (-, root, bin)
     81 %dir %attr (0755, root, bin) %{_bindir}
     82 %{_bindir}/*
     83 %dir %attr (0755, root, bin) %{_libdir}
     84 %{_libdir}/lib*.so*
     85 %dir %attr (0755, root, sys) %{_datadir}
     86 %{_datadir}/*
     87 
     88 %files devel
     89 %defattr (-, root, bin)
     90 %{_includedir}
     91 
     92 %changelog
     93 * Wed Sep 23 2009 - william.walker@sun.com
     94 - Add patch to fix yet another hang - sourceforge:2860912 bugzilla:595336
     95   This should be fixed in 1.41.03 when it is released, so the patch can be
     96   removed when upreving to 1.41.03.
     97 * Tue Aug 28 2009 - william.walker@sun.com
     98 - Bump to 1.41.01.  This resolves bgo#580389 - Orca hangs
     99   when clicking "Ok" or "Apply" button in Orca Preference dialog
    100   and doo#10858 - eSpeak_Synchronize hangs Orca
    101 * Fri Aug 21 2009 - li.yuan@sun.com
    102 - Change owner to liyuan.
    103 * Mon Aug 17 2009 - william.walker@sun.com
    104 - Add Vendor and License
    105 * Tue Jul 28 2009 - christian.kelly@sun.com
    106 - Bump to 1.40.02.
    107 * Mon May 04 2009 - brian.cameron@sun.com
    108 - Bump to 1.40.
    109 * Tue Feb 10 2009 - halton.huo@sun.com
    110 - Add dependency on SUNWlibC and SUNWlibmsr, CR #6755918
    111 * Fri Sep 19 2008 - Willie Walker
    112 - Add BuildRequires: SUNWaudh
    113 * Mon Sep 02 2008 - Harry Lu
    114 - Add bug ID for espeak-02-endian.diff
    115 * Fri Aug 29 2008 - Willie Walker
    116 - Fix SPARC build endian-ness
    117 * Thu Aug 21 2008 - Dermot McCluskey
    118 - added manpages and file header
    119 * Wed Aug 20 2008 - Willie Walker
    120 - Migrate to JDS (SFEespeak.spec to SUNWespeak.spec)
    121 * Tue Aug 12 2008 - Willie Walker
    122 - Port to SunStudio (thanks Brian Cameron!)
    123 * Tue Apr 15 2008 - Willie Walker
    124 - Upgrade to version 1.37 which contains direct SADA support and eliminates
    125   all PulseAudio and other dependencies.
    126 * Tue Jan 29 2008 - Willie Walker
    127 - Initial spec
    128