From da5556f2ba465d660ba31974e09d2772ffc68b7594fca210511973c36e5bb5aa Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 23 Jun 2025 01:32:11 +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-easygui?expand=0&rev=9 --- python-easygui.changes | 6 ++++++ python-easygui.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-easygui.changes b/python-easygui.changes index c3cf7f6..6b6d269 100644 --- a/python-easygui.changes +++ b/python-easygui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 23 01:30:16 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Sep 24 18:43:34 UTC 2024 - Guang Yee diff --git a/python-easygui.spec b/python-easygui.spec index 0276b53..8e892e4 100644 --- a/python-easygui.spec +++ b/python-easygui.spec @@ -1,7 +1,7 @@ # # spec file for package python-easygui # -# 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 @@ -25,7 +25,9 @@ Summary: Function-driven python GUI programming License: BSD-3-Clause URL: https://github.com/robertlugg/easygui Source0: https://files.pythonhosted.org/packages/source/e/easygui/easygui-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,14 +42,15 @@ anything about tkinter, frames, widgets, callbacks or lambda. %setup -q -n %{py_name}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.txt -%{python_sitelib}/* +%{python_sitelib}/easygui +%{python_sitelib}/easygui-%{version}.dist-info %changelog