SHA256
3
0
forked from pool/libcap

Accepting request 285938 from home:posophe:branches:Base:System

Update and fix

OBS-URL: https://build.opensuse.org/request/show/285938
OBS-URL: https://build.opensuse.org/package/show/Base:System/libcap?expand=0&rev=20
This commit is contained in:
Marcus Meissner 2015-02-16 08:13:36 +00:00 committed by Git OBS Bridge
parent c3c6c92bf0
commit 7ca155fc10
5 changed files with 40 additions and 31 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73ebbd4877b5f69dd28b72098e510c5b318bc480f8201c4061ac98b78c04050f
size 60051

3
libcap-2.24.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cee4568f78dc851d726fc93f25f4ed91cc223b1fe8259daa4a77158d174e6c65
size 63412

View File

@ -1,11 +1,11 @@
--- libcap-2.22.orig/libcap/Makefile --- libcap-2.22.orig/libcap/Makefile
+++ libcap-2.22/libcap/Makefile +++ libcap-2.22/libcap/Makefile
@@ -16,7 +16,7 @@ FILES=cap_alloc cap_proc cap_extint cap_ @@ -16,7 +16,7 @@
# no support). # no support).
ifeq ($(LIBATTR),yes) ifeq ($(LIBATTR),yes)
FILES += cap_file FILES += cap_file
-LDFLAGS += -lattr -LDFLAGS += -lattr
+LDFLAGS += +LDFLAGS +=
DEPS = -lattr
endif endif
INCLS=libcap.h cap_names.h $(INCS)

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Jan 31 11:22:58 UTC 2015 - p.drouand@gmail.com
- Update to version 2.24
* Fix compilation problems (note to self, make distclean && make,
before release)
* Some make rule changes to make uploading a release to kernel.org
easier for me.
* Tidied up some documented links.
- Update libcap-nolibattr.patch
- Add pkg-config build requirement; libcap now provides a pkgconfig
file
- Clean up specfile
- Move libraries and binaries to /usr because of #UsrMove
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 19 17:32:36 UTC 2014 - crrodriguez@opensuse.org Thu Jun 19 17:32:36 UTC 2014 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package libcap # spec file for package libcap
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,17 +20,14 @@ Name: libcap
Summary: Library for Capabilities (linux-privs) Support Summary: Library for Capabilities (linux-privs) Support
License: BSD-3-Clause and GPL-2.0 License: BSD-3-Clause and GPL-2.0
Group: System/Libraries Group: System/Libraries
Version: 2.22 Version: 2.24
Release: 0 Release: 0
Source: ftp://ftp.de.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.bz2 Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.xz
Source2: baselibs.conf Source2: baselibs.conf
Url: https://sites.google.com/site/fullycapable/ Url: https://sites.google.com/site/fullycapable/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: libcap-nolibattr.patch Patch0: libcap-nolibattr.patch
%if 0%{?suse_version} > 1030
BuildRequires: fdupes BuildRequires: fdupes
%endif BuildRequires: pkg-config
%define debug_package_requires libcap2 = %{version}-%{release}
%description %description
Capabilities are a measure to limit the omnipotence of the superuser. Capabilities are a measure to limit the omnipotence of the superuser.
@ -40,8 +37,6 @@ control. Without kernel patches, you can use this library to drop
capabilities within setuid binaries. If you use patches, this can be capabilities within setuid binaries. If you use patches, this can be
done automatically by the kernel. done automatically by the kernel.
%package -n libcap2 %package -n libcap2
Summary: Library for Capabilities (linux-privs) Support Summary: Library for Capabilities (linux-privs) Support
Group: System/Libraries Group: System/Libraries
@ -72,8 +67,6 @@ draft 15 capabilities.
Install libcap-devel if you want to develop or compile applications Install libcap-devel if you want to develop or compile applications
using libcap. using libcap.
%package progs %package progs
Summary: Libcap utility programs Summary: Libcap utility programs
Group: System/Filesystems Group: System/Filesystems
@ -82,26 +75,26 @@ Group: System/Filesystems
This package contains utility programs handling capabilities via This package contains utility programs handling capabilities via
libcap. libcap.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%build %build
# lib=%{_lib} make %{?_smp_mflags} COPTFLAG="$RPM_OPT_FLAGS" make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
lib=%{_lib} make %{?_smp_mflags} DEBUG="-g $RPM_OPT_FLAGS" INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}"
%install %install
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=$RPM_BUILD_ROOT/%{_lib} MANDIR=$RPM_BUILD_ROOT%{_mandir} RAISE_SETFCAP=no make install RAISE_SETFCAP=no \
DESTDIR=%{buildroot} \
LIBDIR=%{buildroot}/%{_libdir} \
SBINDIR=%{buildroot}/%{_sbindir} \
INCDIR=%{buildroot}/%{_includedir} \
MANDIR=%{buildroot}/%{_mandir}/ \
PKGCONFIGDIR=%{buildroot}/%{_libdir}/pkgconfig/
mkdir -p %{buildroot}/%{_mandir}/man{2,3,8}
mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/
# remove unneeded files # remove unneeded files
rm -f $RPM_BUILD_ROOT/%{_lib}/*.*a rm -f $RPM_BUILD_ROOT/%{_libdir}/*.*a
# move *.so file to libdir and relink
rm -f $RPM_BUILD_ROOT/%{_lib}/*.so
mkdir -p $RPM_BUILD_ROOT%{_libdir}
ln -s /%{_lib}/libcap.so.2 $RPM_BUILD_ROOT%{_libdir}/libcap.so
%if 0%{?suse_version} > 1030
%fdupes -s $RPM_BUILD_ROOT %fdupes -s $RPM_BUILD_ROOT
%endif
%post -n libcap2 -p /sbin/ldconfig %post -n libcap2 -p /sbin/ldconfig
@ -109,19 +102,20 @@ ln -s /%{_lib}/libcap.so.2 $RPM_BUILD_ROOT%{_libdir}/libcap.so
%files -n libcap2 %files -n libcap2
%defattr(-,root,root) %defattr(-,root,root)
%attr(755,root,root) /%{_lib}/libcap.so.* %attr(755,root,root)%{_libdir}/libcap.so.*
%files progs %files progs
%defattr(-,root,root) %defattr(-,root,root)
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man8/* %{_mandir}/man8/*
/sbin/* %{_sbindir}/*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc License README CHANGELOG %doc License README CHANGELOG
%{_includedir}/sys/capability.h %{_includedir}/sys/capability.h
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog