forked from pool/python-simplegeneric
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:
@@ -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>
|
Tue Dec 4 12:54:20 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-simplegeneric
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,16 +16,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-simplegeneric
|
Name: python-simplegeneric
|
||||||
Version: 0.8.1
|
Version: 0.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc)
|
Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc)
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: http://cheeseshop.python.org/pypi/simplegeneric
|
URL: http://cheeseshop.python.org/pypi/simplegeneric
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip
|
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: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
@@ -57,14 +57,16 @@ less than 100 lines.
|
|||||||
%setup -q -n simplegeneric-%{version}
|
%setup -q -n simplegeneric-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.txt
|
%doc README.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/simplegeneric.py
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/simplegeneric.*.py*
|
||||||
|
%{python_sitelib}/simplegeneric-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user