SUNWgnome-ui-designer.spec
changeset 15556 79756053d7da
parent 12022 7f50b311ab34
child 15650 dbcf7e3715dd
--- a/SUNWgnome-ui-designer.spec	Fri Apr 03 10:46:38 2009 +0000
+++ b/SUNWgnome-ui-designer.spec	Fri Apr 03 12:08:32 2009 +0000
@@ -3,7 +3,7 @@
 #
 # includes module(s): glade
 #
-# Copyright (c) 2004 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.
 #
@@ -28,7 +28,7 @@
 Requires: SUNWlibms
 Requires: SUNWlibpopt
 Requires: SUNWlxml
-Requires: SUNWpostrun
+Requires: SUNWdesktop-cache
 BuildRequires: SUNWgnome-component-devel
 BuildRequires: SUNWlibpopt-devel
 BuildRequires: SUNWgnome-libs-devel
@@ -84,21 +84,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)
@@ -141,6 +130,8 @@
 %{_datadir}/gtk-doc
 
 %changelog
+* Fri Apr  3 2009 - [email protected]
+- use desktop-cache instead of postrun
 * Tue Jan 29 2008 - [email protected]
 - Remove without_gtk_doc validation. gtk-doc
   should always be packaged.