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:
parent
7ca155fc10
commit
b686ff0d84
@ -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
3
libcap-2.25.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162
|
||||||
|
size 63672
|
@ -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
|
|
||||||
|
|
@ -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
|
Sat Jan 31 11:22:58 UTC 2015 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
26
libcap.spec
26
libcap.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libcap
|
# 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
|
# 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,12 +20,11 @@ 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.24
|
Version: 2.25
|
||||||
Release: 0
|
Release: 0
|
||||||
Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.xz
|
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/
|
||||||
Patch0: libcap-nolibattr.patch
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
@ -77,7 +76,6 @@ libcap.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
%build
|
%build
|
||||||
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
||||||
INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}"
|
INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}"
|
||||||
@ -85,15 +83,14 @@ make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
|||||||
%install
|
%install
|
||||||
make install RAISE_SETFCAP=no \
|
make install RAISE_SETFCAP=no \
|
||||||
DESTDIR=%{buildroot} \
|
DESTDIR=%{buildroot} \
|
||||||
LIBDIR=%{buildroot}/%{_libdir} \
|
LIBDIR=/%{_libdir} \
|
||||||
SBINDIR=%{buildroot}/%{_sbindir} \
|
SBINDIR=/%{_sbindir} \
|
||||||
INCDIR=%{buildroot}/%{_includedir} \
|
INCDIR=/%{_includedir} \
|
||||||
MANDIR=%{buildroot}/%{_mandir}/ \
|
MANDIR=/%{_mandir}/ \
|
||||||
PKGCONFIGDIR=%{buildroot}/%{_libdir}/pkgconfig/
|
PKGCONFIGDIR=%{_libdir}/pkgconfig/
|
||||||
mkdir -p %{buildroot}/%{_mandir}/man{2,3,8}
|
find %{buildroot} -type f -name '*.la' -print -delete
|
||||||
mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/
|
# do not provide static libs
|
||||||
# remove unneeded files
|
rm %{buildroot}%{_libdir}/libcap.a
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.*a
|
|
||||||
%fdupes -s $RPM_BUILD_ROOT
|
%fdupes -s $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -n libcap2 -p /sbin/ldconfig
|
%post -n libcap2 -p /sbin/ldconfig
|
||||||
@ -102,7 +99,8 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.*a
|
|||||||
|
|
||||||
%files -n libcap2
|
%files -n libcap2
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(755,root,root)%{_libdir}/libcap.so.*
|
%doc License
|
||||||
|
%{_libdir}/libcap.so.*
|
||||||
|
|
||||||
%files progs
|
%files progs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user