From 725664f8d42001ed28d1e6c4cc6ba5cbbf72391b Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Tue, 20 Sep 2022 10:12:27 +0800 Subject: [PATCH] Remove rpath and runpath of exec files Signed-off-by: yixiangzhike (cherry picked from commit 2651c79b57dcd143450acc8e8c2a2a7714a01679) --- acl.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/acl.spec b/acl.spec index e26d865..9c019f6 100644 --- a/acl.spec +++ b/acl.spec @@ -1,6 +1,6 @@ Name: acl Version: 2.3.1 -Release: 1 +Release: 2 Summary: Commands for manipulating POSIX access control lists License: GPLv2+ @@ -11,6 +11,7 @@ Source1: http://download.savannah.nongnu.org/releases/acl/%{name}-%{versio Source2: agruen-key.gpg BuildRequires: libattr-devel gawk libtool gettext +BuildRequires: chrpath %description This package contains commands for manipulating POSIX access control lists, @@ -47,6 +48,11 @@ This package contains header files for the POSIX ACL library. %make_install %delete_la_and_a rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}* +chrpath -d $RPM_BUILD_ROOT%{_bindir}/setfacl +chrpath -d $RPM_BUILD_ROOT%{_bindir}/getfacl +chrpath -d $RPM_BUILD_ROOT%{_bindir}/chacl +mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d +echo "/usr/lib64/acl" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf %find_lang %{name} @@ -74,6 +80,7 @@ fi %files -n libacl %{_libdir}/libacl.so.* +%{_sysconfdir}/ld.so.conf.d/* %files -n libacl-devel %defattr(-,root,root) @@ -89,6 +96,9 @@ fi %{_mandir}/man5/* %changelog +* Tue Sep 20 2022 yixiangzhike - 2.3.1-2 +- Remove rpath and runpath of exec files + * Tue Jul 27 2021 panxiaohe - 2.3.1-1 - Update to 2.3.1 -- Gitee