[transmission] fix use of systemd macros to apply to daemon subpackage only
Rahul Sundaram
sundaram at fedoraproject.org
Tue Apr 2 22:51:13 UTC 2013
commit ebf452ad492ec7daab69673cf76e4717731bf4b8
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date: Tue Apr 2 18:50:40 2013 -0400
fix use of systemd macros to apply to daemon subpackage only
transmission.spec | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/transmission.spec b/transmission.spec
index daf143e..3056036 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -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 at fedoraproject.org> - 2.77-2
+- fix use of systemd macros to apply to daemon subpackage only
+
* Tue Feb 19 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 2.77-1
- upstream release 2.77
- https://trac.transmissionbt.com/wiki/Changes#version-2.77
More information about the scm-commits
mailing list