[nmap/f14/master] - update icon cache only after gui install

Michal Hlavinka mhlavink at fedoraproject.org
Thu Aug 19 09:53:36 UTC 2010


commit a802a7759bcf76e6b72aacc5261a385f90b5afc7
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Thu Aug 19 11:53:29 2010 +0200

    - update icon cache only after gui install

 nmap.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/nmap.spec b/nmap.spec
index 55d7976..f764269 100644
--- a/nmap.spec
+++ b/nmap.spec
@@ -2,7 +2,7 @@
 Summary: Network exploration tool and security scanner
 Name: nmap
 Version: 5.21
-Release: 6%{?dist}
+Release: 7%{?dist}
 # nmap is GPLv2
 # zenmap is GPLv2 and LGPLv2+ (zenmap/higwidgets) and GPLv2+ (zenmap/radialnet)
 # libdnet-stripped is BSD (advertising clause rescinded by the Univ. of California in 1999) with some parts as Public Domain (crc32)
@@ -116,16 +116,16 @@ popd
 %find_lang nmap --with-man
 %find_lang zenmap
 
-%post
+%post frontend
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
-%postun
+%postun frontend
 if [ $1 -eq 0 ] ; then
     touch --no-create %{_datadir}/icons/hicolor &>/dev/null
     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
-%posttrans
+%posttrans frontend
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %clean
@@ -162,6 +162,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/xnmap.1.gz
 
 %changelog
+* Thu Aug 19 2010 Michal Hlavinka <mhlavink at redhat.com> - 2:5.21-7
+- update icon cache only after gui install
+
 * Wed Aug 11 2010 Michal Hlavinka <mhlavink at redhat.com> - 2:5.21-6
 - update icon cache after package install
 


More information about the scm-commits mailing list