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.4.4
|
2024-01-06 09:59:32 +01:00
|
|
|
Release: 1mamba
|
|
|
|
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
|
|
|
|
BuildRequires: libMagick-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: php-devel >= 7.3.2
|
|
|
|
Requires: php >= %{php_majver}
|
|
|
|
Requires: php <= %{php_majver}.99
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
PHP wrapper to the ImageMagick library.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd imagick-%{version}
|
|
|
|
phpize
|
|
|
|
%configure
|
|
|
|
%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
|
|
|
|
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-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
|