summaryrefslogtreecommitdiff
path: root/redhat/transmission-remote-gtk.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/transmission-remote-gtk.spec')
-rw-r--r--redhat/transmission-remote-gtk.spec13
1 files changed, 8 insertions, 5 deletions
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,-)