!17 [sync] PR-14: remove rpath and runpath of exec files and libraries

From: @openeuler-sync-bot 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2022-12-20 02:54:31 +00:00 committed by Gitee
commit de7742b5b9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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