|
|
282e56 |
Name: compat-libcap1
|
|
|
282e56 |
Version: 1.10
|
|
|
2797f3 |
Release: 7%{?dist}
|
|
|
282e56 |
Summary: Library for getting and setting POSIX.1e capabilities
|
|
|
282e56 |
Source: ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/libcap-1.10.tar.gz
|
|
|
282e56 |
Source1: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/capfaq-0.2.txt
|
|
|
282e56 |
License: BSD-like and LGPL
|
|
|
282e56 |
Patch: libcap-1.10-ia64.patch
|
|
|
282e56 |
Patch1: libcap-1.10-userland.patch
|
|
|
282e56 |
Patch2: libcap-1.10-shared.patch
|
|
|
282e56 |
Patch3: libcap-1.10-alpha.patch
|
|
|
282e56 |
Patch4: libcap-1.10-useCFLAGSwithCC.patch
|
|
|
282e56 |
Patch5: libcap-1.10-types.patch
|
|
|
282e56 |
Group: System Environment/Libraries
|
|
|
282e56 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
282e56 |
|
|
|
282e56 |
%description
|
|
|
282e56 |
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
|
|
282e56 |
draft 15 capabilities.
|
|
|
282e56 |
|
|
|
282e56 |
%prep
|
|
|
282e56 |
%setup -q -n libcap-1.10
|
|
|
282e56 |
# FIXME: Is this really required still?
|
|
|
282e56 |
%patch -p1 -b .ia64
|
|
|
282e56 |
%ifarch alpha
|
|
|
282e56 |
# FIXME: Is this really required still?
|
|
|
282e56 |
%patch3 -p1 -b .alpha
|
|
|
282e56 |
%endif
|
|
|
282e56 |
%patch1 -p1 -b .userland
|
|
|
282e56 |
%patch2 -p1 -b .shared
|
|
|
282e56 |
%patch4 -p1
|
|
|
282e56 |
%patch5 -p1
|
|
|
282e56 |
|
|
|
282e56 |
%build
|
|
|
2797f3 |
make PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="%{optflags} -I$PWD/libcap/include/"
|
|
|
282e56 |
|
|
|
282e56 |
%install
|
|
|
282e56 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
282e56 |
make install FAKEROOT=${RPM_BUILD_ROOT} \
|
|
|
2797f3 |
LIBDIR=${RPM_BUILD_ROOT}/%{_libdir} \
|
|
|
282e56 |
SBINDIR=${RPM_BUILD_ROOT}/%{_sbindir} \
|
|
|
282e56 |
INCDIR=${RPM_BUILD_ROOT}/%{_includedir} \
|
|
|
282e56 |
MANDIR=${RPM_BUILD_ROOT}/%{_mandir}/ \
|
|
|
282e56 |
COPTFLAG="$RPM_OPT_FLAGS"
|
|
|
282e56 |
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man{2,3,8}
|
|
|
282e56 |
rm -f doc/cap_set_fd* doc/cap_set_file*
|
|
|
282e56 |
#mv -f doc/*.2 ${RPM_BUILD_ROOT}/%{_mandir}/man2/
|
|
|
282e56 |
#mv -f doc/*.3 ${RPM_BUILD_ROOT}/%{_mandir}/man3/
|
|
|
282e56 |
cp %{SOURCE1} doc/
|
|
|
282e56 |
|
|
|
2797f3 |
chmod +x ${RPM_BUILD_ROOT}/%{_libdir}/*.so.*
|
|
|
282e56 |
rm -rf ${RPM_BUILD_ROOT}/%{_sbindir}/
|
|
|
282e56 |
rm -rf ${RPM_BUILD_ROOT}/%{_includedir}/
|
|
|
2797f3 |
rm -rf ${RPM_BUILD_ROOT}/%{_libdir}/*.so
|
|
|
282e56 |
rm -rf ${RPM_BUILD_ROOT}/%{_mandir}/man2/*
|
|
|
282e56 |
rm -rf ${RPM_BUILD_ROOT}/%{_mandir}/man3/*
|
|
|
282e56 |
|
|
|
282e56 |
%post -p /sbin/ldconfig
|
|
|
282e56 |
%postun -p /sbin/ldconfig
|
|
|
282e56 |
|
|
|
282e56 |
%files
|
|
|
282e56 |
%defattr(-,root,root)
|
|
|
2797f3 |
/%{_libdir}/*.so.*
|
|
|
282e56 |
%doc doc/capability.notes doc/capfaq-0.2.txt
|
|
|
282e56 |
|
|
|
282e56 |
%clean
|
|
|
282e56 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
282e56 |
|
|
|
282e56 |
%changelog
|
|
|
2797f3 |
* Fri Mar 07 2014 Karsten Hopp <karsten@redhat.com> 1.10-7
|
|
|
2797f3 |
- move libraries to /usr/lib*
|
|
|
2797f3 |
|
|
|
2797f3 |
* Fri Mar 07 2014 Karsten Hopp <karsten@redhat.com> 1.10-6
|
|
|
2797f3 |
- use optflags, ensures that -fstack-protector-strong flag is used
|
|
|
2797f3 |
- Resolves: rhbz 1070799
|
|
|
2797f3 |
|
|
|
2797f3 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.10-5
|
|
|
2797f3 |
- Mass rebuild 2014-01-24
|
|
|
2797f3 |
|
|
|
2797f3 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.10-4
|
|
|
2797f3 |
- Mass rebuild 2013-12-27
|
|
|
2797f3 |
|
|
|
282e56 |
* Wed Nov 21 2012 Karsten Hopp <karsten@redhat.com> 1.10-3
|
|
|
282e56 |
- fix source URLs
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Oct 17 2012 Karsten Hopp <karsten@redhat.com> 1.10-2
|
|
|
282e56 |
- update patch
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Aug 24 2010 Karsten Hopp <karsten@redhat.com> 1.10-1
|
|
|
282e56 |
- package as compat-libcap1
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Aug 17 2010 Karsten Hopp <karsten@redhat.com> 1.10-26.kh
|
|
|
282e56 |
- include linux/types.h in capability.h
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Nov 14 2006 Karsten Hopp <karsten@redhat.com> 1.10-26
|
|
|
282e56 |
- remove obsolete manpages (#215402)
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Jul 19 2006 Karsten Hopp <karsten@redhat.de> 1.10-25
|
|
|
282e56 |
- add patch to support COPTFLAG (#199365)
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2.1
|
|
|
282e56 |
- rebuild
|
|
|
282e56 |
|
|
|
282e56 |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2
|
|
|
282e56 |
- bump again for double-long bug on ppc(64)
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.1
|
|
|
282e56 |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
282e56 |
|
|
|
282e56 |
* Mon Dec 19 2005 Karsten Hopp <karsten@redhat.de> 1.10-24
|
|
|
282e56 |
- added development manpages
|
|
|
282e56 |
- as there are no manpages for the executables available, added at least
|
|
|
282e56 |
a FAQ (#172324)
|
|
|
282e56 |
|
|
|
282e56 |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Mon Oct 31 2005 Steve Grubb <sgrubb@redhat.com> 1.10-23
|
|
|
282e56 |
- rebuild to pick up audit capabilities
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.10-22
|
|
|
282e56 |
- build with gcc-4
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Feb 09 2005 Karsten Hopp <karsten@redhat.de> 1.10-21
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Aug 31 2004 Phil Knirsch <pknirsch@redhat.com> 1.10-20
|
|
|
282e56 |
- Fix wrong typedef in userland patch (#98801)
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.10-17
|
|
|
282e56 |
- use _manpath
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
282e56 |
- rebuilt
|
|
|
282e56 |
|
|
|
282e56 |
* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
|
|
|
282e56 |
- set execute bits on library so that requires are generated.
|
|
|
282e56 |
|
|
|
282e56 |
* Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
|
|
|
282e56 |
- Removed %%name macro sillyness from package Summary, description text, etc.
|
|
|
282e56 |
- Removed archaic Prefix: tag
|
|
|
282e56 |
- lib64 fixes everywhere to use _lib, _libdir, etc
|
|
|
282e56 |
- Removed deletion of RPM_BUILD_DIR from %%clean section
|
|
|
282e56 |
- Added -q flag to setup macro
|
|
|
282e56 |
- Severely cleaned up spec file, and removed usage of perl
|
|
|
282e56 |
|
|
|
282e56 |
* Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
|
|
|
282e56 |
- CFLAGS was using COPTFLAG variable, not COPTFLAGS
|
|
|
282e56 |
- build with -fpic
|
|
|
282e56 |
- apply the IA-64 patch everywhere, use capget/capset from glibc,
|
|
|
282e56 |
not directly as _syscall (as it is broken on IA-32 with -fpic)
|
|
|
282e56 |
- reenable alpha
|
|
|
282e56 |
|
|
|
282e56 |
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
282e56 |
- automated rebuild
|
|
|
282e56 |
|
|
|
282e56 |
* Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10
|
|
|
282e56 |
- Exclude alpha for now, apparent gcc bug.
|
|
|
282e56 |
|
|
|
282e56 |
* Fri Nov 9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
|
|
|
282e56 |
- Fix sys/capabilities.h header (#55727)
|
|
|
282e56 |
- Move to /lib, some applications seem to be using this rather early
|
|
|
282e56 |
(#55733)
|
|
|
282e56 |
|
|
|
282e56 |
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
|
282e56 |
- Add post,postun scripts
|
|
|
282e56 |
|
|
|
282e56 |
* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com>
|
|
|
282e56 |
- don't build libcap.so.1 with ld -shared, but gcc -shared
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Jun 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
|
282e56 |
- Rebuild - it was missing for alpha
|
|
|
282e56 |
|
|
|
282e56 |
* Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
282e56 |
- add s390/s390x support
|
|
|
282e56 |
|
|
|
282e56 |
* Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1
|
|
|
282e56 |
- initial RPM
|
|
|
282e56 |
- fix build on ia64
|