diff --git a/php-imagick.spec b/php-imagick.spec index fdc8967..f09d548 100644 --- a/php-imagick.spec +++ b/php-imagick.spec @@ -1,7 +1,7 @@ %define php_majver %(php-config --version | cut -d. -f1-2) Name: php-imagick Version: 3.7.0 -Release: 4mamba +Release: 5mamba Summary: PHP wrapper to the ImageMagick library Group: System/Servers Vendor: openmamba @@ -12,6 +12,7 @@ Source: https://pecl.php.net/get/imagick-%{version}.tgz License: PHP License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libMagick-devel BuildRequires: libgomp-devel ## AUTOBUILDREQ-END BuildRequires: php-devel >= 8.3.1-1mamba @@ -26,13 +27,15 @@ PHP wrapper to the ImageMagick library. %prep %setup -q -c %{name}-%{version} +# Ensure package version is set +sed -e "s/@PACKAGE_VERSION@/%{version}/" -i imagick-%{version}/php_imagick.h package.xml %build cd imagick-%{version} phpize + %configure \ - CFLAGS="%{optflags} `pkgconf MagickWand-7.Q16HDRI --cflags`" - LIBS="`pkgconf MagickWand-7.Q16HDRI --libs`" + CFLAGS="%{optflags}" %make @@ -89,6 +92,9 @@ fi %{_libdir}/php/extensions/imagick.so %changelog +* Tue Jul 09 2024 Automatic Build System 3.7.0-5mamba +- remove obsolete configure CFLAGS and LIBS causing module to crash with php + * Tue Jan 16 2024 Automatic Build System 3.7.0-4mamba - rebuilt by autoport with build requirements: php-devel>=8.3.1-1mamba