From c93a10fd707d60ec85d79d9a30ca40feada17498f00052861398952cf54fb646 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 27 May 2025 13:20:38 +0000 Subject: [PATCH] Accepting request 1280269 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280269 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distutils-extra?expand=0&rev=54 --- python-distutils-extra.changes | 5 +++++ python-distutils-extra.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-distutils-extra.changes b/python-distutils-extra.changes index 4800e9a..f1ece0e 100644 --- a/python-distutils-extra.changes +++ b/python-distutils-extra.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 12:17:29 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Nov 23 14:03:17 UTC 2023 - Dominique Leuenberger diff --git a/python-distutils-extra.spec b/python-distutils-extra.spec index b548687..5f6bf63 100644 --- a/python-distutils-extra.spec +++ b/python-distutils-extra.spec @@ -1,7 +1,7 @@ # # spec file for package python-distutils-extra # -# 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-distutils-extra Version: 3.0 Release: 0 @@ -25,7 +24,9 @@ License: GPL-2.0-only Group: Development/Libraries/Python URL: https://salsa.debian.org/python-team/packages/python-distutils-extra Source: %{url}/-/archive/%{version}/python-distutils-extra-%{version}.tar.bz2 +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools @@ -44,15 +45,16 @@ This includes the following: %setup -q %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc debian/changelog doc/* %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/DistUtilsExtra +%{python_sitelib}/python[-_]distutils[-_]extra-%{version}*-info %changelog