Blame SPECS/libcap-ng.spec

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