From 35538dd5fb366dcb9fad5f1bda34e47813f1d86f61830cc9f733f32d2f33a003 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 03:51:43 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junit-xml?expand=0&rev=10 --- python-junit-xml.changes | 6 ++++++ python-junit-xml.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-junit-xml.changes b/python-junit-xml.changes index 6abaab4..914e2a7 100644 --- a/python-junit-xml.changes +++ b/python-junit-xml.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 2 03:51:29 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Jun 13 11:05:05 UTC 2023 - ecsos diff --git a/python-junit-xml.spec b/python-junit-xml.spec index 22069bd..0be218f 100644 --- a/python-junit-xml.spec +++ b/python-junit-xml.spec @@ -1,7 +1,7 @@ # # spec file for package python-junit-xml # -# Copyright (c) 2020 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 @@ -22,12 +22,13 @@ Version: 1.9 Release: 0 Summary: Module that creates JUnit XML test result documents License: MIT -Group: Development/Languages/Python URL: https://github.com/kyrus/python-junit-xml # 1.9 source not published on pypi #Source: https://files.pythonhosted.org/packages/source/j/junit-xml/junit-xml-%{version}.tar.gz Source: junit-xml-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest} @@ -48,10 +49,10 @@ that can be read by tools such as Jenkins. sed -i '1{/^#!/d}' junit_xml/__init__.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,6 +62,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/junit_xml +%{python_sitelib}/junit_xml-%{version}.dist-info %changelog