From 72ca23e64463acf54638f399162b751bf37775a5578a46df4ec34911822dede3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 24 Jan 2020 10:25:00 +0000 Subject: [PATCH] Accepting request 766793 from home:d0p1 I want to maintain python-base58 in Factory and would like to use devel:languages:python as the devel/feeder project. OBS-URL: https://build.opensuse.org/request/show/766793 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-base58?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + base58-2.0.0.tar.gz | 3 +++ python-base58.changes | 15 +++++++++++ python-base58.spec | 59 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 base58-2.0.0.tar.gz create mode 100644 python-base58.changes create mode 100644 python-base58.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/base58-2.0.0.tar.gz b/base58-2.0.0.tar.gz new file mode 100644 index 0000000..7a6abee --- /dev/null +++ b/base58-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2f6be0f83a0e1ee3d9c25124464c93c87d20af79319288d894a66535313e7d2 +size 6049 diff --git a/python-base58.changes b/python-base58.changes new file mode 100644 index 0000000..0380463 --- /dev/null +++ b/python-base58.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri Jan 24 09:52:54 UTC 2020 - d0p1 + +- update to 2.0.0 (drop python 2 support) + +------------------------------------------------------------------- +Wed Nov 20 14:54:57 UTC 2019 - d0p1 + +- Fix test. +- Using source from github (because of missing files like COPYING in pypi package). + +------------------------------------------------------------------- +Wed Nov 20 11:37:42 UTC 2019 - d0p1 + +- Initial package. diff --git a/python-base58.spec b/python-base58.spec new file mode 100644 index 0000000..0890451 --- /dev/null +++ b/python-base58.spec @@ -0,0 +1,59 @@ +# +# 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 +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_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license COPYING +%python3_only %{_bindir}/base58 +%{python_sitelib}/* + +%changelog