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
%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