From 439d8ad6f4d533d8da4c99cf74770bb46948792b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 8 Mar 2021 15:07:34 +0100 Subject: enable avif support on Fedora 34 --- gd.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'gd.spec') diff --git a/gd.spec b/gd.spec index e354dec..6b18e59 100644 --- a/gd.spec +++ b/gd.spec @@ -15,10 +15,11 @@ %bcond_without webp %bcond_without raqm -%if 0%{?fedora} >= 33 -# See https://github.com/libgd/libgd/issues/677 - avif test failure -%bcond_with avif +%if 0%{?fedora} >= 34 +%bcond_without avif %else +# Not available or too old +# See https://github.com/libgd/libgd/issues/677 - avif test failure %bcond_with avif %endif @@ -44,7 +45,7 @@ Name: gd Name: gd-last %endif Version: 2.3.2 -Release: 1%{?prever}%{?short}%{?dist} +Release: 2%{?prever}%{?short}%{?dist} License: MIT URL: http://libgd.github.io/ %if 0%{?commit:1} @@ -142,6 +143,12 @@ Requires: libimagequant-devel%{?_isa} %if %{with raqm} Requires: libraqm-devel %endif +%if %{with avif} +Requires: libavif-devel +%endif +%if %{with heif} +Requires: libheif-devel +%endif %if "%{name}" == "gd-last" Conflicts: gd-devel < %{version} @@ -253,6 +260,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Mon Mar 8 2021 Remi Collet - 2.3.2-2 +- enable avif support on Fedora 34 + * Mon Mar 8 2021 Remi Collet - 2.3.2-1 - update to 2.3.2 - open https://github.com/libgd/libgd/issues/677 avif test failure -- cgit