Hello community,

here is the log from the commit of package python-progressbar for 
openSUSE:Factory checked in at 2017-09-05 15:15:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-progressbar (Old)
 and      /work/SRC/openSUSE:Factory/.python-progressbar.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-progressbar"

Tue Sep  5 15:15:23 2017 rev:11 rq:519997 version:2.3+hg20121105.3c94a3a1ebe1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-progressbar/python-progressbar.changes    
2013-10-25 11:26:56.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-progressbar.new/python-progressbar.changes   
    2017-09-05 15:15:23.339813485 +0200
@@ -1,0 +2,12 @@
+Thu Aug 31 17:13:34 UTC 2017 - [email protected]
+
+- Use progressbar-python3-relative-imports.patch on python2 and
+  python3 since it is compatible with both.
+- Make progressbar-python3-relative-imports.patch simpler.
+
+-------------------------------------------------------------------
+Thu Aug 24 13:49:59 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -40,0 +53 @@
+

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-progressbar.spec ++++++
--- /var/tmp/diff_new_pack.1jPFRm/_old  2017-09-05 15:15:23.935729721 +0200
+++ /var/tmp/diff_new_pack.1jPFRm/_new  2017-09-05 15:15:23.939729158 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-progressbar
 #
-# Copyright (c) 2013 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,22 +16,23 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-progressbar
 Version:        2.3+hg20121105.3c94a3a1ebe1
+%define eggver  2.3
 Release:        0
 Summary:        Text Progressbar Library for Python
 License:        LGPL-2.1+ or BSD-3-Clause
 Group:          Development/Libraries/Python
-Url:            http://code.google.com/p/python-progressbar/
+Url:            https://github.com/niltonvolpato/python-progressbar
 Source:         progressbar-%{version}.tar.bz2
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+Patch0:         progressbar-python3-relative-imports.patch
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%endif
+
+%python_subpackages
 
 %description
 This library provides a text mode progressbar. This is tipically used to
@@ -40,18 +41,19 @@
 
 %prep
 %setup -q -n progressbar
+%patch0 -p1
 sed -i "/\/usr\/bin\/python/d" progressbar/*.py  # Correctly fix 
non-executable-script warning
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
+%python_install
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc LICENSE.txt README.txt examples.py
 %{python_sitelib}/progressbar/
-%{python_sitelib}/progressbar-2.3-py%{py_ver}.egg-info
+%{python_sitelib}/progressbar-%{eggver}-py*.egg-info
 
 %changelog

++++++ progressbar-python3-relative-imports.patch ++++++
--- /var/tmp/diff_new_pack.1jPFRm/_old  2017-09-05 15:15:23.967725223 +0200
+++ /var/tmp/diff_new_pack.1jPFRm/_new  2017-09-05 15:15:23.967725223 +0200
@@ -8,9 +8,9 @@
 -from compat import *
 -from widgets import *
 -from progressbar import *
-+from progressbar.compat import *
-+from progressbar.widgets import *
-+from progressbar.progressbar import *
++from .compat import *
++from .widgets import *
++from .progressbar import *
 Binärdateien a/progressbar/.__init__.py.swp and b/progressbar/.__init__.py.swp 
sind verschieden.
 diff -ruN a/progressbar/progressbar.py b/progressbar/progressbar.py
 --- a/progressbar/progressbar.py       2012-11-05 23:03:46.696882987 +0100
@@ -20,7 +20,7 @@
      pass
  
 -import widgets
-+from progressbar import widgets
++from . import widgets
  
  
  class UnknownLength: pass


Reply via email to