Compare commits

4 Commits

2 changed files with 23 additions and 11 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 4 15:14:58 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Tue May 13 16:15:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 3 10:05:51 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Wed Nov 3 10:05:51 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-base58 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
# #
%bcond_without libalternatives
%define skip_python2 1 %define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-base58 Name: python-base58
@@ -27,13 +28,15 @@ Group: Development/Languages/Python
URL: https://github.com/keis/base58 URL: https://github.com/keis/base58
Source: https://files.pythonhosted.org/packages/source/b/base58/base58-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/b/base58/base58-%{version}.tar.gz
BuildRequires: %{python_module PyHamcrest >= 2.0.2} BuildRequires: %{python_module PyHamcrest >= 2.0.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 4.6} BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives Requires: alts
Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -44,26 +47,25 @@ Base58 and Base58Check implementation compatible with what is used by the bitcoi
%setup -q -n base58-%{version} %setup -q -n base58-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/base58 %python_clone -a %{buildroot}%{_bindir}/base58
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest
%post %pre
%python_install_alternative base58 # Removing old update-alternatives entries.
%python_libalternatives_reset_alternative base58
%postun
%python_uninstall_alternative base58
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license COPYING %license COPYING
%python_alternative %{_bindir}/base58 %python_alternative %{_bindir}/base58
%{python_sitelib}/* %{python_sitelib}/base58
%{python_sitelib}/base58-%{version}*-info
%changelog %changelog