[gssproxy/f18] Use new systemd-rpm macros resolves: #850139
Guenther Deschner
gd at fedoraproject.org
Wed Aug 22 20:54:04 UTC 2012
commit ca22381338134bffc98a9922aedc297b30692d9e
Author: Günther Deschner <gdeschner at redhat.com>
Date: Wed Aug 22 22:52:35 2012 +0200
Use new systemd-rpm macros
resolves: #850139
Guenther
gssproxy.spec | 21 +++++++--------------
1 files 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 <gdeschner at redhat.com> 0.0.2-6
+- Use new systemd-rpm macros
+- resolves: #850139
+
* Wed Jul 18 2012 Guenther Deschner <gdeschner at redhat.com> 0.0.2-5
- More spec file fixes
More information about the scm-commits
mailing list