Accepting request 774610 from Base:System
OBS-URL: https://build.opensuse.org/request/show/774610 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcap?expand=0&rev=37
This commit is contained in:
commit
2e56d93182
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162
|
||||
size 63672
|
3
libcap-2.32.tar.xz
Normal file
3
libcap-2.32.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1005e3d227f2340ad1e3360ef8b69d15e3c72a29c09f4894d7aac038bd26e2be
|
||||
size 99708
|
@ -1,3 +1,53 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 15 21:24:26 CET 2020 - tiwai@suse.de
|
||||
|
||||
- Update to version 2.32:
|
||||
* Bug fix for fakeroot incompatibility (boo#1162014)
|
||||
* Slight perf improvement for cap_get_bound().
|
||||
* C++ support for psx header inclusion.
|
||||
* Some new testing features for capsh
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 28 14:23:23 CET 2020 - tiwai@suse.de
|
||||
|
||||
- Update to version 2.31:
|
||||
* primarily a documentation update
|
||||
* fix libpam.pc to not require libpsx.pc
|
||||
* changed the text format of the default output of getpcap
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 13 12:54:25 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
|
||||
|
||||
- Build using -ffat-lto-objects for static library
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 9 16:05:12 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
|
||||
|
||||
- Update to version 2.30:
|
||||
* BUGFIX: arm and i386 fixes C and Go setgroups choice - used
|
||||
wrong syscall in 2.29.
|
||||
* cleaned up make clean and make install to actually work as
|
||||
intended
|
||||
* updated Gentoo libpsx.pc file from Lars Wendler
|
||||
* refactored the way libpsx linkage with libcap performed mutual
|
||||
discovery.
|
||||
* Previously (2.28) libpsx had an API call overridden by libcap
|
||||
using weak linkage function in libpsx. In 2.30 this is reversed,
|
||||
namely libpsx provides the stronger function and libcap has a
|
||||
weak "no-op" version.
|
||||
* a bit more consistency in handling the 'all' sets in libcap
|
||||
(C) and libcap/cap (Go). Namely, they both dynamically discover
|
||||
the number of capabilities named by the kernel and use this as
|
||||
the definition of 'all' for the current runtime.
|
||||
+ libcap (C) exports cap_max_bit() to export the number of
|
||||
supported capabilities
|
||||
+ libcap/cap (Go) exports cap.MaxBits() for this same value.
|
||||
- For changes for older releases see:
|
||||
* https://sites.google.com/site/fullycapable/release-notes-for-libcap
|
||||
- Add glibc-static-devel as build requirement as tests need it
|
||||
- Install libpsx.a as it seems to be needed in some cases:
|
||||
* https://bugs.gentoo.org/703912
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 14:21:27 UTC 2019 - matthias.gerstner@suse.com
|
||||
|
||||
|
31
libcap.spec
31
libcap.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libcap
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 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
|
||||
@ -17,16 +17,17 @@
|
||||
|
||||
|
||||
Name: libcap
|
||||
Version: 2.32
|
||||
Release: 0
|
||||
Summary: Library for Capabilities (linux-privs) Support
|
||||
License: BSD-3-Clause AND GPL-2.0-only
|
||||
Group: Development/Libraries/C and C++
|
||||
Version: 2.25
|
||||
Release: 0
|
||||
URL: https://sites.google.com/site/fullycapable/
|
||||
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/
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: glibc-devel-static
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%description
|
||||
Capabilities are a measure to limit the omnipotence of the superuser.
|
||||
@ -48,8 +49,6 @@ control. Without kernel patches, you can use this library to drop
|
||||
capabilities within setuid binaries. If you use patches, this can be
|
||||
done automatically by the kernel.
|
||||
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libcap
|
||||
Group: Development/Libraries/C and C++
|
||||
@ -76,9 +75,11 @@ libcap.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
||||
INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}"
|
||||
INCDIR=%{_includedir} MANDIR=%{_mandir} DYNAMIC=yes DEBUG="-g %{optflags}"
|
||||
|
||||
%install
|
||||
make install RAISE_SETFCAP=no \
|
||||
@ -88,34 +89,36 @@ make install RAISE_SETFCAP=no \
|
||||
INCDIR=/%{_includedir} \
|
||||
MANDIR=/%{_mandir}/ \
|
||||
PKGCONFIGDIR=%{_libdir}/pkgconfig/
|
||||
find %{buildroot} -type f -name '*.la' -print -delete
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
# do not provide static libs
|
||||
rm %{buildroot}%{_libdir}/libcap.a
|
||||
|
||||
%fdupes -s $RPM_BUILD_ROOT
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%post -n libcap2 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcap2 -p /sbin/ldconfig
|
||||
|
||||
%files -n libcap2
|
||||
%defattr(-,root,root)
|
||||
%license License
|
||||
%{_libdir}/libcap.so.*
|
||||
|
||||
%files progs
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man8/*
|
||||
%{_sbindir}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%license License
|
||||
%doc README CHANGELOG
|
||||
%{_includedir}/sys/capability.h
|
||||
%{_includedir}/sys/psx_syscall.h
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/libpsx.a
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/pkgconfig/libpsx.pc
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user