From c3f80fc15d82deb8d50b0656701383e7b4b7d479 Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Mon, 6 Sep 2021 14:21:43 +0800 Subject: [PATCH] remove rpath and runpath of exec files and libraries --- libpsl.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libpsl.spec b/libpsl.spec index 4a0e4e9..06b9b42 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -1,12 +1,12 @@ Name: libpsl Version: 0.21.1 -Release: 3 +Release: 4 Summary: C library to handle the Public Suffix List License: MIT URL: https://github.com/rockdaboot/libpsl Source0: https://github.com/rockdaboot/libpsl/releases/download/%{version}/libpsl-%{version}.tar.gz -BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel +BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel chrpath BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel Requires: publicsuffix-list Provides: psl = %{version}-%{release} @@ -68,6 +68,12 @@ sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa install -m0755 src/psl-make-dafsa %{buildroot}/%{_bindir} rm -f %{buildroot}/%{_libdir}/%{name}.la +#remove rpath +chrpath -d %{buildroot}/%{_bindir}/psl + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %check make check @@ -84,6 +90,7 @@ make check %{_libdir}/%{name}.so.* %{_bindir}/psl %{_bindir}/psl-make-dafsa +%config(noreplace) /etc/ld.so.conf.d/* %files devel %{_includedir}/%{name}.h @@ -97,6 +104,9 @@ make check %{_datadir}/gtk-doc/html/%{name} %changelog +* Mon Sep 6 2021 panxiaohe - 0.21.1-4 +- remove rpath and runpath of exec files and libraries + * Mon Jul 26 2021 panxiaohe - 0.21.1-3 - Remove unnecessary BuildRequires:git -- Gitee