Proper with/without

OBS-URL: https://build.opensuse.org/package/show/graphics/gimp?expand=0&rev=75
This commit is contained in:
Dirk Stoecker 2024-11-28 14:47:10 +00:00 committed by Git OBS Bridge
parent 69c959349e
commit 903b548dad

View File

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