1658b46ec1
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
69 lines
1.9 KiB
RPMSpec
69 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-base58
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define skip_python2 1
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-base58
|
|
Version: 2.0.0
|
|
Release: 0
|
|
Summary: Base58 and Base58Check implementation
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/keis/base58
|
|
Source: https://github.com/keis/base58/archive/v%{version}.tar.gz#/base58-%{version}.tar.gz
|
|
BuildRequires: %{python_module PyHamcrest}
|
|
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
|
|
|
|
%description
|
|
Base58 and Base58Check implementation compatible with what is used by the bitcoin network.
|
|
|
|
%prep
|
|
%setup -q -n base58-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%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
|
|
%python_alternative %{_bindir}/base58
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|