rebuilt with current ImageMagick and php [release 3.7.0-3mamba;Mon Jan 15 2024]

This commit is contained in:
Silvan Calarco 2024-01-16 10:11:21 +01:00
parent 8273f48946
commit 4318400761

View File

@ -1,7 +1,7 @@
%define php_majver %(php-config --version | cut -d. -f1-2)
Name: php-imagick
Version: 3.7.0
Release: 2mamba
Release: 3mamba
Summary: PHP wrapper to the ImageMagick library
Group: System/Servers
Vendor: openmamba
@ -12,11 +12,10 @@ 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: libMagick-devel >= 7.1.0.35-1mamba
BuildRequires: php-devel >= 7.4.6
BuildRequires: libMagick-devel >= 7.1.1.26
BuildRequires: php-devel >= 7.4.33
Requires: php >= %{php_majver}
Requires: php <= %{php_majver}.99
@ -31,7 +30,10 @@ PHP wrapper to the ImageMagick library.
%build
cd imagick-%{version}
phpize
%configure
%configure \
CFLAGS="%{optflags} `pkgconf MagickWand-7.Q16HDRI --cflags`"
LIBS="`pkgconf MagickWand-7.Q16HDRI --libs`"
%make
%install
@ -43,6 +45,26 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d
cat > %{buildroot}%{_sysconfdir}/php/php.d/imagick.ini <<EOF
; Enable imagick extension module
extension=imagick.so
; Documentation: http://php.net/imagick
; Don't check builtime and runtime versions of ImageMagick
imagick.skip_version_check=1
; Fixes a drawing bug with locales that use ',' as float separators.
;imagick.locale_fix=0
; Used to enable the image progress monitor.
;imagick.progress_monitor=0
; multi-thread management
;imagick.set_single_thread => 1 => 1
;imagick.shutdown_sleep_count => 10 => 10
; to allow null images
;imagick.allow_zero_dimension_images => 0 => 0
EOF
%clean
@ -67,6 +89,9 @@ fi
%{_libdir}/php/extensions/imagick.so
%changelog
* Mon Jan 15 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.0-3mamba
- rebuilt with current ImageMagick and php
* Wed May 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.0-2mamba
- rebuilt by autoport with build requirements: libMagick-devel>=7.1.0.35-1mamba