diff --git a/gimp.spec b/gimp.spec index e4ddae3..3234e62 100644 --- a/gimp.spec +++ b/gimp.spec @@ -25,12 +25,18 @@ %else %bcond_with libheif %endif - +# --without-jpegxl on SLES 15 SP6 +%if 0%{?sle_version} && 0%{?sle_version} < 160000 +%bcond_without libjpegxl +%else +%bcond_with libjpegxl +%endif %if 0%{?sle_version} %bcond_with python_plugin %else %bcond_without python_plugin %endif + Name: gimp Version: 2.10.38 Release: 0 @@ -62,9 +68,7 @@ BuildRequires: intltool >= 0.40.1 BuildRequires: libtiff-devel BuildRequires: libwmf-devel >= 0.2.8 BuildRequires: libxslt-tools -# --without-jpegxl on SLES 15 SP6 -%if 0%{?sle_version} && 0%{?sle_version} < 160000 -%else +%if %{with jpegxl} BuildRequires: libjxl-devel >= 0.7.0 %endif BuildRequires: pkgconfig @@ -248,7 +252,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" --libexecdir=%{_libexecdir}\ --enable-default-binary\ --disable-check-update\ -%if 0%{?sle_version} && 0%{?sle_version} < 160000 +%if %{without jpegxl} --without-jpegxl\ %endif --enable-mp