|
|
|
@ -1,10 +1,16 @@
|
|
|
|
|
# Desired jbig2dec header files and library version
|
|
|
|
|
# Apparantly, jbig2dec complains even about newer versions.
|
|
|
|
|
# Please update if needed.
|
|
|
|
|
%global jbig2dec_version 0.18
|
|
|
|
|
|
|
|
|
|
Name: zathura-pdf-mupdf
|
|
|
|
|
|
|
|
|
|
Version: 0.3.5
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: PDF support for zathura via mupdf
|
|
|
|
|
License: zlib
|
|
|
|
|
URL: http://pwmt.org/projects/zathura/plugins/%{name}
|
|
|
|
|
Source0: http://pwmt.org/projects/zathura/plugins/download/%{name}-%{version}.tar.xz
|
|
|
|
|
URL: https://pwmt.org/projects/%{name}/
|
|
|
|
|
Source0: %{url}/download/%{name}-%{version}.tar.xz
|
|
|
|
|
Patch1: 0001-Update-to-mupdf-1.17.patch
|
|
|
|
|
BuildRequires: binutils
|
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
@ -13,7 +19,6 @@ BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: girara-devel
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: jbig2dec-devel
|
|
|
|
|
# Needed to validate appdata
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
@ -22,6 +27,12 @@ BuildRequires: mupdf-static >= 1.17
|
|
|
|
|
BuildRequires: openjpeg2-devel
|
|
|
|
|
BuildRequires: zathura-devel >= 0.3.9
|
|
|
|
|
Requires: zathura >= 0.3.9
|
|
|
|
|
# Depend on exact versions like mupdf does
|
|
|
|
|
# https://src.fedoraproject.org/rpms/mupdf/c/02d93ee0f097415aa095ffcea4d768e5f43fac91?branch=master
|
|
|
|
|
BuildRequires: jbig2dec-devel = %{jbig2dec_version}
|
|
|
|
|
BuildRequires: jbig2dec-libs = %{jbig2dec_version}
|
|
|
|
|
Requires: jbig2dec-libs = %{jbig2dec_version}
|
|
|
|
|
|
|
|
|
|
# Old plugins used alternatives
|
|
|
|
|
Conflicts: zathura-pdf-poppler < 0.2.9
|
|
|
|
|
|
|
|
|
@ -53,6 +64,10 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainf
|
|
|
|
|
%{_datadir}/metainfo/org.pwmt.zathura-pdf-mupdf.metainfo.xml
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jul 28 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.5-4
|
|
|
|
|
- Rebuild to require exact jgib2dec version
|
|
|
|
|
- #1860987
|
|
|
|
|
|
|
|
|
|
* Sat May 16 2020 Michael J Gruber <mjg@fedoraproject.org> - 0.3.5-3
|
|
|
|
|
- Adjust to mupdf 1.17
|
|
|
|
|
|
|
|
|
|