- -common: move icon scriptlets here (where the icons are), update/optimize

- -qt : add mime scriptlet
epel9
Rex Dieter 15 years ago
parent 92d166a372
commit d4bcdf074d

@ -1,6 +1,6 @@
Name: transmission Name: transmission
Version: 1.91 Version: 1.91
Release: 1%{?dist} Release: 2%{?dist}
Summary: A lightweight GTK+ BitTorrent client Summary: A lightweight GTK+ BitTorrent client
Group: Applications/Internet Group: Applications/Internet
@ -124,13 +124,16 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post common
touch --no-create %{_datadir}/icons/hicolor || :
%post daemon %post daemon
/sbin/chkconfig --add transmission-daemon /sbin/chkconfig --add transmission-daemon
%post gtk %post gtk
update-desktop-database > /dev/null 2>&1 || :
touch --no-create %{_datadir}/icons/hicolor || : %post qt
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
update-desktop-database > /dev/null 2>&1 || : update-desktop-database > /dev/null 2>&1 || :
%preun daemon %preun daemon
@ -139,16 +142,27 @@ if [ $1 = 0 ] ; then
/sbin/chkconfig --del transmission-daemon /sbin/chkconfig --del transmission-daemon
fi fi
%postun common
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun daemon %postun daemon
if [ "$1" -ge "1" ] ; then if [ "$1" -ge "1" ] ; then
/sbin/service transmission-daemon condrestart >/dev/null 2>&1 || : /sbin/service transmission-daemon condrestart >/dev/null 2>&1 || :
fi fi
%postun gtk %postun gtk
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
update-desktop-database > /dev/null 2>&1 || : update-desktop-database > /dev/null 2>&1 || :
%postun qt
update-desktop-database > /dev/null 2>&1 || :
%posttrans common
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%files %files
%files common %files common
@ -185,6 +199,10 @@ update-desktop-database > /dev/null 2>&1 || :
%{_datadir}/applications/qtr.desktop %{_datadir}/applications/qtr.desktop
%changelog %changelog
* Wed Feb 24 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.91-2
- -common: move icon scriptlets here (where the icons are), update/optimize
- -qt : add mime scriptlet
* Mon Feb 22 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 1.91-1 * Mon Feb 22 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 1.91-1
- http://trac.transmissionbt.com/wiki/Changes#version-1.91 - http://trac.transmissionbt.com/wiki/Changes#version-1.91

Loading…
Cancel
Save