From 99daa3aba9dfe5a646e55706effadc077291deec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Wed, 22 Aug 2012 22:52:35 +0200 Subject: [PATCH] Use new systemd-rpm macros resolves: #850139 Guenther --- gssproxy.spec | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/gssproxy.spec b/gssproxy.spec index a6c1684..f5e4f10 100644 --- a/gssproxy.spec +++ b/gssproxy.spec @@ -80,26 +80,19 @@ rm -rf %{buildroot} %{_mandir}/man8/gssproxy.8* %post -if [ $1 -eq 1 ] ; then - # Initial installation - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi +%systemd_post gssproxy.service %preun -if [ $1 -eq 0 ] ; then - # Package removal, not upgrade - /bin/systemctl --no-reload disable gssproxy.service > /dev/null 2>&1 || : - /bin/systemctl stop gssproxy.service > /dev/null 2>&1 || : -fi +%systemd_preun gssproxy.service %postun -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart gssproxy.service >/dev/null 2>&1 || : -fi +%systemd_postun_with_restart gssproxy.service %changelog +* Wed Aug 22 2012 Guenther Deschner 0.0.2-6 +- Use new systemd-rpm macros +- resolves: #850139 + * Wed Jul 18 2012 Guenther Deschner 0.0.2-5 - More spec file fixes