fix FTBFS of (at least) qpdfview

This commit is contained in:
Michael J Gruber 2024-03-20 21:58:51 +01:00
parent 3997f669ec
commit e6ad02431f
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From e3423caf5820d97970068a243427c2bdc576fe26 Mon Sep 17 00:00:00 2001
Message-ID: <e3423caf5820d97970068a243427c2bdc576fe26.1710968212.git.mjg@fedoraproject.org>
From: Michael J Gruber <mjg@fedoraproject.org>
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

View File

@ -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