Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWgnome-a11y-speech
      3 #
      4 # includes module(s): gnome-speech
      5 #
      6 # Copyright 2007 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner: liyuan
     11 #
     12 %include Solaris.inc
     13 
     14 %define build_dectalk %(test -f /usr/bin/say && echo 1 || echo 0)
     15 %define build_swift %(test -d /opt/swift && echo 1 || echo 0)
     16 
     17 %use gnome_speech = gnome-speech.spec
     18 
     19 Name:                    SUNWgnome-a11y-speech
     20 Summary:                 GNOME text-to-speech engine
     21 Version:                 %{default_pkg_version}
     22 Source:                  %{name}-manpages-0.1.tar.gz
     23 SUNW_BaseDir:            %{_basedir}
     24 SUNW_Copyright:          %{name}.copyright
     25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     26 
     27 %include default-depend.inc
     28 Requires: SUNWgnome-a11y-libs
     29 Requires: SUNWgnome-base-libs
     30 Requires: SUNWgnome-component
     31 BuildRequires: SUNWgnome-base-libs-devel
     32 BuildRequires: SUNWgnome-component-devel
     33 
     34 %package festival
     35 Summary:                 %{summary} - Festival Synthesis Driver
     36 SUNW_BaseDir:            %{_basedir}
     37 Requires: SUNWgnome-a11y-speech
     38 %include default-depend.inc
     39 
     40 %package freetts
     41 Summary:                 %{summary} - FreeTTS Synthesis Driver
     42 SUNW_BaseDir:            %{_basedir}
     43 Requires: SUNWgnome-a11y-speech
     44 %include default-depend.inc
     45 
     46 %if %build_dectalk
     47 %package dectalk
     48 Summary:                 %{summary} - Fonix DECtalk Synthesis Driver
     49 SUNW_BaseDir:            %{_basedir}
     50 Requires: SUNWgnome-a11y-speech
     51 %include default-depend.inc
     52 %endif
     53 
     54 %package espeak
     55 Summary:                 %{summary} - eSpeak Synthesis Driver
     56 SUNW_BaseDir:            %{_basedir}
     57 Requires: SUNWespeak
     58 Requires: SUNWgnome-a11y-speech
     59 BuildRequires: SUNWespeak-devel
     60 %include default-depend.inc
     61 
     62 %if %build_swift
     63 %package swift
     64 Summary:                 %{summary} - Cepstral Swift Synthesis Driver
     65 SUNW_BaseDir:            %{_basedir}
     66 Requires: SUNWgnome-a11y-speech
     67 %include default-depend.inc
     68 %endif
     69 
     70 %package devel
     71 Summary:                 %{summary} - development files
     72 SUNW_BaseDir:            %{_basedir}
     73 %include default-depend.inc
     74 
     75 %prep
     76 rm -rf %name-%version
     77 mkdir %name-%version
     78 %gnome_speech.prep -d %name-%version
     79 cd %{_builddir}/%name-%version
     80 gzcat %SOURCE0 | tar xf -
     81 
     82 %build
     83 export PKG_CONFIG_PATH=%{_pkg_config_path}
     84 export MSGFMT="/usr/bin/msgfmt"
     85 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     86 if [ `uname -r` = 5.9 ]; then
     87 export CFLAGS="%optflags -I%{_includedir} -I/usr/j2se/include -I/usr/j2se/include/solaris"
     88 else
     89 export CFLAGS="%optflags -I%{_includedir} -I/usr/jdk/instances/jdk1.5.0/include -I/usr/jdk/instances/jdk1.5.0/include/solaris"
     90 fi
     91 export RPM_OPT_FLAGS="$CFLAGS"
     92 export LD_RUN_PATH="%{_libdir}"
     93 export LDFLAGS="%_ldflags"
     94 %gnome_speech.build -d %name-%version
     95 
     96 %install
     97 %gnome_speech.install -d %name-%version
     98 
     99 # install man page
    100 rm -rf $RPM_BUILD_ROOT%{_mandir}
    101 cd %{_builddir}/%name-%version/sun-manpages
    102 make install DESTDIR=$RPM_BUILD_ROOT
    103 
    104 
    105 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    106 
    107 %clean
    108 rm -rf $RPM_BUILD_ROOT
    109 
    110 %files
    111 %defattr (-, root, bin)
    112 %dir %attr (0755, root, bin) %{_bindir}
    113 %{_bindir}/test-speech
    114 %dir %attr (0755, root, bin) %{_libdir}
    115 %{_libdir}/libgnomespeech.so*
    116 %{_libdir}/orbit-2.0/GNOME_Speech_module.*
    117 %dir %attr (0755, root, sys) %{_datadir}
    118 %doc -d gnome-speech-%{gnome_speech.version} README AUTHORS
    119 %doc(bzip2) -d gnome-speech-%{gnome_speech.version} COPYING NEWS ChangeLog
    120 %dir %attr (0755, root, other) %{_datadir}/doc
    121 %{_datadir}/idl/gnome-speech-*/GNOME_Speech*.idl
    122 %dir %attr(0755, root, bin) %{_mandir}
    123 %dir %attr(0755, root, bin) %{_mandir}/*
    124 %{_mandir}/*/*
    125 %if %option_with_java
    126 %{_datadir}/jar/gnome-speech.jar
    127 %endif
    128 
    129 %files festival
    130 %defattr (-, root, bin)
    131 %dir %attr (0755, root, bin) %{_bindir}
    132 %{_bindir}/festival-synthesis-driver
    133 %dir %attr (0755, root, bin) %{_libdir}
    134 %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server
    135 
    136 %if %option_with_java
    137 %files freetts
    138 %defattr (-, root, bin)
    139 %dir %attr (0755, root, bin) %{_bindir}
    140 %{_bindir}/freetts-synthesis-driver
    141 %dir %attr (0755, root, bin) %{_libdir}
    142 %{_libdir}/libfreettsdriver.*
    143 %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_FreeTTS.server
    144 %dir %attr (0755, root, sys) %{_datadir}
    145 %{_datadir}/jar/freetts-synthesis-driver.jar
    146 %{_datadir}/gnome-speech/drivers/freetts/user_addenda.txt
    147 %endif
    148 
    149 %if %build_dectalk
    150 %files dectalk
    151 %defattr (-, root, bin)
    152 %dir %attr (0755, root, bin) %{_bindir}
    153 %{_bindir}/dectalk-synthesis-driver
    154 %dir %attr (0755, root, bin) %{_libdir}
    155 %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Dectalk.server
    156 %endif
    157 
    158 %files espeak
    159 %defattr (-, root, bin)
    160 %dir %attr (0755, root, bin) %{_bindir}
    161 %{_bindir}/espeak-synthesis-driver
    162 %dir %attr (0755, root, bin) %{_libdir}
    163 %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Espeak.server
    164 
    165 %if %build_swift
    166 %files swift
    167 %defattr (-, root, bin)
    168 %dir %attr (0755, root, bin) %{_bindir}
    169 %{_bindir}/swift-synthesis-driver
    170 %dir %attr (0755, root, bin) %{_libdir}
    171 %{_libdir}/bonobo/servers/GNOME_Speech_SynthesisDriver_Swift.server
    172 %endif
    173 
    174 %files devel
    175 %defattr (-, root, bin)
    176 %dir %attr (0755, root, bin) %{_includedir}
    177 %{_includedir}/gnome-speech-*/gnome-speech/*.h
    178 
    179 %dir %attr (0755, root, bin) %{_libdir}
    180 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    181 %{_libdir}/pkgconfig/*
    182 
    183 %changelog
    184 * Thu Sep 18 2008 - li.yuan@sun.com
    185 - Added %doc to %files for copyright.
    186 * Wed Aug 20 2008 - william.walker@sun.com
    187 - Require SUNWespeak.spec so it will be built prior to
    188   SUNWgnome-a11y-speech.
    189 * Wed Aug 20 2008 - william.walker@sun.com
    190 - Migrate SFEespeak.spec to SUNWespeak.spec
    191 * Tue Aug 05 2008 - li-yan.zhang@sun.com
    192 - Add manpages. 
    193 * Thu Apr 21 2008 - william.walker@sun.com
    194 - Add new optional espeak and swift packages.  Also change the way
    195   the DECtalk package was created since the DECtalk folks have
    196   different ways of shipping/installing their product.
    197 * Mon Mar 31 2008 - li.yuan@sun.com
    198 - Add copyright file
    199 * Fri Sep 28 2007 - laca@sun.com
    200 - disable packaging java stuff if the --without-java option is used
    201 * Thu Jul 13 2006 - william.walker@sun.com
    202 - Add new packaging scheme
    203 * Sun Jun 11 2006 - laca@sun.com
    204 - change group from other to bin/sys
    205 * Tue May 09 2006 - laca@sun.com
    206 - merge -share pkg(s) into the base pkg(s)
    207 * Mon Feb 20 2006 - damien.carbery@sun.com
    208 - Update Build/Requires after running check-deps.pl script.
    209 * Sat Oct 02 2004 - laca@sun.com
    210 - added %pkgbuild_postprocess
    211 * Wed Sep 22 2004 - damien.carbery@sun.com
    212 - Correct JDK path in CFLAGS so jni.h can be found.
    213 * Fri Jul 23 2004 - damien.carbery@sun.com
    214 - Move freetts to SUNWgnome-a11y-libs.
    215 * Tue Jun 22 2004 - shirley.woo@sun.com
    216 - changed install location to /usr/lib and /usr/bin
    217 * Thu Mar 11 2004 - damien.carbery@sun.com
    218 - Add jar files that come from freetts module.
    219 * Mon Mar 02 2004 - laca@sun.com
    220 - add LD_RUN_PATH since -R{%_libdir} doesn't seem to work
    221 * Mon Mar 01 2004 - laca (at] sun.com
    222 - add share, devel subpkgs
    223