Blame SPECS/libcap.spec

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