Blame SPECS/libcap-ng.spec

492c94
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
492c94
492c94
Summary: An alternate posix capabilities library
492c94
Name: libcap-ng
492c94
Version: 0.7.5
492c94
Release: 4%{?dist}
492c94
License: LGPLv2+
492c94
Group: System Environment/Libraries
492c94
URL: http://people.redhat.com/sgrubb/libcap-ng
492c94
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
492c94
Patch1: libcap-ng-test-fixup.patch
492c94
Patch2: libcap-ng-leak.patch
492c94
Patch3: libcap-ng-thread-test.patch
492c94
Patch4: libcap-ng-pacct-typo.patch
492c94
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
492c94
BuildRequires: kernel-headers >= 2.6.11 
492c94
492c94
%description
492c94
Libcap-ng is a library that makes using posix capabilities easier
492c94
492c94
%package devel
492c94
Summary: Header files for libcap-ng library
492c94
License: LGPLv2+
492c94
Group: Development/Libraries
492c94
Requires: kernel-headers >= 2.6.11
492c94
Requires: %{name} = %{version}-%{release}
492c94
Requires: pkgconfig
492c94
492c94
%description devel
492c94
The libcap-ng-devel package contains the files needed for developing
492c94
applications that need to use the libcap-ng library.
492c94
492c94
%package python
492c94
Summary: Python bindings for libcap-ng library
492c94
License: LGPLv2+
492c94
Group: Development/Libraries
492c94
BuildRequires: python-devel swig
492c94
Requires: %{name} = %{version}-%{release}
492c94
492c94
%description python
492c94
The libcap-ng-python package contains the bindings so that libcap-ng
492c94
and can be used by python applications.
492c94
492c94
%package utils
492c94
Summary: Utilities for analyzing and setting file capabilities
492c94
License: GPLv2+
492c94
Group: Development/Libraries
492c94
Requires: %{name} = %{version}-%{release}
492c94
492c94
%description utils
492c94
The libcap-ng-utils package contains applications to analyze the
492c94
posix capabilities of all the program running on a system. It also
492c94
lets you set the file system based capabilities.
492c94
492c94
%prep
492c94
%setup -q
492c94
%patch1 -p0
492c94
%patch2 -p0
492c94
%patch3 -p2
492c94
%patch4 -p2
492c94
492c94
%build
492c94
%configure --libdir=/%{_lib}
492c94
make %{?_smp_mflags}
492c94
492c94
%install
492c94
rm -rf $RPM_BUILD_ROOT
492c94
make DESTDIR="${RPM_BUILD_ROOT}" install
492c94
492c94
# Move the symlink
492c94
rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so
492c94
mkdir -p $RPM_BUILD_ROOT%{_libdir}
492c94
VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*)
492c94
LIBNAME=$(basename $VLIBNAME)
492c94
ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so
492c94
492c94
# Move the pkgconfig file
492c94
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
492c94
492c94
# Remove a couple things so they don't get picked up
492c94
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
492c94
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
492c94
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a
492c94
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la
492c94
492c94
%check
492c94
make check
492c94
492c94
%clean
492c94
rm -rf $RPM_BUILD_ROOT
492c94
492c94
%post -p /sbin/ldconfig
492c94
492c94
%postun -p /sbin/ldconfig
492c94
492c94
492c94
%files
492c94
%defattr(-,root,root,-)
492c94
%doc COPYING.LIB
492c94
%attr(0755,root,root) /%{_lib}/libcap-ng.so.*
492c94
492c94
%files devel
492c94
%defattr(-,root,root,-)
492c94
%attr(0644,root,root) %{_mandir}/man3/*
492c94
%attr(0644,root,root) %{_includedir}/cap-ng.h
492c94
%attr(0755,root,root) %{_libdir}/libcap-ng.so
492c94
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
492c94
%{_libdir}/pkgconfig/libcap-ng.pc
492c94
492c94
%files python
492c94
%defattr(-,root,root,-)
492c94
%attr(755,root,root) /%{_libdir}/python?.?/site-packages/_capng.so
492c94
%{python_sitearch}/capng.py*
492c94
492c94
%files utils
492c94
%defattr(-,root,root,-)
492c94
%doc COPYING
492c94
%attr(0755,root,root) %{_bindir}/*
492c94
%attr(0644,root,root) %{_mandir}/man8/*
492c94
492c94
%changelog
492c94
* Fri Aug 14 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-4
492c94
- resolves: #1253220 - captest list sys_psacct instead of sys_pacct
492c94
492c94
* Tue Aug 11 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-3
492c94
- resolves: #1185610 - libcap-ng: update caps table for newer kernels
492c94
- Fix thread test
492c94
492c94
* Wed May 13 2015 Steve Grubb <sgrubb@redhat.com> 0.7.5-2
492c94
- resolves: #1185610 - libcap-ng: update caps table for newer kernels
492c94
- Fix a leaked FD in upstream code
492c94
492c94
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.7.3-5
492c94
- Mass rebuild 2014-01-24
492c94
492c94
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.7.3-4
492c94
- Mass rebuild 2013-12-27
492c94
492c94
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-3
492c94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
492c94
492c94
* Wed Dec 19 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-2
492c94
- Remove useless code in pscap causing EBADFD
492c94
492c94
* Fri Nov 09 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-1
492c94
- New upstream release
492c94
492c94
* Wed Oct 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7.1-1
492c94
- New upstream release
492c94
492c94
* Tue Jul 24 2012 Steve Grubb <sgrubb@redhat.com> 0.7-1
492c94
- New upstream release
492c94
492c94
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-3
492c94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
492c94
492c94
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
492c94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
492c94
492c94
* Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
492c94
- New upstream release
492c94
492c94
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
492c94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
492c94
492c94
* Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
492c94
- New upstream release fixing 2.6.36 kernel header issue
492c94
492c94
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
492c94
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
492c94
492c94
* Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3
492c94
- Only open regular files in filecap
492c94
492c94
* Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2
492c94
- In utils subpackage added a requires statement.
492c94
492c94
* Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
492c94
- New upstream release fixing multi-threading issue
492c94
492c94
* Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
492c94
- filecap shows full capabilities if a file has any
492c94
492c94
* Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
492c94
- New upstream release
492c94
492c94
* Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4
492c94
- Use global macro and require pkgconfig for devel subpackage
492c94
492c94
* Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3
492c94
- Apply patch to retain setpcap only if clearing bounding set
492c94
492c94
* Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2
492c94
- Apply patch correcting pscap and netcap acct detection
492c94
492c94
* Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
492c94
- New upstream release
492c94
492c94
* Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
492c94
- New upstream release
492c94
492c94
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
492c94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
492c94
492c94
* Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1
492c94
- New upstream release
492c94
492c94
* Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
492c94
- New upstream release
492c94
492c94
* Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1
492c94
- New upstream release
492c94
492c94
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1
492c94
- New upstream release
492c94
492c94
* Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1
492c94
- Initial build.
492c94