--- /dev/null
+--- php-pecl-imagick-3.0.1/config.m4~ 2010-11-18 22:16:01.000000000 +0100
++++ php-pecl-imagick-3.0.1/config.m4 2013-06-13 10:04:07.872529471 +0200
+@@ -52,8 +52,8 @@
+ else
+ AC_MSG_CHECKING(for MagickWand.h header file)
+
+- if test -r $WAND_DIR/include/ImageMagick/wand/MagickWand.h; then
+- AC_MSG_RESULT(found in $WAND_DIR/include/ImageMagick/wand/MagickWand.h)
++ if test -r $WAND_DIR/include/ImageMagick-6/wand/MagickWand.h; then
++ AC_MSG_RESULT(found in $WAND_DIR/include/ImageMagick-6/wand/MagickWand.h)
+ else
+ AC_MSG_ERROR(Cannot locate header file MagickWand.h)
+ fi
Name: %{php_name}-pecl-%{modname}
# NOTE: 3.1.x in DEVEL branch
Version: 3.0.1
-Release: 4
+Release: 5
License: PHP 3.01
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: e2167713316639705202cf9b6cb1fdb1
+Patch0: ImageMagick-6.8.patch
URL: http://pecl.php.net/package/imagick/
BuildRequires: %{php_name}-devel >= 3:5.1.3
BuildRequires: ImageMagick-devel >= 1:6.2.4.0
%prep
%setup -q -c
mv %{modname}-%{version}/* .
+%patch0 -p1
%build
phpize
-%configure
+%configure \
+ php_cv_cc_dashr=false
%{__make} \
CFLAGS_CLEAN="%{rpmcflags}"