Accepting request 901060 from server:php:extensions

OBS-URL: https://build.opensuse.org/request/show/901060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/php-imagick?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2021-06-21 18:35:41 +00:00 committed by Git OBS Bridge
commit cd61bc6274
7 changed files with 81 additions and 26 deletions

View File

@ -1,4 +1,4 @@
<multibuild>
<package>php7</package>
<!--<package>php8</package>-->
<package>php8</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8dd5aa16465c218651fc8993e1faecd982e6a597870fd4b937e9ece02d567077
size 253434

3
imagick-3.5.0.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:795db7c36fbacd3d33a4f53ff2d38584c846e80a04dcd04c55e9e46c28f5d229
size 300657

View File

@ -2,7 +2,7 @@ Index: imagick-3.4.3/imagick.c
===================================================================
--- imagick-3.4.3.orig/imagick.c
+++ imagick-3.4.3/imagick.c
@@ -3698,10 +3698,11 @@ PHP_MINIT_FUNCTION(imagick)
@@ -3897,10 +3897,11 @@ PHP_MINIT_FUNCTION(imagick)
#endif
REGISTER_INI_ENTRIES();
@ -15,7 +15,7 @@ Index: imagick-3.4.3/imagick.c
return SUCCESS;
}
@@ -3734,7 +3735,7 @@ PHP_MINFO_FUNCTION(imagick)
@@ -3933,7 +3934,7 @@ PHP_MINFO_FUNCTION(imagick)
#else
php_info_print_table_row(2, "imagick classes", "Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator");
#endif

View File

@ -1,2 +0,0 @@
; comment out next line to disable imagick extension in php
extension=imagick.so

View File

@ -1,3 +1,62 @@
-------------------------------------------------------------------
Sun Jun 20 11:27:28 UTC 2021 - munix9@googlemail.com
- Upgrade to version 3.5.0
- Fixed multiple parameter information issues found in 3.5.0RC1.
- ImageMagick 7 is still not widely available on systems.
So contrary to previous plans, ImageMagick 6 support will
continue for now.
But users are recommeded to use ImageMagick 7 if possible.
- Method names have been changed to not be all lower case. Both
method names and parameter information is built from the
Imagick*.stub.php files.
- Prevent accidental creation of zero dimension images.
ImageMagick doesn't prevent creation of zero dimension images,
but will give an error when that image is used. I don't think
this will affect any correctly program, but if it does, and
you need to re-enable zero dimension images, please open an
issue at https://phpimagick.com/issues
- Various pieces of work have been done to make GOMP not
segfault including:
* Call omp_pause_resource_all when available during shutdown.
* Added the 'imagick.shutdown_sleep_count' (default 10) and
'imagick.set_single_thread' (default On). Both of these
exist to mitigate the segaults on shutdown.
- Fixes:
* Correct version check to make RemoveAlphaChannel and
FlattenAlphaChannel be available when using Imagick with
ImageMagick version 6.7.8-x
* Imagick::morphology now no longer ignores channel parameter
- Added:
* PHP 8.0 support.
* Location check for ImageMagick 7 for NixOS and Brew.
* Imagick::houghLineImage(int $width, int $height, float $threshold): bool {}
* Imagick::setImagePixelColor(int $x, int $y, ImagickPixel|string $color)
* Imagick::setImageMask(Imagick $clip_mask, int $pixelmask_type)
* Imagick::getImageMask(int $pixelmask_type)
* Imagick::VIRTUALPIXELMETHOD_DITHER
* Imagick::VIRTUALPIXELMETHOD_RANDOM
* Imagick::COMPOSITE_FREEZE
* Imagick::COMPOSITE_INTERPOLATE
* Imagick::COMPOSITE_NEGATE
* Imagick::COMPOSITE_REFLECT
* Imagick::COMPOSITE_SOFTBURN
* Imagick::COMPOSITE_SOFTDODGE
* Imagick::COMPOSITE_STAMP
* Imagick::COMPOSITE_RMSE
* Imagick::COMPRESSION_DWAA
* Imagick::COMPRESSION_DWAB
* Imagick::EVALUATE_INVERSE_LOG
* Imagick::COLORSPACE_DISPLAYP3
* Imagick::COLORSPACE_ADOBE98
* Imagick::COLORSPACE_PROPHOTO
* Imagick::COLORSPACE_JZAZBZ
* Imagick::DISTORTION_RIGID_AFFINE
* Imagick::DISTORTION_BARRELINVERSE
* Imagick::STATISTIC_ROOT_MEAN_SQUARE
-------------------------------------------------------------------
Thu Feb 18 23:10:08 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>

View File

@ -31,57 +31,55 @@ ExclusiveArch: do-not-build
%endif
Name: %{php_name}-%{pkg_name}
Version: 3.4.4
Version: 3.5.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: %{pkg_name}.ini
Source2: php-%{pkg_name}-rpmlintrc
Source1: php-%{pkg_name}-rpmlintrc
Patch0: imagick-reproducible.patch
BuildRequires: ImageMagick-devel >= 6.5.3.10
BuildRequires: ghostscript-fonts-std
BuildRequires: %{php_name}-devel >= 7.0.1
BuildRequires: re2c
Conflicts: php7-gmagick
Provides: php-%{pkg_name} = %{version}
Obsoletes: php-%{pkg_name} < %{version}
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
the ImageMagick API.
%prep
%autosetup -n %{pkg_name}-%{version} -p1
# Ignore know failed test on OBS with timeout
rm tests/229_Tutorial_fxAnalyzeImage_case1.phpt
# fix script-without-shebang/spurious-executable-perm
chmod 0644 ChangeLog LICENSE
%build
export CFLAGS="%{optflags} -fvisibility=hidden"
%{__phpize}
%configure --with-%{pkg_name}=%{_usr}
%configure
%make_build
%check
%if 0%{?qemu_user_space_build}
export TEST_TIMEOUT=600
%endif
%make_build PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test \
|| { for f in tests/*.out; do cat $f; echo '------'; done; exit 1; }
%make_build PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test
%install
make install-modules INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{php_cfgdir}
install --mode=0644 %{SOURCE1} %{buildroot}%{php_cfgdir}/%{pkg_name}.ini
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
%defattr(-,root,root,-)
%license LICENSE
%doc ChangeLog CREDITS
%doc ChangeLog
%config(noreplace) %{php_cfgdir}/%{pkg_name}.ini
%{php_extdir}/%{pkg_name}.so