From d05d82692761374e52729ef4a182152e5f26e49c6643886eb93e5397853f37a0 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 17 Jun 2024 13:23:19 +0000 Subject: [PATCH] Accepting request 1180876 from home:mcalabkova:branches:Cloud:Tools - remove dependency on /usr/bin/python3 via using the macros (bsc#1212476) OBS-URL: https://build.opensuse.org/request/show/1180876 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=235 --- cloud-init.changes | 5 +++++ cloud-init.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cloud-init.changes b/cloud-init.changes index 72efd99..75764dd 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 14 10:34:54 UTC 2024 - Markéta Machová + +- remove dependency on /usr/bin/python3 via using the macros (bsc#1212476) + ------------------------------------------------------------------- Mon Jun 3 19:53:46 UTC 2024 - Robert Schweikert diff --git a/cloud-init.spec b/cloud-init.spec index 9a75a7c..c5d9e7e 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -174,14 +174,14 @@ version_pys=$(find . -name version.py -type f) sed -i "s,@@PACKAGED_VERSION@@,%{version}-%{release}," $version_pys %build -python3 setup.py build +%python3_build %check make unittest make lint %install -python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib} --init-system=%{initsys} --distro=suse +%python3_install --init-system=%{initsys} --distro=suse find %{buildroot} \( -name .gitignore -o -name .placeholder \) -delete # from debian install script for x in "%{buildroot}%{_bindir}/"*.py; do