commit 20f4b56a02b3b9f8655ce493924b50615a4e3f11
Author: Jan Palus <[email protected]>
Date:   Sat Aug 3 17:00:13 2019 +0200

    upstream patch for mupdf 1.16; rel 3

 zathura-pdf-mupdf-1.16.patch | 25 +++++++++++++++++++++++++
 zathura-pdf-mupdf.spec       |  8 +++++---
 2 files changed, 30 insertions(+), 3 deletions(-)
---
diff --git a/zathura-pdf-mupdf.spec b/zathura-pdf-mupdf.spec
index bef882d..dc0db56 100644
--- a/zathura-pdf-mupdf.spec
+++ b/zathura-pdf-mupdf.spec
@@ -2,11 +2,12 @@ Summary:      mupdf based PDF plugin for zathura
 Summary(pl.UTF-8):     Wtyczka PDF dla zathury oparta na silniku mupdf
 Name:          zathura-pdf-mupdf
 Version:       0.3.4
-Release:       2
+Release:       3
 License:       BSD-like
 Group:         Applications/Publishing
 Source0:       
https://pwmt.org/projects/zathura-pdf-mupdf/download/%{name}-%{version}.tar.xz
 # Source0-md5: 60d5abdf5e6f0f869db6422e9c99fdc0
+Patch0:                %{name}-1.16.patch
 URL:           https://pwmt.org/projects/zathura-pdf-mupdf/
 BuildRequires: cairo-devel
 # C11
@@ -15,7 +16,7 @@ BuildRequires:        girara-devel >= 0.2.3
 BuildRequires: glib2-devel >= 2.0
 BuildRequires: gtk+3-devel >= 3.2
 BuildRequires: meson >= 0.43
-BuildRequires: mupdf-devel >= 1.14
+BuildRequires: mupdf-devel >= 1.16
 BuildRequires: ninja
 BuildRequires: pkgconfig
 BuildRequires: tar >= 1:1.22
@@ -23,7 +24,7 @@ BuildRequires:        xz
 BuildRequires: zathura-devel >= 0.3.9
 Requires(post,postun): desktop-file-utils
 Requires:      girara >= 0.2.3
-Requires:      mupdf >= 1.14
+Requires:      mupdf >= 1.16
 Requires:      zathura >= 0.3.9
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,6 +38,7 @@ wykorzystaniem silnika renderujÄ…cego mupdf.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %meson build
diff --git a/zathura-pdf-mupdf-1.16.patch b/zathura-pdf-mupdf-1.16.patch
new file mode 100644
index 0000000..17a55b3
--- /dev/null
+++ b/zathura-pdf-mupdf-1.16.patch
@@ -0,0 +1,25 @@
+From 95c830c9f6cfe4ba99535ecfba0a700ceb15a25a Mon Sep 17 00:00:00 2001
+From: Pavel Vinogradov <[email protected]>
+Date: Wed, 24 Jul 2019 14:31:31 -0400
+Subject: [PATCH] Adapted to MuPDF >= 1.16.x
+
+---
+ 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 5176fe0..f84dea0 100644
+--- a/zathura-pdf-mupdf/search.c
++++ b/zathura-pdf-mupdf/search.c
+@@ -39,7 +39,7 @@ pdf_page_search_text(zathura_page_t* page, void* data, const 
char* text, zathura
+     mupdf_page_extract_text(mupdf_document, mupdf_page);
+   }
+ 
+-  fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, 
sizeof(fz_quad));
++  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);
+ 
+-- 
+2.20.1
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zathura-pdf-mupdf.git/commitdiff/20f4b56a02b3b9f8655ce493924b50615a4e3f11

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to