From 4a5c2d3bbb6601767c9eac6dfb13f4cf2e7cc4c6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Mar 2021 14:07:04 +0100 Subject: enable avif support on Fedora 33+ --- gd.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'gd.spec') diff --git a/gd.spec b/gd.spec index 832c51f..18d4bca 100644 --- a/gd.spec +++ b/gd.spec @@ -15,7 +15,7 @@ %bcond_without webp %bcond_without raqm -%if 0%{?fedora} >= 34 +%if 0%{?fedora} >= 33 %bcond_without avif %else # Not available or too old @@ -45,7 +45,7 @@ Name: gd Name: gd-last %endif Version: 2.3.2 -Release: 2%{?prever}%{?short}%{?dist} +Release: 3%{?prever}%{?short}%{?dist} License: MIT URL: http://libgd.github.io/ %if 0%{?commit:1} @@ -58,6 +58,8 @@ Source0: https://github.com/libgd/libgd/releases/download/gd-%{version}/li # Missing, temporary workaround, fixed upstream for next version Source1: https://raw.githubusercontent.com/libgd/libgd/gd-%{version}/tests/heif/label.heic +Patch0: libgd-upstream.patch + BuildRequires: freetype-devel BuildRequires: fontconfig-devel BuildRequires: gettext-devel @@ -78,10 +80,10 @@ BuildRequires: libimagequant-devel BuildRequires: libraqm-devel %endif %if %{with avif} -BuildRequires: libavif-devel +BuildRequires: libavif-devel >= 0.8.2 %endif %if %{with heif} -BuildRequires: libheif-devel +BuildRequires: libheif-devel >= 1.7.0 %endif BuildRequires: libX11-devel BuildRequires: libXpm-devel @@ -166,6 +168,7 @@ files for gd, a graphics library for creating PNG and JPEG graphics. %prep %setup -q -n libgd-%{version}%{?prever:-%{prever}} install -m 0644 %{SOURCE1} tests/heif/ +%patch0 -p1 -b .up : $(perl config/getver.pl) @@ -277,6 +280,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Wed Mar 17 2021 Remi Collet - 2.3.2-3 +- enable avif support on Fedora 33+ + * Mon Mar 8 2021 Remi Collet - 2.3.2-2 - enable avif support on Fedora 34 -- cgit