From cab9f98329a8e6393113319193e020618acc7319 Mon Sep 17 00:00:00 2001 From: zhangruifang2020 Date: Wed, 31 Aug 2022 16:31:08 +0800 Subject: [PATCH] remove rpath and runpath of exec files and libraries --- acl.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/acl.spec b/acl.spec index 2bba7b8..3a2efde 100644 --- a/acl.spec +++ b/acl.spec @@ -1,6 +1,6 @@ Name: acl Version: 2.2.53 -Release: 8 +Release: 9 Summary: Commands for manipulating POSIX access control lists License: GPLv2+ @@ -8,6 +8,7 @@ URL: https://savannah.nongnu.org/projects/acl Source0: http://download.savannah.nongnu.org/releases/acl/acl-2.2.53.tar.gz BuildRequires: libattr-devel gawk libtool gettext +BuildRequires: chrpath %description This package contains commands for manipulating POSIX access control lists, @@ -44,6 +45,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} @@ -71,6 +77,7 @@ make check %files -n libacl %{_libdir}/libacl.so.* +%{_sysconfdir}/ld.so.conf.d/* %files -n libacl-devel %defattr(-,root,root) @@ -86,6 +93,9 @@ make check %{_mandir}/man5/* %changelog +* Wed Aug 31 2022 zhangruifang - 2.2.53-9 +- remove rpath and runpath of exec files and libraries + * Tue Aug 18 2020 chenyaqiang - 2.2.53-8 - rebuild for package build -- Gitee