From dbd9084471c7aedb15cd570fd3e6cc2d3e344f41885b222d4358128506a38694 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:26:22 +0000 Subject: [PATCH 1/2] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythondialog?expand=0&rev=5 --- python-pythondialog.changes | 6 ++++++ python-pythondialog.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pythondialog.changes b/python-pythondialog.changes index 5b51959..aa3d2e5 100644 --- a/python-pythondialog.changes +++ b/python-pythondialog.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:55:56 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Thu Oct 6 22:56:24 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pythondialog.spec b/python-pythondialog.spec index 0067e29..41dd35f 100644 --- a/python-pythondialog.spec +++ b/python-pythondialog.spec @@ -1,7 +1,7 @@ # # spec file for package python-pythondialog # -# Copyright (c) 2022 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 @@ -17,7 +17,6 @@ %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pythondialog Version: 3.5.3 Release: 0 @@ -26,7 +25,9 @@ License: LGPL-2.1-only Group: Development/Languages/Python URL: http://pythondialog.sourceforge.net/ Source: https://files.pythonhosted.org/packages/source/p/pythondialog/pythondialog-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: dialog @@ -41,14 +42,15 @@ Easy writing of graphical interfaces for terminal-based applications %setup -q -n pythondialog-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/pythondialog +%{python_sitelib}/pythondialog-%{version}.dist-info %license COPYING %doc README.rst ChangeLog AUTHORS From c68d15d70144f902f8f811de41006d1d44dd509ef92c24fe52a757d03b6f9499 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 30 Jun 2025 05:35:01 +0000 Subject: [PATCH 2/2] Correct files list for reals OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythondialog?expand=0&rev=6 --- python-pythondialog.changes | 2 +- python-pythondialog.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python-pythondialog.changes b/python-pythondialog.changes index aa3d2e5..0fb8b79 100644 --- a/python-pythondialog.changes +++ b/python-pythondialog.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Wed Jun 11 05:55:56 UTC 2025 - Steve Kowalik +Mon Jun 30 05:34:29 UTC 2025 - Steve Kowalik - Switch to pyproject macros. - No more greedy globs in %files. diff --git a/python-pythondialog.spec b/python-pythondialog.spec index 41dd35f..cfd22e8 100644 --- a/python-pythondialog.spec +++ b/python-pythondialog.spec @@ -49,7 +49,8 @@ Easy writing of graphical interfaces for terminal-based applications %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/pythondialog +%{python_sitelib}/dialog.py +%pycache_only %{python_sitelib}/__pycache__/dialog.*.pyc %{python_sitelib}/pythondialog-%{version}.dist-info %license COPYING %doc README.rst ChangeLog AUTHORS