From a8705c3d56e4d37b99c9132cc1bfb44c58a72c0b Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Mar 25 2005 16:33:26 +0000 Subject: - Update the GTK+ theme icon cache on (un)install --- diff --git a/system-config-rootpassword.spec b/system-config-rootpassword.spec index 4d83a67..bace65a 100644 --- a/system-config-rootpassword.spec +++ b/system-config-rootpassword.spec @@ -1,7 +1,7 @@ Summary: A graphical interface for modifying the rootpassword Name: system-config-rootpassword Version: 1.1.6 -Release: 1 +Release: 2 URL: http://fedora.redhat.com/ License: GPL ExclusiveOS: Linux @@ -18,6 +18,7 @@ Requires: python2 Requires: usermode >= 1.36 Requires: libuser >= 0.49 Requires: rhpl +Prereq: gtk2 >= 2.6 %description system-config-rootpassword is a graphical user interface that allows @@ -42,11 +43,23 @@ desktop-file-install --vendor system --delete-original \ %clean rm -rf $RPM_BUILD_ROOT +%post +touch --no-create %{_datadir}/icons/hicolor +if [-x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache %{_datadir}/icons/hicolor +fi + %preun if [ -d /usr/share/system-config-rootpassword ] ; then rm -rf /usr/share/system-config-rootpassword/*.pyc fi +%postun +touch --no-create %{_datadir}/icons/hicolor +if [-x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache %{_datadir}/icons/hicolor +fi + %files -f %{name}.lang %defattr(-,root,root) #%doc COPYING @@ -66,6 +79,9 @@ fi %attr(0644,root,root) %config /etc/pam.d/system-config-rootpassword %changelog +* Fri Mar 25 2005 Christopher Aillon 1.1.6-2 +- Update the GTK+ theme icon cache on (un)install + * Fri Oct 01 2004 Paul Nasrat 1.1.6-1 - Pull in translations