Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pdfposter for openSUSE:Factory checked in at 2026-11-30 14:26:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pdfposter (Old) and /work/SRC/openSUSE:Factory/.pdfposter.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pdfposter" Mon Nov 30 14:26:50 2026 rev:4 rq:1401440 version:0.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/pdfposter/pdfposter.changes 2026-05-04 12:58:58.518958054 +0200 +++ /work/SRC/openSUSE:Factory/.pdfposter.new.1340718/pdfposter.changes 2026-11-30 14:29:21.575415161 +0100 @@ -1,0 +2,6 @@ +Sun Nov 29 10:33:31 UTC 2026 - Sebastian Wagner <[email protected]> + +- Add pdfposter-pypdf7.patch to fix compatibility with pypdf >= 7.0 + Only applied on Tumbleweed/Factory, Leap 16.x has pypdf < 7. + +------------------------------------------------------------------- New: ---- pdfposter-pypdf7.patch ----------(New B)---------- New: - Add pdfposter-pypdf7.patch to fix compatibility with pypdf >= 7.0 Only applied on Tumbleweed/Factory, Leap 16.x has pypdf < 7. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pdfposter.spec ++++++ --- /var/tmp/diff_new_pack.IWoOcg/_old 2026-11-30 14:29:23.038476912 +0100 +++ /var/tmp/diff_new_pack.IWoOcg/_new 2026-11-30 14:29:23.040476996 +0100 @@ -24,6 +24,8 @@ License: GPL-3.0-or-later URL: https://pdfposter.readthedocs.io/ Source: https://gitlab.com/pdftools/pdfposter/-/archive/v%{version}/pdfposter-v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM pdfposter-pypdf7.patch -- fix compatibility with pypdf >= 7.0 +Patch0: https://gitlab.com/pdftools/pdfposter/-/merge_requests/11/diffs.patch#/pdfposter-pypdf7.patch BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx @@ -58,7 +60,11 @@ HTML Documentation and examples for %{name}. %prep -%autosetup -p1 -n pdfposter-v%{version} +%autosetup -N -n pdfposter-v%{version} +# pypdf >= 7 is only in Tumbleweed/Factory; Leap 16.x still has pypdf < 7 +%if 0%{?suse_version} >= 1699 +%autopatch -p1 +%endif sed -i '1{/\/usr\/bin/d;}' pdfposter/__init__.py pdfposter/cmd.py %build ++++++ pdfposter-pypdf7.patch ++++++ >From 96fb5f323fa3a69cee245f7e6090bb09e4a13ab9 Mon Sep 17 00:00:00 2001 From: Bastian Germann <[email protected]> Date: Sat, 21 Nov 2026 15:05:13 +0100 Subject: [PATCH] Work on a detached copy pypdf 7+ forbids replace_contents() on pages attached to a reader. --- pdfposter/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pdfposter/__init__.py b/pdfposter/__init__.py index b4cccc9..04ef680 100644 --- a/pdfposter/__init__.py +++ b/pdfposter/__init__.py @@ -252,6 +252,7 @@ def posterize(outpdf, page, mediabox, posterbox, scale, use_ArtBox=False): posterbox: size secs of the resulting poster scale: scale factor (to be used instead of posterbox) """ + page = copyPage(page) if use_ArtBox: inbox = rectangle2box(page.artBox) else: -- GitLab
