From 2655b8ce4e630836c061e49402f169250ddfdf41 Mon Sep 17 00:00:00 2001 From: Rahul Sundaram Date: Apr 02 2013 22:35:17 +0000 Subject: fix use of systemd macros. resolves rhbz#947627 --- 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 - 2.77-2 +- fix use of systemd macros. resolves rhbz#947627 + * Tue Feb 19 2013 Rahul Sundaram - 2.77-1 - upstream release 2.77 - https://trac.transmissionbt.com/wiki/Changes#version-2.77