From 3c8dab022f146a1590b5976f1cfa9520d8de9d91d6f1dd85b18c72f774cbb605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 16:35:04 +0000 Subject: [PATCH] Accepting request 1277211 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-base58?expand=0&rev=9 --- python-base58.changes | 5 +++++ python-base58.spec | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/python-base58.changes b/python-base58.changes index 1678c82..0c2d511 100644 --- a/python-base58.changes +++ b/python-base58.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 16:15:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Nov 3 10:05:51 UTC 2021 - John Paul Adrian Glaubitz diff --git a/python-base58.spec b/python-base58.spec index c1d4bb3..15a27f3 100644 --- a/python-base58.spec +++ b/python-base58.spec @@ -1,7 +1,7 @@ # # spec file for package python-base58 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,13 +27,15 @@ 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 pip} BuildRequires: %{python_module pytest >= 4.6} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -44,10 +46,10 @@ Base58 and Base58Check implementation compatible with what is used by the bitcoi %setup -q -n base58-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/base58 %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -64,6 +66,7 @@ Base58 and Base58Check implementation compatible with what is used by the bitcoi %doc README.md %license COPYING %python_alternative %{_bindir}/base58 -%{python_sitelib}/* +%{python_sitelib}/base58 +%{python_sitelib}/base58-%{version}*-info %changelog