From a271f33841a5b461e362dc4e3598a902c37f75db84a30875d08c551228f391ad Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 6 Feb 2024 04:19:43 +0000 Subject: [PATCH] - Add missing BuildRequires on setuptools. - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplegeneric?expand=0&rev=10 --- python-simplegeneric.changes | 7 +++++++ python-simplegeneric.spec | 16 +++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/python-simplegeneric.changes b/python-simplegeneric.changes index b7a5b12..a34e202 100644 --- a/python-simplegeneric.changes +++ b/python-simplegeneric.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 6 04:18:54 UTC 2024 - Steve Kowalik + +- Add missing BuildRequires on setuptools. +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Dec 4 12:54:20 UTC 2018 - Matej Cepl diff --git a/python-simplegeneric.spec b/python-simplegeneric.spec index a9d25ce..e7ca32f 100644 --- a/python-simplegeneric.spec +++ b/python-simplegeneric.spec @@ -1,7 +1,7 @@ # # spec file for package python-simplegeneric # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-simplegeneric Version: 0.8.1 Release: 0 Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc) License: ZPL-2.1 -Group: Development/Languages/Python URL: http://cheeseshop.python.org/pypi/simplegeneric Source: https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip -BuildRequires: %{python_module base} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -57,14 +57,16 @@ less than 100 lines. %setup -q -n simplegeneric-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.txt -%{python_sitelib}/* +%{python_sitelib}/simplegeneric.py +%pycache_only %{python_sitelib}/__pycache__/simplegeneric.*.py* +%{python_sitelib}/simplegeneric-%{version}.dist-info %changelog