From 33256bc2004f729c6829d812a3ca6c89fa7e7b7a Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Mon, 24 Oct 2011 16:46:42 +0000 Subject: add a manpage, fix a potential crash, icon cache fix in spec file --- redhat/transmission-remote-gtk.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'redhat') diff --git a/redhat/transmission-remote-gtk.spec b/redhat/transmission-remote-gtk.spec index a8dbe19..950796b 100644 --- a/redhat/transmission-remote-gtk.spec +++ b/redhat/transmission-remote-gtk.spec @@ -27,9 +27,6 @@ BuildRequires: json-glib-devel BuildRequires: libcurl-devel BuildRequires: libnotify-devel -Requires(post): desktop-file-utils -Requires(postun): desktop-file-utils - %description transmission-remote-gtk is a GTK application for remote management of the Transmission BitTorrent client via its RPC interface. @@ -49,10 +46,16 @@ make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT %post -update-desktop-database %{_datadir}/applications >/dev/null 2>&1 +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun -update-desktop-database %{_datadir}/applications >/dev/null 2>&1 +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%postrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %defattr(-,root,root,-) -- cgit v1.2.3