From 887eb9449076c90d8fc1cbca8d1a079a9cf9707b7a5be7fbb87725fb87472692 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 10 Apr 2024 01:27:13 +0000 Subject: [PATCH] - Add missing {Build,}Requires on importlib-metadata. - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSME?expand=0&rev=46 --- python-WSME.changes | 7 +++++++ python-WSME.spec | 15 +++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/python-WSME.changes b/python-WSME.changes index 7369264..cc6bb02 100644 --- a/python-WSME.changes +++ b/python-WSME.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 10 01:26:26 UTC 2024 - Steve Kowalik + +- Add missing {Build,}Requires on importlib-metadata. +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Dec 1 16:48:47 UTC 2023 - Dirk Müller diff --git a/python-WSME.spec b/python-WSME.spec index acef0db..19c7d38 100644 --- a/python-WSME.spec +++ b/python-WSME.spec @@ -1,7 +1,7 @@ # # spec file for package python-WSME # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -27,16 +27,20 @@ Source: https://files.pythonhosted.org/packages/source/W/WSME/WSME-%{ver # Test requirements: BuildRequires: %{python_module WebOb >= 1.2.3} BuildRequires: %{python_module WebTest} +BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module netaddr >= 0.7.12} BuildRequires: %{python_module pbr} BuildRequires: %{python_module pecan} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module simplegeneric} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-WebOb >= 1.2.3 +Requires: python-importlib-metadata Requires: python-netaddr >= 0.7.12 Requires: python-pytz Requires: python-simplegeneric @@ -53,10 +57,10 @@ with focus on extensibility, framework-independence and improved type handling. %setup -q -n WSME-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -65,6 +69,9 @@ with focus on extensibility, framework-independence and improved type handling. %files %{python_files} %license LICENSE %doc README.rst examples -%{python_sitelib}/* +%{python_sitelib}/wsme +%{python_sitelib}/wsmeext +%{python_sitelib}/WSME-%{version}.dist-info +%{python_sitelib}/WSME-%{version}-py*-nspkg.pth %changelog