From 2fc88990fe8d6294a4cc0255dcfb5cea7f1647335c53d00cb88efe7856a13458 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 21 Sep 2023 14:07:16 +0000 Subject: [PATCH] add _multibuild description OBS-URL: https://build.opensuse.org/package/show/graphics/libjxl?expand=0&rev=27 --- _multibuild | 4 ++++ libjxl.spec | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..0ab1057 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + standard + gtk + diff --git a/libjxl.spec b/libjxl.spec index f4c8ee3..36f4506 100644 --- a/libjxl.spec +++ b/libjxl.spec @@ -18,7 +18,11 @@ Name: libjxl %define lname libjxl0_8 -%bcond_without gtk +%if "@BUILD_FLAVOR@" == "gtk" +%bcond_without gtk +%else +%bcond_with gtk +%endif Version: 0.8.2 Release: 0 Summary: JPEG XL reference implementation @@ -79,7 +83,9 @@ Command-line utilities to convert from/to JPEG XL. %package -n gdk-pixbuf-loader-jxl Summary: A gdk-pixbuf loader for JPEG-XL using libjxl Supplements: (%lname and gdk-pixbuf) +%if %{with gtk} %gdk_pixbuf_loader_requires +%endif %description -n gdk-pixbuf-loader-jxl This package provides a libjxl-based gdk-pixbuf loader for JPEG XL files.