From 4f370a07a5fdf84ab01225423e85d27175efb927a341fed50625664f93f3bb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 08:20:13 +0000 Subject: [PATCH] Accepting request 1283651 from home:fstegmeier:branches:devel:languages:python - fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1283651 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=13 --- python-Pyro5.changes | 5 +++++ python-Pyro5.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-Pyro5.changes b/python-Pyro5.changes index 1d57e18..4a357dd 100644 --- a/python-Pyro5.changes +++ b/python-Pyro5.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 15:35:12 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + ------------------------------------------------------------------- Mon May 12 14:36:01 UTC 2025 - Markéta Machová diff --git a/python-Pyro5.spec b/python-Pyro5.spec index ee161c4..a7c61ee 100644 --- a/python-Pyro5.spec +++ b/python-Pyro5.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-Pyro5 Version: 5.15 @@ -27,11 +28,11 @@ Source: https://files.pythonhosted.org/packages/source/P/Pyro5/Pyro5-%{v BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-serpent >= 1.41 -Requires(post): alts -Requires(postun): alts Recommends: ca-certificates Recommends: python-cloudpickle >= 0.4.0 Recommends: python-dill >= 0.2.6 @@ -78,11 +79,9 @@ runs on many different platforms and Python versions. %check %pytest -m "not network" -%post -%{python_install_alternative pyro5-check-config pyro5-echoserver pyro5-httpgateway pyro5-ns pyro5-nsc} - -%postun -%python_uninstall_alternative pyro5-check-config +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative pyro5-check-config %files %{python_files} %license LICENSE