!13 [sync] PR-10: Remove rpath

From: @openeuler-sync-bot 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2022-12-03 08:36:11 +00:00 committed by Gitee
commit 5481f3ba5e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <yaoxin30@h-partners.com> - 1.20-2
- Remove rpath
* Mon Jul 25 2022 zouzhimin <zouzhimin@kylinos.cn> - 1.20-1
- update to 1.20-1