From 19188df096aec97d39062b8660d3ca5d9acde38aedc646d620ffb93daf8540b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 12:41:26 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-moban?expand=0&rev=24 --- python-moban.changes | 5 +++++ python-moban.spec | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/python-moban.changes b/python-moban.changes index e2a4d77..ab24355 100644 --- a/python-moban.changes +++ b/python-moban.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 12:40:57 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 2 12:30:05 UTC 2025 - Markéta Machová diff --git a/python-moban.spec b/python-moban.spec index 32d5457..a94bbb2 100644 --- a/python-moban.spec +++ b/python-moban.spec @@ -26,6 +26,7 @@ %define pkg_suffix %{nil} %bcond_with test %endif +%bcond_without libalternatives Name: python-moban%{pkg_suffix} Version: 0.8.2 Release: 0 @@ -40,9 +41,11 @@ Patch2: remove-mock.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: git-core BuildRequires: python-rpm-macros +Requires: alts Requires: git-core Requires: python-Jinja2 >= 2.7.1 Requires: python-appdirs >= 1.4.3 @@ -51,8 +54,6 @@ Requires: python-fs >= 2.4.11 Requires: python-jinja2-fsloader >= 0.2.0 Requires: python-lml >= 0.0.9 Requires: python-ruamel.yaml >= 0.15.98 -Requires(post): alts -Requires(postun): alts Suggests: python-ansible Suggests: python-gitfs2 Suggests: python-pypifs @@ -123,13 +124,11 @@ export SKIP_TESTS %endif %if !%{with test} -%post -%python_install_alternative moban %endif %if !%{with test} -%postun -%python_uninstall_alternative moban +%pre +%python_libalternatives_reset_alternative moban %endif %if !%{with test}