From 6a5acd73365db02b2c3865aa29e60790cd3d1808 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Tue, 26 Mar 2013 13:02:20 -0400 Subject: [PATCH] Remove requirement for setools-libs-python, no longer needed. --- setroubleshoot.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setroubleshoot.spec b/setroubleshoot.spec index 431b376..d0185b6 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -110,9 +110,7 @@ BuildRequires: setools-devel >= 3.3.7-19 BuildRequires: python-devel Requires: python-slip-dbus systemd-python -Requires(post): /sbin/chkconfig Requires(post): /sbin/service -Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %description server @@ -122,12 +120,10 @@ about the problem and help track its resolution. Alerts can be configured to user preference. The same tools can be run on existing log files. %post server -/sbin/service auditd reload >/dev/null 2>&1 || : +%systemd_post auditd.service %postun server -if [ $1 = 0 ]; then - /sbin/service auditd reload >/dev/null 2>&1 || : -fi +%systemd_postun_with_restart auditd.service %triggerun server -- %{name}-server < 2.1.1 /sbin/service %{name} stop >/dev/null 2>&1 || :