1 # 2 # spec file for package SUNWgnome-desklets-extra 3 # 4 # 5 # Copyright (c) 2008 Sun Microsystems, Inc. 6 # This file and all modifications and additions to the pristine 7 # package are under the same license as the package itself. 8 # 9 # Owner: bewitche 10 # 11 12 13 %include Solaris.inc 14 %use gd_calendar = gdesklets-calendar.spec 15 %use gd_clock = gdesklets-clock.spec 16 %use gd_worldtime = gdesklets-worldtime.spec 17 18 Name: SUNWgnome-desklets-extra 19 Summary: Supplied Gnome desktop widgets 20 Version: %{default_pkg_version} 21 SUNW_BaseDir: %{_basedir} 22 SUNW_Copyright: %{name}.copyright 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 25 Requires: SUNWgnome-desklets 26 Requires: SUNWgnome-desktop-prefs 27 Requires: SUNWgnome-libs 28 Requires: SUNWpostrun 29 BuildRequires: SUNWgnome-desktop-prefs-devel 30 BuildRequires: SUNWgnome-libs-devel 31 32 %description 33 34 %prep 35 rm -rf %name-%version 36 mkdir %name-%version 37 38 %build 39 # we just get the bits tarball from developer 40 41 %install 42 rm -rf $RPM_BUILD_ROOT 43 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdesklets/Controls 44 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdesklets/Displays 45 %gd_calendar.install -d %name-%version 46 %gd_clock.install -d %name-%version 47 %gd_worldtime.install -d %name-%version 48 49 %clean 50 rm -rf $RPM_BUILD_ROOT 51 52 %post 53 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 54 echo '/usr/bin/update-desktop-database' 55 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 56 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 57 echo '/usr/bin/scrollkeeper-update' 58 ) | $BASEDIR/lib/postrun -b -u -c JDS 59 60 %postun 61 test -x $BASEDIR/lib/postrun || exit 0 62 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 63 echo '/usr/bin/update-desktop-database' 64 ) | $BASEDIR/lib/postrun -b -u -c JDS 65 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 66 echo '/usr/bin/scrollkeeper-update' 67 ) | $BASEDIR/lib/postrun -b -u -c JDS 68 69 %files 70 %defattr (-, root, bin) 71 %dir %attr (0755, root, sys) %{_datadir} 72 %dir %attr (0755, root, bin) %{_datadir}/gdesklets 73 %{_datadir}/gdesklets/* 74 75 %changelog 76 * Wed Jul 16 2008 - damien.carbery@sun.com 77 - Add rm/mkdir to %prep because build requires that the dir exists. 78 79 * Tue Jul 15 2008 - damien.carbery@sun.com 80 - Break gdesklets-extra.spec into three spec files (one for each desklet). 81 Change this file to use each of the spec files. 82 83 * Thu Feb 8 2007 - damien.carbery@sun.com 84 - Update dependency list for files used in %post and during build. 85 86 * Mon Feb 5 2007 - damien.carbery@sun.com 87 - Add %prep section to create dir in BUILD dir. 88 89 * Thu Jan 29 2007 - <chris.wang@sun.com> 90 - initial creation 91 92 93