diff --git a/policycoreutils.spec b/policycoreutils.spec index b473680..a1622b4 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -7,7 +7,7 @@ Summary: SELinux policy core utilities Name: policycoreutils Version: 2.1.13 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Base # Based on git repository with tag 20101221 @@ -317,21 +317,13 @@ The policycoreutils-restorecond package contains the restorecond service. %{_mandir}/ru/man8/restorecond.8* %post restorecond -if [ $1 -eq 1 ] ; then - /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi +%systemd_post restorecond.service %preun restorecond -if [ $1 = 0 ]; then - /usr/bin/systemctl --no-reload restorecond.service > /dev/null 2>&1 || : - /usr/bin/systemctl stop restorecond.service > /dev/null 2>&1 || : -fi +%systemd_reun restorecond.service %postun restorecond -/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - /usr/bin/systemctl try-restart restorecond.service >/dev/null 2>&1 || : -fi +%systemd_postun_with_restart restorecond.service %triggerun -- restorecond < 2.0.86-13 %{_bindir}/systemd-sysv-convert --save restorecond >/dev/null 2>&1 ||: @@ -340,6 +332,9 @@ fi %{_bindir}/systemctl try-restart restorecond.service >/dev/null 2>&1 || : %changelog +* Mon Sep 16 2012 Dan Walsh - 2.1.12-2 +- Use systemd post install scriptlets + * Thu Sep 13 2012 Dan Walsh - 2.1.12-1 - Update to upstream * genhomedircon: manual page improvements