From a40c7ab1afab06216e958d2c42dc935ccd2845c4 Mon Sep 17 00:00:00 2001 From: Anna Khaitovich Date: Thu, 21 May 2020 18:16:02 +0200 Subject: [PATCH] Define %{jbig2dec_version} global macro --- ghostscript.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ghostscript.spec b/ghostscript.spec index 9c7b3d7..9e84264 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -38,12 +38,18 @@ # Obtain the location of Google Droid fonts directory: %global google_droid_fontpath %%(dirname $(fc-list : file | grep "DroidSansFallback")) +# Desired jbig2dec header files and library version +# Oldest possible, will be used in Requires and in configure script to check +# if the correct header files and libraries are installed +# Please update if needed. +%global jbig2dec_version 0.18 + # ============================================================================= Name: ghostscript Summary: Interpreter for PostScript language & PDF Version: 9.52 -Release: 3%{?dist} +Release: 4%{?dist} License: AGPLv3+ @@ -51,7 +57,7 @@ URL: https://ghostscript.com/ Source: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%{version_short}/ghostscript-%{version}.tar.xz Requires: libgs%{?_isa} = %{version}-%{release} -Requires: jbig2dec-libs >= 0.18 +Requires: jbig2dec-libs >= %{jbig2dec_version} # Auxiliary build requirements: BuildRequires: automake @@ -69,7 +75,7 @@ BuildRequires: cups-devel BuildRequires: dbus-devel BuildRequires: fontconfig-devel BuildRequires: freetype-devel -BuildRequires: jbig2dec-devel +BuildRequires: jbig2dec-devel >= %{jbig2dec_version} BuildRequires: lcms2-devel BuildRequires: libidn-devel BuildRequires: libijs-devel @@ -460,6 +466,9 @@ done # ============================================================================= %changelog +* Thu May 21 2020 Anna Khaitovich - 9.52-4 +- Define %%{jbig2dec_version} global macro + * Wed May 20 2020 Anna Khaitovich - 9.52-3 - Require the exact jbig2dec version to avoid a mismatch between header files and library