15
0
forked from pool/python-pmw

- Make sure to run %fdupes correctly

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pmw?expand=0&rev=18
This commit is contained in:
Tomáš Chvátal
2018-12-07 11:47:51 +00:00
committed by Git OBS Bridge
parent 2648b6b5d5
commit 3ced07c825
2 changed files with 16 additions and 15 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 7 11:47:08 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Make sure to run %fdupes correctly
-------------------------------------------------------------------
Wed Aug 16 21:32:37 UTC 2017 - dhall@wustl.edu

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pmw
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -21,25 +21,22 @@
Name: python-pmw
Version: 2.0.1
Release: 0
Url: http://pmw.sourceforge.net/
Summary: High-level compound widgets in Python using the Tkinter module
#PATCH-FIX-UPSTREAM py36.patch https://sourceforge.net/p/pmw/patches/7/
License: MIT
Group: Development/Languages/Python
Patch: py36.patch
Source: https://pypi.python.org/packages/e7/20/8d0c4ba96a5fe62e1bcf2b8a212ccfecd67ad951e8f3e89cf147d63952aa/Pmw-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module base}
URL: http://pmw.sourceforge.net/
Source: https://files.pythonhosted.org/packages/source/P/Pmw/Pmw-%{version}.tar.gz
#PATCH-FIX-UPSTREAM py36.patch https://sourceforge.net/p/pmw/patches/7/
Patch0: py36.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-tk
BuildRequires: fdupes
BuildArch: noarch
%define oldpython python
%ifpython2
Obsoletes: %{oldpython}-pmw < %{version}
Provides: %{oldpython}-pmw = %{version}
%endif
%python_subpackages
%description
@@ -50,7 +47,7 @@ dialog windows.
%prep
%setup -q -n Pmw-%{version}
%patch
%patch0
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
@@ -59,10 +56,9 @@ sed -i '1d' Pmw/Pmw_2_0_1/{demos/All,bin/bundlepmw,tests/All,tests/ManualTests}.
%install
%python_install
%fdupes %{buildroot}/%{_prefix}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %python_files
%defattr(-,root,root,-)
%files %{python_files}
%{python_sitelib}/*
%changelog