From 927e7dd7809c4970d18a2ee8dfa00070b735b769cbe4af121c6d7c9552bf0d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 15:08:15 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pprintpp?expand=0&rev=14 --- python-pprintpp.changes | 5 +++++ python-pprintpp.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-pprintpp.changes b/python-pprintpp.changes index de5d619..845bee0 100644 --- a/python-pprintpp.changes +++ b/python-pprintpp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 15:07:59 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 12:01:25 UTC 2025 - Markéta Machová diff --git a/python-pprintpp.spec b/python-pprintpp.spec index 421975a..c54ae2a 100644 --- a/python-pprintpp.spec +++ b/python-pprintpp.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-pprintpp Version: 0.4.0 Release: 0 @@ -35,10 +36,10 @@ 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(post): alts -Requires(postun): alts +Requires: alts BuildArch: noarch %python_subpackages @@ -62,11 +63,8 @@ export LANG=en_US.utf-8 export LANG=en_US.utf-8 %pytest -v test.py -%post -%python_install_alternative pypprint - -%postun -%python_uninstall_alternative pypprint +%pre +%python_libalternatives_reset_alternative pypprint %files %{python_files} %doc CHANGELOG.txt README.rst