diff --git a/nftables.spec b/nftables.spec index f3e39bbaf3bc702be72698e4749bb422e8e8da15..4cbabf5879bab0cb383e26c23203ef396ab8726e 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