- add %bcond for avif
OBS-URL: https://build.opensuse.org/package/show/graphics/gd?expand=0&rev=71
This commit is contained in:
parent
c36ac93d08
commit
01b6eca476
@ -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
|
Mon Feb 27 09:14:03 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
6
gd.spec
6
gd.spec
@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without avif
|
||||||
|
|
||||||
%define prjname libgd
|
%define prjname libgd
|
||||||
%define lname libgd3
|
%define lname libgd3
|
||||||
Name: gd
|
Name: gd
|
||||||
@ -39,9 +41,11 @@ BuildRequires: libpng-devel
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(fontconfig)
|
BuildRequires: pkgconfig(fontconfig)
|
||||||
BuildRequires: pkgconfig(freetype2)
|
BuildRequires: pkgconfig(freetype2)
|
||||||
|
%if %{with avif}
|
||||||
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
||||||
BuildRequires: pkgconfig(libavif)
|
BuildRequires: pkgconfig(libavif)
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libtiff-4)
|
BuildRequires: pkgconfig(libtiff-4)
|
||||||
BuildRequires: pkgconfig(libwebp)
|
BuildRequires: pkgconfig(libwebp)
|
||||||
BuildRequires: pkgconfig(xpm)
|
BuildRequires: pkgconfig(xpm)
|
||||||
@ -108,8 +112,10 @@ export CFLAGS="%{optflags} -ffp-contract=off"
|
|||||||
--with-xpm \
|
--with-xpm \
|
||||||
--enable-gd-formats=yes \
|
--enable-gd-formats=yes \
|
||||||
--with-webp \
|
--with-webp \
|
||||||
|
%if %{with avif}
|
||||||
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
||||||
--with-avif \
|
--with-avif \
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
--disable-static
|
--disable-static
|
||||||
|
Loading…
x
Reference in New Issue
Block a user