15
0

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
This commit is contained in:
2025-06-04 15:22:56 +00:00
committed by Git OBS Bridge
parent cf4d93c761
commit 695ec86129
2 changed files with 11 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 15:00:53 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Fri May 16 09:16:42 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -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