Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-speech
      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: jedy
      9 #
     10 Name:         gnome-speech
     11 License:      LGPL
     12 Group:        System/Libraries
     13 Version:      0.4.6
     14 Release:      201
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      GNOME text-to-speech engine
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.4/%{name}-%{version}.tar.bz2
     19 URL:          http://developer.gnome.org/projects/gap/
     20 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     21 Docdir:       %{_defaultdocdir}/%{name}
     22 Autoreqprov:  on
     23 Prereq:	      /sbin/ldconfig
     24 
     25 %define libbonobo_version 2.4.0
     26 %define java_access_bridge_version 1.4.6
     27 %define freetts_version 1.2.1
     28 
     29 BuildRequires: jdk
     30 BuildRequires: libbonobo-devel >= %{libbonobo_version}
     31 BuildRequires: java-access-bridge >= %{java_access_bridge_version}
     32 BuildRequires: freetts >= %{freetts_version}
     33 Requires:      jdk
     34 Requires:      libbonobo >= %{libbonobo_version}
     35 Requires:      freetts >= %{freetts_version}
     36 
     37 %description
     38 gnome-speech module is the GNOME text-to-speech engine.
     39 
     40 %package devel
     41 Summary:      GNOME text-to-speech engine
     42 Group:        Development/System/Libraries
     43 Autoreqprov:  on
     44 Requires:     %name = %version
     45 Requires:     libbonobo-devel >= %{libbonobo_version}
     46 
     47 %description devel
     48 gnome-speech module is the GNOME text-to-speech engine.
     49 
     50 %prep
     51 %setup -q
     52 
     53 
     54 %build
     55 %ifos linux
     56 if [ -x /usr/bin/getconf ]; then
     57   CPUS=`getconf _NPROCESSORS_ONLN`
     58 fi
     59 %else
     60   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     61 %endif
     62 if test "x$CPUS" = "x" -o $CPUS = 0; then
     63   CPUS=1
     64 fi
     65 
     66 %ifos solaris
     67 CFLAGS="-I/usr/jdk/jdk1.5.0/include -I/usr/jdk/jdk1.5.0/include/solaris $RPM_OPT_FLAGS"			\
     68 %else
     69 %define jdk_version 1.5.0_03
     70 export PATH="/usr/java/jdk%{jdk_version}/bin:$PATH"
     71 CFLAGS="-I/usr/java/jdk%{jdk_version}/include -I/usr/java/jdk%{jdk_version}include/linux $RPM_OPT_FLAGS"			\
     72 %endif
     73 ./configure --prefix=%{_prefix}			\
     74             --sysconfdir=%{_sysconfdir}		\
     75             --mandir=%{_mandir}			\
     76             --with-freetts-dir=%{_datadir}/lib/freetts
     77 make -j $CPUS
     78 
     79 %install
     80 make DESTDIR=$RPM_BUILD_ROOT install
     81 #Clean up unpackaged files
     82 rm $RPM_BUILD_ROOT%{_libdir}/*.la
     83 rm $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/*.la
     84 rm -f $RPM_BUILD_ROOT%{_bindir}/theta-synthesis-driver
     85 rm -f $RPM_BUILD_ROOT%{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Theta.server
     86 
     87 %clean
     88 rm -rf $RPM_BUILD_ROOT
     89 
     90 %post
     91 /sbin/ldconfig
     92 
     93 %postun
     94 /sbin/ldconfig
     95 
     96 %files
     97 %defattr(-,root,root)
     98 %{_bindir}/festival-synthesis-driver
     99 %{_bindir}/freetts-synthesis-driver
    100 %{_bindir}/test-speech
    101 %{_libdir}/bonobo/servers/*
    102 %{_libdir}/orbit-2.0/*.so
    103 %{_libdir}/*.so*
    104 %{_datadir}/jar/*.jar
    105 %{_datadir}/gnome-speech
    106 %{_datadir}/idl/gnome-speech-1.0/*
    107 
    108 %files devel
    109 %defattr(-,root,root)
    110 %{_includedir}/gnome-speech-1.0/*
    111 %{_libdir}/pkgconfig/*.pc
    112 
    113 %changelog
    114 * Mon Nov 06 2006 - damien.carbery@sun.com
    115 - Bump to 0.4.6.
    116 
    117 * Tue Aug 29 2006 - damien.carbery@sun.com
    118 - Bump to 0.4.5.
    119 
    120 * Tue Aug 22 2006 - damien.carbery@sun.com
    121 - Bump to 0.4.4.
    122 
    123 * Mon Aug 07 2006 - damien.carbery@sun.com
    124 - Update to 0.4.3
    125 
    126 * Mon Jul 24 2006 - damien.carbery@sun.com
    127 - Update to 0.4.2
    128 
    129 * Wed Jul 12 2006 - william.walker@sun.com
    130 - Update to 0.4.1
    131 
    132 * Wed Jun 14 2006 - william.walker@sun.com
    133 - Add patch for festival core dump (see bugzilla bug 341405)
    134 
    135 * Thu Feb 23 2006 - william.walker@sun.com
    136 - Bump to 0.3.10
    137 
    138 * Mon Nov 14 2005 - william.walker@sun.com
    139 - Bump to 0.3.9
    140 
    141 * Tue Oct 11 2005 - damien.carbery@sun.com
    142 - Bump to 0.3.8
    143 
    144 * Tue Aug 23 2005 - damien.carbery@sun.com
    145 - Add variable to make updating JDK version easier.
    146 
    147 * Tue May 10 2005 - bill.haneman@sun.com
    148 - Upgrade to gnome-speech 0.3.7; completes fix for bug #6216633.
    149 - Remove unnecessary patch 1 which is now in the tarball.
    150 - Remove Theta drivers if they happen to have been built.
    151 
    152 * Mon May 09 2005 - dermot.mccluskey@sun.com
    153 - New jdk (1.5.0_03)
    154 
    155 * Mon Feb 28 2005 - william.walker@sun.com
    156 - Upgrade to FreeTTS 1.2.1, fix for bug #6228329.
    157 
    158 * Fri Oct 08 2004 - bill.haneman@sun.com
    159 - Added patch gnome-speech-01-freetts-perf.diff, part of fix for bug
    160   #5087408.
    161 
    162 * Mon Sep 20 2004 - dermotm.mccluskey@sun.com
    163 - new path for JDK 1.5.0
    164 
    165 * Mon Aug 30 2004 - bill.haneman@sun.com
    166 - Removed patch (it's in CVS now), and bumped to 0.3.5.
    167 
    168 * Wed Aug 18 2004 - brian.cameron (at] sun.com
    169 - removed --disable-gtk-doc since this isn't an option this module's
    170   configure takes.
    171 
    172 * Thu Jul 22 2004 - bill.haneman (at] sun.com
    173 - Add patch to fix CLASSPATH in freetts-synthesis-driver script.
    174   (Please remove patch when upgrading to gnome-speech-0.3.4)
    175 
    176 * Thu Jul 22 2004 - damien.carbery (at] sun.com
    177 - Remove source1 tarball. Incorrectly overwrites source with old files.
    178 
    179 * Mon Jul 12 2004 - niall.power (at] sun.com
    180 - ported to rpm4
    181 
    182 * Wed Jul 07 2004 - dermot.mccluskey (at] sun.com
    183 - added "-j $CPUS" to make to speed up builds
    184 
    185 * Thu Jun 10 2004 - bill.haneman (at] sun.com
    186 - Upgrade to version 0.3.3, depend on FreeTTS 1.2 beta.
    187 
    188 * Tue Jun 01 2004 - damien.carbery (at] sun.com
    189 - Correct JDK path in CFLAGS for Solaris.
    190 
    191 * Sun May 30 2004 - dermot.mccluskey
    192 - new JDK
    193 
    194 * Mon May 03 2004 - dermot.mccluskey (at] sun.com
    195 - moved Java to 1.5.0
    196 
    197 * Thu Apr 15 2004 - damien.carbery (at] sun.com
    198 - Move bin and jar files from devel to root rpm.
    199 
    200 * Mon Mar 15 2004 - damien.carbery (at] sun.com
    201 - Add JDK path to CFLAGS and PATH for Linux.
    202 
    203 * Thu Mar 11 2004 - damien.carbery (at] sun.com
    204 - Bump ver to 1.3.2. Reset release. Add --with-freetts-dir configure switch.
    205 - Add files created for freetts support.
    206 
    207 * Tue Mar 02 2004 - damien.carbery (at] sun.com
    208 - Correct line for .so files - was omitting libgnomespeech.so.
    209 
    210 * Tue Feb 24 2004 - damien.carbery (at] sun.com
    211 - Created new spec file for gnome-speech
    212