Hi All,
The solution is to make the pkg dependent on SUNWgnome-themes and
SUNWpostrun
then in the post run update the icon theme caches.
Here is the spec-file diff :
Index: closed/SUNWgnome-solaris-branding.spec
===================================================================
--- closed/SUNWgnome-solaris-branding.spec (revision 10910)
+++ closed/SUNWgnome-solaris-branding.spec (working copy)
@@ -20,6 +20,8 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SUNWgnome-common-devel
BuildRequires: SUNWgnome-base-libs-devel
+Requires: SUNWpostrun
+Requires: SUNWgnome-themes
%include default-depend.inc
@@ -54,6 +56,11 @@
%{_datadir}/pixmaps/splash/*
%dir %attr(0755, root, other) %{_datadir}/locale
+%post
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+ echo 'ls -d %{_datadir}/icons/* | xargs -l1
/usr/bin/gtk-update-icon-cache'
+) | $BASEDIR/lib/postrun -b -u -c JDS
+
%changelog
* Sat Aug 12 2006 - laca at sun.com
- change datadir/icons permissions back to root:other since it's a stable
--
Erwann Ch?ned?,
Desktop Group, Sun Microsystems, Grenoble
[ I speak for myself, not for my employer ]