Group :: System/Libraries
RPM: libcap
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: libcap
Version: 1.10
Release: alt16
Serial: 1
Summary: Library for getting and setting POSIX.1e capabilities
License: GPL/BSD-style
Group: System/Libraries
Url: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2
Packager: Dmitry V. Levin <ldv at altlinux.org>
# ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/libcap-%version.tar.bz2
Source0: libcap-%version.tar
Source1: %url/capfaq-0.2.txt
Patch1: libcap-1.10-alt-makefile.patch
Patch2: libcap-1.10-alt-cap_free.patch
Patch3: libcap-1.10-alt-bound.patch
Patch4: libcap-1.10-alt-warnings.patch
Patch5: libcap-1.10-rh-alt-makenames.patch
Patch6: libcap-1.10-alt-userland.patch
Patch7: libcap-1.10-alt-cap_file.patch
%package utils
Summary: Utilities for getting and setting POSIX.1e capabilities
Group: System/Base
Requires: %name = %serial:%version-%release
%package devel
Summary: Development environment for libcap
Group: Development/C
Requires: %name = %serial:%version-%release
%description
This is a library for getting and setting POSIX.1e
(formerly POSIX 6) draft 15 capabilities.
%description utils
This packages contains utilities for getting and setting
POSIX.1e (formerly POSIX 6) draft 15 capabilities.
%description devel
The development library, header files, and documentation
for building applications dealing with POSIX.1e
(formerly POSIX 6) draft 15 capabilities.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
install -pm644 %_sourcedir/capfaq-0.2.txt .
%build
%def_enable Werror
%make_build \
COPTFLAG="%optflags" LDFLAGS= DEBUG= FAKEROOT=
%install
%make_install install \
FAKEROOT="%buildroot" LIBDIR='$(FAKEROOT)/%_lib'
# Relocate development library from /%_lib/ to %_libdir/.
mkdir "%buildroot%_libdir"
symlink="%buildroot/%_lib/libcap.so"
soname=`objdump -p "$symlink" |awk '/SONAME/ {print $2}'`
[ -n "$soname" ]
rm -f "$symlink"
ln -s ../../%_lib/"$soname" "%buildroot%_libdir/libcap.so"
%post -p %post_ldconfig_sys
%postun -p %postun_ldconfig
%files
/%_lib/*.so.*
%files utils
/sbin/*
%files devel
%_libdir/*.so
%_includedir/sys/*.h
%_man3dir/*
%doc CHANGELOG README *.txt pgp.keys.asc doc/capability.notes progs/*.c
%changelog
…
Full changelog you can see here
Version: 1.10
Release: alt16
Serial: 1
Summary: Library for getting and setting POSIX.1e capabilities
License: GPL/BSD-style
Group: System/Libraries
Url: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2
Packager: Dmitry V. Levin <ldv at altlinux.org>
# ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/libcap-%version.tar.bz2
Source0: libcap-%version.tar
Source1: %url/capfaq-0.2.txt
Patch1: libcap-1.10-alt-makefile.patch
Patch2: libcap-1.10-alt-cap_free.patch
Patch3: libcap-1.10-alt-bound.patch
Patch4: libcap-1.10-alt-warnings.patch
Patch5: libcap-1.10-rh-alt-makenames.patch
Patch6: libcap-1.10-alt-userland.patch
Patch7: libcap-1.10-alt-cap_file.patch
%package utils
Summary: Utilities for getting and setting POSIX.1e capabilities
Group: System/Base
Requires: %name = %serial:%version-%release
%package devel
Summary: Development environment for libcap
Group: Development/C
Requires: %name = %serial:%version-%release
%description
This is a library for getting and setting POSIX.1e
(formerly POSIX 6) draft 15 capabilities.
%description utils
This packages contains utilities for getting and setting
POSIX.1e (formerly POSIX 6) draft 15 capabilities.
%description devel
The development library, header files, and documentation
for building applications dealing with POSIX.1e
(formerly POSIX 6) draft 15 capabilities.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
install -pm644 %_sourcedir/capfaq-0.2.txt .
%build
%def_enable Werror
%make_build \
COPTFLAG="%optflags" LDFLAGS= DEBUG= FAKEROOT=
%install
%make_install install \
FAKEROOT="%buildroot" LIBDIR='$(FAKEROOT)/%_lib'
# Relocate development library from /%_lib/ to %_libdir/.
mkdir "%buildroot%_libdir"
symlink="%buildroot/%_lib/libcap.so"
soname=`objdump -p "$symlink" |awk '/SONAME/ {print $2}'`
[ -n "$soname" ]
rm -f "$symlink"
ln -s ../../%_lib/"$soname" "%buildroot%_libdir/libcap.so"
%post -p %post_ldconfig_sys
%postun -p %postun_ldconfig
%files
/%_lib/*.so.*
%files utils
/sbin/*
%files devel
%_libdir/*.so
%_includedir/sys/*.h
%_man3dir/*
%doc CHANGELOG README *.txt pgp.keys.asc doc/capability.notes progs/*.c
%changelog
…
Full changelog you can see here