[packages/SDL2_image] add bconds for new formats (avif, jxl)
atler
atler at pld-linux.org
Wed Jul 13 10:55:27 CEST 2022
commit 9c3fbf923c90cff1d9eb5a05a972eff1bbf6cf09
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Jul 13 10:54:23 2022 +0200
add bconds for new formats (avif, jxl)
SDL2_image.spec | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/SDL2_image.spec b/SDL2_image.spec
index 3b1761a..85a8861 100644
--- a/SDL2_image.spec
+++ b/SDL2_image.spec
@@ -1,3 +1,8 @@
+#
+# Conditional build:
+%bcond_without avif # AV1 Image File Format support
+%bcond_without jxl # JPEG XL support
+
Summary: Simple DirectMedia Layer 2 - Sample Image Loading Library
Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków dla SDL2
Summary(pt_BR.UTF-8): Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens
@@ -14,18 +19,19 @@ URL: https://github.com/libsdl-org/SDL_image
BuildRequires: SDL2-devel >= 2.0.9
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: libavif-devel
+%{?with_avif:BuildRequires: libavif-devel}
BuildRequires: libjpeg-devel >= 8
-BuildRequires: libjxl-devel
+%{?with_jxl:BuildRequires: libjxl-devel}
BuildRequires: libpng-devel >= 2:1.6.0
BuildRequires: libtiff-devel >= 4
BuildRequires: libtool >= 2:2
BuildRequires: libwebp-devel >= 0.6.0
BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: rpmbuild(macros) >= 1.527
Requires: SDL2 >= 2.0.9
-Suggests: libavif
+%{?with_avif:Suggests: libavif}
Suggests: libjpeg >= 8
-Suggests: libjxl
+%{?with_jxl:Suggests: libjxl}
Suggests: libpng >= 2:1.6.0
Suggests: libtiff >= 4
Suggests: libwebp >= 0.6.0
@@ -99,13 +105,13 @@ Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
%{__automake}
%configure \
--disable-stb-image \
- --enable-avif \
+ %{__enable_disable avif} \
--enable-avif-shared \
--enable-bmp \
--enable-gif \
--enable-jpg \
--enable-jpg-shared \
- --enable-jxl \
+ %{__enable_disable jxl} \
--enable-jxl-shared \
--enable-lbm \
--enable-pcx \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/SDL2_image.git/commitdiff/9c3fbf923c90cff1d9eb5a05a972eff1bbf6cf09
More information about the pld-cvs-commit
mailing list