Hello community, here is the log from the commit of package python-img2pdf for openSUSE:Factory checked in at 2019-03-27 16:22:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-img2pdf (Old) and /work/SRC/openSUSE:Factory/.python-img2pdf.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-img2pdf" Wed Mar 27 16:22:55 2019 rev:4 rq:689088 version:0.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-img2pdf/python-img2pdf.changes 2018-12-24 11:38:23.297612037 +0100 +++ /work/SRC/openSUSE:Factory/.python-img2pdf.new.25356/python-img2pdf.changes 2019-03-27 16:23:10.395507635 +0100 @@ -1,0 +2,30 @@ +Wed Mar 27 12:53:38 UTC 2019 - [email protected] + +- transformed sed to patch upon request +- added patches + allow to run testsuite with python 2 (https://gitlab.mister-muffin.de/josch/img2pdf/issues/60) + + python-img2pdf-test-python2.patch + +------------------------------------------------------------------- +Wed Mar 27 11:10:31 UTC 2019 - [email protected] + +- version update to 0.3.3 + * restore basic support for Python 2 + * also ship test.sh + * add legal and tabloid paper formats + * respect exif rotation tag + * support big endian TIFF with lsb-to-msb FillOrder + * support multipage CCITT Group 4 TIFF + * also reject palette images with transparency + * support PNG images with 1, 2, 4 or 16 bits per sample + * support multipage TIFF with differently encoded images + * support CCITT Group4 TIFF without rows-per-strip + * add extensive test suite + * Directly copy data from CCITT Group 4 encoded TIFF images into the PDF + container without re-encoding + * Store non-jpeg images using PNG compression + * Support arbitrarily large pages via PDF /UserUnit field + * Disallow input with alpha channel as it cannot be preserved + * Add option --pillow-limit-break to support very large input + +------------------------------------------------------------------- Old: ---- img2pdf-0.2.4.tar.gz New: ---- img2pdf-0.3.3.tar.gz python-img2pdf-test-python2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-img2pdf.spec ++++++ --- /var/tmp/diff_new_pack.Agq2Gb/_old 2019-03-27 16:23:11.339507439 +0100 +++ /var/tmp/diff_new_pack.Agq2Gb/_new 2019-03-27 16:23:11.343507438 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-img2pdf # -# Copyright (c) 2018 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 @@ -19,13 +19,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-img2pdf -Version: 0.2.4 +Version: 0.3.3 Release: 0 Summary: Python module for converting images to PDF via direct JPEG inclusion License: LGPL-3.0-or-later Group: Development/Languages/Python Url: https://gitlab.mister-muffin.de/josch/img2pdf Source: https://files.pythonhosted.org/packages/source/i/img2pdf/img2pdf-%{version}.tar.gz +# allow to run testsuite with python 2 (https://gitlab.mister-muffin.de/josch/img2pdf/issues/60) +Patch0: python-img2pdf-test-python2.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -36,6 +38,7 @@ # /SECTION Requires: python-Pillow Requires: python-pdfrw +Requires: python-setuptools %ifpython2 Requires: python-enum34 %endif @@ -55,6 +58,9 @@ %prep %setup -q -n img2pdf-%{version} +%ifpython2 +%patch0 -p1 +%endif sed -i -e '/^#!\//, 1d' src/*.py %build @@ -69,6 +75,7 @@ %files %{python_files} %defattr(-,root,root,-) +%license LICENSE %doc CHANGES.rst README.md %python3_only %{_bindir}/img2pdf %{python_sitelib}/* ++++++ img2pdf-0.2.4.tar.gz -> img2pdf-0.3.3.tar.gz ++++++ ++++ 5604 lines of diff (skipped) ++++++ python-img2pdf-test-python2.patch ++++++ Index: img2pdf-0.3.3/src/tests/__init__.py =================================================================== --- img2pdf-0.3.3.orig/src/tests/__init__.py 2018-12-25 12:28:33.000000000 +0100 +++ img2pdf-0.3.3/src/tests/__init__.py 2019-03-27 13:43:28.471760192 +0100 @@ -55,12 +55,12 @@ def compare_pdf(outx, outy): x = recompress_last_stream(outx) y = recompress_last_stream(outy) if x != y: - print('original outx:\n{}\nouty:\n{}\n'.format(outx, outy), file=sys.stderr) - print('recompressed outx:\n{}\nouty:\n{}\n'.format(x, y), file=sys.stderr) + print >>sys.stderr, 'original outx:\n{}\nouty:\n{}\n'.format(outx, outy) + print >>sys.stderr, 'recompressed outx:\n{}\nouty:\n{}\n'.format(x, y) return False else: if outx != outy: - print('original outx:\n{}\nouty:\n{}\n'.format(outx, outy), file=sys.stderr) + print >>sys.stderr, 'original outx:\n{}\nouty:\n{}\n'.format(outx, outy) return True # convert +set date:create +set date:modify -define png:exclude-chunk=time
