From a8da3bc9367d2f91ec21667327812fb7392ae84e Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Sun, 15 May 2022 21:56:18 +0200 Subject: [PATCH] build against mupdf 1.20.0 --- 0001-adapt-to-mupdf-1.20.patch | 27 +++++++++++++++++++++++++++ zathura-pdf-mupdf.spec | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-adapt-to-mupdf-1.20.patch diff --git a/0001-adapt-to-mupdf-1.20.patch b/0001-adapt-to-mupdf-1.20.patch new file mode 100644 index 0000000..ccee108 --- /dev/null +++ b/0001-adapt-to-mupdf-1.20.patch @@ -0,0 +1,27 @@ +From 89851522051ffdc171c6e63c82d07205b0683aea Mon Sep 17 00:00:00 2001 +Message-Id: <89851522051ffdc171c6e63c82d07205b0683aea.1652644338.git.mjg@fedoraproject.org> +From: Michael J Gruber +Date: Sun, 15 May 2022 21:52:07 +0200 +Subject: [PATCH] adapt to mupdf 1.20 + +Signed-off-by: Michael J Gruber +--- + zathura-pdf-mupdf/search.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/zathura-pdf-mupdf/search.c b/zathura-pdf-mupdf/search.c +index f84dea0..419e5f4 100644 +--- a/zathura-pdf-mupdf/search.c ++++ b/zathura-pdf-mupdf/search.c +@@ -41,7 +41,7 @@ pdf_page_search_text(zathura_page_t* page, void* data, const char* text, zathura + + fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad); + int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text, +- text, hit_bbox, N_SEARCH_RESULTS); ++ text, NULL, hit_bbox, N_SEARCH_RESULTS); + + fz_rect r; + for (int i = 0; i < num_results; i++) { +-- +2.36.1.165.g85e47b7606 + diff --git a/zathura-pdf-mupdf.spec b/zathura-pdf-mupdf.spec index 04f29fb..8f31b0a 100644 --- a/zathura-pdf-mupdf.spec +++ b/zathura-pdf-mupdf.spec @@ -6,12 +6,13 @@ Name: zathura-pdf-mupdf Version: 0.3.8 -Release: 4%{?dist} +Release: 5%{?dist} Summary: PDF support for zathura via mupdf License: zlib URL: https://pwmt.org/projects/%{name}/ Source0: %{url}/download/%{name}-%{version}.tar.xz Patch1: 0001-Revert-Rework-detection-of-mupdf.patch +Patch2: 0001-adapt-to-mupdf-1.20.patch BuildRequires: binutils BuildRequires: cairo-devel @@ -68,6 +69,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainf %{_datadir}/metainfo/org.pwmt.zathura-pdf-mupdf.metainfo.xml %changelog +* Wed Jun 15 2022 Michael J Gruber - 0.3.8-5 +- build against mupdf 1.20.0 + * Fri May 20 2022 Sandro Mani - 0.3.8-4 - Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0