From bda4058e7c05019a568ddab1a34eda85eb0fe5a4 Mon Sep 17 00:00:00 2001 From: chen-jan Date: Mon, 28 Aug 2023 11:19:33 +0800 Subject: [PATCH] remove binaries runpath & rpath (cherry picked from commit 201d81ca5e204fb564eeb3954d8bb6b78e41ad20) --- papi.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/papi.spec b/papi.spec index 3a2d21b..6c0e2b0 100644 --- a/papi.spec +++ b/papi.spec @@ -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 - 7.0.1-2 +- remove binaries runpath & rpath + * Tue Jun 20 2023 Ge Wang - 7.0.1-1 - Upgrade to version 7.0.1 -- Gitee