From efcd791c090357a64b669504ca9e4f58269b3b583061e9cc44759a0a08d60b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:22:27 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ndg-httpsclient?expand=0&rev=16 --- python-ndg-httpsclient.changes | 5 +++++ python-ndg-httpsclient.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-ndg-httpsclient.changes b/python-ndg-httpsclient.changes index 864480d..5f9cc61 100644 --- a/python-ndg-httpsclient.changes +++ b/python-ndg-httpsclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:21:34 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 2 14:36:11 UTC 2025 - Markéta Machová diff --git a/python-ndg-httpsclient.spec b/python-ndg-httpsclient.spec index 601f36e..1b4a833 100644 --- a/python-ndg-httpsclient.spec +++ b/python-ndg-httpsclient.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-ndg-httpsclient Version: 0.5.1 Release: 0 @@ -27,12 +28,12 @@ Source: https://files.pythonhosted.org/packages/source/n/ndg_httpsclient BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-pyOpenSSL Requires: python-pyasn1 >= 0.1.1 -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -55,11 +56,8 @@ SSL peer. # tests require internet connection -%post -%python_install_alternative ndg_httpclient - -%postun -%python_uninstall_alternative ndg_httpclient +%pre +%python_libalternatives_reset_alternative ndg_httpclient %files %{python_files} %doc README.md