2004-09-09 07:21:23 +00:00
|
|
|
Name: libcap
|
2008-06-05 13:26:10 +00:00
|
|
|
Version: 2.10
|
|
|
|
Release: 1%{?dist}
|
2004-09-09 07:21:44 +00:00
|
|
|
Summary: Library for getting and setting POSIX.1e capabilities
|
2008-06-05 13:26:10 +00:00
|
|
|
Source: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/%{name}-%{version}.tar.bz2
|
2008-02-20 11:00:41 +00:00
|
|
|
Source1: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/%{name}-1.10.tar.bz2
|
|
|
|
Patch0: libcap-1.10-userland.patch
|
|
|
|
Patch1: libcap-1.10-shared.patch
|
|
|
|
Patch2: libcap-1.10-useCFLAGSwithCC.patch
|
|
|
|
Patch3: libcap-1.10-debian.patch
|
|
|
|
Patch4: libcap-1.10-nostaticlib.patch
|
|
|
|
Patch5: libcap-1.10-fPIC.patch
|
|
|
|
Patch6: libcap-1.10-audit.patch
|
2008-02-21 16:23:13 +00:00
|
|
|
|
|
|
|
Patch10: libcap-2.06-shared.patch
|
2008-02-15 19:50:00 +00:00
|
|
|
URL: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
|
2007-08-24 20:01:15 +00:00
|
|
|
License: LGPLv2+
|
2004-09-09 07:21:23 +00:00
|
|
|
Group: System Environment/Libraries
|
2007-02-21 14:28:14 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2008-02-15 19:50:00 +00:00
|
|
|
BuildRequires: libattr-devel
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 07:22:01 +00:00
|
|
|
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
2004-09-09 07:21:23 +00:00
|
|
|
draft 15 capabilities.
|
|
|
|
|
|
|
|
%package devel
|
2004-09-09 07:22:01 +00:00
|
|
|
Summary: Development files for libcap
|
2004-09-09 07:21:23 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2004-09-09 07:22:01 +00:00
|
|
|
Development files (Headers, libraries for static linking, etc) for libcap.
|
2004-09-09 07:21:23 +00:00
|
|
|
|
2004-09-09 07:22:01 +00:00
|
|
|
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
2004-09-09 07:21:23 +00:00
|
|
|
draft 15 capabilities.
|
|
|
|
|
2004-09-09 07:22:01 +00:00
|
|
|
Install libcap-devel if you want to develop or compile applications using
|
|
|
|
libcap.
|
2004-09-09 07:21:44 +00:00
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
%prep
|
2004-09-09 07:22:01 +00:00
|
|
|
%setup -q
|
2008-02-20 11:00:41 +00:00
|
|
|
%{__tar} xjf %{SOURCE1}
|
|
|
|
cd libcap-1.10
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
cd ..
|
2008-02-21 16:23:13 +00:00
|
|
|
%patch10 -p1
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
|
|
%build
|
2008-02-15 19:50:00 +00:00
|
|
|
# libcap can not be build with _smp_mflags:
|
2007-02-21 14:28:14 +00:00
|
|
|
make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
2008-02-15 19:50:00 +00:00
|
|
|
INCDIR=%{_includedir} MANDIR=%{_mandir} COPTFLAG="$RPM_OPT_FLAGS"
|
2008-02-20 11:00:41 +00:00
|
|
|
(cd libcap-1.10;
|
|
|
|
make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
|
|
|
INCDIR=%{_includedir} MANDIR=%{_mandir} COPTFLAG="$RPM_OPT_FLAGS")
|
2008-02-15 19:50:00 +00:00
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
|
|
%install
|
2004-09-09 07:22:01 +00:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2007-02-21 14:28:14 +00:00
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT} \
|
2004-09-09 07:22:01 +00:00
|
|
|
LIBDIR=${RPM_BUILD_ROOT}/%{_lib} \
|
|
|
|
SBINDIR=${RPM_BUILD_ROOT}/%{_sbindir} \
|
|
|
|
INCDIR=${RPM_BUILD_ROOT}/%{_includedir} \
|
2004-09-09 07:22:44 +00:00
|
|
|
MANDIR=${RPM_BUILD_ROOT}/%{_mandir}/ \
|
2004-09-09 07:22:01 +00:00
|
|
|
COPTFLAG="$RPM_OPT_FLAGS"
|
2005-12-19 13:03:45 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man{2,3,8}
|
2008-06-05 13:26:10 +00:00
|
|
|
#mv -f doc/*.2 ${RPM_BUILD_ROOT}/%{_mandir}/man2/
|
2005-12-19 13:03:45 +00:00
|
|
|
mv -f doc/*.3 ${RPM_BUILD_ROOT}/%{_mandir}/man3/
|
2004-09-09 07:22:01 +00:00
|
|
|
|
2008-02-20 11:00:41 +00:00
|
|
|
(cd libcap-1.10;
|
2008-02-20 11:11:01 +00:00
|
|
|
install -p libcap/libcap.so.1.10 ${RPM_BUILD_ROOT}/%{_lib}/;
|
|
|
|
ln -sf libcap.so.1.10 ${RPM_BUILD_ROOT}/%{_lib}/libcap.so.1;
|
2008-02-20 11:00:41 +00:00
|
|
|
)
|
|
|
|
|
2004-09-09 07:22:01 +00:00
|
|
|
chmod +x ${RPM_BUILD_ROOT}/%{_lib}/*.so.*
|
2004-09-09 07:21:23 +00:00
|
|
|
|
2004-09-09 07:21:27 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
%files
|
2008-01-15 09:42:47 +00:00
|
|
|
%defattr(-,root,root,-)
|
2004-09-09 07:22:01 +00:00
|
|
|
/%{_lib}/*.so.*
|
2004-09-09 07:21:23 +00:00
|
|
|
%{_sbindir}/*
|
2008-02-15 19:50:00 +00:00
|
|
|
%{_mandir}/man8/*
|
2008-06-05 13:26:10 +00:00
|
|
|
/%{_lib}/security/pam_cap.so
|
2008-02-15 19:50:00 +00:00
|
|
|
%doc doc/capability.notes License
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
|
|
%files devel
|
2008-01-15 09:42:47 +00:00
|
|
|
%defattr(-,root,root,-)
|
2004-09-09 07:22:01 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
/%{_lib}/*.so
|
2008-06-05 13:26:10 +00:00
|
|
|
#{_mandir}/man2/*
|
2004-09-09 07:21:23 +00:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%clean
|
2004-09-09 07:22:01 +00:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
|
|
%changelog
|
2008-06-05 13:26:10 +00:00
|
|
|
* Thu Jun 05 2008 Karsten Hopp <karsten@redhat.com> 2.10-1
|
|
|
|
- libcap-2.10
|
|
|
|
|
2008-02-21 16:23:13 +00:00
|
|
|
* Thu Feb 21 2008 Karsten Hopp <karsten@redhat.com> 2.06-4
|
|
|
|
- don't build static binaries (#433808)
|
|
|
|
|
2008-02-20 11:00:41 +00:00
|
|
|
* Wed Feb 20 2008 Karsten Hopp <karsten@redhat.com> 2.06-3
|
|
|
|
- temporarily add libcap-1 libraries to bootstrap some packages
|
|
|
|
|
2008-02-19 09:59:09 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.06-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-02-15 19:50:00 +00:00
|
|
|
* Fri Feb 15 2008 Karsten Hopp <karsten@redhat.com> 2.06-1
|
|
|
|
- upate to 2.06 (#432983)
|
|
|
|
|
2008-01-16 09:27:18 +00:00
|
|
|
* Wed Jan 16 2008 Karsten Hopp <karsten@redhat.com> 1.10-33
|
|
|
|
- drop post,postun requirements on ldconfig as find-requires can handle this
|
|
|
|
|
2008-01-15 09:42:47 +00:00
|
|
|
* Tue Jan 15 2008 Karsten Hopp <karsten@redhat.com> 1.10-32
|
|
|
|
- add disttag
|
|
|
|
- fix changelog
|
|
|
|
- fix defattr
|
|
|
|
|
|
|
|
* Mon Jan 14 2008 Karsten Hopp <karsten@redhat.com> 1.10-31
|
2008-01-14 12:24:58 +00:00
|
|
|
- use cp -p in spec file to preserve file attributes (#225992)
|
|
|
|
- add license file
|
|
|
|
|
2007-08-24 19:54:26 +00:00
|
|
|
* Fri Aug 24 2007 Karsten Hopp <karsten@redhat.com> 1.10-30
|
|
|
|
- rebuild
|
|
|
|
|
2007-02-23 22:21:40 +00:00
|
|
|
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 1.10-29
|
|
|
|
- add CAP_AUDIT_WRITE and CAP_AUDIT_CONTROL (#229833)
|
|
|
|
|
2007-02-21 14:43:04 +00:00
|
|
|
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.10-28
|
|
|
|
- drop obsolete ia64 patch
|
|
|
|
- rpmlint fixes
|
|
|
|
|
2007-02-21 14:28:14 +00:00
|
|
|
* Wed Feb 21 2007 Karsten Hopp <karsten@redhat.com> 1.10-27
|
|
|
|
- misc. review fixes
|
|
|
|
- add debian patch to make it build with a recent glibc
|
|
|
|
- remove static lib
|
|
|
|
|
2006-07-19 10:30:59 +00:00
|
|
|
* Wed Jul 19 2006 Karsten Hopp <karsten@redhat.de> 1.10-25
|
|
|
|
- add patch to support COPTFLAG (#199365)
|
|
|
|
|
2006-07-12 06:46:37 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-11 03:53:34 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.2
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 12:29:45 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.10-24.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-19 13:03:45 +00:00
|
|
|
* Mon Dec 19 2005 Karsten Hopp <karsten@redhat.de> 1.10-24
|
|
|
|
- added development manpages
|
|
|
|
- as there are no manpages for the executables available, added at least
|
|
|
|
a FAQ (#172324)
|
|
|
|
|
2005-12-09 22:41:31 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-10-31 19:19:58 +00:00
|
|
|
* Mon Oct 31 2005 Steve Grubb <sgrubb@redhat.com> 1.10-23
|
2005-10-31 19:17:36 +00:00
|
|
|
- rebuild to pick up audit capabilities
|
|
|
|
|
2005-03-02 12:00:14 +00:00
|
|
|
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.10-22
|
|
|
|
- build with gcc-4
|
|
|
|
|
2005-02-09 10:19:12 +00:00
|
|
|
* Wed Feb 09 2005 Karsten Hopp <karsten@redhat.de> 1.10-21
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:23:15 +00:00
|
|
|
* Tue Aug 31 2004 Phil Knirsch <pknirsch@redhat.com> 1.10-20
|
|
|
|
- Fix wrong typedef in userland patch (#98801)
|
|
|
|
|
2004-09-09 07:23:12 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:23:05 +00:00
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:22:44 +00:00
|
|
|
* Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.10-17
|
|
|
|
- use _manpath
|
|
|
|
|
2004-09-09 07:22:39 +00:00
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:22:01 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
|
|
|
|
- set execute bits on library so that requires are generated.
|
|
|
|
|
|
|
|
* Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
|
|
|
|
- Removed %%name macro sillyness from package Summary, description text, etc.
|
|
|
|
- Removed archaic Prefix: tag
|
|
|
|
- lib64 fixes everywhere to use _lib, _libdir, etc
|
|
|
|
- Removed deletion of RPM_BUILD_DIR from %%clean section
|
|
|
|
- Added -q flag to setup macro
|
|
|
|
- Severely cleaned up spec file, and removed usage of perl
|
|
|
|
|
2004-09-09 07:21:56 +00:00
|
|
|
* Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
|
|
|
|
- CFLAGS was using COPTFLAG variable, not COPTFLAGS
|
|
|
|
- build with -fpic
|
|
|
|
- apply the IA-64 patch everywhere, use capget/capset from glibc,
|
|
|
|
not directly as _syscall (as it is broken on IA-32 with -fpic)
|
|
|
|
- reenable alpha
|
|
|
|
|
2004-09-09 07:21:53 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10
|
|
|
|
- Exclude alpha for now, apparent gcc bug.
|
|
|
|
|
2004-09-09 07:21:31 +00:00
|
|
|
* Fri Nov 9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
|
|
|
|
- Fix sys/capabilities.h header (#55727)
|
|
|
|
- Move to /lib, some applications seem to be using this rather early
|
|
|
|
(#55733)
|
|
|
|
|
2007-02-21 14:43:04 +00:00
|
|
|
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 07:21:27 +00:00
|
|
|
- Add post,postun scripts
|
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
- don't build libcap.so.1 with ld -shared, but gcc -shared
|
|
|
|
|
2007-02-21 14:43:04 +00:00
|
|
|
* Wed Jun 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 07:21:23 +00:00
|
|
|
- Rebuild - it was missing for alpha
|
|
|
|
|
|
|
|
* Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- add s390/s390x support
|
|
|
|
|
|
|
|
* Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1
|
|
|
|
- initial RPM
|
|
|
|
- fix build on ia64
|