Hello community, here is the log from the commit of package mcomix for openSUSE:Factory checked in at 2019-06-01 09:51:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mcomix (Old) and /work/SRC/openSUSE:Factory/.mcomix.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mcomix" Sat Jun 1 09:51:57 2019 rev:2 rq:706244 version:1.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/mcomix/mcomix.changes 2017-08-24 18:39:49.255701657 +0200 +++ /work/SRC/openSUSE:Factory/.mcomix.new.5148/mcomix.changes 2019-06-01 09:51:58.311273648 +0200 @@ -1,0 +2,6 @@ +Tue May 28 13:47:24 UTC 2019 - Gustavo Yokoyama Ribeiro <gyribe...@suse.de> + +- Add python-pillow-fix-attributeerror.patch: Fix field VERSION + deprecated in Pillow 5.2.0 and dropped in 6.0.0 + +------------------------------------------------------------------- New: ---- python-pillow-fix-attributeerror.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mcomix.spec ++++++ --- /var/tmp/diff_new_pack.Y8Yi0r/_old 2019-06-01 09:51:58.903273446 +0200 +++ /var/tmp/diff_new_pack.Y8Yi0r/_new 2019-06-01 09:51:58.907273445 +0200 @@ -1,7 +1,7 @@ # # spec file for package mcomix # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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/ # @@ -20,10 +20,11 @@ Version: 1.2.1 Release: 0 Summary: Comics Viewer -License: GPL-2.0 +License: GPL-2.0-only Group: Productivity/Graphics/Viewers Url: http://sourceforge.net/p/mcomix/wiki/Home/ Source0: %{name}-%{version}.tar.bz2 +Patch0: python-pillow-fix-attributeerror.patch # not Python3 ready :( BuildRequires: python-setuptools Requires: python-Pillow @@ -42,6 +43,7 @@ %prep %setup -q +%patch0 -p1 %build @@ -59,7 +61,6 @@ %fdupes -s %{buildroot}%{python_sitelib}/mcomix-* %endif - %post %mime_database_post ++++++ python-pillow-fix-attributeerror.patch ++++++ Index: mcomix/run.py =================================================================== --- a/mcomix/run.py 2016-02-12 16:52:12.000000000 -0200 +++ b/mcomix/run.py 2019-05-28 10:08:25.554074772 -0300 @@ -203,7 +203,11 @@ def run(): try: import PIL.Image - assert PIL.Image.VERSION >= '1.1.5' + try: + assert PIL.Image.VERSION >= '1.1.5' + except AttributeError: + # Field VERSION deprecated in Pillow 5.2.0 and dropped in 6.0.0 + assert PIL.__version__ >= '5.2.0' except AssertionError: log.error( _("You don't have the required version of the Python Imaging"), end=' ')