remove rpath and runpath of exec files and libraries

(cherry picked from commit cab9f98329a8e6393113319193e020618acc7319)
This commit is contained in:
zhangruifang2020 2022-08-31 16:31:08 +08:00 committed by openeuler-sync-bot
parent 022fcf75bc
commit 1a8a435fb4

View File

@ -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 <zhangruifang1@h-partners.com> - 2.2.53-9
- remove rpath and runpath of exec files and libraries
* Tue Aug 18 2020 chenyaqiang <chenyaqiang@huawei.com> - 2.2.53-8
- rebuild for package build