From 3147fefdfdd062b964b06efc7149e7453900ca6a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 8 Mar 2021 15:21:47 +0100 Subject: [PATCH] enable avif support use bcond --- gd.spec | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/gd.spec b/gd.spec index 54321ba..f216b7a 100644 --- a/gd.spec +++ b/gd.spec @@ -1,11 +1,17 @@ -%global with_liq 1 -%global with_raqm 1 +# Enabled by default +%bcond_without liq +%bcond_without raqm +%bcond_without avif + +# Not available in Fedora, only in rpmfusion +# Also see https://github.com/libgd/libgd/issues/678 segfault +%bcond_with heif Summary: A graphics library for quick creation of PNG or JPEG images Name: gd 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} @@ -25,12 +31,18 @@ BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libwebp-devel -%if %{with_liq} +%if %{with liq} BuildRequires: libimagequant-devel %endif -%if %{with_raqm} +%if %{with raqm} BuildRequires: libraqm-devel %endif +%if %{with avif} +BuildRequires: libavif-devel +%endif +%if %{with heif} +BuildRequires: libheif-devel +%endif BuildRequires: libX11-devel BuildRequires: libXpm-devel BuildRequires: zlib-devel @@ -74,12 +86,18 @@ Requires: libwebp-devel%{?_isa} Requires: libX11-devel%{?_isa} Requires: libXpm-devel%{?_isa} Requires: zlib-devel%{?_isa} -%if %{with_liq} +%if %{with liq} Requires: libimagequant-devel%{?_isa} %endif -%if %{with_raqm} +%if %{with raqm} Requires: libraqm-devel %endif +%if %{with avif} +Requires: libavif-devel +%endif +%if %{with heif} +Requires: libheif-devel +%endif %description devel @@ -164,6 +182,10 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Mon Mar 8 2021 Remi Collet - 2.3.2-2 +- enable avif support +- use bcond + * Mon Mar 08 2021 Ondrej Dubaj - 2.3.2-1 - rebase to version 2.3.2