Accepting request 1068214 from graphics

- add %bcond for avif

- fix dejavu fonts package name in BR

OBS-URL: https://build.opensuse.org/request/show/1068214
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gd?expand=0&rev=58
factory
Dominique Leuenberger 3 months ago committed by Git OBS Bridge
commit bd8c847248

@ -1,3 +1,13 @@
-------------------------------------------------------------------
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
- fix dejavu fonts package name in BR
-------------------------------------------------------------------
Thu Sep 30 09:05:44 UTC 2021 - pgajdos@suse.com

@ -1,7 +1,7 @@
#
# spec file for package gd
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,8 @@
#
%bcond_without avif
%define prjname libgd
%define lname libgd3
Name: gd
@ -33,15 +35,17 @@ Patch2: gd-format.patch
# could be upstreamed
Patch3: gd-aliasing.patch
# needed for tests
BuildRequires: dejavu
BuildRequires: dejavu-fonts
BuildRequires: libjpeg-devel
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

Loading…
Cancel
Save