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
Version: 2.77
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A lightweight GTK+ BitTorrent client
Group: Applications/Internet
@ -122,25 +122,19 @@ desktop-file-install \
%post common
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
update-desktop-database > /dev/null 2>&1 || :
%post qt
update-desktop-database > /dev/null 2>&1 || :
%post
%post daemon
%systemd_post transmission-daemon.service
%preun
%preun daemon
%systemd_preun transmission-daemon.service
%postun
%postun daemon
%systemd_postun_with_restart transmission-daemon.service
%postun gtk
@ -189,6 +183,9 @@ update-desktop-database > /dev/null 2>&1 || :
%doc %{_mandir}/man1/transmission-qt.*
%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
- upstream release 2.77
- https://trac.transmissionbt.com/wiki/Changes#version-2.77

Loading…
Cancel
Save