diff options
-rw-r--r-- | ImageMagick6.spec | 67 |
1 files changed, 1 insertions, 66 deletions
diff --git a/ImageMagick6.spec b/ImageMagick6.spec index 9bbae74..29205d2 100644 --- a/ImageMagick6.spec +++ b/ImageMagick6.spec @@ -25,12 +25,7 @@ %global with_raw 1 %global with_raqm 1 %global with_gvc 1 - -%if 0%{?fedora} || 0%{?rhel} >= 8 %global with_lqr 1 -%else -%global with_lqr 0 -%endif %if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 || 0%{?_with_rpmfusion:1} # from distribution or from rpmfusion, when enabled in mock config @@ -41,29 +36,16 @@ %global libname ImageMagick -%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -# ImageMagick 7 was briefly sent to Fedora 27 and Rawhide in 2017; -# the epoch was necessary to downgrade them back to 6. -Epoch: 1 -%else -Epoch: 0 -%endif - %if 0%{?fedora} >= 38 # No need to relocate as ImageMagick is v7 Name: %{libname}6 %global move 0 %else -%if 0%{?fedora} >= 34 || 0%{?rhel} >= 8 # No need to relocate as same soname Name: %{libname} %global move 0 -%else -# Need to relocate as different soname -Name: %{libname}6 -%global move 1 -%endif %endif +Epoch: 1 Version: %{VER}.%{Patchlevel} Release: 1%{?dist} Summary: An X application for displaying and manipulating images @@ -75,11 +57,7 @@ Source0: https://imagemagick.org/archive/ImageMagick-%{VER}-%{Patchlevel} BuildRequires: gcc BuildRequires: gcc-c++ -%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: pkgconfig(bzip2) -%else -BuildRequires: bzip2-devel -%endif BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libtiff-4) @@ -107,33 +85,19 @@ BuildRequires: pkgconfig(lcms2) BuildRequires: pkgconfig(libraw) >= 0.14.8 %endif %if %{with_webp} -%if 0%{?rhel} == 7 -BuildRequires: libwebp7-devel -%else BuildRequires: pkgconfig(libwebp) %endif -%endif %if %{with_jbig} BuildRequires: jbigkit-devel %endif %if %{with_jp2} -%if 0%{?rhel} == 7 -# See https://github.com/libvips/libvips/issues/764 -# vips pulls poppler (libopenjpeg) and IM (libopenjp2) -BuildRequires: openjpeg2-static-devel -%else BuildRequires: pkgconfig(libopenjp2) %endif -%endif %if %{with_gvc} BuildRequires: graphviz-devel >= 2.9.0 %endif %if %{with_raqm} -%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: pkgconfig(raqm) -%else -BuildRequires: libraqm-devel -%endif %endif %if %{with_lqr} BuildRequires: liblqr-1-devel @@ -188,20 +152,14 @@ Requires: libjpeg-devel%{?_isa} Requires: OpenEXR-devel%{?_isa} Requires: lcms2-devel%{?_isa} %if %{with_webp} -%if 0%{?rhel} == 7 -Requires: libwebp7-devel%{?_isa} -%else Requires: libwebp-devel%{?_isa} %endif -%endif %if %{with_jbig} Requires: jbigkit-devel%{?_isa} %endif %if %{with_jp2} -%if 0%{?rhel} != 7 Requires: openjpeg2-devel%{?_isa} %endif -%endif Requires: jasper-devel%{?_isa} Requires: pkgconfig %if "%{name}" != "%{libname}" @@ -234,16 +192,11 @@ Obsoletes: ImageMagick-last-libs < %{epoch}:%{version} Obsoletes: %{libname}6-libs <= %{epoch}:%{version}-%{release} %endif # default font is OpenSans-Regular -%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Recommends: urw-base35-fonts Recommends: open-sans-fonts # Additional codecs Recommends: %{name}-djvu%{?_isa} = %{epoch}:%{version}-%{release} Recommends: %{name}-heic%{?_isa} = %{epoch}:%{version}-%{release} -%else -Requires: urw-base35-fonts -Requires: open-sans-fonts -%endif %description libs Provides the shared libraries and plugins of %{name}. @@ -256,11 +209,7 @@ for applications requiring this libraries. %if %{with_djvu} %package djvu Summary: DjVu plugin for ImageMagick -%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: pkgconfig(ddjvuapi) -%else -BuildRequires: djvulibre-devel -%endif Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} Obsoletes: ImageMagick-last-djvu < %{epoch}:%{version} %if "%{name}" == "%{libname}" @@ -280,13 +229,7 @@ for applications requiring this libraries. %if %{with_libheif} %package heic Summary: HEIC plugin for ImageMagick -%if 0%{?rhel} == 7 -# ensure we use our on EL-7 -BuildRequires: pkgconfig(libheif) >= 1.4.0 -Requires: libheif%{?_isa} >= 1.4.0 -%else BuildRequires: pkgconfig(libheif) -%endif %if 0%{?fedora} >= 37 || 0%{?rhel} >= 9 # x265 HEVC encoder from RPMFusion Recommends: libheif-freeworld%{?_isa} @@ -552,14 +495,6 @@ the new location (e.g. httpd, php-fpm). EOF fi -%if 0%{?fedora} < 28 && 0%{?rhel} < 8 -%post libs -p /sbin/ldconfig -%post c++ -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig -%postun c++ -p /sbin/ldconfig -%endif - %files %{_bindir}/[a-z]* |