Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
fe1d7bbc28 | |||
1a6c186c7e |
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user