diff --git a/libjxl.changes b/libjxl.changes index 5eb247d..ba124c6 100644 --- a/libjxl.changes +++ b/libjxl.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jan 10 21:34:13 UTC 2025 - Michael Gorse + +- Disable gimp plugin on SLFO. Gimp is currently unavailable there. +- Re-add lcms2 dependency for s390x. It is used instead of skcms + on big-endian architectures. + ------------------------------------------------------------------- Tue Nov 26 20:55:18 UTC 2024 - Jan Engelhardt diff --git a/libjxl.spec b/libjxl.spec index 0d2d7e7..91fcecb 100644 --- a/libjxl.spec +++ b/libjxl.spec @@ -17,6 +17,11 @@ %define lname libjxl0_11 +%if "@BUILD_FLAVOR@" == "gtk" && 0%{?is_opensuse} +%bcond_without gimp +%else +%bcond_with gimp +%endif %if "@BUILD_FLAVOR@" == "gtk" Name: libjxl-gtk %bcond_without gtk @@ -40,11 +45,16 @@ BuildRequires: cmake BuildRequires: pkg-config %if %{with gtk} BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.36 +%if %{with gimp} BuildRequires: pkgconfig(gimp-2.0) >= 2.10 BuildRequires: pkgconfig(gimpui-2.0) >= 2.10 %endif +%endif BuildRequires: giflib-devel >= 5.1 BuildRequires: pkgconfig(OpenEXR) +%ifarch s390x +BuildRequires: pkgconfig(lcms2) >= 2.12 +%endif BuildRequires: pkgconfig(libavif) BuildRequires: pkgconfig(libbrotlicommon) BuildRequires: pkgconfig(libbrotlidec) @@ -100,12 +110,14 @@ Supplements: (%lname and gdk-pixbuf) %description -n gdk-pixbuf-loader-jxl This package provides a libjxl-based gdk-pixbuf loader for JPEG XL files. +%if %{with gimp} %package -n gimp-plugin-jxl Summary: Plugin for GIMP to enable working with JPEG XL files Supplements: (%lname and gimp) %description -n gimp-plugin-jxl This package provides a plugin for GIMP 2.0 to enable it to work with JPEG XL files. +%endif %package -n jxl-thumbnailer Summary: Generate thumbnails for JPEG XL files @@ -172,8 +184,10 @@ rm -Rf "$b/%_libdir"/libjxl* "$b/%_bindir" "$b/%_includedir" "$b/%_libdir/pkgcon %_datadir/mime/packages/* %_libdir/gdk-pixbuf-2.0/*/loaders/libpixbufloader-jxl.so +%if %{with gimp} %files -n gimp-plugin-jxl %_libdir/gimp/2.0/plug-ins/file-jxl/ +%endif %files -n jxl-thumbnailer %dir %_datadir/thumbnailers