diff --git a/baselibs.conf b/baselibs.conf index 6d70477..f607fb1 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1,2 @@ libcap2 +libpsx2 diff --git a/libcap-2.43.tar.xz b/libcap-2.43.tar.xz deleted file mode 100644 index 3e96d3b..0000000 --- a/libcap-2.43.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:512a0e5fc4c1e06d472a20da26aa96a9b9bf2a26b23f094f77f1b8da56cc427f -size 125284 diff --git a/libcap-2.44.tar.xz b/libcap-2.44.tar.xz new file mode 100644 index 0000000..cbd6eda --- /dev/null +++ b/libcap-2.44.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92188359cd5be86e8e5bd3f6483ac6ce582264f912398937ef763def2205c8e1 +size 125568 diff --git a/libcap.changes b/libcap.changes index 9059f61..49c3250 100644 --- a/libcap.changes +++ b/libcap.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Nov 14 10:26:54 UTC 2020 - Dirk Mueller + +- update to 2.44: + Generally, this is a release to help package builders: no functional change + to any of the generated code just documentation and make related fixes. + ------------------------------------------------------------------- Wed Sep 2 17:03:06 UTC 2020 - Dirk Mueller diff --git a/libcap.spec b/libcap.spec index afb6379..862f630 100644 --- a/libcap.spec +++ b/libcap.spec @@ -17,7 +17,7 @@ Name: libcap -Version: 2.43 +Version: 2.44 Release: 0 Summary: Library for Capabilities (linux-privs) Support License: BSD-3-Clause AND GPL-2.0-only @@ -49,6 +49,20 @@ 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 -n libpsx2 +Summary: Library for Capabilities (linux-privs) Support +Group: System/Libraries + +%description -n libpsx2 +Capabilities are a measure to limit the omnipotence of the superuser. +Currently a program started by root or setuid root has the power to do +anything. Capabilities (Linux-Privs) provide a more fine-grained access +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++ @@ -79,16 +93,19 @@ libcap. %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \ - INCDIR=%{_includedir} MANDIR=%{_mandir} DYNAMIC=yes DEBUG="-g %{optflags}" + INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes DEBUG="-g %{optflags}" %install make install RAISE_SETFCAP=no \ - DESTDIR=%{buildroot} \ - LIBDIR=/%{_libdir} \ - SBINDIR=/%{_sbindir} \ - INCDIR=/%{_includedir} \ - MANDIR=/%{_mandir}/ \ - PKGCONFIGDIR=%{_libdir}/pkgconfig/ + 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 # do not provide static libs rm %{buildroot}%{_libdir}/libcap.a @@ -101,6 +118,15 @@ make 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 %{_libdir}/libcap.so.*