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