diff --git a/0001-add-missing-header-for-fz_archive.patch b/0001-add-missing-header-for-fz_archive.patch new file mode 100644 index 0000000..cf2902c --- /dev/null +++ b/0001-add-missing-header-for-fz_archive.patch @@ -0,0 +1,28 @@ +From e3423caf5820d97970068a243427c2bdc576fe26 Mon Sep 17 00:00:00 2001 +Message-ID: +From: Michael J Gruber +Date: Wed, 20 Mar 2024 21:55:23 +0100 +Subject: [PATCH] add missing header for fz_archive + +2eb4c51a4 ("Reduce document handler open functions to a single one.", +2024-01-08) introduced an additional fz_archive argument. Include the +header which defines the argument type. +--- + include/mupdf/fitz/document.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h +index a23340768..a732fa5d8 100644 +--- a/include/mupdf/fitz/document.h ++++ b/include/mupdf/fitz/document.h +@@ -32,6 +32,7 @@ + #include "mupdf/fitz/link.h" + #include "mupdf/fitz/outline.h" + #include "mupdf/fitz/separation.h" ++#include "mupdf/fitz/archive.h" + + typedef struct fz_document_handler fz_document_handler; + typedef struct fz_page fz_page; +-- +2.44.0.458.ge6d7a2c32c + diff --git a/mupdf.spec b/mupdf.spec index 73c0f3d..4db7a17 100644 --- a/mupdf.spec +++ b/mupdf.spec @@ -12,6 +12,9 @@ URL: http://mupdf.com/ Source0: http://mupdf.com/downloads/archive/%{name}-%{upversion}-source.tar.gz Source1: %{name}.desktop Source2: %{name}-gl.desktop +# Upstreamable patches: +# https://bugs.ghostscript.com/show_bug.cgi?id=707682 +Patch: 0001-add-missing-header-for-fz_archive.patch BuildRequires: gcc gcc-c++ make binutils desktop-file-utils coreutils pkgconfig BuildRequires: openjpeg2-devel desktop-file-utils BuildRequires: libjpeg-devel freetype-devel libXext-devel curl-devel