- Update the GTK+ theme icon cache on (un)install

This commit is contained in:
Christopher Aillon 2005-03-25 15:37:26 +00:00
parent 8a0205cae3
commit 2ec941d32e

View File

@ -1,7 +1,7 @@
Summary: Basic requirement for icon themes
Name: hicolor-icon-theme
Version: 0.7
Release: 1
Release: 2
License: GPL
Group: User Interface/Desktops
URL: http://freedesktop.org/Software/icon-theme
@ -9,6 +9,8 @@ Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Prereq: gtk2 >= 2.6.0
%description
Contains the basic directories and files needed for icon theme support.
@ -23,6 +25,19 @@ Contains the basic directories and files needed for icon theme support.
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr install
%post
touch --no-create %{_datadir}/icons/hicolor
if [-x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache %{_datadir}/icons/hicolor
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
%clean
rm -rf $RPM_BUILD_ROOT
@ -32,6 +47,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/icons/hicolor
%changelog
* Fri Mar 25 2005 Christopher Aillon <caillon@redhat.com> 0.7-2
- Update the GTK+ theme icon cache on (un)install
* Fri Feb 4 2005 Alexander Larsson <alexl@redhat.com> - 0.7-1
- Update to 0.7