15
0
forked from pool/python-WSME

- 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
This commit is contained in:
2024-04-10 01:27:13 +00:00
committed by Git OBS Bridge
parent 264760c5ab
commit 887eb94490
2 changed files with 18 additions and 4 deletions

View File

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