Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f102fd3a97 | |||
| 927e7dd780 | |||
| 85daf2c786 | |||
| 82cbc3c8c9 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 15:07:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 12:01:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 24 11:29:28 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pprintpp
|
||||
#
|
||||
# Copyright (c) 2023 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
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-pprintpp
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
@@ -31,12 +32,14 @@ Patch1: python-pprintpp-remove-nose.patch
|
||||
# PATCH-FIX-OPENSUSE python-311.patch small fix to support python 3.11
|
||||
Patch2: python-311.patch
|
||||
BuildRequires: %{python_module parameterized}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -48,11 +51,11 @@ A drop-in replacement for pprint that is arguably prettier.
|
||||
|
||||
%build
|
||||
export LANG=en_US.utf-8
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
export LANG=en_US.utf-8
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pypprint
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -60,11 +63,8 @@ export LANG=en_US.utf-8
|
||||
export LANG=en_US.utf-8
|
||||
%pytest -v test.py
|
||||
|
||||
%post
|
||||
%python_install_alternative pypprint
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pypprint
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative pypprint
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.txt README.rst
|
||||
|
||||
Reference in New Issue
Block a user