Dirk Mueller
e8f9b17aab
- Update to 2.1.0 * Parametrise a few tests over alphabet (@keis) * Made it handle any base with passing alphabet. (#63) (@tanupoo) * Setup cfg (@keis) * Add support to ppc64le (@gururajrkatti) * Update README.md (@alloyxrp) * New alias for XRP alphabet (@alloyxrp) * Improve invalid character message (@keis) * Autofix for similar letters (@keis) * Add performance benchmarks using pytest-benchmark (@keis) * Performance optimizations (@kolomenkin) - Update BuildRequires from setup.cfg OBS-URL: https://build.opensuse.org/request/show/915092 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-base58?expand=0&rev=7
70 lines
2.0 KiB
RPMSpec
70 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-base58
|
|
#
|
|
# Copyright (c) 2021 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.1.0
|
|
Release: 0
|
|
Summary: Base58 and Base58Check implementation
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/keis/base58
|
|
Source: https://files.pythonhosted.org/packages/source/b/base58/base58-%{version}.tar.gz
|
|
BuildRequires: %{python_module PyHamcrest >= 2.0.2}
|
|
BuildRequires: %{python_module pytest >= 4.6}
|
|
BuildRequires: %{python_module pytest-benchmark}
|
|
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
|