From 2f301c5bae89ff524d0821ad45688bed2bc3338fba3c388c111e9fe9e813b012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:39:36 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-petact?expand=0&rev=9 --- python-petact.changes | 5 +++++ python-petact.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-petact.changes b/python-petact.changes index 340ffec..733715b 100644 --- a/python-petact.changes +++ b/python-petact.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:39:14 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 11:10:34 UTC 2025 - Markéta Machová diff --git a/python-petact.spec b/python-petact.spec index cb76dfb..0a391db 100644 --- a/python-petact.spec +++ b/python-petact.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-petact Version: 0.1.2 Release: 0 @@ -28,11 +29,11 @@ Source99: https://raw.githubusercontent.com/MatthewScholefield/petact/mast BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-setuptools -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -58,11 +59,8 @@ cp %{SOURCE99} . %check # no upstream tests -%post -%python_install_alternative petact - -%postun -%python_uninstall_alternative petact +%pre +%python_libalternatives_reset_alternative petact %files %{python_files} %doc README.md