f40301
Name: libcap
e96547
Version: 2.48
86d678
Release: 4%{?dist}
f40301
Summary: Library for getting and setting POSIX.1e capabilities
f40301
URL: https://sites.google.com/site/fullycapable/
e96547
License: BSD or GPLv2
f40301
Group: System Environment/Libraries
f40301
33ce0a
Source: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/%{name}-%{version}.tar.gz
e96547
Patch0: %{name}-2.48-buildflags.patch
e96547
Patch1: %{name}-abi-compatibility.patch
e96547
Patch2: %{name}-static-analysis.patch
e96547
Patch3: %{name}-fix-ambient-caps.patch
86d678
Patch4: %{name}-fix-prctl-usage.patch
86d678
Patch5: %{name}-check-allocation.patch
f40301
f40301
BuildRequires: libattr-devel pam-devel perl-interpreter
e96547
BuildRequires: make
f40301
f40301
%description
f40301
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
f40301
draft 15 capabilities.
f40301
f40301
%package static
f40301
Summary: Static libraries for libcap development
f40301
Group: Development/Libraries
f40301
Requires: %{name} = %{version}-%{release}
f40301
f40301
%description static
f40301
The libcap-static package contains static libraries needed to develop programs
f40301
that use libcap and need to be statically linked. 
f40301
f40301
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
f40301
draft 15 capabilities.
f40301
f40301
%package devel
f40301
Summary: Development files for libcap
f40301
Group: Development/Libraries
f40301
Requires: %{name} = %{version}-%{release}
f40301
f40301
%description devel
f40301
Development files (Headers, etc) for libcap.
f40301
f40301
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
f40301
draft 15 capabilities.
f40301
f40301
Install libcap-devel if you want to develop or compile applications using
f40301
libcap.
f40301
f40301
%prep
e96547
%autosetup -p1
f40301
f40301
%build
f40301
# libcap can not be build with _smp_mflags:
f40301
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
f40301
     INCDIR=%{_includedir} MANDIR=%{_mandir} PKGCONFIGDIR=%{_libdir}/pkgconfig/
f40301
f40301
%install
f40301
make install RAISE_SETFCAP=no \
f40301
             DESTDIR=%{buildroot} \
f40301
             LIBDIR=%{_libdir} \
f40301
             SBINDIR=%{_sbindir} \
f40301
             PKGCONFIGDIR=%{_libdir}/pkgconfig/
f40301
f40301
mkdir -p %{buildroot}/%{_mandir}/man{2,3,8}
f40301
mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/
f40301
f40301
chmod +x %{buildroot}/%{_libdir}/*.so.*
f40301
f40301
%ldconfig_scriptlets
f40301
f40301
%files
f40301
%{!?_licensedir:%global license %%doc}
f40301
%license License
f40301
%doc doc/capability.notes
f40301
%{_libdir}/*.so.*
f40301
%{_sbindir}/*
f40301
%{_mandir}/man1/*
f40301
%{_mandir}/man8/*
f40301
%{_libdir}/security/pam_cap.so
f40301
f40301
%files static
f40301
%{_libdir}/libcap.a
e96547
%{_libdir}/libpsx.a
f40301
f40301
%files devel
f40301
%{_includedir}/*
f40301
%{_libdir}/*.so
f40301
%{_mandir}/man3/*
f40301
%{_libdir}/pkgconfig/libcap.pc
e96547
%{_libdir}/pkgconfig/libpsx.pc
f40301
f40301
%changelog
86d678
* Tue May 17 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 2.48-4
86d678
- check for successful memory allocation
86d678
  related: rhbz#2062648
86d678
86d678
* Mon May 16 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 2.48-3
86d678
- avoid overwriting errno set by prctl
86d678
  resolves: rhbz#2062648
86d678
e96547
* Fri Jan 28 2022 Zoltan Fridrich <zfridric@redhat.com> - 2.48-2
e96547
- rebase to 2.48
e96547
  resolves: rhbz#2032813
e96547
- fix ambient capabilities for non-root users
e96547
  resolves: rhbz#1950187
e96547
7ef434
* Thu Jun 10 2021 Zoltan Fridrich <zfridric@redhat.com> - 2.26-5
7ef434
- added CAP_PERFMON, CAP_BPF and CAP_CHECKPOINT_RESTORE capabilities
7ef434
  resolves: rhbz#1946982 rhbz#1921576
7ef434
093a71
* Fri May 22 2020 Jiri Vymazal <jvymazal@redhat.com> - 2.26-4
093a71
- added patch implementing support for ambient capabilities
093a71
  resolves: rhbz#1487388
093a71
33ce0a
* Tue Oct 15 2019 Marek Tamaskovic <mtamasko@redhat.com> - 2.26-3
33ce0a
- changed url
33ce0a
33ce0a
* Wed May 22 2019 Karsten Hopp <karsten@redhat.com> - 2.26-2
33ce0a
- rebuild
33ce0a
f40301
* Fri Apr 12 2019 Karsten Hopp <karsten@redhat.com> - 2.26-1
f40301
- update to 2.26
f40301
f40301
* Thu Apr 11 2019 Karsten Hopp <karsten@redhat.com> - 2.25-11
f40301
- rebuild
f40301
f40301
* Thu Apr 11 2019 Karsten Hopp <karsten@redhat.com> - 2.25-10
f40301
- rebuild
f40301
f40301
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-9
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f40301
f40301
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.25-8
f40301
- Switch to %%ldconfig_scriptlets
f40301
f40301
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-7
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f40301
f40301
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-6
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f40301
f40301
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-5
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f40301
f40301
* Thu Dec 15 2016 Karsten Hopp <karsten@redhat.com> - 2.25-4
f40301
- add -static subpackage (rhbz#1380251)
f40301
f40301
* Sun Nov 27 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.25-3
f40301
- Add perl BR to fix FTBFS
f40301
f40301
* Mon Apr 25 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.25-2
f40301
- Fix pkgconfig install location on aarch64
f40301
- Spec file cleanups
f40301
f40301
* Mon Apr 11 2016 Karsten Hopp <karsten@redhat.com> - 2.25-1
f40301
- libcap-2.25
f40301
f40301
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-9
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f40301
f40301
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24-8
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f40301
f40301
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24-7
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f40301
f40301
* Thu Jul 17 2014 Tom Callaway <spot@fedoraproject.org> - 2.24-6
f40301
- fix license handling
f40301
f40301
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24-5
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f40301
f40301
* Fri Apr 25 2014 Karsten Hopp <karsten@redhat.com> 2.24-4
f40301
- fix libdir in libcap.pc
f40301
f40301
* Wed Apr 23 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2.24-3
f40301
- set pkg-config dir to proper value to get it built on AArch64
f40301
f40301
* Wed Apr 16 2014 Karsten Hopp <karsten@redhat.com> 2.24-2
f40301
- fix URL and license
f40301
f40301
* Wed Apr 16 2014 Karsten Hopp <karsten@redhat.com> 2.24-1
f40301
- update to 2.24
f40301
- dropped patch for rhbz#911878, it is upstream now
f40301
f40301
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-7
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f40301
f40301
* Tue May 14 2013 Karsten Hopp <karsten@redhat.com> 2.22-6
f40301
- mv libraries to /usr/lib*
f40301
- add getpcaps man page 
f40301
- spec file cleanup
f40301
- fix URL of tarball
f40301
f40301
* Tue May 14 2013 Karsten Hopp <karsten@redhat.com> 2.22-5
f40301
- add patch from Mark Wielaard to fix use of uninitialized memory in _fcaps_load
f40301
  rhbz #911878
f40301
f40301
* Sun Feb 24 2013 Ville Skyttä <ville.skytta@iki.fi> - 2.22-5
f40301
- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS.
f40301
f40301
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-4
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f40301
f40301
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-3
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f40301
f40301
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-2
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f40301
f40301
* Wed Jul 27 2011 Karsten Hopp <karsten@redhat.com> 2.22-1
f40301
- update to 2.22 (#689752)
f40301
f40301
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-2
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f40301
f40301
* Thu Dec 10 2009 Karsten Hopp <karsten@redhat.com> 2.17-1
f40301
- update to 2.17
f40301
f40301
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16-5
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f40301
f40301
* Tue Jun 16 2009 Karsten Hopp <karsten@redhat.com> 2.16-4
f40301
- fix build problems with p.e. cdrkit
f40301
f40301
* Sun Mar 22 2009 Karsten Hopp <karsten@redhat.com> 2.16-1
f40301
- update, with a fix for rebuild problems
f40301
f40301
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-3
f40301
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f40301
f40301
* Fri Jun 06 2008 Karsten Hopp <karsten@redhat.com> 2.10-2
f40301
- drop libcap.so.1
f40301
- fix buildrequires and path to pam security module
f40301
f40301
* Thu Jun 05 2008 Karsten Hopp <karsten@redhat.com> 2.10-1
f40301
- libcap-2.10
f40301
f40301
* Thu Feb 21 2008 Karsten Hopp <karsten@redhat.com> 2.06-4
f40301
- don't build static binaries (#433808)
f40301
f40301
* Wed Feb 20 2008 Karsten Hopp <karsten@redhat.com> 2.06-3
f40301
- temporarily add libcap-1 libraries to bootstrap some packages
f40301
f40301
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.06-2
f40301
- Autorebuild for GCC 4.3
f40301
f40301
* Fri Feb 15 2008 Karsten Hopp <karsten@redhat.com> 2.06-1
f40301
- upate to 2.06 (#432983)
f40301
f40301
* Wed Jan 16 2008 Karsten Hopp <karsten@redhat.com> 1.10-33
f40301
- drop post,postun requirements on ldconfig as find-requires can handle this
f40301
f40301
* Tue Jan 15 2008 Karsten Hopp <karsten@redhat.com> 1.10-32
f40301
- add disttag
f40301
- fix changelog
f40301
- fix defattr
f40301
f40301
* Mon Jan 14 2008 Karsten Hopp <karsten@redhat.com> 1.10-31
f40301
- use cp -p in spec file to preserve file attributes (#225992)
f40301
- add license file
f40301
f40301
* Fri Aug 24 2007 Karsten Hopp <karsten@redhat.com> 1.10-30
f40301
- rebuild
f40301
f40301
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 1.10-29
f40301
- add CAP_AUDIT_WRITE and CAP_AUDIT_CONTROL (#229833)
f40301
f40301
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.10-28
f40301
- drop obsolete ia64 patch
f40301
- rpmlint fixes
f40301
f40301
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.10-27
f40301
- misc. review fixes
f40301
- add debian patch to make it build with a recent glibc
f40301
- remove static lib
f40301
f40301
* Wed Jul 19 2006 Karsten Hopp <karsten@redhat.de> 1.10-25
f40301
- add patch to support COPTFLAG (#199365)
f40301
f40301
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2.1
f40301
- rebuild
f40301
f40301
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2
f40301
- bump again for double-long bug on ppc(64)
f40301
f40301
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.1
f40301
- rebuilt for new gcc4.1 snapshot and glibc changes
f40301
f40301
* Mon Dec 19 2005 Karsten Hopp <karsten@redhat.de> 1.10-24
f40301
- added development manpages
f40301
- as there are no manpages for the executables available, added at least
f40301
  a FAQ (#172324)
f40301
f40301
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f40301
- rebuilt
f40301
f40301
* Mon Oct 31 2005 Steve Grubb <sgrubb@redhat.com> 1.10-23
f40301
- rebuild to pick up audit capabilities
f40301
f40301
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.10-22
f40301
- build with gcc-4
f40301
f40301
* Wed Feb 09 2005 Karsten Hopp <karsten@redhat.de> 1.10-21
f40301
- rebuilt
f40301
f40301
* Tue Aug 31 2004 Phil Knirsch <pknirsch@redhat.com> 1.10-20
f40301
- Fix wrong typedef in userland patch (#98801)
f40301
f40301
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f40301
- rebuilt
f40301
f40301
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
f40301
- rebuilt
f40301
f40301
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f40301
- rebuilt
f40301
f40301
* Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.10-17
f40301
- use _manpath
f40301
f40301
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
f40301
- rebuilt
f40301
f40301
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
f40301
- rebuilt
f40301
f40301
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
f40301
- set execute bits on library so that requires are generated.
f40301
f40301
* Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
f40301
- Removed %%name macro sillyness from package Summary, description text, etc.
f40301
- Removed archaic Prefix: tag
f40301
- lib64 fixes everywhere to use _lib, _libdir, etc
f40301
- Removed deletion of RPM_BUILD_DIR from %%clean section
f40301
- Added -q flag to setup macro
f40301
- Severely cleaned up spec file, and removed usage of perl
f40301
f40301
* Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
f40301
- CFLAGS was using COPTFLAG variable, not COPTFLAGS
f40301
- build with -fpic
f40301
- apply the IA-64 patch everywhere, use capget/capset from glibc,
f40301
  not directly as _syscall (as it is broken on IA-32 with -fpic)
f40301
- reenable alpha
f40301
f40301
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
f40301
- automated rebuild
f40301
f40301
* Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10
f40301
- Exclude alpha for now, apparent gcc bug.
f40301
f40301
* Fri Nov  9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
f40301
- Fix sys/capabilities.h header (#55727)
f40301
- Move to /lib, some applications seem to be using this rather early
f40301
  (#55733)
f40301
f40301
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
f40301
- Add post,postun scripts
f40301
f40301
* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com>
f40301
- don't build libcap.so.1 with ld -shared, but gcc -shared
f40301
f40301
* Wed Jun 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
f40301
- Rebuild - it was missing for alpha
f40301
f40301
* Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
f40301
- add s390/s390x support
f40301
f40301
* Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1
f40301
- initial RPM
f40301
- fix build on ia64