Define %{jbig2dec_version} global macro

This commit is contained in:
Anna Khaitovich 2020-05-21 18:16:02 +02:00
parent 97e7bcb8ef
commit a40c7ab1af

View File

@ -38,12 +38,18 @@
# Obtain the location of Google Droid fonts directory: # Obtain the location of Google Droid fonts directory:
%global google_droid_fontpath %%(dirname $(fc-list : file | grep "DroidSansFallback")) %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 Name: ghostscript
Summary: Interpreter for PostScript language & PDF Summary: Interpreter for PostScript language & PDF
Version: 9.52 Version: 9.52
Release: 3%{?dist} Release: 4%{?dist}
License: AGPLv3+ 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 Source: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%{version_short}/ghostscript-%{version}.tar.xz
Requires: libgs%{?_isa} = %{version}-%{release} Requires: libgs%{?_isa} = %{version}-%{release}
Requires: jbig2dec-libs >= 0.18 Requires: jbig2dec-libs >= %{jbig2dec_version}
# Auxiliary build requirements: # Auxiliary build requirements:
BuildRequires: automake BuildRequires: automake
@ -69,7 +75,7 @@ BuildRequires: cups-devel
BuildRequires: dbus-devel BuildRequires: dbus-devel
BuildRequires: fontconfig-devel BuildRequires: fontconfig-devel
BuildRequires: freetype-devel BuildRequires: freetype-devel
BuildRequires: jbig2dec-devel BuildRequires: jbig2dec-devel >= %{jbig2dec_version}
BuildRequires: lcms2-devel BuildRequires: lcms2-devel
BuildRequires: libidn-devel BuildRequires: libidn-devel
BuildRequires: libijs-devel BuildRequires: libijs-devel
@ -460,6 +466,9 @@ done
# ============================================================================= # =============================================================================
%changelog %changelog
* Thu May 21 2020 Anna Khaitovich <akhaitov@redhat.com> - 9.52-4
- Define %%{jbig2dec_version} global macro
* Wed May 20 2020 Anna Khaitovich <akhaitov@redhat.com> - 9.52-3 * Wed May 20 2020 Anna Khaitovich <akhaitov@redhat.com> - 9.52-3
- Require the exact jbig2dec version to avoid a mismatch between header files and library - Require the exact jbig2dec version to avoid a mismatch between header files and library