[nmap] - update icon cache after package install
Michal Hlavinka
mhlavink at fedoraproject.org
Wed Aug 11 13:35:48 UTC 2010
commit 767abcf6e1158ecf09000e6820981561d174c65d
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Wed Aug 11 15:35:46 2010 +0200
- update icon cache after package install
nmap.spec | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/nmap.spec b/nmap.spec
index 8cfb68a..55d7976 100644
--- a/nmap.spec
+++ b/nmap.spec
@@ -2,7 +2,7 @@
Summary: Network exploration tool and security scanner
Name: nmap
Version: 5.21
-Release: 5%{?dist}
+Release: 6%{?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,6 +116,18 @@ popd
%find_lang nmap --with-man
%find_lang zenmap
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -143,13 +155,16 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/xnmap
%{python_sitelib}/*
%{_datadir}/applications/nmap-zenmap.desktop
-%{_datadir}/icons/*
+%{_datadir}/icons/hicolor/*
%{_datadir}/zenmap
%{_mandir}/man1/zenmap.1.gz
%{_mandir}/man1/nmapfe.1.gz
%{_mandir}/man1/xnmap.1.gz
%changelog
+* Wed Aug 11 2010 Michal Hlavinka <mhlavink at redhat.com> - 2:5.21-6
+- update icon cache after package install
+
* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 2:5.21-5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list