[gobby] Update icon cache scriptlet
Christopher Aillon
caillon at fedoraproject.org
Sun May 8 02:34:52 UTC 2011
commit b7ca12843c86bde5a5d6a89d60094c7f086eef2a
Author: Christopher Aillon <caillon at redhat.com>
Date: Sat May 7 19:34:49 2011 -0700
Update icon cache scriptlet
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
gobby.spec | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gobby.spec b/gobby.spec
index 7bd6c42..acf5d42 100644
--- a/gobby.spec
+++ b/gobby.spec
@@ -1,6 +1,6 @@
Name: gobby
Version: 0.4.12
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Free collaborative editor
Group: Applications/Internet
@@ -16,9 +16,6 @@ BuildRequires: avahi-devel, avahi-glib-devel
BuildRequires: intltool
BuildRequires: gtkspell-devel
-Requires(post): desktop-file-utils
-Requires(postun): desktop-file-utils
-
%description
Gobby is a free collaborative editor. This means that it provides you with the
possibility to edit files simultaneously with other users over a network. It
@@ -52,18 +49,18 @@ desktop-file-install --vendor fedora \
%post
update-desktop-database &> /dev/null ||:
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
update-desktop-database &> /dev/null ||:
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+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
@@ -84,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sat May 07 2011 Christopher Aillon <caillon at redhat.com> - 0.4.12-3
+- Update icon cache scriptlet
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list