[packages/zathura-pdf-mupdf] up to 0.3.6

atler atler at pld-linux.org
Mon Sep 7 22:58:53 CEST 2020


commit 6227ff7186117476b2924ca6ae62b8a086a6a7eb
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Sep 7 22:58:40 2020 +0200

    up to 0.3.6

 mupdf-1.17.patch       | 48 ------------------------------------------------
 zathura-pdf-mupdf.spec |  8 +++-----
 2 files changed, 3 insertions(+), 53 deletions(-)
---
diff --git a/zathura-pdf-mupdf.spec b/zathura-pdf-mupdf.spec
index 1925dad..4a5cc68 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.5
-Release:	3
+Version:	0.3.6
+Release:	1
 License:	BSD-like
 Group:		Applications/Publishing
 Source0:	https://pwmt.org/projects/zathura-pdf-mupdf/download/%{name}-%{version}.tar.xz
-# Source0-md5:	4b48f04c5275210f566900a70abc79aa
-Patch0:		mupdf-1.17.patch
+# Source0-md5:	c0bfc8f411c7a2b7bfc90c382c7cd9e1
 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
diff --git a/mupdf-1.17.patch b/mupdf-1.17.patch
deleted file mode 100644
index eae81bc..0000000
--- a/mupdf-1.17.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From c7f341addb76d5e6fd8c24c666d8fe97c451a4cb Mon Sep 17 00:00:00 2001
-From: Moritz Lipp <mail at mlq.me>
-Date: Thu, 7 May 2020 20:42:01 +0200
-Subject: [PATCH] Update to mupdf 1.17
-
----
- zathura-pdf-mupdf/index.c | 4 +++-
- zathura-pdf-mupdf/links.c | 5 +++--
- 2 files changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/zathura-pdf-mupdf/index.c b/zathura-pdf-mupdf/index.c
-index c421f5c..cbbe978 100644
---- a/zathura-pdf-mupdf/index.c
-+++ b/zathura-pdf-mupdf/index.c
-@@ -65,9 +65,11 @@ build_index(fz_context* ctx, fz_document* document, fz_outline* outline, girara_
-       float x = 0;
-       float y = 0;
- 
-+      fz_location location = fz_resolve_link(ctx, document, outline->uri, &x, &y);
-+
-       type                    = ZATHURA_LINK_GOTO_DEST;
-       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
--      target.page_number      = fz_resolve_link(ctx, document, outline->uri, &x, &y);
-+      target.page_number      = location.page;
-       target.left  = x;
-       target.top   = y;
-       target.zoom  = 0.0;
-diff --git a/zathura-pdf-mupdf/links.c b/zathura-pdf-mupdf/links.c
-index 99c5715..157f039 100644
---- a/zathura-pdf-mupdf/links.c
-+++ b/zathura-pdf-mupdf/links.c
-@@ -54,10 +54,11 @@ pdf_page_links_get(zathura_page_t* page, void* data, zathura_error_t* error)
-       float x = 0;
-       float y = 0;
- 
-+      fz_location location = fz_resolve_link(mupdf_document->ctx, mupdf_document->document, link->uri, &x, &y);
-+
-       type                    = ZATHURA_LINK_GOTO_DEST;
-       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
--      target.page_number      = fz_resolve_link(mupdf_document->ctx,
--          mupdf_document->document, link->uri, &x, &y);
-+      target.page_number      = location.page;
-       target.left  = x;
-       target.top   = y;
-       target.zoom  = 0.0;
--- 
-2.26.0
-
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list