From 3534f5e56ff7746c7d30193cf7e64f2822d39592 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Thu, 15 Mar 2018 12:56:27 -0400 Subject: [PATCH] use bundled libjpeg on epel7 --- chromium.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 252a9a3e..db28101f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -84,12 +84,14 @@ BuildRequires: libicu-devel >= 5.4 %global bundleharfbuzz 1 %global bundlelibwebp 1 %global bundlelibpng 1 +%global bundlelibjpeg 1 %else %global bundleharfbuzz 0 %global bundleopus 1 %global bundlelibusbx 0 %global bundlelibwebp 0 %global bundlelibpng 0 +%global bundlelibjpeg 0 %endif # Needs at least harfbuzz 1.7.3 now. @@ -338,7 +340,12 @@ BuildRequires: libffi-devel # Not newer than 54 (at least not right now) BuildRequires: libicu-devel = 54.1 %endif +%if 0%{?bundlelibjpeg} +# If this is true, we're using the bundled libjpeg +# which we need to do because the RHEL 7 libjpeg doesn't work for chromium anymore +%else BuildRequires: libjpeg-devel +%endif %if 0%{?bundlelibpng} # If this is true, we're using the bundled libpng # which we need to do because the RHEL 7 libpng doesn't work right anymore @@ -482,7 +489,9 @@ Provides: bundled(libaddressinput) = 0 Provides: bundled(libdrm) = 2.4.70 Provides: bundled(libevent) = 1.4.15 Provides: bundled(libjingle) = 9564 -# Provides: bundled(libjpeg-turbo) = 1.4.90 +%if 0%{?bundlelibjpeg} +Provides: bundled(libjpeg-turbo) = 1.4.90 +%endif Provides: bundled(libphonenumber) = a4da30df63a097d67e3c429ead6790ad91d36cf4 %if 0%{?bundlelibpng} Provides: bundled(libpng) = 1.6.22 @@ -1038,7 +1047,10 @@ build/linux/unbundle/replace_gn_files.py --system-libraries \ icu \ %endif libdrm \ +%if %{bundlelibjpeg} +%else libjpeg \ +%endif %if %{bundlelibpng} %else libpng \