Blame SPECS/libcap-ng.spec

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