--- a/SUNWgnome-applets.spec Thu Sep 27 17:37:20 2007 +0000
+++ b/SUNWgnome-applets.spec Thu Sep 27 20:02:39 2007 +0000
@@ -247,12 +247,20 @@
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
%postun -n SUNWgnome-fun-applets
test -x $BASEDIR/lib/postrun || exit 0
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
%post -n SUNWgnome-internet-applets
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
@@ -269,12 +277,20 @@
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
%postun -n SUNWgnome-intranet-applets
test -x $BASEDIR/lib/postrun || exit 0
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
%post -n SUNWgnome-mm-applets
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
@@ -291,12 +307,20 @@
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
%postun -n SUNWgnome-utility-applets
test -x $BASEDIR/lib/postrun || exit 0
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
%post -n SUNWgnome-fun-applets-root
( echo 'test -x /usr/bin/gconftool-2 || {';
@@ -707,6 +731,9 @@
# %{_datadir}/omf/gnome-netstatus/*-[a-z][a-z]_*.omf
%changelog
+* Thu Sep 27 2007 - [email protected]
+- add postrun script that rebuilds the icon cache for each package that
+ installs icons
* Sat Aug 18 2007 - [email protected]
- Comment out removal of %{_prefix}/var dir as it's no longer created.
* Tue Aug 07 2007 - [email protected]