2024-01-06 09:59:32 +01:00
|
|
|
%define php_majver %(php-config --version | cut -d. -f1-2)
|
|
|
|
Name: php-imagick
|
2024-01-06 09:59:32 +01:00
|
|
|
Version: 3.7.0
|
2024-07-09 23:17:59 +02:00
|
|
|
Release: 5mamba
|
2024-01-06 09:59:32 +01:00
|
|
|
Summary: PHP wrapper to the ImageMagick library
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://pecl.php.net/package/imagick
|
|
|
|
Source: https://pecl.php.net/get/imagick-%{version}.tgz
|
|
|
|
License: PHP License
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-07-09 23:17:59 +02:00
|
|
|
BuildRequires: libMagick-devel
|
2024-01-06 09:59:32 +01:00
|
|
|
BuildRequires: libgomp-devel
|
2024-01-06 09:59:32 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-19 17:59:27 +01:00
|
|
|
BuildRequires: php-devel >= 8.3.1-1mamba
|
2024-01-16 10:11:21 +01:00
|
|
|
BuildRequires: libMagick-devel >= 7.1.1.26
|
2024-01-06 09:59:32 +01:00
|
|
|
Requires: php >= %{php_majver}
|
|
|
|
Requires: php <= %{php_majver}.99
|
|
|
|
|
|
|
|
%description
|
|
|
|
PHP wrapper to the ImageMagick library.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c %{name}-%{version}
|
2024-07-09 23:17:59 +02:00
|
|
|
# Ensure package version is set
|
|
|
|
sed -e "s/@PACKAGE_VERSION@/%{version}/" -i imagick-%{version}/php_imagick.h package.xml
|
2024-01-06 09:59:32 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd imagick-%{version}
|
|
|
|
phpize
|
2024-07-09 23:17:59 +02:00
|
|
|
|
2024-01-16 10:11:21 +01:00
|
|
|
%configure \
|
2024-07-09 23:17:59 +02:00
|
|
|
CFLAGS="%{optflags}"
|
2024-01-16 10:11:21 +01:00
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
%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 <<EOF
|
|
|
|
; Enable imagick extension module
|
|
|
|
extension=imagick.so
|
2024-01-16 10:11:21 +01:00
|
|
|
|
|
|
|
; 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
|
2024-01-06 09:59:32 +01:00
|
|
|
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
|
2024-07-09 23:17:59 +02:00
|
|
|
* Tue Jul 09 2024 Automatic Build System <autodist@openmamba.org> 3.7.0-5mamba
|
|
|
|
- remove obsolete configure CFLAGS and LIBS causing module to crash with php
|
|
|
|
|
2024-01-19 17:59:27 +01:00
|
|
|
* Tue Jan 16 2024 Automatic Build System <autodist@mambasoft.it> 3.7.0-4mamba
|
|
|
|
- rebuilt by autoport with build requirements: php-devel>=8.3.1-1mamba
|
|
|
|
|
2024-01-16 10:11:21 +01:00
|
|
|
* Mon Jan 15 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.0-3mamba
|
|
|
|
- rebuilt with current ImageMagick and php
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* 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
|
|
|
|
|
|
|
|
* Wed Apr 20 2022 Automatic Build System <autodist@mambasoft.it> 3.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* Mon Aug 09 2021 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* Sun May 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.4-4mamba
|
|
|
|
- rebuilt with php 7.4.6
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* Thu Mar 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.4-3mamba
|
|
|
|
- rebuilt with libMagick 7.0.10.0
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* Sat Nov 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.4-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libMagick-devel>=7.0.9.4-1mamba
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* Mon May 06 2019 Automatic Build System <autodist@mambasoft.it> 3.4.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:59:32 +01:00
|
|
|
* Wed Feb 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.3-1mamba
|
|
|
|
- update to 3.4.3
|
|
|
|
|
|
|
|
* Thu Nov 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-1mamba
|
|
|
|
- package created using the webbuild interface
|