php-imagick/php-imagick.spec
Johannes Weberhofer a71658e5f3 Accepting request 939062 from home:adkorte:branches:server:php:extensions
- Upgrade to version 3.6.0
  - No change from 3.6.0RC2
  - removed imagick-fix-457-ensure-format-is-always-lowercase.patch
    (upstreamed)
- Upgrade to version 3.6.0RC2
  - Fixes:
    * Remove deprecated message from Imagick::roundCorners()
  - Added:
    * Imagick::addNoiseImageWithAttenuate()
- Upgrade to version 3.6.0RC1
  - Imagick::getImageInterlaceScheme is undeprecated. It's the
    appropriate function to call to get the image interlace setting.
  - Image formats are now normalised to lower case.
  - Imagick::getImageIndex and Imagick::setImageIndex are undeprecated
    and work on ImageMagick 7. They call MagickGetIteratorIndex and
    MagickSetIteratorIndex internally.
  - Imagick::averageImages is undeprecated. For IM 7 it now calls
    EvaluateImages(wand->images,MeanEvaluateOperator).
  - Imagick::flattenImages is undeprecated. For IM 7 it now calls
    MagickMergeImageLayers(intern->magick_wand, FlattenLayer);
    internally.
  - Imagick::getImageSize is undeprecated. For IM 7 it now calls
    MagickGetImageLength internally.
  - Imagick::roundCornersImage is undeprecated and available on IM7.
  - Fixes:
    * Imagick::borderImage() changed internally to use OverCompositeOp
      rather than AtopCompositeOp for ImageMagick > 7. If you need the
      old behaviour, please use Imagick::borderImageWithComposite()
      instead, which allows you to set the composite method.
    * Imagick::frameImage() changed internally to use OverCompositeOp

OBS-URL: https://build.opensuse.org/request/show/939062
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-imagick?expand=0&rev=10
2021-12-10 10:53:15 +00:00

88 lines
2.5 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pkg_name imagick
%define flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == ""
%define php_name php
ExclusiveArch: do-not-build
%else
%define php_name %{flavor}
%endif
%if 0%{?suse_version} <= 1500
%define php_extdir %(%{__php_config} --extension-dir)
%define php_cfgdir %{_sysconfdir}/%{php_name}/conf.d
%endif
Name: %{php_name}-%{pkg_name}
Version: 3.6.0
Release: 0
Summary: Wrapper to the ImageMagick library
License: PHP-3.01
Group: Productivity/Networking/Web/Servers
URL: https://pecl.php.net/package/imagick
Source0: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz
Source1: php-%{pkg_name}-rpmlintrc
# SUSE: Make build reproduceable
Patch0: imagick-reproducible.patch
BuildRequires: %{php_name}-devel >= 7.0.1
BuildRequires: ImageMagick-devel >= 6.5.3.10
BuildRequires: ghostscript-fonts-std
BuildRequires: re2c
Requires: php(api) = %{php_core_api}
Requires: php(zend-abi) = %{php_zend_api}
Conflicts: %{php_name}-gmagick
Provides: php-%{pkg_name} = %{version}
Obsoletes: php-%{pkg_name} < %{version}
%description
PHP extension to create, modify and obtain meta information of images using
the ImageMagick API.
%prep
%autosetup -n %{pkg_name}-%{version} -p1
# fix script-without-shebang/spurious-executable-perm
chmod 0644 ChangeLog LICENSE
%build
export CFLAGS="%{optflags} -fvisibility=hidden"
%{__phpize}
%configure
%make_build
%check
%make_build PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test
%install
make install-modules INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{php_cfgdir}
cat > %{buildroot}%{php_cfgdir}/%{pkg_name}.ini <<EOF
; comment out next line to disable %{pkg_name} extension in php
extension = %{pkg_name}.so
EOF
%files
%license LICENSE
%doc ChangeLog
%config(noreplace) %{php_cfgdir}/%{pkg_name}.ini
%{php_extdir}/%{pkg_name}.so
%changelog