From 91ef8bb87d97d47c650dea6e97313881ef8a244a68fa0f81cf164f958f6e66be Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Apr 2025 14:45:30 +0000 Subject: [PATCH 1/2] Accepting request 1269309 from home:hsk17:branches:devel:languages:python drop python2 remnants, add sle15_python_module_pythons OBS-URL: https://build.opensuse.org/request/show/1269309 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pmw?expand=0&rev=22 --- python-pmw.changes | 5 +++++ python-pmw.spec | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python-pmw.changes b/python-pmw.changes index 2cdc75f..7194bd8 100644 --- a/python-pmw.changes +++ b/python-pmw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 14 13:36:18 UTC 2025 - Friedrich Haubensak + +- drop python2 remnants, add sle15_python_module_pythons + ------------------------------------------------------------------- Tue Jan 9 21:26:14 UTC 2024 - Dirk Müller diff --git a/python-pmw.spec b/python-pmw.spec index 6011b0d..9a0fe18 100644 --- a/python-pmw.spec +++ b/python-pmw.spec @@ -16,8 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%{?sle15_python_module_pythons} Name: python-pmw Version: 2.1.1 Release: 0 @@ -31,10 +30,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-tk BuildArch: noarch -%ifpython2 -Obsoletes: %{oldpython}-pmw < %{version} -Provides: %{oldpython}-pmw = %{version} -%endif %python_subpackages %description From 908ecd0db9d42cff40ea629458f6aa485b295220e6e0b27e37caf2a4d2c1a3ac Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Apr 2025 14:49:05 +0000 Subject: [PATCH 2/2] - Clean up the SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pmw?expand=0&rev=23 --- python-pmw.changes | 5 +++++ python-pmw.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-pmw.changes b/python-pmw.changes index 7194bd8..334309c 100644 --- a/python-pmw.changes +++ b/python-pmw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 14 14:49:00 UTC 2025 - Matej Cepl + +- Clean up the SPEC file. + ------------------------------------------------------------------- Mon Apr 14 13:36:18 UTC 2025 - Friedrich Haubensak diff --git a/python-pmw.spec b/python-pmw.spec index 9a0fe18..08ef600 100644 --- a/python-pmw.spec +++ b/python-pmw.spec @@ -1,7 +1,7 @@ # # spec file for package python-pmw # -# 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 @@ License: MIT Group: Development/Languages/Python URL: https://pmw.sourceforge.net/ Source: https://files.pythonhosted.org/packages/source/P/Pmw/Pmw-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-tk @@ -44,13 +46,14 @@ sed -i '1d' Pmw/Pmw_1_3_3/{demos/All,bin/bundlepmw,tests/All,tests/ManualTests}. sed -i '1d' Pmw/Pmw_2_1_1/{demos/All,bin/bundlepmw,tests/All,tests/ManualTests}.py # Fix non-executable scripts %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/[pP]mw +%{python_sitelib}/pmw-%{version}*-info %changelog