From 0164bcfaf0c08b7f4f5f870ea038df7118a6b5581dfc19c116f4e5452160c276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 17 Jun 2025 08:09:36 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blurb?expand=0&rev=14 --- python-blurb.changes | 5 +++++ python-blurb.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-blurb.changes b/python-blurb.changes index 6f53dda..9c3cc38 100644 --- a/python-blurb.changes +++ b/python-blurb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 17 08:09:17 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jan 27 13:55:01 UTC 2025 - Nico Krapp diff --git a/python-blurb.spec b/python-blurb.spec index 2d3e559..3999945 100644 --- a/python-blurb.spec +++ b/python-blurb.spec @@ -17,6 +17,7 @@ %define skip_python2 1 +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-blurb Version: 2.0.0 @@ -33,11 +34,11 @@ BuildRequires: %{python_module pyfakefs} BuildRequires: %{python_module pytest} BuildRequires: %{python_module time-machine} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -60,11 +61,8 @@ chmod -x src/blurb/blurb.py %check %pytest -%post -%python_install_alternative blurb - -%postun -%python_uninstall_alternative blurb +%pre +%python_libalternatives_reset_alternative blurb %files %{python_files} %doc README.md