208911c
Summary: Alternate posix capabilities library
bf27b13
Name: libcap-ng
68e5ee5
Version: 0.8.3
68e5ee5
Release: 1%{?dist}
bf27b13
License: LGPLv2+
208911c
URL: https://people.redhat.com/sgrubb/libcap-ng/
208911c
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
a5b0f53
# This patch can be removed when 1899540 is resolved
68e5ee5
Patch1: libcap-ng-0.8.3-apply-disable.patch
d1b3253
BuildRequires: gcc
208911c
BuildRequires: make
bf27b13
BuildRequires: kernel-headers >= 2.6.11 
2433a6d
BuildRequires: libattr-devel
bf27b13
bf27b13
%description
bf27b13
Libcap-ng is a library that makes using posix capabilities easier
bf27b13
bf27b13
%package devel
bf27b13
Summary: Header files for libcap-ng library
bf27b13
License: LGPLv2+
bf27b13
Requires: kernel-headers >= 2.6.11
208911c
Requires: %{name}%{?_isa} = %{version}-%{release}
c318f97
Requires: pkgconfig
bf27b13
bf27b13
%description devel
bf27b13
The libcap-ng-devel package contains the files needed for developing
bf27b13
applications that need to use the libcap-ng library.
bf27b13
e5215fd
%package python3
e5215fd
Summary: Python3 bindings for libcap-ng library
e5215fd
License: LGPLv2+
e5215fd
BuildRequires: python3-devel swig
16b2ff7
BuildRequires: make
208911c
Requires: %{name}%{?_isa} = %{version}-%{release}
e5215fd
e5215fd
%description python3
e5215fd
The libcap-ng-python3 package contains the bindings so that libcap-ng
e5215fd
and can be used by python3 applications.
e5215fd
bf27b13
%package utils
e535cc9
Summary: Utilities for analyzing and setting file capabilities
bf27b13
License: GPLv2+
208911c
Requires: %{name}%{?_isa} = %{version}-%{release}
bf27b13
bf27b13
%description utils
e535cc9
The libcap-ng-utils package contains applications to analyze the
bf27b13
posix capabilities of all the program running on a system. It also
bf27b13
lets you set the file system based capabilities.
bf27b13
bf27b13
%prep
bf27b13
%setup -q
49e3114
%patch1 -p1
bf27b13
bf27b13
%build
8ac4dad
%configure --libdir=%{_libdir} --with-python=no --with-python3
208911c
%make_build CFLAGS="%{optflags}"
bf27b13
bf27b13
%install
208911c
%make_install
bf27b13
bf27b13
# Remove a couple things so they don't get picked up
208911c
rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.la
208911c
rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.a
208911c
rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.la
208911c
rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.a
786653e
rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python3_version}/site-packages/_capng.a
786653e
rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python3_version}/site-packages/_capng.la
bf27b13
2eefee0
%check
2eefee0
make check
2eefee0
0a3a065
%ldconfig_scriptlets
bf27b13
bf27b13
%files
39893e9
%license COPYING.LIB
208911c
%{_libdir}/libcap-ng.so.*
208911c
%{_libdir}/libdrop_ambient.so.*
8ac4dad
%attr(0644,root,root) %{_mandir}/man7/*
bf27b13
bf27b13
%files devel
bf27b13
%attr(0644,root,root) %{_mandir}/man3/*
bf27b13
%attr(0644,root,root) %{_includedir}/cap-ng.h
e5215fd
%{_libdir}/libcap-ng.so
8ac4dad
%{_libdir}/libdrop_ambient.so
7c14f08
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
2735880
%{_libdir}/pkgconfig/libcap-ng.pc
7c14f08
e5215fd
%files python3
1cbe83e
%attr(755,root,root) %{python3_sitearch}/*
e5215fd
%{python3_sitearch}/capng.py*
e5215fd
bf27b13
%files utils
39893e9
%license COPYING
bf27b13
%attr(0755,root,root) %{_bindir}/*
bf27b13
%attr(0644,root,root) %{_mandir}/man8/*
bf27b13
bf27b13
%changelog
68e5ee5
* Tue Mar 29 2022 Steve Grubb <sgrubb@redhat.com> 0.8.3-1
68e5ee5
- New upstream bugfix release
68e5ee5
e0b0798
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-9
e0b0798
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
e0b0798
9074cae
* Wed Dec 22 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-8
9074cae
- Update apply-disable patch
9074cae
72c6e39
* Wed Sep 22 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-7
72c6e39
- Drop .la and .a libraries
72c6e39
6d8ce6e
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-6
6d8ce6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
6d8ce6e
b084ba2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.2-5
b084ba2
- Rebuilt for Python 3.10
b084ba2
39b3e05
* Tue Feb 02 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-4
39b3e05
- Adjust syslog warning for bad use of capng_apply
39b3e05
3c5cc43
* Sat Jan 30 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-3
3c5cc43
- Add syslog warning for bad use of capng_apply
3c5cc43
1dc55ff
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
1dc55ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1dc55ff
a5b0f53
* Wed Dec 09 2020 Steve Grubb <sgrubb@redhat.com> 0.8.2-1
a5b0f53
- New upstream bugfix release
a5b0f53
49e3114
* Fri Nov 20 2020 Steve Grubb <sgrubb@redhat.com> 0.8.1-2
49e3114
- Add temporary patch disabling bounding set error codes
49e3114
8ac4dad
* Wed Nov 18 2020 Steve Grubb <sgrubb@redhat.com> 0.8.1-1
8ac4dad
- New upstream bugfix release
8ac4dad
f8ab3e8
* Tue Sep 08 2020 Steve Grubb <sgrubb@redhat.com> 0.8-1
f8ab3e8
- New upstream feature release
f8ab3e8
a56c8c9
* Sun Aug 23 2020 Steve Grubb <sgrubb@redhat.com> 0.7.11-1
a56c8c9
- New upstream release
a56c8c9
07f3920
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.10-4
07f3920
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
07f3920
551333a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.10-3
551333a
- Rebuilt for Python 3.9
551333a
3292748
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.10-2
3292748
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3292748
ceed8be
* Tue Oct 01 2019 Steve Grubb <sgrubb@redhat.com> 0.7.10-1
ceed8be
- New upstream release
ceed8be
c1392a9
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-9
c1392a9
- Rebuilt for Python 3.8
c1392a9
fb78858
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-8
fb78858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fb78858
2589c4e
* Fri Mar  8 2019 Joe Orton <jorton@redhat.com> - 0.7.9-7
2589c4e
- fix crash on dlclose due to atfork handler (#1680481)
2589c4e
f8b6e04
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-6
f8b6e04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f8b6e04
72c42a6
* Tue Oct 16 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-5
72c42a6
- Remove python2 bindings (#1634889)
72c42a6
c62467e
* Thu Aug 09 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-4
c62467e
- Fix bug where filecap may not show capabilities
c62467e
d90edde
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-3
d90edde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d90edde
d91394a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-2
d91394a
- Rebuilt for Python 3.7
d91394a
2433a6d
* Wed Feb 07 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-1
2433a6d
- New upstream bugfix release
2433a6d
0a3a065
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.8-9
0a3a065
- Switch to %%ldconfig_scriptlets
0a3a065
be50008
* Fri Jan 05 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.7.8-8
be50008
- Update Python 2 dependency declarations to new packaging standards
be50008
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
be50008
9f33f82
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.8-7
9f33f82
- Add Provides for the old name without %%_isa
9f33f82
97f2894
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.8-6
97f2894
- Python 2 binary package renamed to python2-libcap-ng
97f2894
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
97f2894
b01d48b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-5
b01d48b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b01d48b
e0ddc76
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-4
e0ddc76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e0ddc76
a7b3901
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-3
a7b3901
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a7b3901
91b7d16
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.8-2
91b7d16
- Rebuild for Python 3.6
91b7d16
cccdd40
* Sun Jul 24 2016 Steve Grubb <sgrubb@redhat.com> 0.7.8-1
cccdd40
- New upstream bugfix release
cccdd40
0decb9e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-5
0decb9e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0decb9e
1cbe83e
* Wed Feb 03 2016 Steve Grubb <sgrubb@redhat.com> 0.7.7-4
1cbe83e
- use python site arch macros (#1303610)
1cbe83e
92aa0a7
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-3
92aa0a7
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
92aa0a7
2ce2fc3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-2
2ce2fc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2ce2fc3
e193e9a
* Wed May 13 2015 Steve Grubb <sgrubb@redhat.com> 0.7.7-1
e193e9a
- New upstream bugfix release
e193e9a
e5215fd
* Fri May 08 2015 Steve Grubb <sgrubb@redhat.com> 0.7.6-1
e5215fd
- New upstream release adding python3 support
e5215fd
35c32a6
* Thu May 07 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-1
35c32a6
- New upstream release
35c32a6
e728c88
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-7
e728c88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e728c88
39893e9
* Thu Jul 17 2014 Tom Callaway <spot@fedoraproject.org> - 0.7.4-6
39893e9
- fix license handling
39893e9
Kyle McMartin 6791248
* Mon Jun 23 2014 Kyle McMartin <kyle@redhat.com> 0.7.4-5
Kyle McMartin f01cb9a
- Clamp CAP_LAST_CAP at /proc/sys/kernel/cap_last_cap's value in the
Kyle McMartin f01cb9a
  Python bindings test if possible, otherwise use the value from
Kyle McMartin f01cb9a
  <linux/capability.h> since the kernel now has 37 capabilities upstream,
Kyle McMartin f01cb9a
  but our builders are not that up to date.
Kyle McMartin f01cb9a
ee5f3f4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-4
ee5f3f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ee5f3f4
75cf882
* Wed May 07 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-3
75cf882
- Add PR_SET_NO_NEW_PRIVS call back to capng_lock
75cf882
c8b3078
* Wed Apr 30 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-2
c8b3078
- Remove PR_SET_NO_NEW_PRIVS call in capng_lock
c8b3078
eaa80a1
* Thu Apr 24 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-1
eaa80a1
- New upstream release
eaa80a1
0893348
* Thu Nov 14 2013 Steve Grubb <sgrubb@redhat.com> 0.7.3-6
0893348
- Rebuild to pickup current CAP_LAST_CAP
0893348
e5ae10e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-5
e5ae10e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5ae10e
a1304ae
* Tue Jul 02 2013 Karsten Hopp <karsten@redhat.com> 0.7.3-4
a1304ae
- bump release and rebuild to fix dependencies on PPC
a1304ae
cff1fd5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-3
cff1fd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cff1fd5
42e500b
* Wed Dec 19 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-2
42e500b
- Remove useless code in pscap causing EBADFD
42e500b
557323c
* Fri Nov 09 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-1
557323c
- New upstream release
557323c
6ee9ea7
* Wed Oct 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7.1-1
6ee9ea7
- New upstream release
6ee9ea7
e535cc9
* Tue Jul 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7-1
e535cc9
- New upstream release
e535cc9
aa46c97
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-3
aa46c97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
aa46c97
a29e589
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
a29e589
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a29e589
2eefee0
* Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
2eefee0
- New upstream release
2eefee0
a9ee380
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
a9ee380
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a9ee380
Steve e5d3db0
* Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
Steve e5d3db0
- New upstream release fixing 2.6.36 kernel header issue
Steve e5d3db0
a6341b4
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
a6341b4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a6341b4
47fda40
* Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3
29079c5
- Only open regular files in filecap
29079c5
76b62a2
* Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2
76b62a2
- In utils subpackage added a requires statement.
76b62a2
3a5a606
* Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
3a5a606
- New upstream release fixing multi-threading issue
3a5a606
13bd145
* Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
13bd145
- filecap shows full capabilities if a file has any
13bd145
2158dcf
* Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
2158dcf
- New upstream release
2158dcf
c318f97
* Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4
c318f97
- Use global macro and require pkgconfig for devel subpackage
c318f97
c318f97
* Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3
c318f97
- Apply patch to retain setpcap only if clearing bounding set
c318f97
c318f97
* Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2
c318f97
- Apply patch correcting pscap and netcap acct detection
c318f97
2735880
* Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
2735880
- New upstream release
2735880
e8c3858
* Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
e8c3858
- New upstream release
e8c3858
09143d6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
09143d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
09143d6
7c14f08
* Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1
7c14f08
- New upstream release
7c14f08
195773f
* Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
195773f
- New upstream release
195773f
64e9d49
* Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1
64e9d49
- New upstream release
64e9d49
d12dec3
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1
d12dec3
- New upstream release
d12dec3
708d16f
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1
bf27b13
- Initial build.
bf27b13