From c0266c88a92f5640de9d5fc42e31b58a570d1f3a32c916639c5275d651f165f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 Jun 2025 13:43:45 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ara?expand=0&rev=39 --- python-ara.changes | 5 +++++ python-ara.spec | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/python-ara.changes b/python-ara.changes index 5e95084..6e675d2 100644 --- a/python-ara.changes +++ b/python-ara.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 13:43:24 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Fri Jun 13 05:35:06 UTC 2025 - Steve Kowalik diff --git a/python-ara.spec b/python-ara.spec index 12e3dc6..ec036ce 100644 --- a/python-ara.spec +++ b/python-ara.spec @@ -27,6 +27,7 @@ %define skip_python2 1 # plugin for Ansible package %define pythons python3 +%bcond_without libalternatives Name: python-ara Version: 1.7.2 Release: 0 @@ -39,13 +40,13 @@ BuildRequires: %{python_module pbr} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-cliff Requires: python-pbr Requires: python-requests >= 2.14.2 -Requires(post): update-alternatives -Requires(postun): update-alternatives Recommends: python-Django >= 3.2 Recommends: python-django-cors-headers Recommends: python-django-filter @@ -94,13 +95,9 @@ ara-manage test -v 2 ara %endif %if !%{with test} -%post -%python_install_alternative ara -%python_install_alternative ara-manage - -%postun -%python_uninstall_alternative ara -%python_uninstall_alternative ara-manage +%pre +%python_libalternatives_reset_alternative ara +%python_libalternatives_reset_alternative ara-manage %files %{python_files} %doc README.md