]> git.pld-linux.org Git - packages/zathura-pdf-mupdf.git/commitdiff
upstream patch for mupdf 1.16; rel 3 auto/th/zathura-pdf-mupdf-0.3.4-3
authorJan Palus <atler@pld-linux.org>
Sat, 3 Aug 2019 15:00:13 +0000 (17:00 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 3 Aug 2019 15:00:13 +0000 (17:00 +0200)
zathura-pdf-mupdf-1.16.patch [new file with mode: 0644]
zathura-pdf-mupdf.spec

diff --git a/zathura-pdf-mupdf-1.16.patch b/zathura-pdf-mupdf-1.16.patch
new file mode 100644 (file)
index 0000000..17a55b3
--- /dev/null
@@ -0,0 +1,25 @@
+From 95c830c9f6cfe4ba99535ecfba0a700ceb15a25a Mon Sep 17 00:00:00 2001
+From: Pavel Vinogradov <vin.public@gmail.com>
+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
+
index bef882d8825b8862282ae6f08fc6025d93c916fa..dc0db5622b7356bc2a93be9f3ad8acbc92ee0ea6 100644 (file)
@@ -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
This page took 0.176304 seconds and 4 git commands to generate.