diff --git a/ovirt-provider-ovn.spec b/ovirt-provider-ovn.spec index aefda3b..caf7d13 100644 --- a/ovirt-provider-ovn.spec +++ b/ovirt-provider-ovn.spec @@ -3,6 +3,8 @@ %define __os_install_post %{_dbpath}/brp-compress %define required_python_lib(l:) python%{python3_pkgversion}-%{*} +%global ovn_support 0 + %global required_python python%{python3_pkgversion} %global required_python_interpreter %{__python3} %global required_python_sitelib %{python3_sitelib} @@ -16,7 +18,7 @@ Name: ovirt-provider-ovn Version: 1.2.29 -Release: 2 +Release: 3 Summary: The oVirt external network provider for OVN License: GPLv2+ BuildArch: noarch @@ -27,8 +29,10 @@ Requires: firewalld-filesystem Requires: kernel >= 3.10.0-512 Requires: openvswitch >= 0:2.7 +%if %{ovn_support} Requires: openvswitch-ovn-central >= 0:2.7 Requires: openvswitch-ovn-common >= 0:2.7 +%endif Requires: %{required_ovs_lib} >= 0:2.7 Conflicts: openvswitch = 1:2.6.1 @@ -83,8 +87,10 @@ Requires: firewalld-filesystem Requires: kernel >= 3.10.0-512 Requires: openvswitch >= 0:2.7 +%if %{ovn_support} Requires: openvswitch-ovn-host >= 0:2.7 Requires: openvswitch-ovn-common >= 0:2.7 +%endif Requires: %{required_ovs_lib} >= 0:2.7 Conflicts: openvswitch = 1:2.6.1 @@ -128,6 +134,9 @@ to OVN. %changelog +* Fri Mar 03 2023 jiangxinyu - 1.2.29-3 +- Add limit for requires + * Mon Jun 13 2022 chendexi - 1.2.29-2 - Remove the release suffix