From f6ee271f1f81b916404fae06285f7bef8762320d275f8d1897f8e8c54e9bf612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 12:14:26 +0000 Subject: [PATCH] Accepting request 1280226 from devel:languages:python revert, packaging broken OBS-URL: https://build.opensuse.org/request/show/1280226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dist?expand=0&rev=9 --- python-dist.changes | 5 ----- python-dist.spec | 12 +++++------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/python-dist.changes b/python-dist.changes index 8c2a1f3..8fc3864 100644 --- a/python-dist.changes +++ b/python-dist.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Mon May 26 11:58:58 UTC 2025 - Markéta Machová - -- Convert to pip-based build - ------------------------------------------------------------------- Thu Apr 13 10:37:20 UTC 2023 - pgajdos@suse.com diff --git a/python-dist.spec b/python-dist.spec index 98d24de..93804b9 100644 --- a/python-dist.spec +++ b/python-dist.spec @@ -1,7 +1,7 @@ # # spec file for package python-dist # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2023 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 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dist Version: 1.0.3 Release: 0 @@ -27,9 +28,7 @@ Source: https://github.com/duboviy/dist/archive/%{version}.tar.gz # https://github.com/duboviy/dist/issues/8 Patch0: python-dist-no-six.patch BuildRequires: %{python_module devel} -BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -48,10 +47,10 @@ that is almost 3 times faster than similar fast pure python implementation. %build export CFLAGS="%{optflags}" -%pyproject_wheel +%python_build %install -%pyproject_install +%python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -60,7 +59,6 @@ export CFLAGS="%{optflags}" %files %{python_files} %license LICENSE.txt %doc README.md -%{python_sitearch}/dist -%{python_sitearch}/dist-%{version}*-info +%{python_sitearch}/* %changelog