rpms/policycoreutils/devel policycoreutils.spec,1.627,1.628

Daniel J Walsh dwalsh at fedoraproject.org
Fri Aug 21 19:30:01 UTC 2009


Author: dwalsh

Update of /cvs/extras/rpms/policycoreutils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5682

Modified Files:
	policycoreutils.spec 
Log Message:
* Fri Aug 21 2009 Ville Skyttä <ville.skytta at iki.fi> - 2.0.71-9
- Don't try to remove restorecond after last erase (done already in %preun).
- Ensure scriptlets exit with status 0.
- Fix %post and %pr



Index: policycoreutils.spec
===================================================================
RCS file: /cvs/extras/rpms/policycoreutils/devel/policycoreutils.spec,v
retrieving revision 1.627
retrieving revision 1.628
diff -u -p -r1.627 -r1.628
--- policycoreutils.spec	21 Aug 2009 11:14:26 -0000	1.627
+++ policycoreutils.spec	21 Aug 2009 19:30:00 -0000	1.628
@@ -6,7 +6,7 @@
 Summary: SELinux policy core utilities
 Name:	 policycoreutils
 Version: 2.0.71
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: GPLv2+
 Group:	 System Environment/Base
 Source:	 http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@@ -29,7 +29,8 @@ BuildRequires: pam-devel libsepol-static
 BuildRequires: desktop-file-utils dbus-devel dbus-glib-devel
 Requires: /bin/mount /bin/egrep /bin/awk /usr/bin/diff rpm /bin/sed 
 Requires: libsepol >= %{libsepolver} coreutils checkpolicy  libselinux-utils >=  %{libselinuxver} 
-Requires(post): /sbin/service /sbin/chkconfig 
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/service  /sbin/chkconfig
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
@@ -251,6 +252,7 @@ if [ $1 -eq 0 ]; then
    /sbin/service restorecond stop > /dev/null 2>&1
    /sbin/chkconfig --del restorecond
 fi
+exit 0
 
 %post
 /sbin/chkconfig --add restorecond
@@ -259,12 +261,15 @@ exit 0
 %postun
 if [ "$1" -ge "1" ]; then 
    [ -x /sbin/service ] && /sbin/service restorecond condrestart  > /dev/null
-else
-   [ -x /sbin/service ] && /sbin/service restorecond stop > /dev/null
-   /sbin/chkconfig --del restorecond
 fi
+exit 0
 
 %changelog
+* Fri Aug 21 2009 Ville Skyttä <ville.skytta at iki.fi> - 2.0.71-9
+- Don't try to remove restorecond after last erase (done already in %%preun).
+- Ensure scriptlets exit with status 0.
+- Fix %%post and %%pr
+
 * Fri Aug 21 2009 Tomas Mraz <tmraz at redhat.com> - 2.0.71-8
 - rebuilt with new audit
 




More information about the fedora-extras-commits mailing list