diff options
Diffstat (limited to 'ImageMagick6.spec')
-rw-r--r-- | ImageMagick6.spec | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/ImageMagick6.spec b/ImageMagick6.spec index 66db5da..2197476 100644 --- a/ImageMagick6.spec +++ b/ImageMagick6.spec @@ -82,23 +82,32 @@ Source0: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{VER}-%{P BuildRequires: gcc BuildRequires: gcc-c++ -# TODO: Could use pkgconfig(bzip2) for Fedora >= 27 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: pkgconfig(bzip2) +%else BuildRequires: bzip2-devel +%endif BuildRequires: pkgconfig(freetype2) -# TODO: Needs libjpeg-turbo-devel for RHEL 6 -BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) -# TODO: Needs libtiff-devel for RHEL 6 +%if 0%{?fedora} || 0%{?rhel} >= 7 BuildRequires: pkgconfig(libtiff-4) +BuildRequires: pkgconfig(libjpeg) +%else +BuildRequires: libtiff-devel +BuildRequires: libjpeg-turbo-devel +%endif BuildRequires: giflib-devel BuildRequires: pkgconfig(zlib) BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: ghostscript-devel %if %{with_djvu} -# TODO: Could use pkgconfig(ddjvuapi) for Fedora >= 27 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: pkgconfig(ddjvuapi) +%else BuildRequires: djvulibre-devel %endif +%endif BuildRequires: libwmf-devel BuildRequires: pkgconfig(jasper) BuildRequires: libtool-ltdl-devel @@ -109,14 +118,11 @@ BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(OpenEXR) -# TODO: Needs lcms2-devel for RHEL 6 BuildRequires: pkgconfig(lcms2) %if %{with_raw} -# TODO: Needs LibRaw-devel for RHEL 6 BuildRequires: pkgconfig(libraw) >= 0.14.8 %endif %if %{with_webp} -# TODO: Needs libwebp-devel for RHEL 6 BuildRequires: pkgconfig(libwebp) %endif %if %{with_jbig} @@ -128,17 +134,23 @@ BuildRequires: jbigkit-devel # vips pulls poppler (libopenjpeg) and IM (libopenjp2) BuildRequires: openjpeg2-static-devel %else -# TODO: Could use pkgconfig(libopenjp2) for Fedora >= 27 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: pkgconfig(libopenjp2) +%else BuildRequires: openjpeg2-devel >= 2.1.0 %endif %endif +%endif %if %{with_gvc} BuildRequires: graphviz-devel >= 2.9.0 %endif %if %{with_raqm} -# TODO: Could use pkgconfig(raqm) for Fedora >= 27 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: pkgconfig(raqm) +%else BuildRequires: libraqm-devel %endif +%endif %if %{with_lqr} BuildRequires: liblqr-1-devel %endif |