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