--- a/SUNWgnome-desklets-extra.spec Fri Apr 03 10:46:38 2009 +0000
+++ b/SUNWgnome-desklets-extra.spec Fri Apr 03 12:08:32 2009 +0000
@@ -2,7 +2,7 @@
# spec file for package SUNWgnome-desklets-extra
#
#
-# Copyright (c) 2008 Sun Microsystems, Inc.
+# Copyright 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -25,12 +25,10 @@
Requires: SUNWgnome-desklets
Requires: SUNWgnome-desktop-prefs
Requires: SUNWgnome-libs
-Requires: SUNWpostrun
+Requires: SUNWdesktop-cache
BuildRequires: SUNWgnome-desktop-prefs-devel
BuildRequires: SUNWgnome-libs-devel
-%description
-
%prep
rm -rf %name-%version
mkdir %name-%version
@@ -50,21 +48,10 @@
rm -rf $RPM_BUILD_ROOT
%post
-( echo 'test -x /usr/bin/update-desktop-database || exit 0';
- echo '/usr/bin/update-desktop-database'
-) | $BASEDIR/lib/postrun -b -u -c JDS_wait
-( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
- echo '/usr/bin/scrollkeeper-update'
-) | $BASEDIR/lib/postrun -b -u -c JDS
+%restart_fmri desktop-mime-cache
%postun
-test -x $BASEDIR/lib/postrun || exit 0
-( echo 'test -x /usr/bin/update-desktop-database || exit 0';
- echo '/usr/bin/update-desktop-database'
-) | $BASEDIR/lib/postrun -b -u -c JDS
-( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
- echo '/usr/bin/scrollkeeper-update'
-) | $BASEDIR/lib/postrun -b -u -c JDS
+%restart_fmri desktop-mime-cache
%files
%defattr (-, root, bin)
@@ -73,19 +60,17 @@
%{_datadir}/gdesklets/*
%changelog
+* Fri Apr 3 2009 - [email protected]
+- use desktop-cache instead of postrun
* Wed Jul 16 2008 - [email protected]
- Add rm/mkdir to %prep because build requires that the dir exists.
-
* Tue Jul 15 2008 - [email protected]
- Break gdesklets-extra.spec into three spec files (one for each desklet).
Change this file to use each of the spec files.
-
* Thu Feb 8 2007 - [email protected]
- Update dependency list for files used in %post and during build.
-
* Mon Feb 5 2007 - [email protected]
- Add %prep section to create dir in BUILD dir.
-
* Thu Jan 29 2007 - <[email protected]>
- initial creation