From 82cbc3c8c9832a0f8dbf34c89c9c008b6fea53256986daf690738ecec42765ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:01:39 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pprintpp?expand=0&rev=12 --- python-pprintpp.changes | 5 +++++ python-pprintpp.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pprintpp.changes b/python-pprintpp.changes index c0fe0b9..de5d619 100644 --- a/python-pprintpp.changes +++ b/python-pprintpp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 12:01:25 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Feb 24 11:29:28 UTC 2023 - Daniel Garcia diff --git a/python-pprintpp.spec b/python-pprintpp.spec index 0466f5a..421975a 100644 --- a/python-pprintpp.spec +++ b/python-pprintpp.spec @@ -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 @@ -31,12 +31,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: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -48,11 +50,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}