From 82b4506a52f73f7aeb5660321e3178be4521aafb Mon Sep 17 00:00:00 2001 From: panchenbo Date: Fri, 18 Aug 2023 11:18:34 +0800 Subject: [PATCH] add loongarch64 and sw_64 support --- openvswitch.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openvswitch.spec b/openvswitch.spec index df14b96..5cf5189 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -1,12 +1,16 @@ # This is enabled by default for versions of the distribution that # have Python 3 by default. +%ifarch sw_64 +%define _binaries_in_noarch_packages_terminate_build 0 +%endif + Name: openvswitch Summary: Production Quality, Multilayer Open Virtual Switch URL: http://www.openvswitch.org/ Version: 2.12.4 License: ASL 2.0 and ISC -Release: 3 +Release: 4 Source: https://www.openvswitch.org/releases/openvswitch-%{version}.tar.gz Buildroot: /tmp/openvswitch-rpm Patch0000: 0000-openvswitch-add-stack-protector-strong.patch @@ -56,6 +60,10 @@ Python bindings for the Open vSwitch database %prep %autosetup -p1 +%ifarch loongarch64 sw_64 +%_update_config_guess +%_update_config_sub +%endif %build autoreconf @@ -286,6 +294,9 @@ exit 0 %doc README.rst NEWS rhel/README.RHEL.rst %changelog +* Fri Aug 18 2023 panchenbo - 2.12.4-4 +- add loongarch64 and sw_64 support + * Thu Apr 13 2023 zhangpan - 2.12.4-3 - fix CVE-2023-1668 -- Gitee