[packages/ImageMagick/dev-7.1.0] Flif needs --with flag to be enabled; add bcond
glen
glen at pld-linux.org
Sat Feb 4 09:56:07 CET 2023
commit e74c7413d34a1cb78cde7bd6487ee187e9385352
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Feb 3 15:03:14 2023 +0200
Flif needs --with flag to be enabled; add bcond
ImageMagick.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ImageMagick.spec b/ImageMagick.spec
index ba2cd17..ccd79d0 100644
--- a/ImageMagick.spec
+++ b/ImageMagick.spec
@@ -23,6 +23,7 @@
%bcond_without djvu # DJVU module
%bcond_without exr # OpenEXR module
%bcond_without fpx # FlashPIX module (which uses fpx library)
+%bcond_without flif # FLIF (Free Lossless Image Format) module (which uses flif library)
%bcond_without graphviz # dot module (which uses GraphViz libraries)
%bcond_without libjxl # JPEG-XL module (not ready for 0.6)
%bcond_without openjpeg # JPEG2000 module (which uses openjpeg 2 library)
@@ -69,7 +70,7 @@ BuildRequires: bzip2-devel >= 1.0.1
%{?with_djvu:BuildRequires: djvulibre-devel >= 3.5.0}
BuildRequires: expat-devel >= 1.95.7
BuildRequires: fftw3-devel >= 3.0
-BuildRequires: flif-devel
+%{?with_flif:BuildRequires: flif-devel}
BuildRequires: fontconfig-devel >= 2.1.0
BuildRequires: freetype-devel >= 2.0.2-2
%{?with_openmp:BuildRequires: gcc-c++ >= 6:4.2}
@@ -788,6 +789,7 @@ touch www/Magick++/NEWS.html www/Magick++/ChangeLog.html
--with-dps=no \
--with-fftw \
--with-fpx%{!?with_fpx:=no} \
+ --with-flif%{!?with_flif:=no} \
--with-gs-font-dir=%{_fontsdir}/Type1 \
--with-gslib%{!?with_gs:=no} \
--with-gvc%{!?with_graphviz:=no} \
@@ -1144,7 +1146,7 @@ rm -rf $RPM_BUILD_ROOT
%{modulesdir}/coders/exr.la
%endif
-%if 0
+%if %{with flif}
%files coder-flif
%defattr(644,root,root,755)
# R: flif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ImageMagick.git/commitdiff/e74c7413d34a1cb78cde7bd6487ee187e9385352
More information about the pld-cvs-commit
mailing list