!12 Add limit for requires

From: @jxy_git 
Reviewed-by: @wm-wm-wm 
Signed-off-by: @wm-wm-wm
This commit is contained in:
openeuler-ci-bot 2023-03-03 09:25:44 +00:00 committed by Gitee
commit 8c9310fc02
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <jiangxinyu@kylinos.cn> - 1.2.29-3
- Add limit for requires
* Mon Jun 13 2022 chendexi <chendexi@kylinos.cn> - 1.2.29-2
- Remove the release suffix