14
0

Accepting request 641312 from home:TheBlackCat:branches:devel:languages:python

- Update to version 2.5
  * fix issue with recursive import and mixed tabs with spaces
  * Add support for python3.6
  * Don't use `sys.stderr` as a default value 
- Drop progressbar-python3-relative-imports.patch
  It is included upstream

OBS-URL: https://build.opensuse.org/request/show/641312
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-progressbar?expand=0&rev=19
This commit is contained in:
Todd R
2018-10-11 15:53:19 +00:00
committed by Git OBS Bridge
parent 4821dc76ae
commit 246b6817ea
5 changed files with 21 additions and 42 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-progressbar
#
# 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
@@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-progressbar
Version: 2.3+hg20121105.3c94a3a1ebe1
%define eggver 2.3
Version: 2.5
Release: 0
Summary: Text Progressbar Library for Python
License: LGPL-2.1+ or BSD-3-Clause
License: LGPL-2.1+ OR BSD-3-Clause
Group: Development/Libraries/Python
Url: https://github.com/niltonvolpato/python-progressbar
Source: progressbar-%{version}.tar.bz2
Patch0: progressbar-python3-relative-imports.patch
Source: https://files.pythonhosted.org/packages/source/p/progressbar/progressbar-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
@@ -40,9 +38,7 @@ display the progress of a long running operation, providing a visual clue that
processing is underway.
%prep
%setup -q -n progressbar
%patch0 -p1
sed -i "/\/usr\/bin\/python/d" progressbar/*.py # Correctly fix non-executable-script warning
%setup -q -n progressbar-%{version}
%build
%python_build
@@ -51,9 +47,9 @@ sed -i "/\/usr\/bin\/python/d" progressbar/*.py # Correctly fix non-executable-
%python_install
%files %{python_files}
%defattr(-,root,root)
%doc LICENSE.txt README.txt examples.py
%doc README.txt examples.py
%license LICENSE.txt
%{python_sitelib}/progressbar/
%{python_sitelib}/progressbar-%{eggver}-py*.egg-info
%{python_sitelib}/progressbar-%{version}-py*.egg-info
%changelog