]> git.pld-linux.org Git - packages/php-pecl-imagick.git/blobdiff - php-pecl-imagick.spec
- release 3 (by relup.sh)
[packages/php-pecl-imagick.git] / php-pecl-imagick.spec
index cef31b621e1b572d9c91670ba48edac4b23773f2..fbd801dbd39a2ef2f3873b515ddddfbd425e19c3 100644 (file)
@@ -10,22 +10,22 @@ Summary:    %{modname} - PHP wrapper to the Image Magick Library
 Summary(pl.UTF-8):     %{modname} - PHP-owy wrapper do biblioteki Image Magick
 Name:          %{php_name}-pecl-%{modname}
 Version:       3.4.4
-Release:       1
+Release:       3
 License:       PHP 3.01
 Group:         Development/Languages/PHP
 Source0:       https://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: 6d3a7048ab73b0fab931f28c484dbf76
 Patch0:                skip_version_check.patch
 URL:           https://pecl.php.net/package/imagick
+BuildRequires: %{php_name}-cli
 BuildRequires: %{php_name}-devel >= 4:5.3
+BuildRequires: %{php_name}-pcre
+BuildRequires: %{php_name}-spl
 BuildRequires: ImageMagick-devel >= 1:6.2.4.0
 BuildRequires: pkgconfig
 BuildRequires: re2c
 BuildRequires: rpmbuild(macros) >= 1.650
 %if %{with tests}
-BuildRequires: %{php_name}-cli
-BuildRequires: %{php_name}-pcre
-BuildRequires: %{php_name}-spl
 BuildRequires: ImageMagick-coder-jpeg
 BuildRequires: ImageMagick-coder-png
 BuildRequires: ImageMagick-coder-tiff
@@ -118,20 +118,24 @@ phpize
 %{__make} \
        CFLAGS_CLEAN="%{rpmcflags}"
 
-%if %{with tests}
 %{__php} -n -q \
        -d extension_dir=modules \
+%if "%php_major_version.%php_minor_version" < "7.4"
        -d extension=%{php_extensiondir}/pcre.so \
        -d extension=%{php_extensiondir}/spl.so \
+%endif
        -d extension=%{modname}.so \
        -m > modules.log
 grep %{modname} modules.log
 
+%if %{with tests}
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 %{__make} test \
        PHP_EXECUTABLE=%{__php} \
+%if "%php_major_version.%php_minor_version" < "7.4"
        PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl" \
 %endif
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.09654 seconds and 4 git commands to generate.