From 695ec86129d7a9c2506453e216030dbc2f827d0a3ea28b9d3ef6d0728d57e98d Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 15:22:56 +0000 Subject: [PATCH] Accepting request 1282827 from home:fstegmeier:branches:devel:languages:python - fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1282827 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloud-init-seed?expand=0&rev=8 --- python-cloud-init-seed.changes | 5 +++++ python-cloud-init-seed.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-cloud-init-seed.changes b/python-cloud-init-seed.changes index 606913b..32dbe0a 100644 --- a/python-cloud-init-seed.changes +++ b/python-cloud-init-seed.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 15:00:53 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + ------------------------------------------------------------------- Fri May 16 09:16:42 UTC 2025 - Markéta Machová diff --git a/python-cloud-init-seed.spec b/python-cloud-init-seed.spec index d17fda9..fbe7c74 100644 --- a/python-cloud-init-seed.spec +++ b/python-cloud-init-seed.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-cloud-init-seed Version: 0.3.0 Release: 0 @@ -29,11 +30,11 @@ BuildRequires: %{python_module pbr} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: mkisofs -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -51,11 +52,9 @@ Create cloud-init compatible image seeds %python_clone -a %{buildroot}%{_bindir}/cloud-init-seed %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative cloud-init-seed - -%postun -%python_uninstall_alternative cloud-init-seed +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative cloud-init-seed %files %{python_files} %doc AUTHORS ChangeLog README.rst