diff --git a/python-xmltodict.changes b/python-xmltodict.changes index cf10968..542656b 100644 --- a/python-xmltodict.changes +++ b/python-xmltodict.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 12 15:02:30 UTC 2024 - Matej Cepl + +- Clean up the SPEC file. + ------------------------------------------------------------------- Tue May 9 13:41:52 UTC 2023 - Johannes Kastl diff --git a/python-xmltodict.spec b/python-xmltodict.spec index 69d9a8e..194e27c 100644 --- a/python-xmltodict.spec +++ b/python-xmltodict.spec @@ -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