!28 [sync] PR-27: remove binaries runpath & rpath

From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-08-28 03:20:22 +00:00 committed by Gitee
commit acf13c113a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: papi
Version: 7.0.1
Release: 1
Release: 2
Summary: Performance Application Programming Interface
License: BSD
URL: http://icl.cs.utk.edu/papi/
@ -56,6 +56,10 @@ cd src
make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
file `find $RPM_BUILD_ROOT%{_bindir} -type f` |grep -w ELF |awk -F":" '{print $1}'|for file in `xargs`
do
chrpath --delete $file
done
%post
/sbin/ldconfig
@ -85,6 +89,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
%{_mandir}/man3/*
%changelog
* Mon Aug 28 2023 chenchen <chen_aka_jan@163.com> - 7.0.1-2
- remove binaries runpath & rpath
* Tue Jun 20 2023 Ge Wang <wang__ge@126.com> - 7.0.1-1
- Upgrade to version 7.0.1