Remove rpath and runpath of exec files

Signed-off-by: yixiangzhike <yixiangzhike007@163.com>
(cherry picked from commit 2651c79b57dcd143450acc8e8c2a2a7714a01679)
This commit is contained in:
yixiangzhike 2022-09-20 10:12:27 +08:00 committed by openeuler-sync-bot
parent d17a1f9566
commit 725664f8d4

View File

@ -1,6 +1,6 @@
Name: acl Name: acl
Version: 2.3.1 Version: 2.3.1
Release: 1 Release: 2
Summary: Commands for manipulating POSIX access control lists Summary: Commands for manipulating POSIX access control lists
License: GPLv2+ License: GPLv2+
@ -11,6 +11,7 @@ Source1: http://download.savannah.nongnu.org/releases/acl/%{name}-%{versio
Source2: agruen-key.gpg Source2: agruen-key.gpg
BuildRequires: libattr-devel gawk libtool gettext BuildRequires: libattr-devel gawk libtool gettext
BuildRequires: chrpath
%description %description
This package contains commands for manipulating POSIX access control lists, 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 %make_install
%delete_la_and_a %delete_la_and_a
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}* 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} %find_lang %{name}
@ -74,6 +80,7 @@ fi
%files -n libacl %files -n libacl
%{_libdir}/libacl.so.* %{_libdir}/libacl.so.*
%{_sysconfdir}/ld.so.conf.d/*
%files -n libacl-devel %files -n libacl-devel
%defattr(-,root,root) %defattr(-,root,root)
@ -89,6 +96,9 @@ fi
%{_mandir}/man5/* %{_mandir}/man5/*
%changelog %changelog
* Tue Sep 20 2022 yixiangzhike <yixiangzhike007@163.com> - 2.3.1-2
- Remove rpath and runpath of exec files
* Tue Jul 27 2021 panxiaohe <panxiaohe@huawei.com> - 2.3.1-1 * Tue Jul 27 2021 panxiaohe <panxiaohe@huawei.com> - 2.3.1-1
- Update to 2.3.1 - Update to 2.3.1