From c6f5881d8b1b4b8572268c8c8806e66650410057 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 26 Nov 2021 13:53:59 +0100 Subject: cleanup --- php-pecl-handlebars.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'php-pecl-handlebars.spec') diff --git a/php-pecl-handlebars.spec b/php-pecl-handlebars.spec index 67a50a8..175b621 100644 --- a/php-pecl-handlebars.spec +++ b/php-pecl-handlebars.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-handlebars # -# Copyright (c) 2017-2020 Remi Collet +# Copyright (c) 2017-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -29,6 +29,7 @@ License: BSD URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.2 BuildRequires: %{?scl_prefix}php-pear @@ -206,12 +207,15 @@ cd NTS --modules | grep '^%{pecl_name}$' %if %{with tests} +OPT="-q -P --show-diff" +%if "%{php_version}" > "7.4" +OPT="$OPT %{?_smp_mflags}" +%endif + # Upstream test suite -TEST_PHP_EXECUTABLE=%{__php} \ TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php --show-diff +%{__php} -n run-tests.php $OPT %endif %if %{with_zts} @@ -223,11 +227,9 @@ cd ../ZTS %if %{with tests} # Upstream test suite -TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php --show-diff +%{__ztsphp} -n run-tests.php $OPY %endif %endif -- cgit