12
0

2 Commits

2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 2 07:24:45 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:24:14 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:24:14 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-defusedxml # 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 # 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,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests %bcond_without tests
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-defusedxml Name: python-defusedxml
@@ -27,7 +26,9 @@ License: Python-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/defusedxml URL: https://pypi.python.org/pypi/defusedxml
Source: https://files.pythonhosted.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@@ -52,10 +53,10 @@ pitfalls.
%setup -q -n defusedxml-%{version} %setup -q -n defusedxml-%{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}
%if %{with tests} %if %{with tests}
@@ -68,6 +69,7 @@ usable_tests=$(grep addTests tests.py | sed 's:.*makeSuite(\([a-zA-Z]*\)).*:\1:'
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.txt CHANGES.txt %doc README.txt CHANGES.txt
%{python_sitelib}/* %{python_sitelib}/defusedxml
%{python_sitelib}/defusedxml-%{version}.dist-info
%changelog %changelog