diff --git a/libcap-2.44.tar.xz b/libcap-2.44.tar.xz deleted file mode 100644 index cbd6eda..0000000 --- a/libcap-2.44.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92188359cd5be86e8e5bd3f6483ac6ce582264f912398937ef763def2205c8e1 -size 125568 diff --git a/libcap-2.46.tar.xz b/libcap-2.46.tar.xz new file mode 100644 index 0000000..49d83f8 --- /dev/null +++ b/libcap-2.46.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ed3d11413fa6c9667e49f819808fbb581cd8864b839f87d7c2a02c70f21d8b4 +size 129296 diff --git a/libcap.changes b/libcap.changes index 49c3250..be3d1c4 100644 --- a/libcap.changes +++ b/libcap.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Jan 4 08:46:44 UTC 2021 - Dirk Müller + +- 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 diff --git a/libcap.spec b/libcap.spec index 862f630..a7c2ab0 100644 --- a/libcap.spec +++ b/libcap.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: libcap -Version: 2.44 +Version: 2.46 Release: 0 Summary: Library for Capabilities (linux-privs) Support License: BSD-3-Clause AND GPL-2.0-only @@ -89,23 +89,16 @@ libcap. %prep %setup -q +%autopatch -p1 %build -%global _lto_cflags %{_lto_cflags} -ffat-lto-objects -make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \ - INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes DEBUG="-g %{optflags}" +%global _lto_cflags %{nil} +%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}" + +make %{buildvariables} %install -make install RAISE_SETFCAP=no \ - prefix=%{_prefix} \ - lib=%{_lib} \ - DESTDIR=%{buildroot} \ - LIBDIR=/%{_libdir} \ - SBINDIR=/%{_sbindir} \ - INCDIR=/%{_includedir} \ - MANDIR=/%{_mandir}/ \ - SHARED=yes \ - PKGCONFIGDIR=%{_libdir}/pkgconfig/ +make install %{buildvariables} DESTDIR=%{buildroot} find %{buildroot} -type f -name "*.la" -delete -print # do not provide static libs rm %{buildroot}%{_libdir}/libcap.a @@ -113,19 +106,17 @@ rm %{buildroot}%{_libdir}/libcap.a %fdupes -s %{buildroot} %check -make test +make %{buildvariables} test %post -n libcap2 -p /sbin/ldconfig %postun -n libcap2 -p /sbin/ldconfig -%ifarch aarch64 %post -n libpsx2 -p /sbin/ldconfig %postun -n libpsx2 -p /sbin/ldconfig %files -n libpsx2 %license License %{_libdir}/libpsx.so.2* -%endif %files -n libcap2 %license License