forked from pool/libcap
Accepting request 860344 from Base:System
- update to 2.46: * The bulk of this release concerns fixes and improvements to libpsx * Fix the capsh == argument handling and add a test case * Added build support for systems that do not support libpthread * Added build support for not building shared libraries OBS-URL: https://build.opensuse.org/request/show/860344 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcap?expand=0&rev=41
This commit is contained in:
commit
472cc35d39
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:92188359cd5be86e8e5bd3f6483ac6ce582264f912398937ef763def2205c8e1
|
|
||||||
size 125568
|
|
3
libcap-2.46.tar.xz
Normal file
3
libcap-2.46.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4ed3d11413fa6c9667e49f819808fbb581cd8864b839f87d7c2a02c70f21d8b4
|
||||||
|
size 129296
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 4 08:46:44 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.46:
|
||||||
|
* The bulk of this release concerns fixes and improvements to libpsx
|
||||||
|
* Fix the capsh == argument handling and add a test case
|
||||||
|
* Added build support for systems that do not support libpthread
|
||||||
|
* Added build support for not building shared libraries
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 14 10:26:54 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Sat Nov 14 10:26:54 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
27
libcap.spec
27
libcap.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libcap
|
# spec file for package libcap
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libcap
|
Name: libcap
|
||||||
Version: 2.44
|
Version: 2.46
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library for Capabilities (linux-privs) Support
|
Summary: Library for Capabilities (linux-privs) Support
|
||||||
License: BSD-3-Clause AND GPL-2.0-only
|
License: BSD-3-Clause AND GPL-2.0-only
|
||||||
@ -89,23 +89,16 @@ libcap.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{nil}
|
||||||
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
%global buildvariables RAISE_SETFCAP=no prefix=%{_prefix} lib=%{_lib} SHARED=yes LIBDIR=%{_libdir} SBINDIR=%{_sbindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes COPTS="%{optflags}"
|
||||||
INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes DEBUG="-g %{optflags}"
|
|
||||||
|
make %{buildvariables}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install RAISE_SETFCAP=no \
|
make install %{buildvariables} DESTDIR=%{buildroot}
|
||||||
prefix=%{_prefix} \
|
|
||||||
lib=%{_lib} \
|
|
||||||
DESTDIR=%{buildroot} \
|
|
||||||
LIBDIR=/%{_libdir} \
|
|
||||||
SBINDIR=/%{_sbindir} \
|
|
||||||
INCDIR=/%{_includedir} \
|
|
||||||
MANDIR=/%{_mandir}/ \
|
|
||||||
SHARED=yes \
|
|
||||||
PKGCONFIGDIR=%{_libdir}/pkgconfig/
|
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
# do not provide static libs
|
# do not provide static libs
|
||||||
rm %{buildroot}%{_libdir}/libcap.a
|
rm %{buildroot}%{_libdir}/libcap.a
|
||||||
@ -113,19 +106,17 @@ rm %{buildroot}%{_libdir}/libcap.a
|
|||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make %{buildvariables} test
|
||||||
|
|
||||||
%post -n libcap2 -p /sbin/ldconfig
|
%post -n libcap2 -p /sbin/ldconfig
|
||||||
%postun -n libcap2 -p /sbin/ldconfig
|
%postun -n libcap2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%ifarch aarch64
|
|
||||||
%post -n libpsx2 -p /sbin/ldconfig
|
%post -n libpsx2 -p /sbin/ldconfig
|
||||||
%postun -n libpsx2 -p /sbin/ldconfig
|
%postun -n libpsx2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libpsx2
|
%files -n libpsx2
|
||||||
%license License
|
%license License
|
||||||
%{_libdir}/libpsx.so.2*
|
%{_libdir}/libpsx.so.2*
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n libcap2
|
%files -n libcap2
|
||||||
%license License
|
%license License
|
||||||
|
Loading…
Reference in New Issue
Block a user