14
0

Accepting request 1144436 from devel:languages:python

- Add missing BuildRequires on setuptools.
- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1144436
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-simplegeneric?expand=0&rev=7
This commit is contained in:
2024-02-06 15:34:53 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 6 04:18:54 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <mcepl@suse.com>

View File

@@ -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