Skip to content

Commit

Permalink
Finalize libcap-ng-0.7.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Feb 7, 2018
1 parent 4fbfda3 commit 3808dd8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Fix byte compiling python3 bindings
- Detect and output a couple errors in filecap
- Use pthread_atfork to optionally reset the pid and related info on fork
- Rework spec file to show new python2/3 separation

0.7.8
- Improve Python3 support
Expand Down
22 changes: 14 additions & 8 deletions libcap-ng.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,21 @@ Requires: pkgconfig
The libcap-ng-devel package contains the files needed for developing
applications that need to use the libcap-ng library.

%package python
Summary: Python bindings for libcap-ng library
%package -n python2-libcap-ng
%{?python_provide:%python_provide python2-libcap-ng}
# Remove in future
Summary: Python2 bindings for libcap-ng library
License: LGPLv2+
Group: Development/Libraries
BuildRequires: python-devel swig
BuildRequires: python2-devel swig
Requires: %{name} = %{version}-%{release}
Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}

%description python
The libcap-ng-python package contains the bindings so that libcap-ng
and can be used by python applications.
%description python2-libcap-ng
The python2-libcap-ng package contains the bindings so that libcap-ng
and can be used by python2 applications.

%package python3
Summary: Python3 bindings for libcap-ng library
Expand Down Expand Up @@ -110,14 +115,15 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
%{_libdir}/pkgconfig/libcap-ng.pc

%files python
%files -n python2-libcap-ng
%defattr(-,root,root,-)
%attr(755,root,root) %{python2_sitearch}/_capng.so
%{python2_sitearch}/capng.py*

%files python3
%defattr(-,root,root,-)
%attr(755,root,root) %{python3_sitearch}/*
%{python3_sitearch}/capng.py*

%files utils
%defattr(-,root,root,-)
Expand All @@ -126,6 +132,6 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644,root,root) %{_mandir}/man8/*

%changelog
* Sun Jul 23 2016 Steve Grubb <[email protected]> 0.7.9-1
* Wed Feb 07 2018 Steve Grubb <[email protected]> 0.7.9-1
- New upstream release

0 comments on commit 3808dd8

Please sign in to comment.