diff --git a/gd.changes b/gd.changes index af849b5..f26514f 100644 --- a/gd.changes +++ b/gd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 28 15:04:29 UTC 2023 - pgajdos@suse.com + +- add %bcond for avif + ------------------------------------------------------------------- Mon Feb 27 09:14:03 UTC 2023 - pgajdos@suse.com diff --git a/gd.spec b/gd.spec index 9bea219..f43b3ba 100644 --- a/gd.spec +++ b/gd.spec @@ -16,6 +16,8 @@ # +%bcond_without avif + %define prjname libgd %define lname libgd3 Name: gd @@ -39,9 +41,11 @@ BuildRequires: libpng-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) +%if %{with avif} %if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300 BuildRequires: pkgconfig(libavif) %endif +%endif BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(xpm) @@ -108,8 +112,10 @@ export CFLAGS="%{optflags} -ffp-contract=off" --with-xpm \ --enable-gd-formats=yes \ --with-webp \ +%if %{with avif} %if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300 --with-avif \ +%endif %endif --with-zlib \ --disable-static