From 69ca189a235f2f6d0743d774f6edc3fe57caf170 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 03:57:03 +0100 Subject: [PATCH] install pam file to /%_lib/security [release 2.49-2mamba;Tue Apr 13 2021] --- libcap.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libcap.spec b/libcap.spec index f816701..665518a 100644 --- a/libcap.spec +++ b/libcap.spec @@ -1,6 +1,6 @@ Name: libcap Version: 2.49 -Release: 1mamba +Release: 2mamba Summary: POSIX 1003.1e capabilities Group: System/Libraries Vendor: openmamba @@ -10,12 +10,12 @@ URL: https://www.it.kernel.org/pub/linux/libs/security/linux-privs/ Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: ldconfig +BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRequires: libattr-devel BuildRequires: pam-devel Requires(post): libcap-tools = %{version}-%{release} -Obsoletes: libcap1 +Obsoletes: libcap1 < 2.49 %description POSIX 1003.1e capabilities. @@ -24,7 +24,7 @@ POSIX 1003.1e capabilities. Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{version}-%{release} -Obsoletes: libcap1-devel +Obsoletes: libcap1-devel < 2.49 %description devel POSIX 1003.1e capabilities @@ -68,6 +68,9 @@ install -Dm644 pam_cap/capability.conf \ chmod +x %{buildroot}%{_libdir}/libcap.so.* +install -d -m0755 %{buildroot}/%{_lib} +mv %{buildroot}%{_libdir}/security %{buildroot}/%{_lib} + # remove conflicting man pages rm -f %{buildroot}%{_mandir}/man2/capset* rm -f %{buildroot}%{_mandir}/man2/capget* @@ -88,7 +91,7 @@ fi %defattr(-,root,root) %{_libdir}/libcap.so.* %{_libdir}/libpsx.so.* -%{_libdir}/security/pam_cap.so +/%{_lib}/security/pam_cap.so %files devel %defattr(-,root,root) @@ -116,6 +119,9 @@ fi %doc README %changelog +* Tue Apr 13 2021 Silvan Calarco 2.49-2mamba +- install pam file to /%_lib/security + * Sun Mar 14 2021 Automatic Build System 2.49-1mamba - automatic version update by autodist