Change require from ansible-2.9 to ansible

(cherry picked from commit 2c219d7bf69149eb632df7d91e93c39d412e6156)
This commit is contained in:
jxy_git 2022-05-11 09:57:20 +08:00 committed by openeuler-sync-bot
parent 27e055da96
commit f7ad7a3c64
2 changed files with 11 additions and 4 deletions

View File

@ -1,14 +1,15 @@
%define _unpackaged_files_terminate_build 0
%{?python_enable_dependency_generator} %{?python_enable_dependency_generator}
%global pypi_name ansible-runner %global pypi_name ansible-runner
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.4.6 Version: 1.4.6
Release: 2 Release: 3
Summary: A tool and python library to interface with Ansible Summary: A tool and python library to interface with Ansible
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/ansible/ansible-runner URL: https://github.com/ansible/ansible-runner
Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: ansible-2.9 >= 2.6 BuildRequires: ansible >= 2.6
BuildRequires: python3-devel python3dist(mock) python3dist(psutil) python3dist(pexpect) >= 4.6 BuildRequires: python3-devel python3dist(mock) python3dist(psutil) python3dist(pexpect) >= 4.6
BuildRequires: python3dist(pytest) python3dist(pyyaml) python3dist(setuptools) BuildRequires: python3dist(pytest) python3dist(pyyaml) python3dist(setuptools)
BuildRequires: python3dist(six) python3dist(python-daemon) BuildRequires: python3dist(six) python3dist(python-daemon)
@ -20,7 +21,7 @@ standalone tool, or imported into a python project.
%package -n python3-%{pypi_name} %package -n python3-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
Requires: ansible-2.9 >= 2.6 python3-daemon python3dist(pexpect) >= 4.6 python3dist(psutil) Requires: ansible >= 2.6 python3-daemon python3dist(pexpect) >= 4.6 python3dist(psutil)
Requires: python3dist(pyyaml) python3dist(setuptools) python3dist(six) Requires: python3dist(pyyaml) python3dist(setuptools) python3dist(six)
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
Ansible Runner is a tool and python library that helps when interfacing with Ansible Runner is a tool and python library that helps when interfacing with
@ -48,11 +49,13 @@ py.test-3 -v test
%{_bindir}/ansible-runner-3 %{_bindir}/ansible-runner-3
%{_bindir}/ansible-runner-%{python3_version} %{_bindir}/ansible-runner-%{python3_version}
%{python3_sitelib}/ansible_runner %{python3_sitelib}/ansible_runner
%{python3_sitelib}/test
%{python3_sitelib}/ansible_runner-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/ansible_runner-%{version}-py%{python3_version}.egg-info
%{_bindir}/ansible-runner %{_bindir}/ansible-runner
%changelog %changelog
* Wed May 11 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.6-3
- Change require from ansible-2.9 to ansible
* Wed Sep 22 2021 wulei <wulei80@huawei.com> - 1.4.6-2 * Wed Sep 22 2021 wulei <wulei80@huawei.com> - 1.4.6-2
- Change require from ansible to ansible-2.9 - Change require from ansible to ansible-2.9

View File

@ -0,0 +1,4 @@
version_control: pypi
src_repo: ansible-runner
tag_prefix: ^v
separator: "."