remove rpath of nft
This commit is contained in:
parent
75556af7cf
commit
a4db14868e
@ -1,6 +1,6 @@
|
|||||||
Name: nftables
|
Name: nftables
|
||||||
Version: 0.9.9
|
Version: 0.9.9
|
||||||
Release: 2
|
Release: 3
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A subsystem of the Linux kernel processing network data
|
Summary: A subsystem of the Linux kernel processing network data
|
||||||
License: GPLv2
|
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: gcc flex bison libmnl-devel gmp-devel readline-devel libnftnl-devel docbook2X systemd
|
||||||
BuildRequires: iptables-devel jansson-devel python3-devel
|
BuildRequires: iptables-devel jansson-devel python3-devel
|
||||||
|
BuildRequires: chrpath
|
||||||
|
|
||||||
%description
|
%description
|
||||||
nftables is a subsystem of the Linux kernel providing filtering and classification of\
|
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
|
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
|
||||||
mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $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
|
%post
|
||||||
%systemd_post nftables.service
|
%systemd_post nftables.service
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun nftables.service
|
%systemd_preun nftables.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart nftables.service
|
%systemd_postun_with_restart nftables.service
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%ldconfig_scriptlets devel
|
%ldconfig_scriptlets devel
|
||||||
|
|
||||||
@ -73,6 +81,7 @@ mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $RPM_BUILD_ROOT/%{_sysconfdir}/nft
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%config(noreplace) %{_sysconfdir}/nftables/
|
%config(noreplace) %{_sysconfdir}/nftables/
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf
|
%config(noreplace) %{_sysconfdir}/sysconfig/nftables.conf
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
%{_sbindir}/nft
|
%{_sbindir}/nft
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%{_unitdir}/nftables.service
|
%{_unitdir}/nftables.service
|
||||||
@ -96,6 +105,12 @@ mv $RPM_BUILD_ROOT/%{_datadir}/nftables/*.nft $RPM_BUILD_ROOT/%{_sysconfdir}/nft
|
|||||||
%{python3_sitelib}/nftables/
|
%{python3_sitelib}/nftables/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 1:0.9.9-3
|
||||||
|
- Type:requirement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:remove rpath of nft
|
||||||
|
|
||||||
* Tue Aug 24 2021 gaihuiying <gaihuiying1@huawei.com> - 1:0.9.9-2
|
* Tue Aug 24 2021 gaihuiying <gaihuiying1@huawei.com> - 1:0.9.9-2
|
||||||
- json: fix base chain output
|
- json: fix base chain output
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user