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 <huangyu106@huawei.com>
(cherry picked from commit e5adba95566cecc9085afc36622eb216b391c300)
This commit is contained in:
huangyu 2022-08-01 17:29:53 +08:00 committed by openeuler-sync-bot
parent c99bcc650e
commit 4855189609

View File

@ -1,6 +1,6 @@
Name: nftables Name: nftables
Version: 1.0.0 Version: 1.0.0
Release: 1 Release: 2
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
@ -43,6 +43,7 @@ The nftables python module providing an interface to libnftables via ctypes.
%make_build %make_build
%install %install
export SETUPTOOLS_USE_DISTUTILS=stdlib
%make_install %make_install
%delete_la %delete_la
@ -104,6 +105,12 @@ echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%{python3_sitelib}/nftables/ %{python3_sitelib}/nftables/
%changelog %changelog
* Mon Aug 1 2022 huangyu <huangyu106@huawei.com> - 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 <quanhongfei@h-partners.com> - 1:1.0.0-1 * Sat Mar 19 2022 quanhongfei <quanhongfei@h-partners.com> - 1:1.0.0-1
- Type:requirement - Type:requirement
- ID:NA - ID:NA