New upstream release adding python3 support
This commit is contained in:
parent
ffaedf4dd0
commit
e5215fde13
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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 <sgrubb@redhat.com> 0.7.6-1
|
||||
- New upstream release adding python3 support
|
||||
|
||||
* Thu May 07 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-1
|
||||
- New upstream release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user