%define php_majver %(php-config --version | cut -d. -f1-2) Name: php-imagick Version: 3.7.0 Release: 5mamba Summary: PHP wrapper to the ImageMagick library Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://pecl.php.net/package/imagick 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 BuildRequires: libMagick-devel >= 7.1.1.26 Requires: php >= %{php_majver} Requires: php <= %{php_majver}.99 %description PHP wrapper to the ImageMagick library. %debug_package %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}" %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" cd imagick-%{version} %makeinstall INSTALL_ROOT=%{buildroot} install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d cat > %{buildroot}%{_sysconfdir}/php/php.d/imagick.ini < 1 => 1 ;imagick.shutdown_sleep_count => 10 => 10 ; to allow null images ;imagick.allow_zero_dimension_images => 0 => 0 EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -ge 1 ]; then systemctl -q reload httpd fi : %postun if [ $1 -eq 0 ]; then systemctl -q reload httpd fi : %files %defattr(-,root,root) %{_sysconfdir}/php/php.d/imagick.ini %{_includedir}/php/ext/imagick/php_imagick_shared.h %{_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 * Mon Jan 15 2024 Silvan Calarco 3.7.0-3mamba - rebuilt with current ImageMagick and php * Wed May 25 2022 Silvan Calarco 3.7.0-2mamba - rebuilt by autoport with build requirements: libMagick-devel>=7.1.0.35-1mamba * Wed Apr 20 2022 Automatic Build System 3.7.0-1mamba - automatic version update by autodist * Mon Aug 09 2021 Automatic Build System 3.5.1-1mamba - automatic version update by autodist * Sun May 31 2020 Silvan Calarco 3.4.4-4mamba - rebuilt with php 7.4.6 * Thu Mar 12 2020 Silvan Calarco 3.4.4-3mamba - rebuilt with libMagick 7.0.10.0 * Sat Nov 16 2019 Silvan Calarco 3.4.4-2mamba - rebuilt by autoport with build requirements: libMagick-devel>=7.0.9.4-1mamba * Mon May 06 2019 Automatic Build System 3.4.4-1mamba - automatic version update by autodist * Wed Feb 20 2019 Silvan Calarco 3.4.3-1mamba - update to 3.4.3 * Thu Nov 03 2016 Silvan Calarco 3.4.1-1mamba - package created using the webbuild interface