From ebf452ad492ec7daab69673cf76e4717731bf4b8 Mon Sep 17 00:00:00 2001 From: Rahul Sundaram Date: Apr 02 2013 22:50:40 +0000 Subject: fix use of systemd macros to apply to daemon subpackage only --- 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 - 2.77-2 +- fix use of systemd macros to apply to daemon subpackage only + * Tue Feb 19 2013 Rahul Sundaram - 2.77-1 - upstream release 2.77 - https://trac.transmissionbt.com/wiki/Changes#version-2.77