fix use of systemd macros to apply to daemon subpackage only

epel9
Rahul Sundaram 12 years ago
parent 3aa60f1894
commit ebf452ad49

@ -1,6 +1,6 @@
Name: transmission Name: transmission
Version: 2.77 Version: 2.77
Release: 1%{?dist} Release: 2%{?dist}
Summary: A lightweight GTK+ BitTorrent client Summary: A lightweight GTK+ BitTorrent client
Group: Applications/Internet Group: Applications/Internet
@ -122,25 +122,19 @@ desktop-file-install \
%post common %post common
touch --no-create %{_datadir}/icons/hicolor || : touch --no-create %{_datadir}/icons/hicolor || :
%post daemon
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%post gtk %post gtk
update-desktop-database > /dev/null 2>&1 || : update-desktop-database > /dev/null 2>&1 || :
%post qt %post qt
update-desktop-database > /dev/null 2>&1 || : update-desktop-database > /dev/null 2>&1 || :
%post %post daemon
%systemd_post transmission-daemon.service %systemd_post transmission-daemon.service
%preun %preun daemon
%systemd_preun transmission-daemon.service %systemd_preun transmission-daemon.service
%postun %postun daemon
%systemd_postun_with_restart transmission-daemon.service %systemd_postun_with_restart transmission-daemon.service
%postun gtk %postun gtk
@ -189,6 +183,9 @@ update-desktop-database > /dev/null 2>&1 || :
%doc %{_mandir}/man1/transmission-qt.* %doc %{_mandir}/man1/transmission-qt.*
%changelog %changelog
* Tue Apr 02 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.77-2
- fix use of systemd macros to apply to daemon subpackage only
* Tue Feb 19 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.77-1 * Tue Feb 19 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.77-1
- upstream release 2.77 - upstream release 2.77
- https://trac.transmissionbt.com/wiki/Changes#version-2.77 - https://trac.transmissionbt.com/wiki/Changes#version-2.77

Loading…
Cancel
Save