From 6924b132f73fed49575e41a7539661aa1c8f98b0e99112b8fae52fe8a8aa678d Mon Sep 17 00:00:00 2001 From: David Hall Date: Sat, 6 May 2017 23:48:30 +0000 Subject: [PATCH] - update to Pmw 2.0.1 - add python3 compatibility OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pmw?expand=0&rev=12 --- Pmw-2.0.1.tar.gz | 3 +++ python-pmw-1.3.3b.tar.bz2 | 3 --- python-pmw.changes | 6 ++++++ python-pmw.spec | 36 ++++++++++++++++-------------------- 4 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 Pmw-2.0.1.tar.gz delete mode 100644 python-pmw-1.3.3b.tar.bz2 diff --git a/Pmw-2.0.1.tar.gz b/Pmw-2.0.1.tar.gz new file mode 100644 index 0000000..0147283 --- /dev/null +++ b/Pmw-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b9d28f52755a7a081b44591c3dd912054f896e56c9a627db4dd228306ad1120 +size 830448 diff --git a/python-pmw-1.3.3b.tar.bz2 b/python-pmw-1.3.3b.tar.bz2 deleted file mode 100644 index 853b9f7..0000000 --- a/python-pmw-1.3.3b.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1939037a46b1f0c3c066c16702e28b016136bfcbc5627021397b8ad51dbbb090 -size 137501 diff --git a/python-pmw.changes b/python-pmw.changes index 7b2be72..0e43d44 100644 --- a/python-pmw.changes +++ b/python-pmw.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/python-pmw.spec b/python-pmw.spec index 212e4e6..9130c35 100644 --- a/python-pmw.spec +++ b/python-pmw.spec @@ -1,7 +1,7 @@ # # spec file for package python-pmw # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-pmw -Version: 1.3.3b +Version: 2.0.1 Release: 0 Url: http://pmw.sourceforge.net/ Summary: High-level compound widgets in Python using the Tkinter module License: MIT -Group: Development/Libraries/Python -Source: %{name}-%{version}.tar.bz2 +Group: Development/Languages/Python +Source: https://pypi.python.org/packages/e7/20/8d0c4ba96a5fe62e1bcf2b8a212ccfecd67ad951e8f3e89cf147d63952aa/Pmw-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel +BuildRequires: %{python_module base} +BuildRequires: python-rpm-macros Requires: python-tk -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1010 BuildRequires: fdupes -%endif -%if 0%{?suse_version} > 1110 BuildArch: noarch -%endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%python_subpackages %description A toolkit for building high-level compound widgets in Python using the Tkinter @@ -45,20 +42,19 @@ notebooks, comboboxes, selection widgets, paned widgets, scrolled widgets and dialog windows. %prep -%setup -q -n %{name}-%{version}/src +%setup -q -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_0_1/{demos/All,bin/bundlepmw,tests/All,tests/ManualTests}.py # Fix non-executable scripts %build -python setup.py build +%python_build %install -python setup.py install --root=%{buildroot} --prefix=%{_prefix} -%if 0%{?suse_version} > 1010 +%python_install %fdupes %{buildroot}/%{_prefix} -%endif -%files -%defattr(-,root,root) +%files %python_files +%defattr(-,root,root,-) %{python_sitelib}/* %changelog