From 1658b46ec1da9d6c8602196d3657c982ee2101135d92d2ba13aa49f721aca98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:32:18 +0000 Subject: [PATCH] Accepting request 809564 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809564 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-base58?expand=0&rev=3 --- python-base58.changes | 5 +++++ python-base58.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-base58.changes b/python-base58.changes index 0380463..4e22cd8 100644 --- a/python-base58.changes +++ b/python-base58.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:25 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Fri Jan 24 09:52:54 UTC 2020 - d0p1 diff --git a/python-base58.spec b/python-base58.spec index 0890451..e9825b1 100644 --- a/python-base58.spec +++ b/python-base58.spec @@ -31,6 +31,8 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -45,15 +47,22 @@ Base58 and Base58Check implementation compatible with what is used by the bitcoi %install %python_install +%python_clone -a %{buildroot}%{_bindir}/base58 %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative base58 + +%postun +%python_uninstall_alternative base58 + %files %{python_files} %doc README.md %license COPYING -%python3_only %{_bindir}/base58 +%python_alternative %{_bindir}/base58 %{python_sitelib}/* %changelog