Add option for RPM spec to build with ansible-core

With Ansible 2.11 we need to build collection packages and it's
not identified as "ansible", but "ansible-core". Let's add
options to build RPM either with Ansible 2.9 or Ansible-Core 2.11.

Change-Id: I0d4de1681ecfd3140cfbf14ec5adab8a9117e60c
This commit is contained in:
Sagi Shnaidman 2021-10-13 15:48:19 +03:00
parent 32953e32e1
commit 0e628a984e
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ License: GPLv3+ and BSD and Python
URL: %{ansible_collection_url}
Source: https://github.com/ansible-collections/ansible.netcommon/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: ansible >= 2.9.10
BuildRequires: (ansible >= 2.9.10 or ansible-core >= 2.11.0)
BuildArch: noarch

View File

@ -10,7 +10,7 @@ License: GPLv3+ and Python
URL: %{ansible_collection_url}
Source: https://github.com/ansible-collections/ansible.posix/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: ansible >= 2.9.10
BuildRequires: (ansible >= 2.9.10 or ansible-core >= 2.11.0)
BuildArch: noarch

View File

@ -10,7 +10,7 @@ License: GPLv3+ and BSD and Python
URL: %{ansible_collection_url}
Source: https://github.com/ansible-collections/community.general/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: ansible >= 2.9.10
BuildRequires: (ansible >= 2.9.10 or ansible-core >= 2.11.0)
BuildArch: noarch