Accepting request 1087867 from home:ojkastl_buildservice:Branch_systemsmanagement_ansible
fix version by BuildRequire for setuptools_scm instead of hardcoding the version OBS-URL: https://build.opensuse.org/request/show/1087867 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible-builder?expand=0&rev=7
This commit is contained in:
parent
fff380e070
commit
526267a686
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 19 05:38:45 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
- fix version by BuildRequire for setuptools_scm instead of
|
||||||
|
hardcoding the version
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 18 08:31:38 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Thu May 18 08:31:38 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ BuildArch: noarch
|
|||||||
BuildRequires: %{ansible_python}-base >= 3.9
|
BuildRequires: %{ansible_python}-base >= 3.9
|
||||||
BuildRequires: %{ansible_python}-pip
|
BuildRequires: %{ansible_python}-pip
|
||||||
BuildRequires: %{ansible_python}-setuptools
|
BuildRequires: %{ansible_python}-setuptools
|
||||||
|
BuildRequires: %{ansible_python}-setuptools_scm
|
||||||
BuildRequires: %{ansible_python}-wheel
|
BuildRequires: %{ansible_python}-wheel
|
||||||
BuildRequires: ansible-core
|
BuildRequires: ansible-core
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -87,7 +88,6 @@ https://ansible-builder.readthedocs.io/en/latest/
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ansible-builder-%{version}
|
%setup -q -n ansible-builder-%{version}
|
||||||
sed -i '/return importlib.metadata.version/ s/return.*$/return "%{version}"/' src/ansible_builder/cli.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@ -119,6 +119,6 @@ IGNORED_CHECKS="${IGNORED_CHECKS} or test_missing_runner"
|
|||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%{_bindir}/ansible-builder
|
%{_bindir}/ansible-builder
|
||||||
%{ansible_python_sitelib}/ansible_builder
|
%{ansible_python_sitelib}/ansible_builder
|
||||||
%{ansible_python_sitelib}/ansible_builder-*-info
|
%{ansible_python_sitelib}/ansible_builder-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user