diff --git a/README.md b/README.md index 3c203f0..a197459 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # php-imagick +PHP wrapper to the ImageMagick library. + diff --git a/php-imagick.spec b/php-imagick.spec new file mode 100644 index 0000000..aef4171 --- /dev/null +++ b/php-imagick.spec @@ -0,0 +1,73 @@ +%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