From: Marcin Krol Date: Mon, 22 Apr 2024 21:17:26 +0000 (+0200) Subject: - added bcond to allow building without HEIF support X-Git-Tag: auto/th/imlib2-1.12.2-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=57ddbfd9eb2c02b9b4b05c2fb0359a2478d77c9c;p=packages%2Fimlib2.git - added bcond to allow building without HEIF support --- diff --git a/imlib2.spec b/imlib2.spec index b14fe37..32bbf5c 100644 --- a/imlib2.spec +++ b/imlib2.spec @@ -1,6 +1,7 @@ # # Conditional build: %bcond_without jxl # JPEG XL loader +%bcond_without heif # HEIF loader %bcond_with ps # enable postscript support %bcond_without static_libs # static library @@ -20,7 +21,7 @@ BuildRequires: bzip2-devel BuildRequires: doxygen BuildRequires: freetype-devel >= 2.1 BuildRequires: giflib-devel -BuildRequires: libheif-devel +%{?with_heif:BuildRequires: libheif-devel} BuildRequires: libid3tag-devel BuildRequires: libjpeg-devel >= 6b-18 %{?with_jxl:BuildRequires: libjxl-devel} @@ -123,6 +124,7 @@ touch test/Makefile.am %ifarch %{x8664} --enable-amd64 \ %endif + %{!?with_heif:--without-heif} \ %{!?with_jxl:--without-jxl} %{__make}