From 1d258586b5cfdfcd91c00a75bf5a2d90250de0ef30a5548a001fd676e8187334 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Apr 2025 14:45:30 +0000 Subject: [PATCH 1/2] drop python2 remnants, add sle15_python_module_pythons OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pmw?expand=0&rev=22 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + Pmw-2.1.1.tar.gz | 3 +++ python-pmw.changes | 67 ++++++++++++++++++++++++++++++++++++++++++++++ python-pmw.spec | 56 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 150 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Pmw-2.1.1.tar.gz create mode 100644 python-pmw.changes create mode 100644 python-pmw.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Pmw-2.1.1.tar.gz b/Pmw-2.1.1.tar.gz new file mode 100644 index 0000000..cdd12e2 --- /dev/null +++ b/Pmw-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:948412457cfccf0c775dd08e0913fb00f90896a33c79737d571c7312aeaf55c6 +size 1077119 diff --git a/python-pmw.changes b/python-pmw.changes new file mode 100644 index 0000000..7194bd8 --- /dev/null +++ b/python-pmw.changes @@ -0,0 +1,67 @@ +------------------------------------------------------------------- +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 + +- update to 2.1.1: + * merge some bugfixes and mods for Python 3 support +- drop py36.patch (upstream) + +------------------------------------------------------------------- +Fri Dec 7 11:47:08 UTC 2018 - Tomáš Chvátal + +- Make sure to run %fdupes correctly + +------------------------------------------------------------------- +Wed Aug 16 21:32:37 UTC 2017 - dhall@wustl.edu + +- obsolete python-pmw + +------------------------------------------------------------------- +Sun May 7 20:06:55 UTC 2017 - dhall@wustl.edu + +- Add py36.patch: Fix for python3.6 + * https://sourceforge.net/p/pmw/patches/7/ + +------------------------------------------------------------------- +Sat May 6 23:47:52 UTC 2017 - dhall@wustl.edu + +- update to Pmw 2.0.1 +- add python3 compatibility + +------------------------------------------------------------------- +Fri Mar 21 21:01:05 UTC 2014 - dhall@wustl.edu + +- update to Pmw 1.3.3b + +------------------------------------------------------------------- +Sat Dec 15 02:49:50 UTC 2012 - dhall@wustl.edu + +- update to Pmw 1.3.3 + +------------------------------------------------------------------- +Tue Sep 25 02:24:02 UTC 2012 - dhall@wustl.edu + +- require python-tk + +------------------------------------------------------------------- +Tue Aug 16 09:51:31 UTC 2011 - saschpe@suse.de + +- Spec file cleanup: + * Package documentation + * Version-checks around SUSE-specific macros + +------------------------------------------------------------------- +Tue May 10 19:00:49 UTC 2011 - dhall@wustl.edu + +- add executable bits +- patch out test backup file + +------------------------------------------------------------------- +Tue May 10 18:41:49 UTC 2011 - dhall@wustl.edu + +-Pmw import + diff --git a/python-pmw.spec b/python-pmw.spec new file mode 100644 index 0000000..9a0fe18 --- /dev/null +++ b/python-pmw.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-pmw +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pmw +Version: 2.1.1 +Release: 0 +Summary: High-level compound widgets in Python using the Tkinter module +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 setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-tk +BuildArch: noarch +%python_subpackages + +%description +A toolkit for building high-level compound widgets in Python using the Tkinter +module. It contains a set of flexible and extensible megawidgets, including +notebooks, comboboxes, selection widgets, paned widgets, scrolled widgets and +dialog windows. + +%prep +%autosetup -p1 -n Pmw-%{version} +sed -i '1d' Pmw/Pmw_1_3_3/{demos/All,bin/bundlepmw,tests/All,tests/ManualTests}.py # Fix non-executable scripts +sed -i '1d' Pmw/Pmw_2_1_1/{demos/All,bin/bundlepmw,tests/All,tests/ManualTests}.py # Fix non-executable scripts + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%{python_sitelib}/* + +%changelog From 0d96ef57a79af93f9f48c7ddd7a726a882f000b282cb8604cf7a290d7aa6fb47 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