From 419b50755d366f54303a57a24ad7e3488f4e6c5a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Dec 2017 10:57:47 +0100 Subject: rebuild against latest ImageMagick use patch from https://github.com/mkoppanen/imagick/pull/221 --- php-pecl-imagick.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'php-pecl-imagick.spec') diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec index 28b924d..81cbd27 100644 --- a/php-pecl-imagick.spec +++ b/php-pecl-imagick.spec @@ -35,23 +35,30 @@ Version: 3.4.3 Release: 0.3.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz %else -Release: 7%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 8%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz %endif License: PHP Group: Development/Languages URL: http://pecl.php.net/package/imagick +Patch0: https://patch-diff.githubusercontent.com/raw/mkoppanen/imagick/pull/221.patch + BuildRequires: %{?scl_prefix}php-devel > 5.4 BuildRequires: %{?scl_prefix}php-pear BuildRequires: pcre-devel +%if 0%{?fedora} >= 27 +BuildRequires: ImageMagick-devel >= 1:6 +Requires: ImageMagick-libs%{?_isa} >= 1:%{imbuildver} +%else %if 0%{?fedora} >= 25 -BuildRequires: ImageMagick-devel +BuildRequires: ImageMagick-devel < 7 Requires: ImageMagick-libs%{?_isa} >= %{imbuildver} %else BuildRequires: ImageMagick6-devel Requires: ImageMagick6-libs%{?_isa} >= %{imbuildver} %endif +%endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -147,6 +154,7 @@ then : "Font files detected!" fi cd NTS +%patch0 -p1 extver=$(sed -n '/#define PHP_IMAGICK_VERSION/{s/.* "//;s/".*$//;p}' php_imagick.h) if test "x${extver}" != "x%{version}%{?prever}"; then @@ -293,6 +301,10 @@ cd ../ZTS %changelog +* Tue Dec 26 2017 Remi Collet - 3.4.3-8 +- rebuild against latest ImageMagick +- use patch from https://github.com/mkoppanen/imagick/pull/221 + * Wed Sep 6 2017 Remi Collet - 3.4.3-7 - rebuild using ImageMagick on F27+ -- cgit