Accepting request 1146209 from devel:languages:python

- Clean up the SPEC file.

OBS-URL: https://build.opensuse.org/request/show/1146209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xmltodict?expand=0&rev=9
This commit is contained in:
Ana Guerrero 2024-02-15 19:58:36 +00:00 committed by Git OBS Bridge
commit 331c6949ae
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