rpms/lockdev/F-12 lockdev.spec,1.34,1.35

Jiří Popelka jpopelka at fedoraproject.org
Thu Dec 3 07:42:49 UTC 2009


Author: jpopelka

Update of /cvs/pkgs/rpms/lockdev/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9836

Modified Files:
	lockdev.spec 
Log Message:
* Thu Dec 03 2009 Jiri Popelka <jpopelka at redhat.com> - 1.0.1-19
- Fixed pre section (http://fedoraproject.org/wiki/Packaging/UsersAndGroups)
- Added back Buildroot to silence rpmlint's false positive



Index: lockdev.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lockdev/F-12/lockdev.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -p -r1.34 -r1.35
--- lockdev.spec	1 Dec 2009 15:19:18 -0000	1.34
+++ lockdev.spec	3 Dec 2009 07:42:49 -0000	1.35
@@ -1,7 +1,7 @@
 Summary: A library for locking devices
 Name: lockdev
 Version: 1.0.1
-Release: 18%{?dist}
+Release: 19%{?dist}
 License: LGPLv2
 Group: System Environment/Libraries
 URL: http://packages.debian.org/unstable/source/lockdev
@@ -26,6 +26,7 @@ Requires(postun): glibc
 
 BuildRequires: perl
 BuildRequires: perl(ExtUtils::MakeMaker)
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 Lockdev provides a reliable way to put an exclusive lock to devices
@@ -61,6 +62,7 @@ cp %SOURCE1 ./docs
 make "CFLAGS=${RPM_OPT_FLAGS} -fPIC"
 
 %install
+rm -fr $RPM_BUILD_ROOT
 make \
     sbindir=${RPM_BUILD_ROOT}%{_sbindir} \
     libdir=${RPM_BUILD_ROOT}%{_libdir} \
@@ -72,7 +74,8 @@ make \
 mkdir -p $RPM_BUILD_ROOT/var/lock
 
 %pre
-groupadd -g 54 -r -f lock
+getent group lock >/dev/null || groupadd -g 54 -r -f lock
+exit 0
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -95,6 +98,10 @@ rm -fr $RPM_BUILD_ROOT
 %{_includedir}/*
 
 %changelog
+* Thu Dec 03 2009 Jiri Popelka <jpopelka at redhat.com> - 1.0.1-19
+- Fixed pre section (http://fedoraproject.org/wiki/Packaging/UsersAndGroups)
+- Added back Buildroot to silence rpmlint's false positive
+
 * Tue Dec 01 2009 Jiri Popelka <jpopelka at redhat.com> - 1.0.1-18
 - Added license text to package
 




More information about the fedora-extras-commits mailing list