From 12a0c678cfa96692af46c1598fa50f660abe9089 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 16 Mar 2017 10:39:11 +0100 Subject: ImageMagick6: improve build options --- ImageMagick6.spec | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/ImageMagick6.spec b/ImageMagick6.spec index 2f3e608..bbe769b 100644 --- a/ImageMagick6.spec +++ b/ImageMagick6.spec @@ -44,6 +44,18 @@ %global with_gslib 1 %endif +%if 0%{?fedora} < 22 && 0%{?rhel} < 7 +%global with_raqm 0 +%else +%global with_raqm 1 +%endif + +%if 0%{?fedora} +%global with_lqr 1 +%else +%global with_lqr 0 +%endif + %global with_gvc 1 %ifarch x86_64 @@ -59,7 +71,7 @@ Name: %{libname} Name: %{libname}6 %endif Version: %{VER}.%{Patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Summary: An X application for displaying and manipulating images Group: Applications/Multimedia License: ImageMagick @@ -98,6 +110,12 @@ BuildRequires: openjpeg2-devel >= 2.1.0 %if %{with_gvc} BuildRequires: graphviz-devel >= 2.9.0 %endif +%if %{with_raqm} +BuildRequires: libraqm-devel +%endif +%if %{with_lqr} +BuildRequires: liblqr-1-devel +%endif Requires: %{name}-libs%{?_isa} = %{version}-%{release} Obsoletes: ImageMagick-last < %{version} @@ -300,10 +318,15 @@ cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples --with-x \ --with-threads \ --with-magick_plus_plus \ +%if %{with_raqm} + --with-raqm \ +%else + --without-raqm \ +%endif %if %{with_gslib} --with-gslib \ %else - --with-gslib=no \ + --without-gslib \ %endif --with-wmf \ --with-lcms \ @@ -312,12 +335,23 @@ cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples --with-xml \ %if %{with_webp} --with-webp \ +%else + --without-webp \ %endif %if %{with_jbig} --with-jbig \ +%else + --without-jbig \ %endif %if %{with_jp2} --with-openjp2 \ +%else + --without-openjp2 \ +%endif +%if %{with_lqr} + --with-lqr \ +%else + --without-lqr \ %endif %if %{with_gvc} --with-gvc \ @@ -521,6 +555,11 @@ fi %changelog +* Thu Mar 16 2017 Remi Collet - 6.9.8.0-2 +- cleanup build options +- build --with-raqm when available +- build --with-lqr when available + * Sun Mar 12 2017 Remi Collet - 6.9.8.0-1 - update to version 6.9.8 -- cgit