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