2 Commits

2 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 11 10:42:52 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 14 08:11:26 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

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