2010-02-16 15:50:54 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2009-06-29 17:43:40 +00:00
|
|
|
|
2009-06-12 13:52:58 +00:00
|
|
|
Summary: An alternate posix capabilities library
|
|
|
|
Name: libcap-ng
|
2015-05-08 22:47:35 +00:00
|
|
|
Version: 0.7.6
|
2015-05-07 17:44:42 +00:00
|
|
|
Release: 1%{?dist}
|
2009-06-12 13:52:58 +00:00
|
|
|
License: LGPLv2+
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://people.redhat.com/sgrubb/libcap-ng
|
|
|
|
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: kernel-headers >= 2.6.11
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for libcap-ng library
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: kernel-headers >= 2.6.11
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2010-02-16 15:50:54 +00:00
|
|
|
Requires: pkgconfig
|
2009-06-12 13:52:58 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libcap-ng-devel package contains the files needed for developing
|
|
|
|
applications that need to use the libcap-ng library.
|
|
|
|
|
2009-06-29 17:43:40 +00:00
|
|
|
%package python
|
|
|
|
Summary: Python bindings for libcap-ng library
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRequires: python-devel swig
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description python
|
|
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
|
|
|
and can be used by python applications.
|
|
|
|
|
2015-05-08 22:47:35 +00:00
|
|
|
%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.
|
|
|
|
|
2009-06-12 13:52:58 +00:00
|
|
|
%package utils
|
2012-07-24 17:40:59 +00:00
|
|
|
Summary: Utilities for analyzing and setting file capabilities
|
2009-06-12 13:52:58 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Group: Development/Libraries
|
2010-05-24 17:39:00 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-06-12 13:52:58 +00:00
|
|
|
|
|
|
|
%description utils
|
2012-07-24 17:40:59 +00:00
|
|
|
The libcap-ng-utils package contains applications to analyze the
|
2009-06-12 13:52:58 +00:00
|
|
|
posix capabilities of all the program running on a system. It also
|
|
|
|
lets you set the file system based capabilities.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2015-05-08 22:47:35 +00:00
|
|
|
%configure --libdir=/%{_lib} --with-python --with-python3
|
2009-06-12 13:52:58 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2015-05-08 22:47:35 +00:00
|
|
|
make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install
|
2009-06-12 13:52:58 +00:00
|
|
|
|
|
|
|
# Move the symlink
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*)
|
|
|
|
LIBNAME=$(basename $VLIBNAME)
|
|
|
|
ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so
|
|
|
|
|
2009-09-28 17:24:50 +00:00
|
|
|
# Move the pkgconfig file
|
|
|
|
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
|
2009-06-12 13:52:58 +00:00
|
|
|
# Remove a couple things so they don't get picked up
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
|
2009-06-29 17:43:40 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la
|
2009-06-12 13:52:58 +00:00
|
|
|
|
2011-06-24 20:40:16 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2009-06-12 13:52:58 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2014-07-17 18:14:05 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING.LIB
|
2015-05-08 22:47:35 +00:00
|
|
|
/%{_lib}/libcap-ng.so.*
|
2009-06-12 13:52:58 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
|
|
%attr(0644,root,root) %{_includedir}/cap-ng.h
|
2015-05-08 22:47:35 +00:00
|
|
|
%{_libdir}/libcap-ng.so
|
2009-06-29 17:43:40 +00:00
|
|
|
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
|
2009-09-28 17:24:50 +00:00
|
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
2009-06-29 17:43:40 +00:00
|
|
|
|
|
|
|
%files python
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(755,root,root) /%{_libdir}/python?.?/site-packages/_capng.so
|
|
|
|
%{python_sitearch}/capng.py*
|
2009-06-12 13:52:58 +00:00
|
|
|
|
2015-05-08 22:47:35 +00:00
|
|
|
%files python3
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(755,root,root) /%{_libdir}/python3.?/site-packages/*
|
|
|
|
%{python3_sitearch}/capng.py*
|
|
|
|
|
2009-06-12 13:52:58 +00:00
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root,-)
|
2014-07-17 18:14:05 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
2009-06-12 13:52:58 +00:00
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
|
|
|
|
|
|
|
%changelog
|
2015-05-08 22:47:35 +00:00
|
|
|
* Fri May 08 2015 Steve Grubb <sgrubb@redhat.com> 0.7.6-1
|
|
|
|
- New upstream release adding python3 support
|
|
|
|
|
2015-05-07 17:44:42 +00:00
|
|
|
* Thu May 07 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2014-08-17 02:30:28 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-17 18:14:05 +00:00
|
|
|
* Thu Jul 17 2014 Tom Callaway <spot@fedoraproject.org> - 0.7.4-6
|
|
|
|
- fix license handling
|
|
|
|
|
2014-06-23 17:41:42 +00:00
|
|
|
* Mon Jun 23 2014 Kyle McMartin <kyle@redhat.com> 0.7.4-5
|
2014-06-23 17:37:33 +00:00
|
|
|
- Clamp CAP_LAST_CAP at /proc/sys/kernel/cap_last_cap's value in the
|
|
|
|
Python bindings test if possible, otherwise use the value from
|
|
|
|
<linux/capability.h> since the kernel now has 37 capabilities upstream,
|
|
|
|
but our builders are not that up to date.
|
|
|
|
|
2014-06-07 02:46:50 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-07 14:12:49 +00:00
|
|
|
* Wed May 07 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-3
|
|
|
|
- Add PR_SET_NO_NEW_PRIVS call back to capng_lock
|
|
|
|
|
2014-05-01 02:07:42 +00:00
|
|
|
* Wed Apr 30 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-2
|
|
|
|
- Remove PR_SET_NO_NEW_PRIVS call in capng_lock
|
|
|
|
|
2014-04-24 12:48:56 +00:00
|
|
|
* Thu Apr 24 2014 Steve Grubb <sgrubb@redhat.com> 0.7.4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-11-14 15:57:55 +00:00
|
|
|
* Thu Nov 14 2013 Steve Grubb <sgrubb@redhat.com> 0.7.3-6
|
|
|
|
- Rebuild to pickup current CAP_LAST_CAP
|
|
|
|
|
2013-08-03 04:58:22 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-02 14:53:57 +00:00
|
|
|
* Tue Jul 02 2013 Karsten Hopp <karsten@redhat.com> 0.7.3-4
|
|
|
|
- bump release and rebuild to fix dependencies on PPC
|
|
|
|
|
2013-02-14 04:06:19 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-19 21:43:41 +00:00
|
|
|
* Wed Dec 19 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-2
|
|
|
|
- Remove useless code in pscap causing EBADFD
|
|
|
|
|
2012-11-09 20:14:47 +00:00
|
|
|
* Fri Nov 09 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-10-24 18:00:17 +00:00
|
|
|
* Wed Oct 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-07-24 17:40:59 +00:00
|
|
|
* Tue Jul 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-07-19 19:22:55 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 07:26:49 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-24 20:40:16 +00:00
|
|
|
* Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2011-02-08 04:55:19 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-03 17:48:33 +00:00
|
|
|
* Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
|
|
|
|
- New upstream release fixing 2.6.36 kernel header issue
|
|
|
|
|
2010-07-22 02:09:01 +00:00
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-06-17 18:47:44 +00:00
|
|
|
* Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3
|
2010-06-17 18:46:43 +00:00
|
|
|
- Only open regular files in filecap
|
|
|
|
|
2010-05-24 17:39:00 +00:00
|
|
|
* Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2
|
|
|
|
- In utils subpackage added a requires statement.
|
|
|
|
|
2010-05-06 14:10:15 +00:00
|
|
|
* Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
|
|
|
|
- New upstream release fixing multi-threading issue
|
|
|
|
|
2010-04-28 13:30:03 +00:00
|
|
|
* Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
|
|
|
|
- filecap shows full capabilities if a file has any
|
|
|
|
|
2010-03-11 17:56:09 +00:00
|
|
|
* Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2010-02-16 15:50:54 +00:00
|
|
|
* Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4
|
|
|
|
- Use global macro and require pkgconfig for devel subpackage
|
|
|
|
|
|
|
|
* Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3
|
|
|
|
- Apply patch to retain setpcap only if clearing bounding set
|
|
|
|
|
|
|
|
* Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2
|
|
|
|
- Apply patch correcting pscap and netcap acct detection
|
|
|
|
|
2009-09-28 17:24:50 +00:00
|
|
|
* Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-07-26 13:48:10 +00:00
|
|
|
* Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-07-25 05:24:15 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-29 17:43:40 +00:00
|
|
|
* Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-06-21 17:03:01 +00:00
|
|
|
* Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-06-19 14:07:30 +00:00
|
|
|
* Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-06-12 20:17:41 +00:00
|
|
|
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-06-12 13:58:29 +00:00
|
|
|
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1
|
2009-06-12 13:52:58 +00:00
|
|
|
- Initial build.
|
|
|
|
|