From b8503265fac7b07b7faab80291f53e484d420056 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Wed, 25 May 2022 00:09:06 +0200 Subject: [PATCH] Fix %post dpdk --- openvswitch.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openvswitch.spec b/openvswitch.spec index d675bc0..c616213 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -428,6 +428,8 @@ fi /bin/systemctl daemon-reload >/dev/null 2>&1 || : %endif +%if %{with dpdk} +%ifarch %{dpdkarches} %post dpdk if fgrep -qw sse4_1 /proc/cpuinfo; then priority=20 @@ -442,6 +444,8 @@ fi if [ $1 -eq 0 ] ; then %{_sbindir}/update-alternatives --remove ovs-vswitchd %{_sbindir}/ovs-vswitchd.dpdk fi +%endif +%endif %files -n python3-openvswitch %{python3_sitearch}/ovs