SUNWgnome-games.spec
changeset 15556 79756053d7da
parent 15288 e06cad91bddc
child 15650 dbcf7e3715dd
--- a/SUNWgnome-games.spec	Fri Apr 03 10:46:38 2009 +0000
+++ b/SUNWgnome-games.spec	Fri Apr 03 12:08:32 2009 +0000
@@ -3,7 +3,7 @@
 #
 # includes module(s): gnome-games, libggz, ggz-client-libs
 #
-# Copyright 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.
 #
@@ -42,8 +42,9 @@
 Requires: SUNWgnome-python-desktop
 Requires: SUNWlibrsvg
 Requires: SUNWPython
-Requires: SUNWpostrun
+Requires: SUNWdesktop-cache
 Requires: SUNWgnome-media
+Requires: %{name}-root
 
 %if %build_l10n
 %package l10n
@@ -57,9 +58,6 @@
 Summary:                 %{summary} - / filesystem
 SUNW_BaseDir:            /
 %include default-depend.inc
-Requires: SUNWgnome-libs
-Requires: SUNWpostrun-root
-Requires: SUNWgnome-config
 
 %package devel
 Summary:                 %{summary} - development files
@@ -146,52 +144,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 gconf-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
-
-%post root
-%include gconf-install.script
-
-%preun root
-test -x $BASEDIR/var/lib/postrun/postrun || exit 0
-( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
-  echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
-  echo '  exit 0';
-  echo '}';
-  echo 'umask 0022';
-  echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
-  echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
-  echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
-  echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
-  echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
-  echo 'schemas="$SDIR/blackjack.schemas';
-  echo '         $SDIR/glines.schemas';
-  echo '         $SDIR/glchess.schemas';
-  echo '         $SDIR/gnect.schemas';
-  echo '         $SDIR/gnibbles.schemas';
-  echo '         $SDIR/gnobots2.schemas';
-  echo '         $SDIR/gnomine.schemas';
-  echo '         $SDIR/gnotravex.schemas';
-  echo '         $SDIR/gnotski.schemas';
-  echo '         $SDIR/gtali.schemas';
-  echo '         $SDIR/iagno.schemas';
-  echo '         $SDIR/same-gnome.schemas';
-  echo '         $SDIR/mahjongg.schemas"';
-  echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
-) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
+%restart_fmri desktop-mime-cache
 
 %files
 %doc -d gnome-games-%{gnome_games.version} MAINTAINERS README gnome-sudoku/README dependencies/gnuchess/README same-gnome/README gnotski/README gnomine/README gtali/README glchess/README gnotravex/README COPYING COPYING-DOCS AUTHORS gnome-sudoku/AUTHORS glines/AUTHORS gnotski/AUTHORS gnomine/AUTHORS gnect/AUTHORS gtali/AUTHORS gnobots2/AUTHORS gnotravex/AUTHORS gnibbles/AUTHORS iagno/AUTHORS
@@ -280,6 +236,8 @@
 %{_mandir}/man3/*
 
 %changelog
+* Fri Apr  3 2009 - [email protected]
+- use desktop-cache instead of postrun
 * Tue Mar 03 2009 - [email protected]
 - Remove gnometris again.
 * Wed Feb 18 2009 - [email protected]