Accepting request 423725 from home:dimstar:Factory

Update to version 2.25 - NOTE: GNOME 3.22 requires at least version 2.23, TW currenly has 2.22; as we need to care for an update anyway, we bumped to 2.25 (current latest)

OBS-URL: https://build.opensuse.org/request/show/423725
OBS-URL: https://build.opensuse.org/package/show/Base:System/libcap?expand=0&rev=21
This commit is contained in:
Takashi Iwai 2016-08-30 13:33:41 +00:00 committed by Git OBS Bridge
parent 7ca155fc10
commit b686ff0d84
5 changed files with 30 additions and 28 deletions

View File

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

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

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

View File

@ -1,11 +0,0 @@
--- libcap-2.22.orig/libcap/Makefile
+++ libcap-2.22/libcap/Makefile
@@ -16,7 +16,7 @@
# no support).
ifeq ($(LIBATTR),yes)
FILES += cap_file
-LDFLAGS += -lattr
+LDFLAGS +=
DEPS = -lattr
endif

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Aug 29 21:10:05 UTC 2016 - dimstar@opensuse.org
- Update to versison 2.25:
+ Recover gperf detection in make rules.
+ Man page typo fix.
+ Tweak make rules to make packaging more straightforward.
+ Fix error explanation in setcap.
+ Drop need to link with libattr. It turns out libcap wasn't
actually using any code from that library, so linking to it was
superfluous.
- Drop libcap-nolibattr.patch: fixed upstream.
- No longer add %{buildroot} to all variables for make install the
Makefile learned about the meaning of DESTDIR.
-------------------------------------------------------------------
Sat Jan 31 11:22:58 UTC 2015 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libcap
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,12 +20,11 @@ Name: libcap
Summary: Library for Capabilities (linux-privs) Support
License: BSD-3-Clause and GPL-2.0
Group: System/Libraries
Version: 2.24
Version: 2.25
Release: 0
Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.xz
Source2: baselibs.conf
Url: https://sites.google.com/site/fullycapable/
Patch0: libcap-nolibattr.patch
BuildRequires: fdupes
BuildRequires: pkg-config
@ -77,7 +76,6 @@ libcap.
%prep
%setup -q
%patch0 -p1
%build
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}"
@ -85,15 +83,14 @@ make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
%install
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
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.*a
LIBDIR=/%{_libdir} \
SBINDIR=/%{_sbindir} \
INCDIR=/%{_includedir} \
MANDIR=/%{_mandir}/ \
PKGCONFIGDIR=%{_libdir}/pkgconfig/
find %{buildroot} -type f -name '*.la' -print -delete
# do not provide static libs
rm %{buildroot}%{_libdir}/libcap.a
%fdupes -s $RPM_BUILD_ROOT
%post -n libcap2 -p /sbin/ldconfig
@ -102,7 +99,8 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.*a
%files -n libcap2
%defattr(-,root,root)
%attr(755,root,root)%{_libdir}/libcap.so.*
%doc License
%{_libdir}/libcap.so.*
%files progs
%defattr(-,root,root)