From 2bdc18610702cad928b1fd6b9154fbcfd3289bf0 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 12 Aug 2019 13:47:39 +0200 Subject: [PATCH] up to 0.3.5 --- zathura-pdf-mupdf-1.16.patch | 25 ------------------------- zathura-pdf-mupdf.spec | 8 +++----- 2 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 zathura-pdf-mupdf-1.16.patch diff --git a/zathura-pdf-mupdf-1.16.patch b/zathura-pdf-mupdf-1.16.patch deleted file mode 100644 index 17a55b3..0000000 --- a/zathura-pdf-mupdf-1.16.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 95c830c9f6cfe4ba99535ecfba0a700ceb15a25a Mon Sep 17 00:00:00 2001 -From: Pavel Vinogradov -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 - diff --git a/zathura-pdf-mupdf.spec b/zathura-pdf-mupdf.spec index dc0db56..0ef3c1b 100644 --- a/zathura-pdf-mupdf.spec +++ b/zathura-pdf-mupdf.spec @@ -1,13 +1,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: 3 +Version: 0.3.5 +Release: 1 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 +# Source0-md5: 4b48f04c5275210f566900a70abc79aa URL: https://pwmt.org/projects/zathura-pdf-mupdf/ BuildRequires: cairo-devel # C11 @@ -38,7 +37,6 @@ wykorzystaniem silnika renderującego mupdf. %prep %setup -q -%patch0 -p1 %build %meson build -- 2.43.0