From 161dbc32c5da785b7604a26ce9ad84fc1a4a04db216dc12299ed8ed33329b56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 29 Apr 2025 10:24:43 +0000 Subject: [PATCH] fix Leap 16 build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pmw?expand=0&rev=25 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + Pmw-2.1.1.tar.gz | 3 ++ python-pmw.changes | 77 ++++++++++++++++++++++++++++++++++++++++++++++ python-pmw.spec | 59 +++++++++++++++++++++++++++++++++++ 5 files changed, 163 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..82a9eb8 --- /dev/null +++ b/python-pmw.changes @@ -0,0 +1,77 @@ +------------------------------------------------------------------- +Tue Apr 29 09:57:13 UTC 2025 - Max Lin + +- Fix Leap 16 build with the different filename naming + +------------------------------------------------------------------- +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 + +- 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..9db387c --- /dev/null +++ b/python-pmw.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-pmw +# +# 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 +# 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 pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +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 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%{python_sitelib}/[pP]mw +%{python_sitelib}/[pP]mw-%{version}*-info + +%changelog