Accepting request 809806 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/809806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-base58?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2020-06-09 22:42:40 +00:00 committed by Git OBS Bridge
commit f107ae7b95
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:25 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Jan 24 09:52:54 UTC 2020 - d0p1 <contact@d0p1.eu>

View File

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