Sync from SUSE:SLFO:Main python-xmltodict revision c9c39a51b1e3932efd0c42b7d2f105b0

This commit is contained in:
Adrian Schröter 2024-10-03 17:57:34 +02:00
parent c7221b92b0
commit 48dc99b844
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 12 15:02:30 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file.
-------------------------------------------------------------------
Tue May 9 13:41:52 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-xmltodict
#
# 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
@ -25,13 +25,15 @@ License: MIT
URL: https://github.com/martinblech/xmltodict
Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
Patch0: skip-tests-expat-245.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-xml
BuildArch: noarch
BuildRequires: %{python_module pytest}
%python_subpackages
%description
@ -45,11 +47,11 @@ sed -i '1{\@^#!%{_bindir}/env python@d}' xmltodict.py
%build
export LANG=en_US.UTF-8
%python_build
%pyproject_wheel
%install
export LANG=en_US.UTF-8
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -61,6 +63,6 @@ export LANG=en_US.UTF-8
%doc README.md
%{python_sitelib}/xmltodict.py*
%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py*
%{python_sitelib}/xmltodict-%{version}-py*.egg-info
%{python_sitelib}/xmltodict-%{version}*-info
%changelog