%define php_majver %(php-config --version | cut -d. -f1-2) Name: php-imagick Version: 3.4.3 Release: 1mamba 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 ## 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 < 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