From 89bca65cb9a5822b3d2ca7f2d1e02e6bae73f35f Mon Sep 17 00:00:00 2001 From: eaglegai Date: Tue, 7 Sep 2021 15:06:22 +0800 Subject: [PATCH] remove rpath of nft --- nftables.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nftables.spec b/nftables.spec index f3e39bb..4cbabf5 100644 --- a/nftables.spec +++ b/nftables.spec @@ -1,6 +1,6 @@ Name: nftables Version: 0.9.9 -Release: 2 +Release: 3 Epoch: 1 Summary: A subsystem of the Linux kernel processing network data License: GPLv2 @@ -12,6 +12,7 @@ Patch0: backport-json-fix-base-chain-output.patch BuildRequires: gcc flex bison libmnl-devel gmp-devel readline-devel libnftnl-devel docbook2X systemd BuildRequires: iptables-devel jansson-devel python3-devel +BuildRequires: chrpath %description nftables is a subsystem of the Linux kernel providing filtering and classification of\ @@ -57,14 +58,21 @@ cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/ install -d $RPM_BUILD_ROOT/%{_sysconfdir}/nftables mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $RPM_BUILD_ROOT/%{_sysconfdir}/nftables/ +chrpath -d %{buildroot}%{_sbindir}/nft + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %post %systemd_post nftables.service +/sbin/ldconfig %preun %systemd_preun nftables.service %postun %systemd_postun_with_restart nftables.service +/sbin/ldconfig %ldconfig_scriptlets devel @@ -73,6 +81,7 @@ mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $RPM_BUILD_ROOT/%{_sysconfdir}/nft %license COPYING %config(noreplace) %{_sysconfdir}/nftables/ %config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf +%config(noreplace) /etc/ld.so.conf.d/* %{_sbindir}/nft %{_libdir}/*.so.* %{_unitdir}/nftables.service @@ -96,6 +105,12 @@ mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $RPM_BUILD_ROOT/%{_sysconfdir}/nft %{python3_sitelib}/nftables/ %changelog +* Tue Sep 07 2021 gaihuiying - 1:0.9.9-3 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:remove rpath of nft + * Tue Aug 24 2021 gaihuiying - 1:0.9.9-2 - json: fix base chain output -- Gitee