Hello community, here is the log from the commit of package pdfcompare for openSUSE:Factory checked in at 2018-06-08 23:18:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pdfcompare (Old) and /work/SRC/openSUSE:Factory/.pdfcompare.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pdfcompare" Fri Jun 8 23:18:03 2018 rev:6 rq:614896 version:1.6.8 Changes: -------- --- /work/SRC/openSUSE:Factory/pdfcompare/pdfcompare.changes 2017-10-11 23:01:45.679829812 +0200 +++ /work/SRC/openSUSE:Factory/.pdfcompare.new/pdfcompare.changes 2018-06-08 23:18:05.694365747 +0200 @@ -1,0 +2,8 @@ +Thu Jun 7 10:43:25 UTC 2018 - [email protected] + +- Update the package to use python3 instead of python2: + * pdfcompare-whitespace.patch +- Drop the tests as they just run --help atm without the pdftk +- Switch to PyPDF2 from PyPDF + +------------------------------------------------------------------- New: ---- pdfcompare-whitespace.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pdfcompare.spec ++++++ --- /var/tmp/diff_new_pack.0U4yAy/_old 2018-06-08 23:18:06.274344797 +0200 +++ /var/tmp/diff_new_pack.0U4yAy/_new 2018-06-08 23:18:06.278344652 +0200 @@ -1,7 +1,7 @@ # # spec file for package pdfcompare # -# 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 @@ -20,26 +20,21 @@ Version: 1.6.8 Release: 0 Summary: Compare two PDF files, write a resulting PDF with highlighted changes -License: GPL-2.0 +License: GPL-2.0-only Group: Productivity/Publishing/PDF -Url: https://github.com/jnweiger/pdfcompare +URL: https://github.com/jnweiger/pdfcompare Source: pdfcompare-%{version}.tar.bz2 Source100: pull_github.sh -# These BuildRequires are only required for the testsuite -BuildRequires: poppler-tools -BuildRequires: python-base -BuildRequires: python-pygame -BuildRequires: python-pypdf -BuildRequires: python-reportlab -BuildRequires: python-xml +Patch0: pdfcompare-whitespace.patch +BuildRequires: python3-setuptools ## only needed for --spell Requires: hunspell Requires: poppler-tools -Requires: python-base -Requires: python-pygame -Requires: python-pypdf -Requires: python-reportlab -Requires: python-xml +Requires: python3-PyPDF2 +Requires: python3-base +Requires: python3-pygame +Requires: python3-reportlab +Requires: python3-xml Recommends: myspell-american Recommends: myspell-german-old BuildArch: noarch @@ -51,20 +46,19 @@ %prep %setup -q +%patch0 -p1 +sed -i \ + -e 's:^#! /usr/bin/python$:#!/usr/bin/python3:' \ + pdfcompare.py %build - -%check -cd test -export PATH=$PATH:%{buildroot}%{_bindir} -./helptest.sh %{version} +: %install -test -f pdfcompare.py || mv pdf_highlight.py pdfcompare.py install -Dm 0755 pdfcompare.py %{buildroot}%{_bindir}/pdfcompare %files %{_bindir}/pdfcompare -%doc COPYING +%license COPYING %changelog ++++++ pdfcompare-whitespace.patch ++++++ Index: pdfcompare-1.6.8/pdfcompare.py =================================================================== --- pdfcompare-1.6.8.orig/pdfcompare.py +++ pdfcompare-1.6.8/pdfcompare.py @@ -297,7 +297,7 @@ def page_changemarks(canvas, mediabox, c if isinstance(mark['o'], list): if anno_popup_src_loc_ref: text += mark['o'][1]+': '+ mark['o'][0] - else: + else: text += ' '+mark['o'][0] else: text += ' '+mark['o']
