[nmap/f13/master] - update icon cache only after gui install
Michal Hlavinka
mhlavink at fedoraproject.org
Thu Aug 19 09:52:22 UTC 2010
commit a09cd509d0e413490496068de4094b6234a2917c
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Thu Aug 19 11:52:15 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 920767d..79eef59 100644
--- a/nmap.spec
+++ b/nmap.spec
@@ -4,7 +4,7 @@
Summary: Network exploration tool and security scanner
Name: nmap
Version: 5.21
-Release: 3%{?dist}
+Release: 4%{?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)
@@ -117,16 +117,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
@@ -163,6 +163,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-4
+- update icon cache only after gui install
+
* Wed Aug 11 2010 Michal Hlavinka <mhlavink at redhat.com> - 2:5.21-3
- update icon cache after package install
More information about the scm-commits
mailing list