Use new systemd-rpm macros

resolves: #850139

Guenther
This commit is contained in:
Günther Deschner 2012-08-22 22:52:35 +02:00
parent 3904a08978
commit 99daa3aba9

View File

@ -80,26 +80,19 @@ rm -rf %{buildroot}
%{_mandir}/man8/gssproxy.8* %{_mandir}/man8/gssproxy.8*
%post %post
if [ $1 -eq 1 ] ; then %systemd_post gssproxy.service
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%preun %preun
if [ $1 -eq 0 ] ; then %systemd_preun gssproxy.service
# 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
%postun %postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || : %systemd_postun_with_restart gssproxy.service
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart gssproxy.service >/dev/null 2>&1 || :
fi
%changelog %changelog
* Wed Aug 22 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-6
- Use new systemd-rpm macros
- resolves: #850139
* Wed Jul 18 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-5 * Wed Jul 18 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-5
- More spec file fixes - More spec file fixes