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
This commit is contained in:
2025-06-09 08:20:13 +00:00
committed by Git OBS Bridge
parent d5484f555e
commit 4f370a07a5
2 changed files with 11 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 15:35:12 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Mon May 12 14:36:01 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -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