|
|
340b7f |
Name: libcap
|
|
|
340b7f |
Version: 2.22
|
|
|
c4a028 |
Release: 11%{?dist}
|
|
|
340b7f |
Summary: Library for getting and setting POSIX.1e capabilities
|
|
|
340b7f |
# Original tarball should be here, but got deleted:
|
|
|
340b7f |
#Source: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-2.22.tar.bz2
|
|
|
c4a028 |
URL: https://sites.google.com/site/fullycapable/
|
|
|
c4a028 |
Source: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/%{name}-%{version}.tar.gz
|
|
|
c4a028 |
|
|
|
340b7f |
# http://manned.org/getpcaps/299a4949/src:
|
|
|
340b7f |
Source1: getpcaps.8
|
|
|
643034 |
Source2: libcap.pc
|
|
|
340b7f |
Patch0: %{name}-2.22-buildflags.patch
|
|
|
340b7f |
Patch1: libcap-2.22-signed-sizeof-compare.patch
|
|
|
11e3ef |
Patch2: %{name}-PAM_REINITIALIZE_CRED.patch
|
|
|
340b7f |
|
|
|
340b7f |
License: LGPLv2+
|
|
|
340b7f |
Group: System Environment/Libraries
|
|
|
340b7f |
BuildRequires: libattr-devel pam-devel
|
|
|
340b7f |
|
|
|
340b7f |
%description
|
|
|
340b7f |
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
|
|
340b7f |
draft 15 capabilities.
|
|
|
340b7f |
|
|
|
340b7f |
%package devel
|
|
|
340b7f |
Summary: Development files for libcap
|
|
|
340b7f |
Group: Development/Libraries
|
|
|
340b7f |
Requires: %{name} = %{version}-%{release}
|
|
|
340b7f |
|
|
|
340b7f |
%description devel
|
|
|
340b7f |
Development files (Headers, libraries for static linking, etc) for libcap.
|
|
|
340b7f |
|
|
|
340b7f |
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
|
|
340b7f |
draft 15 capabilities.
|
|
|
340b7f |
|
|
|
340b7f |
Install libcap-devel if you want to develop or compile applications using
|
|
|
340b7f |
libcap.
|
|
|
340b7f |
|
|
|
340b7f |
%prep
|
|
|
340b7f |
%setup -q
|
|
|
340b7f |
%patch0 -p1
|
|
|
340b7f |
%patch1 -p1
|
|
|
11e3ef |
%patch2 -p1
|
|
|
340b7f |
|
|
|
340b7f |
%build
|
|
|
340b7f |
# libcap can not be build with _smp_mflags:
|
|
|
340b7f |
make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
|
|
340b7f |
INCDIR=%{_includedir} MANDIR=%{_mandir}
|
|
|
340b7f |
|
|
|
340b7f |
%install
|
|
|
340b7f |
make install RAISE_SETFCAP=no \
|
|
|
340b7f |
DESTDIR=%{buildroot} \
|
|
|
340b7f |
LIBDIR=%{buildroot}/%{_libdir} \
|
|
|
340b7f |
SBINDIR=%{buildroot}/%{_sbindir} \
|
|
|
340b7f |
INCDIR=%{buildroot}/%{_includedir} \
|
|
|
340b7f |
MANDIR=%{buildroot}/%{_mandir}/
|
|
|
643034 |
mkdir -p %{buildroot}/%{_mandir}/man{2,3,8} %{buildroot}/%{_libdir}/pkgconfig/
|
|
|
340b7f |
mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/
|
|
|
340b7f |
cp -f %{SOURCE1} %{buildroot}/%{_mandir}/man8/
|
|
|
643034 |
cp -f %{SOURCE2} %{buildroot}/%{_libdir}/pkgconfig/libcap.pc
|
|
|
340b7f |
|
|
|
340b7f |
# remove static lib
|
|
|
340b7f |
rm -f %{buildroot}/%{_libdir}/libcap.a
|
|
|
340b7f |
|
|
|
340b7f |
chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|
|
340b7f |
|
|
|
340b7f |
%post -p /sbin/ldconfig
|
|
|
340b7f |
%postun -p /sbin/ldconfig
|
|
|
340b7f |
|
|
|
340b7f |
%files
|
|
|
340b7f |
%defattr(-,root,root,-)
|
|
|
340b7f |
/%{_libdir}/*.so.*
|
|
|
340b7f |
%{_sbindir}/*
|
|
|
340b7f |
%{_mandir}/man1/*
|
|
|
340b7f |
%{_mandir}/man8/*
|
|
|
340b7f |
/%{_libdir}/security/pam_cap.so
|
|
|
340b7f |
%doc doc/capability.notes License
|
|
|
340b7f |
|
|
|
340b7f |
%files devel
|
|
|
340b7f |
%defattr(-,root,root,-)
|
|
|
340b7f |
%{_includedir}/*
|
|
|
340b7f |
/%{_libdir}/*.so
|
|
|
340b7f |
%{_mandir}/man3/*
|
|
|
643034 |
/%{_libdir}/pkgconfig/libcap.pc
|
|
|
340b7f |
|
|
|
340b7f |
%clean
|
|
|
340b7f |
rm -rf %{buildroot}
|
|
|
340b7f |
|
|
|
340b7f |
%changelog
|
|
|
c4a028 |
* Tue Oct 15 2019 Marek Tamaskovic <mtamasko@redhat.com> - 2.26-11
|
|
|
c4a028 |
- changed url
|
|
|
c4a028 |
|
|
|
11e3ef |
* Thu Apr 11 2019 Karsten Hopp <karsten@redhat.com> - 2.22-10
|
|
|
11e3ef |
- check for PAM_REINITIALIZE_CRED in pam_cap.so, required by sudo
|
|
|
11e3ef |
|
|
|
643034 |
* Mon Mar 06 2017 Karsten Hopp <karsten@redhat.com> - 2.22-9
|
|
|
c4a028 |
- add pkgconfig file
|
|
|
643034 |
|
|
|
08c22b |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.22-8
|
|
|
08c22b |
- Mass rebuild 2014-01-24
|
|
|
08c22b |
|
|
|
08c22b |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.22-7
|
|
|
08c22b |
- Mass rebuild 2013-12-27
|
|
|
08c22b |
|
|
|
340b7f |
* Tue May 14 2013 Karsten Hopp <karsten@redhat.com> 2.22-6
|
|
|
340b7f |
- mv libraries to /usr/lib*
|
|
|
c4a028 |
- add getpcaps man page
|
|
|
340b7f |
- spec file cleanup
|
|
|
340b7f |
- fix URL of tarball
|
|
|
340b7f |
|
|
|
340b7f |
* Tue May 14 2013 Karsten Hopp <karsten@redhat.com> 2.22-5
|
|
|
340b7f |
- add patch from Mark Wielaard to fix use of uninitialized memory in _fcaps_load
|
|
|
340b7f |
rhbz #911878
|
|
|
340b7f |
|
|
|
340b7f |
* Sun Feb 24 2013 Ville Skyttä <ville.skytta@iki.fi> - 2.22-5
|
|
|
340b7f |
- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS.
|
|
|
340b7f |
|
|
|
340b7f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-4
|
|
|
340b7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-3
|
|
|
340b7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-2
|
|
|
340b7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jul 27 2011 Karsten Hopp <karsten@redhat.com> 2.22-1
|
|
|
340b7f |
- update to 2.22 (#689752)
|
|
|
340b7f |
|
|
|
340b7f |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-2
|
|
|
340b7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Thu Dec 10 2009 Karsten Hopp <karsten@redhat.com> 2.17-1
|
|
|
340b7f |
- update to 2.17
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16-5
|
|
|
340b7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Jun 16 2009 Karsten Hopp <karsten@redhat.com> 2.16-4
|
|
|
340b7f |
- fix build problems with p.e. cdrkit
|
|
|
340b7f |
|
|
|
340b7f |
* Sun Mar 22 2009 Karsten Hopp <karsten@redhat.com> 2.16-1
|
|
|
340b7f |
- update, with a fix for rebuild problems
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-3
|
|
|
340b7f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Jun 06 2008 Karsten Hopp <karsten@redhat.com> 2.10-2
|
|
|
340b7f |
- drop libcap.so.1
|
|
|
340b7f |
- fix buildrequires and path to pam security module
|
|
|
340b7f |
|
|
|
340b7f |
* Thu Jun 05 2008 Karsten Hopp <karsten@redhat.com> 2.10-1
|
|
|
340b7f |
- libcap-2.10
|
|
|
340b7f |
|
|
|
340b7f |
* Thu Feb 21 2008 Karsten Hopp <karsten@redhat.com> 2.06-4
|
|
|
340b7f |
- don't build static binaries (#433808)
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Feb 20 2008 Karsten Hopp <karsten@redhat.com> 2.06-3
|
|
|
340b7f |
- temporarily add libcap-1 libraries to bootstrap some packages
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.06-2
|
|
|
340b7f |
- Autorebuild for GCC 4.3
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Feb 15 2008 Karsten Hopp <karsten@redhat.com> 2.06-1
|
|
|
340b7f |
- upate to 2.06 (#432983)
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jan 16 2008 Karsten Hopp <karsten@redhat.com> 1.10-33
|
|
|
340b7f |
- drop post,postun requirements on ldconfig as find-requires can handle this
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Jan 15 2008 Karsten Hopp <karsten@redhat.com> 1.10-32
|
|
|
340b7f |
- add disttag
|
|
|
340b7f |
- fix changelog
|
|
|
340b7f |
- fix defattr
|
|
|
340b7f |
|
|
|
340b7f |
* Mon Jan 14 2008 Karsten Hopp <karsten@redhat.com> 1.10-31
|
|
|
340b7f |
- use cp -p in spec file to preserve file attributes (#225992)
|
|
|
340b7f |
- add license file
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Aug 24 2007 Karsten Hopp <karsten@redhat.com> 1.10-30
|
|
|
340b7f |
- rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 1.10-29
|
|
|
340b7f |
- add CAP_AUDIT_WRITE and CAP_AUDIT_CONTROL (#229833)
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.10-28
|
|
|
340b7f |
- drop obsolete ia64 patch
|
|
|
340b7f |
- rpmlint fixes
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.10-27
|
|
|
340b7f |
- misc. review fixes
|
|
|
340b7f |
- add debian patch to make it build with a recent glibc
|
|
|
340b7f |
- remove static lib
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jul 19 2006 Karsten Hopp <karsten@redhat.de> 1.10-25
|
|
|
340b7f |
- add patch to support COPTFLAG (#199365)
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2.1
|
|
|
340b7f |
- rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2
|
|
|
340b7f |
- bump again for double-long bug on ppc(64)
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.1
|
|
|
340b7f |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
340b7f |
|
|
|
340b7f |
* Mon Dec 19 2005 Karsten Hopp <karsten@redhat.de> 1.10-24
|
|
|
340b7f |
- added development manpages
|
|
|
340b7f |
- as there are no manpages for the executables available, added at least
|
|
|
340b7f |
a FAQ (#172324)
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Mon Oct 31 2005 Steve Grubb <sgrubb@redhat.com> 1.10-23
|
|
|
340b7f |
- rebuild to pick up audit capabilities
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.10-22
|
|
|
340b7f |
- build with gcc-4
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Feb 09 2005 Karsten Hopp <karsten@redhat.de> 1.10-21
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Aug 31 2004 Phil Knirsch <pknirsch@redhat.com> 1.10-20
|
|
|
340b7f |
- Fix wrong typedef in userland patch (#98801)
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.10-17
|
|
|
340b7f |
- use _manpath
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
340b7f |
- rebuilt
|
|
|
340b7f |
|
|
|
340b7f |
* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
|
|
|
340b7f |
- set execute bits on library so that requires are generated.
|
|
|
340b7f |
|
|
|
340b7f |
* Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
|
|
|
340b7f |
- Removed %%name macro sillyness from package Summary, description text, etc.
|
|
|
340b7f |
- Removed archaic Prefix: tag
|
|
|
340b7f |
- lib64 fixes everywhere to use _lib, _libdir, etc
|
|
|
340b7f |
- Removed deletion of RPM_BUILD_DIR from %%clean section
|
|
|
340b7f |
- Added -q flag to setup macro
|
|
|
340b7f |
- Severely cleaned up spec file, and removed usage of perl
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
|
|
|
340b7f |
- CFLAGS was using COPTFLAG variable, not COPTFLAGS
|
|
|
340b7f |
- build with -fpic
|
|
|
340b7f |
- apply the IA-64 patch everywhere, use capget/capset from glibc,
|
|
|
340b7f |
not directly as _syscall (as it is broken on IA-32 with -fpic)
|
|
|
340b7f |
- reenable alpha
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
340b7f |
- automated rebuild
|
|
|
340b7f |
|
|
|
340b7f |
* Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10
|
|
|
340b7f |
- Exclude alpha for now, apparent gcc bug.
|
|
|
340b7f |
|
|
|
340b7f |
* Fri Nov 9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
|
|
|
340b7f |
- Fix sys/capabilities.h header (#55727)
|
|
|
340b7f |
- Move to /lib, some applications seem to be using this rather early
|
|
|
340b7f |
(#55733)
|
|
|
340b7f |
|
|
|
340b7f |
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
|
340b7f |
- Add post,postun scripts
|
|
|
340b7f |
|
|
|
340b7f |
* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com>
|
|
|
340b7f |
- don't build libcap.so.1 with ld -shared, but gcc -shared
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jun 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
|
340b7f |
- Rebuild - it was missing for alpha
|
|
|
340b7f |
|
|
|
340b7f |
* Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
340b7f |
- add s390/s390x support
|
|
|
340b7f |
|
|
|
340b7f |
* Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1
|
|
|
340b7f |
- initial RPM
|
|
|
340b7f |
- fix build on ia64
|