From e5215fde13d259b49245fd3051871383d293c634 Mon Sep 17 00:00:00 2001 From: sgrubb Date: Fri, 8 May 2015 18:47:35 -0400 Subject: [PATCH] New upstream release adding python3 support --- .gitignore | 1 + libcap-ng.spec | 29 ++++++++++++++++++++++++----- sources | 2 +- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 94bdbf0..0864072 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ libcap-ng-0.6.4.tar.gz /libcap-ng-0.7.3.tar.gz /libcap-ng-0.7.4.tar.gz /libcap-ng-0.7.5.tar.gz +/libcap-ng-0.7.6.tar.gz diff --git a/libcap-ng.spec b/libcap-ng.spec index 0f1f6ee..985c9f3 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -2,7 +2,7 @@ Summary: An alternate posix capabilities library Name: libcap-ng -Version: 0.7.5 +Version: 0.7.6 Release: 1%{?dist} License: LGPLv2+ Group: System Environment/Libraries @@ -37,6 +37,17 @@ Requires: %{name} = %{version}-%{release} The libcap-ng-python package contains the bindings so that libcap-ng and can be used by python applications. +%package python3 +Summary: Python3 bindings for libcap-ng library +License: LGPLv2+ +Group: Development/Libraries +BuildRequires: python3-devel swig +Requires: %{name} = %{version}-%{release} + +%description python3 +The libcap-ng-python3 package contains the bindings so that libcap-ng +and can be used by python3 applications. + %package utils Summary: Utilities for analyzing and setting file capabilities License: GPLv2+ @@ -52,12 +63,12 @@ lets you set the file system based capabilities. %setup -q %build -%configure --libdir=/%{_lib} +%configure --libdir=/%{_lib} --with-python --with-python3 make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make DESTDIR="${RPM_BUILD_ROOT}" install +make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install # Move the symlink rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so @@ -90,13 +101,13 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license COPYING.LIB -%attr(0755,root,root) /%{_lib}/libcap-ng.so.* +/%{_lib}/libcap-ng.so.* %files devel %defattr(-,root,root,-) %attr(0644,root,root) %{_mandir}/man3/* %attr(0644,root,root) %{_includedir}/cap-ng.h -%attr(0755,root,root) %{_libdir}/libcap-ng.so +%{_libdir}/libcap-ng.so %attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4 %{_libdir}/pkgconfig/libcap-ng.pc @@ -105,6 +116,11 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) /%{_libdir}/python?.?/site-packages/_capng.so %{python_sitearch}/capng.py* +%files python3 +%defattr(-,root,root,-) +%attr(755,root,root) /%{_libdir}/python3.?/site-packages/* +%{python3_sitearch}/capng.py* + %files utils %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} @@ -113,6 +129,9 @@ rm -rf $RPM_BUILD_ROOT %attr(0644,root,root) %{_mandir}/man8/* %changelog +* Fri May 08 2015 Steve Grubb 0.7.6-1 +- New upstream release adding python3 support + * Thu May 07 2015 Steve Grubb 0.7.5-1 - New upstream release diff --git a/sources b/sources index a1dba17..cfc71ff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7c55c223ac9fb8c4b7e0487f31125370 libcap-ng-0.7.5.tar.gz +9ac7976c76d44e202da433bfb351de60 libcap-ng-0.7.6.tar.gz