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