[transmission/f17] fix use of systemd macros. resolves rhbz#947627
Rahul Sundaram
sundaram at fedoraproject.org
Tue Apr 2 22:36:47 UTC 2013
commit 2655b8ce4e630836c061e49402f169250ddfdf41
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date: Tue Apr 2 18:35:17 2013 -0400
fix use of systemd macros. resolves rhbz#947627
transmission.spec | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/transmission.spec b/transmission.spec
index daf143e..0606f0c 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
@@ -134,14 +134,18 @@ update-desktop-database > /dev/null 2>&1 || :
%post qt
update-desktop-database > /dev/null 2>&1 || :
-%post
-%systemd_post transmission-daemon.service
-
-%preun
-%systemd_preun transmission-daemon.service
+%preun daemon
+if [ $1 = 0 ] ; then
+ /bin/systemctl stop transmission-daemon.service >/dev/null 2>&1 || :
+ /bin/systemctl disable transmission-daemon.service >/dev/null 2>&1 || :
+fi
-%postun
-%systemd_postun_with_restart transmission-daemon.service
+%postun daemon
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+ # Package upgrade, not uninstall
+ /bin/systemctl try-restart transmission-daemon.service >/dev/null 2>&1 || :
+fi
%postun gtk
update-desktop-database > /dev/null 2>&1 || :
@@ -189,6 +193,9 @@ update-desktop-database > /dev/null 2>&1 || :
%doc %{_mandir}/man1/transmission-qt.*
%changelog
+* Tue Apr 02 2013 Rahul Sundaram <sundaram at fedorapeople.org> - 2.77-2
+- fix use of systemd macros. resolves rhbz#947627
+
* 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