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
This commit is contained in:
Tomáš Chvátal 2020-05-28 07:32:18 +00:00 committed by Git OBS Bridge
parent c810d68b1a
commit 1658b46ec1
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