Accepting request 1087763 from home:ojkastl_buildservice:Branch_systemsmanagement_ansible

- fix 'ansible-builder --version' not reporting the right version

OBS-URL: https://build.opensuse.org/request/show/1087763
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible-builder?expand=0&rev=6
This commit is contained in:
Johannes Kastl 2023-05-18 08:32:59 +00:00 committed by Git OBS Bridge
parent 8706ef6f04
commit fff380e070
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 18 08:31:38 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- fix 'ansible-builder --version' not reporting the right version
-------------------------------------------------------------------
Mon May 15 20:12:30 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -45,17 +45,18 @@ License: Apache-2.0
URL: https://github.com/ansible/ansible-builder
Source: https://files.pythonhosted.org/packages/source/a/ansible-builder/ansible-builder-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{ansible_python}-base >= 3.8
# https://github.com/ansible/ansible-builder/blob/devel/setup.cfg#L41
BuildRequires: %{ansible_python}-base >= 3.9
BuildRequires: %{ansible_python}-pip
BuildRequires: %{ansible_python}-setuptools
BuildRequires: %{ansible_python}-wheel
BuildRequires: ansible-core
BuildRequires: python-rpm-macros
# https://github.com/ansible/ansible-builder/blob/devel/requirements.txt
BuildRequires: %{ansible_python}-pbr
BuildRequires: %{ansible_python}-PyYAML
BuildRequires: %{ansible_python}-bindep
BuildRequires: %{ansible_python}-jsonschema
BuildRequires: %{ansible_python}-pbr
BuildRequires: %{ansible_python}-requirements-parser
#
# Tests require podman, but also require connectivity to pull container images
@ -86,6 +87,7 @@ https://ansible-builder.readthedocs.io/en/latest/
%prep
%setup -q -n ansible-builder-%{version}
sed -i '/return importlib.metadata.version/ s/return.*$/return "%{version}"/' src/ansible_builder/cli.py
%build
%pyproject_wheel