Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-a11y-dasher
      3 #
      4 # includes module(s): dasher
      5 #
      6 # Copyright 2008 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: yippi
     11 #
     12 %include Solaris.inc
     13 
     14 %use dasher = dasher.spec
     15 
     16 Name:                    SUNWgnome-a11y-dasher
     17 Summary:                 Predictive text entry system
     18 Version:                 %{dasher.version}
     19 Source:                  %{name}-manpages-0.1.tar.gz
     20 SUNW_BaseDir:            %{_prefix}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 %include default-depend.inc
     24 BuildRequires: SUNWgnome-base-libs-devel
     25 BuildRequires: SUNWgnome-libs-devel
     26 BuildRequires: SUNWgnome-a11y-libs-devel
     27 BuildRequires: SUNWsfwhea
     28 BuildRequires: SUNWgnome-a11y-speech-devel
     29 BuildRequires: SUNWgnome-component-devel
     30 BuildRequires: SUNWgnome-config-devel
     31 BuildRequires: SUNWgnome-vfs-devel
     32 BuildRequires: SUNWlibpopt-devel
     33 Requires: SUNWlexpt
     34 Requires: SUNWgnome-a11y-libs
     35 Requires: SUNWgnome-a11y-speech
     36 Requires: SUNWgnome-base-libs
     37 Requires: SUNWgnome-libs
     38 Requires: SUNWgnome-component
     39 Requires: SUNWgnome-config
     40 Requires: SUNWgnome-vfs
     41 Requires: SUNWlibpopt
     42 Requires: SUNWlibC
     43 Requires: SUNWlibms
     44 Requires: SUNWpostrun
     45 
     46 %package root
     47 Summary:                 %{summary} - / filesystem
     48 SUNW_BaseDir:            /
     49 %include default-depend.inc
     50 Requires: SUNWpostrun-root
     51 Requires: SUNWgnome-config
     52 
     53 %if %build_l10n
     54 %package l10n
     55 Summary:                 %{summary} - l10n files
     56 SUNW_BaseDir:            %{_basedir}
     57 %include default-depend.inc
     58 Requires:                %{name}
     59 %endif
     60 
     61 %prep
     62 rm -rf %name-%version
     63 mkdir %name-%version
     64 %dasher.prep -d %name-%version
     65 cd %{_builddir}/%name-%version
     66 gzcat %SOURCE0 | tar xf -
     67 
     68 %build
     69 export PKG_CONFIG_PATH=%{_pkg_config_path}
     70 export CFLAGS="%optflags -I/usr/sfw/include"
     71 export CPPFLAGS="-I/usr/sfw/include"
     72 export CXXFLAGS="%cxx_optflags -staticlib=stlport4"
     73 export RPM_OPT_FLAGS="$CFLAGS"
     74 export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
     75 %dasher.build -d %name-%version
     76 
     77 %install
     78 %dasher.install -d %name-%version
     79 rm -rf $RPM_BUILD_ROOT%{_mandir}
     80 cd %{_builddir}/%name-%version/sun-manpages
     81 make install DESTDIR=$RPM_BUILD_ROOT
     82 
     83 %if %build_l10n
     84 %else
     85 # REMOVE l10n FILES
     86 rm -r $RPM_BUILD_ROOT%{_datadir}/locale
     87 %endif
     88 rm -rf $RPM_BUILD_ROOT/var
     89 
     90 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT}
     91 
     92 %clean
     93 rm -rf $RPM_BUILD_ROOT
     94 
     95 %post
     96 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
     97   echo '/usr/bin/update-desktop-database'
     98 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait
     99 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    100   echo '/usr/bin/scrollkeeper-update'
    101 ) | $BASEDIR/lib/postrun -b -u -c JDS
    102 
    103 %postun
    104 test -x $BASEDIR/lib/postrun || exit 0
    105 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
    106   echo '/usr/bin/update-desktop-database'
    107 ) | $BASEDIR/lib/postrun -b -u -c JDS
    108 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    109   echo '/usr/bin/scrollkeeper-update'
    110 ) | $BASEDIR/lib/postrun -b -u -c JDS
    111 
    112 %post root
    113 %include gconf-install.script
    114 
    115 %preun root
    116 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    117 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
    118   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
    119   echo '  exit 0';
    120   echo '}';
    121   echo 'umask 0022';
    122   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
    123   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    124   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    125   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    126   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    127   echo 'schemas="$SDIR/dasher.schemas"';
    128   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    129 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    130 
    131 %files
    132 %defattr (-, root, bin)
    133 %dir %attr (0755, root, bin) %{_bindir}
    134 %{_bindir}/*
    135 %dir %attr (0755, root, sys) %{_datadir}
    136 %dir %attr (0755, root, other) %{_datadir}/applications
    137 %{_datadir}/applications/*
    138 %{_datadir}/dasher
    139 %dir %attr (0755, root, other) %{_datadir}/gnome
    140 %{_datadir}/gnome/help
    141 %attr (-, root, other) %{_datadir}/icons
    142 %dir %attr (0755, root, bin) %{_datadir}/man
    143 %dir %attr (0755, root, bin) %{_datadir}/man/man1
    144 %{_datadir}/man/man1/*
    145 %{_datadir}/omf
    146 
    147 %files root
    148 %defattr (-, root, sys)
    149 %attr (0755, root, sys) %dir %{_sysconfdir}
    150 %{_sysconfdir}/gconf/schemas/dasher.schemas
    151 
    152 %if %build_l10n
    153 %files l10n
    154 %defattr (-, root, bin)
    155 %dir %attr (0755, root, sys) %{_datadir}
    156 %attr (-, root, other) %{_datadir}/locale
    157 %endif
    158 
    159 %changelog
    160 * Wed Apr 02 2008 - brian.cameron@sun.com
    161 - Add SUNW_Copyright
    162 * Thu Jan  3 2008 - laca@sun.com
    163 - use gconf-install.script instead of an inline script
    164 * Fri Sep 28 2007 - laca@sun.com
    165 - delete Nevada X deps
    166 - delete some unneeded env vars
    167 * Sat Aug 18 2007 - damien.carbery@sun.com
    168 - Add -f to rm call to delete /var in %install.
    169 * Wed May 16 2007 - damien.carbery@sun.com
    170 - Set CPPFLAGS in %build so that expat.h under /usr/sfw/include can be found.
    171 * Tue Apr 24 2007 - laca@sun.com
    172 - s/0755/-/ in defattr so that files are not made all executable
    173 * Thu Jan 04 2007 - damien.carbery@sun.com
    174 - Remove '-f' from rm calls so that changes that require spec file changes are
    175   seen quickly.
    176 * Wed Dec 06 2006 - damien.carbery@sun.com
    177 - Add root package for dasher.schemas, and %post/%preun scripts to accompany
    178   the new package.
    179 * Mon Aug 28 2006 - brian.cameron@sun.com
    180 - install the NROFF manpage until we convert it to SGML.
    181 * Sat Aug 12 2006 - laca@sun.com
    182 - change datadir/icons permissions back to root:other since it's a stable
    183   interface and wasn't supposed to be changed
    184 * Thu Jul 27 2006 - damien.carbery@sun.com
    185 - Delete scrollkeeper files before packaging.
    186 * Fri Jul 14 2006 - laca@sun.com
    187 - update %post/%postun/etc scripts to support diskless client setup,
    188   part of 6448317
    189 * Thu Jun 29 2006 - laca@sun.com
    190 - update postrun scripts
    191 * Fri Jun 23 2006 - brian.cameron@sun.com
    192 - Remove '-library=stlport' from CXXFLAGS so it the library is not dynamically
    193   linked.
    194 * Sun Jun 11 2006 - laca@sun.com
    195 - change group from other to bin/sys
    196 * Thu May 04 2006 - laca@sun.com
    197 - merge -share pkg(s) into the base pkg(s)
    198 * Thu Feb 23 2006 - damien.carbery@sun.com
    199 - Update Build/Requires after running check-deps.pl script.
    200 * Tue Feb 14 2006 - damien.carbery@sun.com
    201 - Set CXXFLAGS to find stlport4.
    202 * Sat Dec  3 2005 - laca@sun.com
    203 - add %post script that runs update-desktop-database
    204 * Fri Sep 30 2005 - brian.cameron@sun.com
    205 - Correct packaging.
    206 * Tue Sep 20 2005 - laca@sun.com
    207 - add /usr/sfw/ to LDFLAGS and CFLAGS
    208 - add expat dependencies
    209 * Tue Sep 20 2005 - glynn.foster@sun.com
    210 - Initial SUNWgnome-a11y-dasher package
    211