From 0fd6c907959b4422236280a774c2c37e24b8634a Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Tue, 23 Aug 2022 09:19:04 +0800 Subject: [PATCH] Remove rpath (cherry picked from commit d3398350e94638f6c648603d7ba346f86db33dc5) --- kronosnet.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kronosnet.spec b/kronosnet.spec index 112d305..9b4f247 100644 --- a/kronosnet.spec +++ b/kronosnet.spec @@ -20,11 +20,11 @@ Name: kronosnet Summary: Multipoint-to-Multipoint VPN daemon Version: 1.20 -Release: 1 +Release: 2 License: GPLv2+ and LGPLv2+ URL: https://kronosnet.org Source0: https://kronosnet.org/releases/%{name}-%{version}.tar.gz -BuildRequires: gcc +BuildRequires: gcc chrpath %if %{with buildman} BuildRequires: libqb-devel libxml2-devel doxygen %endif @@ -149,6 +149,12 @@ find %{buildroot} -name "*.a" -exec rm {} \; find %{buildroot} -name "*.la" -exec rm {} \; rm -rf %{buildroot}/etc/init.d rm -rf %{buildroot}/usr/share/doc/kronosnet + +file `find %{buildroot}/%{_libdir} -type f` | grep -w ELF | awk -F: '{print $1}' | xargs chrpath -d + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}/%{name}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %description The kronosnet source %if %{with kronosnetd} @@ -204,6 +210,7 @@ License: LGPLv2+ %files -n libnozzle1 %license COPYING.* COPYRIGHT %{_libdir}/libnozzle.so.* +%config(noreplace) /etc/ld.so.conf.d/* %if 0%{?ldconfig_scriptlets} %ldconfig_scriptlets -n libnozzle1 %else @@ -434,6 +441,9 @@ Requires: libknet1%{_isa} = %{version}-%{release} %endif %changelog +* Tue Aug 23 2022 yaoxin - 1.20-2 +- Remove rpath + * Mon Jul 25 2022 zouzhimin - 1.20-1 - update to 1.20-1