From 93222a0957f1bd1b54f4e0cea7d365ee3a5493b739edaf588e6f29e3db47417d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:54:46 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sge-pygame?expand=0&rev=14 --- python-sge-pygame.changes | 5 +++++ python-sge-pygame.spec | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-sge-pygame.changes b/python-sge-pygame.changes index 6b75826..59ae2be 100644 --- a/python-sge-pygame.changes +++ b/python-sge-pygame.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 10:52:14 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue May 11 12:24:03 UTC 2021 - Markéta Machová diff --git a/python-sge-pygame.spec b/python-sge-pygame.spec index e55e340..0bd8c67 100644 --- a/python-sge-pygame.spec +++ b/python-sge-pygame.spec @@ -1,7 +1,7 @@ # # spec file for package python-sge-pygame # -# Copyright (c) 2021 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python36 1 Name: python-sge-pygame Version: 1.7.1 Release: 0 @@ -26,12 +24,14 @@ License: LGPL-3.0-or-later Group: Development/Languages/Python URL: https://python-sge.github.io Source: https://files.pythonhosted.org/packages/source/s/sge/sge-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pygame >= 1.9.1 Requires: python-six >= 1.4.0 Requires: python-uniseg -BuildRequires: fdupes BuildArch: noarch %python_subpackages @@ -46,15 +46,16 @@ This implementation of the SGE uses Pygame as a backend. %setup -q -n sge-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%doc README README.pygame WHATSNEW WHATSNEW.pygame +%doc README README.pygame WHATSNEW WHATSNEW.pygame %license sge/COPYING sge/COPYING.LESSER -%{python_sitelib}/* +%{python_sitelib}/sge +%{python_sitelib}/sge-%{version}*-info %changelog