Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-gui-test
      3 #
      4 # includes module(s): dogtail
      5 #
      6 # Copyright (c) 2005 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: dcarbery
     11 #
     12 %include Solaris.inc
     13 %use dogtail = dogtail.spec
     14 
     15 Name:                    SUNWgnome-gui-test
     16 Summary:                 GUI test tool and automation framework
     17 Version:                 %{default_pkg_version}
     18 SUNW_BaseDir:            %{_basedir}
     19 SUNW_Copyright:          %{name}.copyright
     20 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     21 
     22 %include default-depend.inc
     23 Requires: SUNWPython
     24 Requires: SUNWPython-extra
     25 Requires: SUNWgnome-a11y-libs
     26 BuildRequires: SUNWPython-devel
     27 BuildRequires: SUNWPython-extra
     28 BuildRequires: SUNWgnome-a11y-libs-devel
     29 Requires: SUNWpostrun
     30 
     31 %prep
     32 rm -rf %name-%version
     33 mkdir %name-%version
     34 %dogtail.prep -d %name-%version
     35 
     36 %build
     37 
     38 %install
     39 [ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
     40 %dogtail.install -d %name-%version
     41 
     42 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     43 #Remove AT-API browser and dogtail from the menus
     44 echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/sniff.desktop
     45 echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/dogtail-recorder.desktop
     46 %clean
     47 rm -rf $RPM_BUILD_ROOT
     48 
     49 %post
     50 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
     51   echo '/usr/bin/update-desktop-database'
     52 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait
     53 
     54 %postun
     55 test -x $BASEDIR/lib/postrun || exit 0
     56 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
     57   echo '/usr/bin/update-desktop-database'
     58 ) | $BASEDIR/lib/postrun -b -u -c JDS
     59 
     60 %files
     61 %defattr (-, root, bin)
     62 %dir %attr (0755, root, bin) %{_bindir}
     63 %{_bindir}/*
     64 %dir %attr (0755, root, bin) %{_libdir}
     65 %{_libdir}/*
     66 %dir %attr (0755, root, sys) %{_datadir}
     67 %dir %attr (0755, root, other) %{_datadir}/applications
     68 %{_datadir}/applications/*.desktop
     69 %dir %attr (0755, root, other) %{_datadir}/doc
     70 %{_datadir}/doc/*
     71 %{_datadir}/dogtail
     72 %attr (-, root, other) %{_datadir}/icons
     73 
     74 %changelog
     75 * Thu Apr 03 2008 - damien.carbery@sun.com
     76 - Add SUNW_Copyright.
     77 * Wed Apr 04 2007 - glynn.foster@sun.com
     78 - Set .desktop items to NoDisplay=true
     79 * Sat Aug 12 2006 - laca@sun.com
     80 - change datadir/icons permissions back to root:other since it's a stable
     81   interface and wasn't supposed to be changed
     82 * Fri Jul 14 2006 - laca@sun.com
     83 - update %post/%postun/etc scripts to support diskless client setup,
     84   part of 6448317
     85 * Thu Jun 29 2006 - laca@sun.com
     86 - update postrun scripts
     87 * Sun Jun 11 2006 - laca@sun.com
     88 - change group from other to bin/sys
     89 * Tue Feb 21 2006 - damien.carbery@sun.com
     90 - Update packaging for new tarball.
     91 * Sat Dec  3 2005 - laca@sun.com
     92 - add %post script that runs update-desktop-database
     93 * Mon Oct 21 2005 - laca@sun.com
     94 - fix permissions
     95 * Thu Oct 20 2005 - damien.carbery@sun.com
     96 - Initial version.
     97