summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-01-08 11:12:43 +0100
committerRemi Collet <remi@php.net>2024-01-08 11:12:43 +0100
commitf7650f05136e9d96e706484a1a7455d481cc02c1 (patch)
treef19574320d7a661d66266556fbbd918e50abcf28
parent347c6215af0273dc26699310e1a5a29c8d07312d (diff)
fix config command using patch from https://github.com/ImageMagick/ImageMagick6/pull/303
-rw-r--r--0001-fix-PKG_CONFIG_LIBDIR.patch59
-rw-r--r--ImageMagick6.spec6
2 files changed, 65 insertions, 0 deletions
diff --git a/0001-fix-PKG_CONFIG_LIBDIR.patch b/0001-fix-PKG_CONFIG_LIBDIR.patch
new file mode 100644
index 0000000..364dcb9
--- /dev/null
+++ b/0001-fix-PKG_CONFIG_LIBDIR.patch
@@ -0,0 +1,59 @@
+From 169852b58e8cedfcf3a34ae0513ceb693a246851 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 8 Jan 2024 10:39:29 +0100
+Subject: [PATCH] fix PKG_CONFIG_LIBDIR
+
+---
+ Magick++/bin/Magick++-config.in | 4 +++-
+ magick/MagickCore-config.in | 4 +++-
+ wand/MagickWand-config.in | 4 +++-
+ 3 files changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/Magick++/bin/Magick++-config.in b/Magick++/bin/Magick++-config.in
+index 3f96f4ddd..19450abcd 100755
+--- a/Magick++/bin/Magick++-config.in
++++ b/Magick++/bin/Magick++-config.in
+@@ -7,7 +7,9 @@
+
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-export PKG_CONFIG_LIBDIR="${exec_prefix}/lib/pkgconfig"
++libdir=@libdir@
++pkgconfigdir=@pkgconfigdir@
++export PKG_CONFIG_LIBDIR="${pkgconfigdir}"
+
+ usage='Usage: Magick++-config [--cppflags] [--cxxflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]
+
+diff --git a/magick/MagickCore-config.in b/magick/MagickCore-config.in
+index bf78a198c..5b7f492d5 100644
+--- a/magick/MagickCore-config.in
++++ b/magick/MagickCore-config.in
+@@ -6,7 +6,9 @@
+
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-export PKG_CONFIG_LIBDIR="${exec_prefix}/lib/pkgconfig
++libdir=@libdir@
++pkgconfigdir=@pkgconfigdir@
++export PKG_CONFIG_LIBDIR="${pkgconfigdir}"
+
+ usage="\
+ Usage: MagickCore-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"
+diff --git a/wand/MagickWand-config.in b/wand/MagickWand-config.in
+index d38b661b4..03680cfdc 100644
+--- a/wand/MagickWand-config.in
++++ b/wand/MagickWand-config.in
+@@ -6,7 +6,9 @@
+
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-export PKG_CONFIG_LIBDIR="${exec_prefix}/lib/pkgconfig
++libdir=@libdir@
++pkgconfigdir=@pkgconfigdir@
++export PKG_CONFIG_LIBDIR="${pkgconfigdir}"
+
+ usage="\
+ Usage: MagickWand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"
+--
+2.43.0
+
diff --git a/ImageMagick6.spec b/ImageMagick6.spec
index 5654789..2b92bb6 100644
--- a/ImageMagick6.spec
+++ b/ImageMagick6.spec
@@ -73,6 +73,8 @@ Url: http://www.imagemagick.org/
#Source0: https://www.imagemagick.org/download/ImageMagick-%%{VER}-%%{Patchlevel}.tar.xz
Source0: https://imagemagick.org/archive/ImageMagick-%{VER}-%{Patchlevel}.tar.xz
+Patch0: 0001-fix-PKG_CONFIG_LIBDIR.patch
+
BuildRequires: gcc
BuildRequires: gcc-c++
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
@@ -392,6 +394,8 @@ however.
%prep
%setup -q -n %{libname}-%{VER}-%{Patchlevel}
+%patch -P0 -p1
+
# for %%doc
mkdir Magick++/examples
cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples
@@ -653,6 +657,8 @@ fi
- update to version 6.9.13 patch level 4
- add weak dependency on libheif-freeworld from RPMFusion (Fedora and EL-9)
- drop patch merged upstream
+- fix config command using patch from
+ https://github.com/ImageMagick/ImageMagick6/pull/303
* Mon Jan 1 2024 Remi Collet <remi@remirepo.net> - 6.9.13.3-1
- update to version 6.9.13 patch level 3