15
0
forked from pool/python-base58

Accepting request 1282832 from home:fstegmeier:branches:devel:languages:python

- fix usage of libalternatives

OBS-URL: https://build.opensuse.org/request/show/1282832
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-base58?expand=0&rev=11
This commit is contained in:
2025-06-04 15:23:54 +00:00
committed by Git OBS Bridge
parent 3c8dab022f
commit 06287fc6e1
2 changed files with 11 additions and 7 deletions

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-base58
@@ -32,10 +33,10 @@ BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): alts
Requires(postun): alts
Requires: alts
BuildArch: noarch
%python_subpackages
@@ -56,11 +57,9 @@ Base58 and Base58Check implementation compatible with what is used by the bitcoi
%check
%pytest
%post
%python_install_alternative base58
%postun
%python_uninstall_alternative base58
%pre
# Removing old update-alternatives entries.
%python_libalternatives_reset_alternative base58
%files %{python_files}
%doc README.md