From 857e6d16c2797390ce3b6e84d3827702ad1d1d23 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Fri, 9 Oct 2020 13:21:46 +0200 Subject: [PATCH] link against gumbo --- 0001-link-against-gumbo-for-mupdf-1.18.patch | 33 ++++++++++++++++++++ zathura-pdf-mupdf.spec | 7 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0001-link-against-gumbo-for-mupdf-1.18.patch diff --git a/0001-link-against-gumbo-for-mupdf-1.18.patch b/0001-link-against-gumbo-for-mupdf-1.18.patch new file mode 100644 index 0000000..7751fd5 --- /dev/null +++ b/0001-link-against-gumbo-for-mupdf-1.18.patch @@ -0,0 +1,33 @@ +From d0a99a26ab5f80334308607ba5ef9525af718f2a Mon Sep 17 00:00:00 2001 +Message-Id: +From: Michael J Gruber +Date: Fri, 9 Oct 2020 13:16:28 +0200 +Subject: [PATCH] link against gumbo for mupdf 1.18 + +Signed-off-by: Michael J Gruber +--- + meson.build | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 23cdc6a..dabcd39 100644 +--- a/meson.build ++++ b/meson.build +@@ -35,11 +35,13 @@ if get_option('link-external') + libjpeg = dependency('libjpeg') + libjbig2dec = cc.find_library('jbig2dec') + libopenjp2 = dependency('libopenjp2') ++ gumbo = dependency('gumbo') + + build_dependencies += [ + libjpeg, + libjbig2dec, +- libopenjp2 ++ libopenjp2, ++ gumbo + ] + endif + +-- +2.28.0.945.gedc4c61efd + diff --git a/zathura-pdf-mupdf.spec b/zathura-pdf-mupdf.spec index 6929e2e..5caf837 100644 --- a/zathura-pdf-mupdf.spec +++ b/zathura-pdf-mupdf.spec @@ -6,11 +6,12 @@ Name: zathura-pdf-mupdf Version: 0.3.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: PDF support for zathura via mupdf License: zlib URL: https://pwmt.org/projects/%{name}/ Source0: %{url}/download/%{name}-%{version}.tar.xz +Patch0: 0001-link-against-gumbo-for-mupdf-1.18.patch BuildRequires: binutils BuildRequires: cairo-devel # Needed to validate the desktop file @@ -25,6 +26,7 @@ BuildRequires: meson >= 0.43 BuildRequires: mupdf-static >= 1.17 BuildRequires: openjpeg2-devel BuildRequires: zathura-devel >= 0.3.9 +BuildRequires: gumbo-parser-devel Requires: zathura >= 0.3.9 # Depend on exact versions like mupdf does # https://src.fedoraproject.org/rpms/mupdf/c/02d93ee0f097415aa095ffcea4d768e5f43fac91?branch=master @@ -62,6 +64,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainf %{_datadir}/metainfo/org.pwmt.zathura-pdf-mupdf.metainfo.xml %changelog +* Fri Oct 09 2020 Michael J Gruber - 0.3.6-4 +- link against gumbo + * Thu Oct 08 2020 Michael J Gruber - 0.3.6-3 - rebuild for mupdf 1.18.0