SHA256
1
0
forked from pool/libcap

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:
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,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)