From cf4d93c76169e94c64ca845af537643b64469ef2b4937a188bdb7ba509b2a29d Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 16 May 2025 13:23:43 +0000 Subject: [PATCH] Accepting request 1277986 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277986 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloud-init-seed?expand=0&rev=6 --- python-cloud-init-seed.changes | 5 +++++ python-cloud-init-seed.spec | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-cloud-init-seed.changes b/python-cloud-init-seed.changes index 1d3d79c..606913b 100644 --- a/python-cloud-init-seed.changes +++ b/python-cloud-init-seed.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 16 09:16:42 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 27 09:36:45 UTC 2020 - Petr Gajdos diff --git a/python-cloud-init-seed.spec b/python-cloud-init-seed.spec index 64e0379..d17fda9 100644 --- a/python-cloud-init-seed.spec +++ b/python-cloud-init-seed.spec @@ -1,7 +1,7 @@ # # spec file for package python-cloud-init-seed # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-cloud-init-seed Version: 0.3.0 Release: 0 @@ -28,12 +26,14 @@ URL: https://github.com/toabctl/cloud-init-seed Source: https://files.pythonhosted.org/packages/source/c/cloud-init-seed/cloud-init-seed-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: mkisofs -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -44,10 +44,10 @@ Create cloud-init compatible image seeds %setup -q -n cloud-init-seed-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/cloud-init-seed %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -61,6 +61,7 @@ Create cloud-init compatible image seeds %doc AUTHORS ChangeLog README.rst %license LICENSE %python_alternative %{_bindir}/cloud-init-seed -%{python_sitelib}/* +%{python_sitelib}/cloud[-_]init[-_]seed +%{python_sitelib}/cloud[-_]init[-_]seed-%{version}*-info %changelog