Name: libcap Version: 2.19 Release: 1ark Summary: Library for getting and setting POSIX.1e capabilities Source: ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/%{name}-%{version}.tar.gz Source1: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/capfaq-0.2.txt Patch: libcap-2.17-gold.patch URL: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/ License: BSD-like and LGPL Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %track prog %name = { url = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/ regex = %name-(__VER__)\.tar\.gz version = %version } %description libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. %package devel Summary: Development files for libcap Group: Development/Libraries/C/System Requires: %{name} = %{version}-%{release} %description devel Development files (Headers, etc) for libcap. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. Install libcap-devel if you want to develop or compile applications using libcap. %package static Summary: Static library file for %name Group: Development/Libraries/C/System/Static Requires: %name-devel = %version-%release %description static Static library file for linking to %name %prep %setup -q %patch -p1 -b .gold~ sed -i -e "s|-O2|$RPM_OPT_FLAGS|g" Make* %build make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \ INCDIR=%{_includedir} MANDIR=%{_mandir} \ %{?_smp_mflags} %install rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} \ LIBDIR=${RPM_BUILD_ROOT}/%{_lib} \ SBINDIR=${RPM_BUILD_ROOT}/%{_sbindir} \ INCDIR=${RPM_BUILD_ROOT}/%{_includedir} \ MANDIR=${RPM_BUILD_ROOT}/%{_mandir}/ \ COPTFLAG="$RPM_OPT_FLAGS" mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man{3,8} $RPM_BUILD_ROOT%_libdir mv -f doc/*.3 ${RPM_BUILD_ROOT}/%{_mandir}/man3/ mv -f doc/*.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/ mv libcap/*.a $RPM_BUILD_ROOT%_libdir/ cp %{SOURCE1} doc/ chmod +x ${RPM_BUILD_ROOT}/%{_lib}/*.so.* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files /%_lib/*.so* %_sbindir/* %_mandir/man8/* /%_lib/security/pam_cap.so %doc doc/capability.notes doc/capfaq-0.2.txt %files devel %_includedir/*/* %_mandir/man3/* %files static %_libdir/*.a %clean rm -rf ${RPM_BUILD_ROOT} %changelog * Fri Apr 16 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.19-1ark - 2.19 * Sun Sep 20 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.17-1ark - 2.17 - Make it build with gold * Wed Aug 19 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.16-1ark - 2.16 - Drop Epoch * Mon Oct 27 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1:2.14-1ark - 2.14 * Tue Jul 1 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1:2.10-1ark - 2.10 * Tue Mar 20 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 1:1.10-2ark - 1.10 (just when you think things couldn't get any more stupid, versioning jumps "forward" from 1.92 to 1.10...) - Add setcap/lscap tools to read/set capabilities on files in extended attributes - Build for current kernels (3 new capabilities) - Add separate -static package * Thu Mar 10 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 1.92-1ark - 1.92... We missed this for several months, what a BRILLIANT idea of base maintainers to hide the current version in a subdirectory called "old"