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.