017bd4
Summary: Alternate posix capabilities library
017bd4
Name: libcap-ng
017bd4
Version: 0.8.2
ae0c4b
Release: 7%{?dist}
017bd4
License: LGPLv2+
017bd4
URL: https://people.redhat.com/sgrubb/libcap-ng/
017bd4
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
017bd4
# This patch can be removed when 1899540 is resolved
017bd4
Patch1: libcap-ng-0.8.2-apply-disable.patch
017bd4
BuildRequires: gcc
017bd4
BuildRequires: make
017bd4
BuildRequires: kernel-headers >= 2.6.11 
017bd4
BuildRequires: libattr-devel
017bd4
017bd4
%description
017bd4
Libcap-ng is a library that makes using posix capabilities easier
017bd4
017bd4
%package devel
017bd4
Summary: Header files for libcap-ng library
017bd4
License: LGPLv2+
017bd4
Requires: kernel-headers >= 2.6.11
017bd4
Requires: %{name}%{?_isa} = %{version}-%{release}
017bd4
Requires: pkgconfig
017bd4
017bd4
%description devel
017bd4
The libcap-ng-devel package contains the files needed for developing
017bd4
applications that need to use the libcap-ng library.
017bd4
017bd4
%package python3
017bd4
Summary: Python3 bindings for libcap-ng library
017bd4
License: LGPLv2+
017bd4
BuildRequires: python3-devel swig
017bd4
BuildRequires: make
017bd4
Requires: %{name}%{?_isa} = %{version}-%{release}
017bd4
017bd4
%description python3
017bd4
The libcap-ng-python3 package contains the bindings so that libcap-ng
017bd4
and can be used by python3 applications.
017bd4
017bd4
%package utils
017bd4
Summary: Utilities for analyzing and setting file capabilities
017bd4
License: GPLv2+
017bd4
Requires: %{name}%{?_isa} = %{version}-%{release}
017bd4
017bd4
%description utils
017bd4
The libcap-ng-utils package contains applications to analyze the
017bd4
posix capabilities of all the program running on a system. It also
017bd4
lets you set the file system based capabilities.
017bd4
017bd4
%prep
017bd4
%setup -q
017bd4
%patch1 -p1
017bd4
017bd4
%build
017bd4
%configure --libdir=%{_libdir} --with-python=no --with-python3
017bd4
%make_build CFLAGS="%{optflags}"
017bd4
017bd4
%install
017bd4
%make_install
017bd4
017bd4
# Remove a couple things so they don't get picked up
017bd4
rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.la
017bd4
rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.a
017bd4
rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.la
017bd4
rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.a
017bd4
rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.a
017bd4
rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.la
017bd4
017bd4
%check
017bd4
make check
017bd4
017bd4
%ldconfig_scriptlets
017bd4
017bd4
%files
017bd4
%license COPYING.LIB
017bd4
%{_libdir}/libcap-ng.so.*
017bd4
%{_libdir}/libdrop_ambient.so.*
017bd4
%attr(0644,root,root) %{_mandir}/man7/*
017bd4
017bd4
%files devel
017bd4
%attr(0644,root,root) %{_mandir}/man3/*
017bd4
%attr(0644,root,root) %{_includedir}/cap-ng.h
017bd4
%{_libdir}/libcap-ng.so
017bd4
%{_libdir}/libdrop_ambient.so
017bd4
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
017bd4
%{_libdir}/pkgconfig/libcap-ng.pc
017bd4
017bd4
%files python3
017bd4
%attr(755,root,root) %{python3_sitearch}/*
017bd4
%{python3_sitearch}/capng.py*
017bd4
017bd4
%files utils
017bd4
%license COPYING
017bd4
%attr(0755,root,root) %{_bindir}/*
017bd4
%attr(0644,root,root) %{_mandir}/man8/*
017bd4
017bd4
%changelog
ae0c4b
* Tue Feb 15 2022 <ansasaki@redhat.com> - 0.8.2-7
ae0c4b
- Update apply-disable patch (#2045857)
ae0c4b
  Resolves: rhbz#2045857
ae0c4b
017bd4
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-6
017bd4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
017bd4
  Related: rhbz#1991688
017bd4
017bd4
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-5
017bd4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
017bd4
017bd4
* Tue Feb 02 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-4
017bd4
- Adjust syslog warning for bad use of capng_apply
017bd4
017bd4
* Sat Jan 30 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-3
017bd4
- Add syslog warning for bad use of capng_apply
017bd4
017bd4
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
017bd4
017bd4
* Wed Dec 09 2020 Steve Grubb <sgrubb@redhat.com> 0.8.2-1
017bd4
- New upstream bugfix release
017bd4
017bd4
* Fri Nov 20 2020 Steve Grubb <sgrubb@redhat.com> 0.8.1-2
017bd4
- Add temporary patch disabling bounding set error codes
017bd4
017bd4
* Wed Nov 18 2020 Steve Grubb <sgrubb@redhat.com> 0.8.1-1
017bd4
- New upstream bugfix release
017bd4
017bd4
* Tue Sep 08 2020 Steve Grubb <sgrubb@redhat.com> 0.8-1
017bd4
- New upstream feature release
017bd4
017bd4
* Sun Aug 23 2020 Steve Grubb <sgrubb@redhat.com> 0.7.11-1
017bd4
- New upstream release
017bd4
017bd4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.10-4
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
017bd4
017bd4
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.10-3
017bd4
- Rebuilt for Python 3.9
017bd4
017bd4
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.10-2
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
017bd4
017bd4
* Tue Oct 01 2019 Steve Grubb <sgrubb@redhat.com> 0.7.10-1
017bd4
- New upstream release
017bd4
017bd4
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-9
017bd4
- Rebuilt for Python 3.8
017bd4
017bd4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-8
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
017bd4
017bd4
* Fri Mar  8 2019 Joe Orton <jorton@redhat.com> - 0.7.9-7
017bd4
- fix crash on dlclose due to atfork handler (#1680481)
017bd4
017bd4
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-6
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
017bd4
017bd4
* Tue Oct 16 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-5
017bd4
- Remove python2 bindings (#1634889)
017bd4
017bd4
* Thu Aug 09 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-4
017bd4
- Fix bug where filecap may not show capabilities
017bd4
017bd4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-3
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
017bd4
017bd4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-2
017bd4
- Rebuilt for Python 3.7
017bd4
017bd4
* Wed Feb 07 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-1
017bd4
- New upstream bugfix release
017bd4
017bd4
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.8-9
017bd4
- Switch to %%ldconfig_scriptlets
017bd4
017bd4
* Fri Jan 05 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.7.8-8
017bd4
- Update Python 2 dependency declarations to new packaging standards
017bd4
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
017bd4
017bd4
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.8-7
017bd4
- Add Provides for the old name without %%_isa
017bd4
017bd4
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.8-6
017bd4
- Python 2 binary package renamed to python2-libcap-ng
017bd4
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
017bd4
017bd4
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-5
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
017bd4
017bd4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-4
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
017bd4
017bd4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-3
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
017bd4
017bd4
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.8-2
017bd4
- Rebuild for Python 3.6
017bd4
017bd4
* Sun Jul 24 2016 Steve Grubb <sgrubb@redhat.com> 0.7.8-1
017bd4
- New upstream bugfix release
017bd4
017bd4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-5
017bd4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
017bd4
017bd4
* Wed Feb 03 2016 Steve Grubb <sgrubb@redhat.com> 0.7.7-4
017bd4
- use python site arch macros (#1303610)
017bd4
017bd4
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-3
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
017bd4
017bd4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-2
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
017bd4
017bd4
* Wed May 13 2015 Steve Grubb <sgrubb@redhat.com> 0.7.7-1
017bd4
- New upstream bugfix release
017bd4
017bd4
* Fri May 08 2015 Steve Grubb <sgrubb@redhat.com> 0.7.6-1
017bd4
- New upstream release adding python3 support
017bd4
017bd4
* Thu May 07 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-1
017bd4
- New upstream release
017bd4
017bd4
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-7
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
017bd4
017bd4
* Thu Jul 17 2014 Tom Callaway <spot@fedoraproject.org> - 0.7.4-6
017bd4
- fix license handling
017bd4
017bd4
* Mon Jun 23 2014 Kyle McMartin <kyle@redhat.com> 0.7.4-5
017bd4
- Clamp CAP_LAST_CAP at /proc/sys/kernel/cap_last_cap's value in the
017bd4
  Python bindings test if possible, otherwise use the value from
017bd4
  <linux/capability.h> since the kernel now has 37 capabilities upstream,
017bd4
  but our builders are not that up to date.
017bd4
017bd4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-4
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
017bd4
017bd4
* Wed May 07 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-3
017bd4
- Add PR_SET_NO_NEW_PRIVS call back to capng_lock
017bd4
017bd4
* Wed Apr 30 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-2
017bd4
- Remove PR_SET_NO_NEW_PRIVS call in capng_lock
017bd4
017bd4
* Thu Apr 24 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-1
017bd4
- New upstream release
017bd4
017bd4
* Thu Nov 14 2013 Steve Grubb <sgrubb@redhat.com> 0.7.3-6
017bd4
- Rebuild to pickup current CAP_LAST_CAP
017bd4
017bd4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-5
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
017bd4
017bd4
* Tue Jul 02 2013 Karsten Hopp <karsten@redhat.com> 0.7.3-4
017bd4
- bump release and rebuild to fix dependencies on PPC
017bd4
017bd4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-3
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
017bd4
017bd4
* Wed Dec 19 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-2
017bd4
- Remove useless code in pscap causing EBADFD
017bd4
017bd4
* Fri Nov 09 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-1
017bd4
- New upstream release
017bd4
017bd4
* Wed Oct 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7.1-1
017bd4
- New upstream release
017bd4
017bd4
* Tue Jul 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7-1
017bd4
- New upstream release
017bd4
017bd4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-3
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
017bd4
017bd4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
017bd4
017bd4
* Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
017bd4
- New upstream release
017bd4
017bd4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
017bd4
017bd4
* Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
017bd4
- New upstream release fixing 2.6.36 kernel header issue
017bd4
017bd4
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
017bd4
017bd4
* Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3
017bd4
- Only open regular files in filecap
017bd4
017bd4
* Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2
017bd4
- In utils subpackage added a requires statement.
017bd4
017bd4
* Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
017bd4
- New upstream release fixing multi-threading issue
017bd4
017bd4
* Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
017bd4
- filecap shows full capabilities if a file has any
017bd4
017bd4
* Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
017bd4
- New upstream release
017bd4
017bd4
* Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4
017bd4
- Use global macro and require pkgconfig for devel subpackage
017bd4
017bd4
* Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3
017bd4
- Apply patch to retain setpcap only if clearing bounding set
017bd4
017bd4
* Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2
017bd4
- Apply patch correcting pscap and netcap acct detection
017bd4
017bd4
* Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
017bd4
- New upstream release
017bd4
017bd4
* Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
017bd4
- New upstream release
017bd4
017bd4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
017bd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
017bd4
017bd4
* Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1
017bd4
- New upstream release
017bd4
017bd4
* Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
017bd4
- New upstream release
017bd4
017bd4
* Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1
017bd4
- New upstream release
017bd4
017bd4
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1
017bd4
- New upstream release
017bd4
017bd4
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1
017bd4
- Initial build.
017bd4