]> git.pld-linux.org Git - packages/system-config-date.git/commitdiff
- update icon cache
authorPatryk Zawadzki <patrys@room-303.com>
Tue, 18 Dec 2007 12:39:20 +0000 (12:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    system-config-date.spec -> 1.6

system-config-date.spec

index 0c05ca37465f06618ec7ee7aacea2b8266667285..456667c96149e048b9d1bc69741a1388208a4bfd 100644 (file)
@@ -22,6 +22,7 @@ Requires:     ntp-client
 Requires:      python-gnome-canvas
 Requires:      python-rhpl
 #Requires:     usermode >= 1.36
+Requires(post,postun): desktop-file-utils
 Conflicts:     firstboot <= 1.3.26
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,19 +64,11 @@ desktop-file-install --vendor system --delete-original \
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if 0
 %post
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-       gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
-fi
+%update_icon_cache hicolor
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-       gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
-fi
-%endif
+%update_icon_cache hicolor
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
This page took 0.083112 seconds and 4 git commands to generate.