From 7886548a67642243e0029fa07c6cc918bef3a4104d38f7b98b0f49c2bedbf74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 11 Jul 2025 10:43:21 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=135 --- python-keyring.changes | 5 +++++ python-keyring.spec | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/python-keyring.changes b/python-keyring.changes index 9031d5a..ce49980 100644 --- a/python-keyring.changes +++ b/python-keyring.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 11 10:42:52 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue May 14 08:11:26 UTC 2024 - Dirk Müller diff --git a/python-keyring.spec b/python-keyring.spec index 9f2cb71..ac909c5 100644 --- a/python-keyring.spec +++ b/python-keyring.spec @@ -1,7 +1,7 @@ # # spec file for package python-keyring # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ %define psuffix %{nil} %bcond_with test %endif +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-keyring%{psuffix} Version: 25.2.1 @@ -37,17 +38,16 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 56} BuildRequires: %{python_module setuptools_scm >= 3.4.1} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-SecretStorage >= 3.2 Requires: python-jaraco.classes Requires: python-jaraco.context Requires: python-jaraco.functools Requires: python-jeepney >= 0.4.2 -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch - %if 0%{python_version_nodots} < 310 Requires: python-importlib-resources %endif @@ -88,11 +88,8 @@ sed -i '/^#!/d' keyring/cli.py %endif %if !%{with test} -%post -%python_install_alternative keyring - -%postun -%python_uninstall_alternative keyring +%pre +%python_libalternatives_reset_alternative keyring %files %{python_files} %doc README.rst NEWS.rst