From bbd1cc06e22305c3f4a96c0f45d0281f6637c531b6c40e691891930402437a2c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 24 Jun 2025 02:24:06 +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-robotframework?expand=0&rev=17 --- python-robotframework.changes | 6 ++++++ python-robotframework.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-robotframework.changes b/python-robotframework.changes index 3184d0c..2b679f9 100644 --- a/python-robotframework.changes +++ b/python-robotframework.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 24 02:22:31 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sat Nov 9 15:53:28 UTC 2024 - Dirk Müller diff --git a/python-robotframework.spec b/python-robotframework.spec index 68e56ee..6573246 100644 --- a/python-robotframework.spec +++ b/python-robotframework.spec @@ -1,7 +1,7 @@ # # spec file for package python-robotframework # -# Copyright (c) 2024 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-%{**}} Name: python-robotframework Version: 7.1.1 Release: 0 @@ -24,7 +23,9 @@ Summary: Generic test automation framework for acceptance testing and ATD License: Apache-2.0 URL: https://robotframework.org/ Source: https://files.pythonhosted.org/packages/source/r/robotframework/robotframework-%{version}.zip +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -49,10 +50,10 @@ for file in $(grep -l '#!%{_bindir}/env python' src/robot/*.py); do done %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install for p in robot rebot libdoc; do %python_clone -a %{buildroot}%{_bindir}/$p done @@ -71,6 +72,7 @@ done %python_alternative %{_bindir}/rebot %python_alternative %{_bindir}/robot %python_alternative %{_bindir}/libdoc -%{python_sitelib}/* +%{python_sitelib}/robot +%{python_sitelib}/robotframework-%{version}.dist-info %changelog