From 69a2db596d961a352324ee3abc6026d805c1aa4a1fd90d39c6b520bcc84c1f82 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 07:25:14 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-defusedxml?expand=0&rev=22 --- python-defusedxml.changes | 6 ++++++ python-defusedxml.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-defusedxml.changes b/python-defusedxml.changes index 58d5486..561fceb 100644 --- a/python-defusedxml.changes +++ b/python-defusedxml.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 2 07:24:45 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Apr 21 12:24:14 UTC 2023 - Dirk Müller diff --git a/python-defusedxml.spec b/python-defusedxml.spec index 0cafb40..9de9500 100644 --- a/python-defusedxml.spec +++ b/python-defusedxml.spec @@ -1,7 +1,7 @@ # # spec file for package python-defusedxml # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without tests %{?sle15_python_module_pythons} Name: python-defusedxml @@ -27,7 +26,9 @@ License: Python-2.0 Group: Development/Languages/Python URL: https://pypi.python.org/pypi/defusedxml Source: https://files.pythonhosted.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} # SECTION test requirements BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest} @@ -52,10 +53,10 @@ pitfalls. %setup -q -n defusedxml-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with tests} @@ -68,6 +69,7 @@ usable_tests=$(grep addTests tests.py | sed 's:.*makeSuite(\([a-zA-Z]*\)).*:\1:' %files %{python_files} %license LICENSE %doc README.txt CHANGES.txt -%{python_sitelib}/* +%{python_sitelib}/defusedxml +%{python_sitelib}/defusedxml-%{version}.dist-info %changelog