- update icon cache after package install
This commit is contained in:
parent
be1f793448
commit
767abcf6e1
19
nmap.spec
19
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@redhat.com> - 2:5.21-6
|
||||
- update icon cache after package install
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2:5.21-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user