diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-24 16:46:42 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-24 16:46:42 +0000 |
commit | 33256bc2004f729c6829d812a3ca6c89fa7e7b7a (patch) | |
tree | 6562c1deab9d291d137873fd004a173d839e7918 /redhat | |
parent | 665549404c90b6e129cac2572e5acf7861510559 (diff) |
add a manpage, fix a potential crash, icon cache fix in spec file
Diffstat (limited to 'redhat')
-rw-r--r-- | redhat/transmission-remote-gtk.spec | 13 |
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,-) |