From 5efc1ab1599f11fafeb8f01ff021bcd62d56a94ec9155cf100f8a0318c4e29ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 Jun 2025 12:11:07 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-actdiag?expand=0&rev=23 --- python-actdiag.changes | 5 +++++ python-actdiag.spec | 14 ++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-actdiag.changes b/python-actdiag.changes index 9160b76..858457f 100644 --- a/python-actdiag.changes +++ b/python-actdiag.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 12:10:48 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Apr 8 10:32:41 UTC 2024 - Dirk Müller diff --git a/python-actdiag.spec b/python-actdiag.spec index b4c37bd..3c71f6c 100644 --- a/python-actdiag.spec +++ b/python-actdiag.spec @@ -1,7 +1,7 @@ # # spec file for package python-actdiag # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-actdiag Version: 3.0.0 @@ -33,11 +34,11 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-blockdiag >= 3 -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -60,11 +61,8 @@ sed -i 's/testcase_generator/_testcase_generator/' src/actdiag/tests/test_genera %check %pytest src/actdiag/tests -%post -%python_install_alternative actdiag - -%postun -%python_uninstall_alternative actdiag +%pre +%python_libalternatives_reset_alternative actdiag %files %{python_files} %license LICENSE