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