15
0
forked from pool/python-pmw

- 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
This commit is contained in:
David Hall
2017-05-06 23:48:30 +00:00
committed by Git OBS Bridge
parent aaa871a6cc
commit 6924b132f7
4 changed files with 25 additions and 23 deletions

3
Pmw-2.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b9d28f52755a7a081b44591c3dd912054f896e56c9a627db4dd228306ad1120
size 830448

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1939037a46b1f0c3c066c16702e28b016136bfcbc5627021397b8ad51dbbb090
size 137501

View File

@@ -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

View File

@@ -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