Репозитории ALT
S: | 2.27.0.2.ac1e-alt4 |
5.1: | 2.16-alt1 |
4.1: | 1.10-alt16 |
4.0: | 1.10-alt16 |
3.0: | 1.10-alt12 |
Группа :: Система/Библиотеки
Пакет: libcap
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: libcap
Version: 1.10
Release: alt12
Serial: 1
Summary: Library for getting and setting POSIX.1e capabilities
License: GPL
Group: System/Libraries
Url: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2
Source0: %url/%name-%version.tar.bz2
Source1: %url/capfaq-0.2.txt
Patch1: %name-1.10-alt-makefile.patch
Patch2: %name-1.10-alt-cap_free.patch
Patch3: %name-1.10-alt-bound.patch
Patch4: %name-1.10-alt-warnings.patch
Patch5: %name-1.10-rh-alt-makenames.patch
Patch6: %name-1.10-alt-userland.patch
Patch7: %name-1.10-alt-fhs.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 -p -m644 %SOURCE1 .
find -type f -name Makefile -print0 |
xargs -r0 %__subst 's/install -/\$(INSTALL) -/g'
%build
make COPTFLAG="$RPM_OPT_FLAGS -Werror -D_GNU_SOURCE" \
LIBDIR='$(FAKEROOT)/%_lib' \
DEBUG= \
LDFLAGS= \
WARNINGS= \
FAKEROOT= \
#
%install
%make_install install \
LIBDIR='$(FAKEROOT)/%_lib' FAKEROOT="$RPM_BUILD_ROOT"
# Relocate development library from /%_lib/ to %_libdir/.
%__mkdir_p "$RPM_BUILD_ROOT%_libdir"
f="$RPM_BUILD_ROOT/%_lib/libcap.so"
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__rm -f "$f"
%__ln_s -nf ../../%_lib/"$t" "$RPM_BUILD_ROOT%_libdir/libcap.so"
# Remove manpages provided by man-pages package.
%__rm -f "$RPM_BUILD_ROOT"%_man2dir/cap[gs]et.*
%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
…
Полный changelog можно просмотреть здесь
Version: 1.10
Release: alt12
Serial: 1
Summary: Library for getting and setting POSIX.1e capabilities
License: GPL
Group: System/Libraries
Url: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2
Source0: %url/%name-%version.tar.bz2
Source1: %url/capfaq-0.2.txt
Patch1: %name-1.10-alt-makefile.patch
Patch2: %name-1.10-alt-cap_free.patch
Patch3: %name-1.10-alt-bound.patch
Patch4: %name-1.10-alt-warnings.patch
Patch5: %name-1.10-rh-alt-makenames.patch
Patch6: %name-1.10-alt-userland.patch
Patch7: %name-1.10-alt-fhs.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 -p -m644 %SOURCE1 .
find -type f -name Makefile -print0 |
xargs -r0 %__subst 's/install -/\$(INSTALL) -/g'
%build
make COPTFLAG="$RPM_OPT_FLAGS -Werror -D_GNU_SOURCE" \
LIBDIR='$(FAKEROOT)/%_lib' \
DEBUG= \
LDFLAGS= \
WARNINGS= \
FAKEROOT= \
#
%install
%make_install install \
LIBDIR='$(FAKEROOT)/%_lib' FAKEROOT="$RPM_BUILD_ROOT"
# Relocate development library from /%_lib/ to %_libdir/.
%__mkdir_p "$RPM_BUILD_ROOT%_libdir"
f="$RPM_BUILD_ROOT/%_lib/libcap.so"
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__rm -f "$f"
%__ln_s -nf ../../%_lib/"$t" "$RPM_BUILD_ROOT%_libdir/libcap.so"
# Remove manpages provided by man-pages package.
%__rm -f "$RPM_BUILD_ROOT"%_man2dir/cap[gs]et.*
%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
…
Полный changelog можно просмотреть здесь