From 4855189609b7bb8ae4fb95fecb1e461390656d13 Mon Sep 17 00:00:00 2001 From: huangyu Date: Mon, 1 Aug 2022 17:29:53 +0800 Subject: [PATCH] fix: nftables 22.09 build error 22.09 build error because of the python setuptool causes an error in the nftables packaging path, This marco is added to ensure that path remains unchanged. Signed-off-by: huangyu (cherry picked from commit e5adba95566cecc9085afc36622eb216b391c300) --- nftables.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nftables.spec b/nftables.spec index aacda07..7277b3d 100644 --- a/nftables.spec +++ b/nftables.spec @@ -1,6 +1,6 @@ Name: nftables Version: 1.0.0 -Release: 1 +Release: 2 Epoch: 1 Summary: A subsystem of the Linux kernel processing network data License: GPLv2 @@ -43,6 +43,7 @@ The nftables python module providing an interface to libnftables via ctypes. %make_build %install +export SETUPTOOLS_USE_DISTUTILS=stdlib %make_install %delete_la @@ -104,6 +105,12 @@ echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf %{python3_sitelib}/nftables/ %changelog +* Mon Aug 1 2022 huangyu - 1:1.0.0-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:The python-setup tools causes an error in the nftables packaging path,This macro is added to ensure that path remains unchanged + * Sat Mar 19 2022 quanhongfei - 1:1.0.0-1 - Type:requirement - ID:NA