From efe6224c35bc73011b8102628e35ef4e87f37a24 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: May 08 2011 03:30:16 +0000 Subject: Update icon cache scriptlet per packaging guidelines http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache --- diff --git a/wireshark.spec b/wireshark.spec index e471528..a38636c 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -11,7 +11,7 @@ Summary: Network traffic analyzer Name: wireshark Version: 1.4.6 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ Group: Applications/Internet Source0: http://wireshark.org/download/src/%{name}-%{version}.tar.bz2 @@ -243,23 +243,24 @@ getent group wireshark >/dev/null || groupadd -r wireshark %post gnome update-desktop-database &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : -touch --no-create %{_datadir}/icons/gnome || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{_datadir}/icons/gnome &>/dev/null || : +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun gnome update-desktop-database &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/gnome || : - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : -fi + touch --no-create %{_datadir}/icons/gnome &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor || : - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + 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/gnome &>/dev/null || : +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README* @@ -321,6 +322,9 @@ fi %{_sbindir}/idl2wrs %changelog +* Sat May 07 2011 Christopher Aillon - 1.4.6-2 +- Update icon cache scriptlet + * Tue Apr 19 2011 Jan Safranek - 1.4.6-1 - upgrade to 1.4.6 - see http://www.wireshark.org/docs/relnotes/wireshark-1.4.6.html