rpms/ctapi-common/FC-6 ctapi-common.spec,1.3,1.4

Frank Büttner (frankb) fedora-extras-commits at redhat.com
Sun Aug 5 08:44:56 UTC 2007


Author: frankb

Update of /cvs/pkgs/rpms/ctapi-common/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9873

Modified Files:
	ctapi-common.spec 
Log Message:
fix creation of the group and don't remove it



Index: ctapi-common.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ctapi-common/FC-6/ctapi-common.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ctapi-common.spec	15 Sep 2006 15:09:42 -0000	1.3
+++ ctapi-common.spec	5 Aug 2007 08:44:23 -0000	1.4
@@ -1,18 +1,30 @@
 # Not noarch, but nothing to strip:
 %define debug_package %{nil}
 
+#for the gid creation
+#%%bcond_without  fedora
+%global username ctapiusers
+
 Name:           ctapi-common
-Version:        1.0
-Release:        4%{?dist}
+Version:        1.1
+Release:        3%{?dist}
 Summary:        Common files and packaging infrastructure for CT-API modules
 
 Group:          System Environment/Libraries
 License:        MIT
 URL:            http://fedoraproject.org/
+Requires(pre):	shadow-utils
+
+Provides:       group(%username)
+
 Source0:        %{name}.LICENSE
 Source1:        %{name}.README
+#BuildRequires:  fedora-usermgmt-devel
+#%%{?FE_USERADD_REQ}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+Requires(pre):  shadow-utils
+
 %description
 %{summary}.
 
@@ -37,6 +49,8 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+getent group %username >/dev/null || groupadd -r %username || :
 
 %files
 %defattr(-,root,root,-)
@@ -47,6 +61,22 @@
 
 
 %changelog
+* Sat Aug 04 2007 Frank Büttner <frank-buettner at gmx.net> - 1.1-3
+ - fix creation of the group and don't remove it
+
+* Mon Jul 23 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.1-2
+- Change group to ctapiusers.
+- Don't hardcode a static gid.
+- Don't remove the group at all.
+- Require shadow-utils for group creation.
+
+* Sat Jul 21 2007 Frank Büttner <frank-buettner at gmx.net> - 1.1-1
+ - set version to 1.1 so that other packages can require it
+
+* Sat Jul 21 2007 Frank Büttner <frank-buettner at gmx.net> - 1.0-5
+ - fix for #220767 all users that will use card readers must be
+   in the new group cardusers.
+
 * Fri Sep 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0-4
 - Rebuild.
 




More information about the fedora-extras-commits mailing list