summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-03-14 17:32:42 +0100
committerRemi Collet <remi@php.net>2025-03-14 17:32:42 +0100
commit9eab1bf812611f97a4cab77a99b4b1345ef89213 (patch)
tree39febfcca0674c7b0f2482f0184a0cc64a8f416c
parent9ff677fb029340eada3753ad8ebfa1a8277623a4 (diff)
add workaround for old libgs
reported as https://github.com/ImageMagick/ImageMagick/issues/8019 see https://github.com/remicollet/remirepo/issues/295
-rw-r--r--ImageMagick6.spec13
1 files changed, 12 insertions, 1 deletions
diff --git a/ImageMagick6.spec b/ImageMagick6.spec
index d8eaaff..35e8e49 100644
--- a/ImageMagick6.spec
+++ b/ImageMagick6.spec
@@ -47,7 +47,7 @@ Name: %{libname}
%endif
Epoch: 1
Version: %{VER}.%{Patchlevel}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: An X application for displaying and manipulating images (legacy)
License: ImageMagick
Url: https://legacy.imagemagick.org/
@@ -69,6 +69,8 @@ BuildRequires: perl-devel
BuildRequires: perl-generators
%if %{with_gslib}
BuildRequires: libgs-devel
+# for check in configure
+BuildRequires: ghostscript
%endif
BuildRequires: libwmf-devel
BuildRequires: pkgconfig(jasper)
@@ -329,6 +331,10 @@ however.
mkdir Magick++/examples
cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples
+%if 0%{?rhel} == 8 || 0%{?rhel} == 9
+sed -e '/GSAlphaDevice/s/png16malpha/pngalpha/' -i configure.ac configure
+%endif
+
%build
export CFLAGS="%{optflags} -DIMPNG_SETJMP_IS_THREAD_SAFE"
@@ -574,6 +580,11 @@ fi
%changelog
+* Fri Mar 14 2025 Remi Collet <remi@remirepo.net> - 6.9.13.23-2
+- add workaround for old libgs
+ reported as https://github.com/ImageMagick/ImageMagick/issues/8019
+ see https://github.com/remicollet/remirepo/issues/295
+
* Mon Mar 10 2025 Remi Collet <remi@remirepo.net> - 6.9.13.23-1
- update to version 6.9.13 patch level 23