From 731ecd6ddbbb38ccb4858c03e14b4ba3c23c1edb Mon Sep 17 00:00:00 2001 From: fuanan <2385803914@qq.com> Date: Tue, 7 Sep 2021 16:19:12 +0800 Subject: [PATCH] remove rpath and runpath of exec files and libraries --- libmetalink.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libmetalink.spec b/libmetalink.spec index 8295163..f31a24b 100644 --- a/libmetalink.spec +++ b/libmetalink.spec @@ -1,12 +1,12 @@ Name: libmetalink Version: 0.1.3 -Release: 8 +Release: 9 Summary: Metalink library written in C License: MIT URL: https://launchpad.net/libmetalink Source0: https://launchpad.net/libmetalink/trunk/%{name}-%{version}/+download/%{name}-%{version}.tar.bz2 -BuildRequires: gcc expat-devel CUnit-devel +BuildRequires: gcc expat-devel CUnit-devel chrpath %description libmetalink is a Metalink library written in C language. It is intended to @@ -37,6 +37,12 @@ rm -rf $RPM_BUILD_ROOT %make_install %delete_la +#remove rpath +chrpath -d %{buildroot}%{_libdir}/%{name}.so.3.1.0 + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %check make check @@ -53,10 +59,14 @@ make check %{_includedir}/metalink/*.h %{_libdir}/libmetalink.so %{_libdir}/pkgconfig/%{name}.pc +%config(noreplace) /etc/ld.so.conf.d/* %files help %{_mandir}/man3/* %changelog +* Tue Sep 7 2021 fuanan - 0.1.3-9 +- remove rpath and runpath of exec files and libraries + * Tue Sep 10 2019 openEuler Buildteam - 0.1.3-8 - Package init