Summary: Next Generation of POSIX capabilities library
Summary(pl.UTF-8): Biblioteka POSIX capabilities nowej generacji
Name: libcap-ng
-Version: 0.7.3
+Version: 0.7.4
Release: 1
License: LGPL v2.1+ (library), GPL v2+ (utilities)
Group: Libraries
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
-# Source0-md5: 610afb774f80a8032b711281df126283
+# Source0-md5: 55c57c0673b944ea1a755bcb2636dabd
Patch0: vserver.patch
URL: http://people.redhat.com/sgrubb/libcap-ng/
BuildRequires: attr-devel
%setup -q
%patch0 -p1
+# force regeneration after captab.h change in vserver patch
+%{__rm} bindings/python/capng.py
+
%build
%configure
%{__make}
---- libcap-ng-0.7.3/bindings/python/capng.py.orig 2012-11-13 18:32:09.065661802 +0100
-+++ libcap-ng-0.7.3/bindings/python/capng.py 2012-11-13 18:33:45.622324417 +0100
-@@ -105,6 +105,7 @@
- CAP_WAKE_ALARM = _capng.CAP_WAKE_ALARM
- CAP_BLOCK_SUSPEND = _capng.CAP_BLOCK_SUSPEND
- CAP_COMPROMISE_KERNEL = _capng.CAP_COMPROMISE_KERNEL
-+CAP_CONTEXT = _capng.CAP_CONTEXT
- CAP_LAST_CAP = _capng.CAP_LAST_CAP
- CAPNG_DROP = _capng.CAPNG_DROP
- CAPNG_ADD = _capng.CAPNG_ADD
diff -upr libcap-ng-0.6.3./src/captab.h libcap-ng-0.6.3/src/captab.h
--- libcap-ng-0.6.3./src/captab.h 2009-03-16 18:12:32.000000000 +0100
+++ libcap-ng-0.6.3/src/captab.h 2010-04-11 20:14:16.641332609 +0200
+_S(CAP_CONTEXT, "context" )
+#endif
+