[sblim-sfcb] Remove sfcb system group in post uninstall scriptlet, Fix minor rpmlint warnings

vcrhonek vcrhonek at fedoraproject.org
Wed Jun 15 12:15:46 UTC 2011


commit a5c6038bf908877caae1c70a6bd47a27dd6da52a
Author: Vitezslav Crhonek <vcrhonek at redhat.com>
Date:   Wed Jun 15 14:15:26 2011 +0200

    Remove sfcb system group in post uninstall scriptlet, Fix minor rpmlint warnings

 sblim-sfcb.spec |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/sblim-sfcb.spec b/sblim-sfcb.spec
index e4ce63c..0e047a7 100644
--- a/sblim-sfcb.spec
+++ b/sblim-sfcb.spec
@@ -8,12 +8,12 @@ Name: sblim-sfcb
 Summary: Small Footprint CIM Broker
 URL: http://www.sblim.org
 Version: 1.3.11
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Applications/System
 License: EPL
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
 Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
-Patch0:	%{name}-disable_auto_service_start.patch
+Patch0: %{name}-disable_auto_service_start.patch
 Patch1: sblim-sfcb-1.3.7-initscript.patch
 Patch2: sblim-sfcb-1.3.7-close_logging.patch
 Patch3: sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
@@ -40,9 +40,9 @@ sfcb supports providers written against the Common Manageability
 Programming Interface (CMPI).
 
 #%package devel
-#Summary:	Sblim-sfcb Development Files
-#Group:		Development/Libraries
-#Requires:	%{name} = %{version}-%{release}
+#Summary:       Sblim-sfcb Development Files
+#Group:         Development/Libraries
+#Requires:      %{name} = %{version}-%{release}
 #%description devel
 #Sblim-sfcb Development Files
 
@@ -130,6 +130,10 @@ if [ $1 -ge 1 ] ; then
         /bin/systemctl try-restart sfcb.service >/dev/null 2>&1 || :
 fi
 
+if [ $1 -eq 0 ]; then
+        /usr/sbin/groupdel sfcb > /dev/null 2>&1 || :;
+fi;
+
 %files -f _pkg_list
 /lib/systemd/system/sfcb.service
 #%files devel
@@ -140,6 +144,10 @@ fi
 #%doc COPYING README
 
 %changelog
+* Wed Jun 15 2011 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.3.11-2
+- Remove sfcb system group in post uninstall scriptlet
+- Fix minor rpmlint warnings
+
 * Thu May 26 2011 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.3.11-1
 - Update to sblim-sfcb-1.3.11
 
@@ -155,7 +163,7 @@ fi
 * Fri Jan  7 2011 Praveen K Paladugu <praveen_paladugu at dell.com> - 1.3.10-2
 - Following the BZ#660072, added sfcb.service file for compliance with systemd
 - Since sfcb's PAM authentication requires, the user to be in group sfcb, 
--    added the root user to "sfcb" group in %pre section.
+-    added the root user to "sfcb" group in %%pre section.
 
 * Mon Dec  6 2010 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.3.10-1
 - Update to sblim-sfcb-1.3.10


More information about the scm-commits mailing list