summaryrefslogtreecommitdiffstats
path: root/php-pecl-handlebars.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-26 13:53:59 +0100
committerRemi Collet <remi@php.net>2021-11-26 13:53:59 +0100
commitc6f5881d8b1b4b8572268c8c8806e66650410057 (patch)
tree3e8226c7fa0acded6ad7827fbf90e9dfc0222c34 /php-pecl-handlebars.spec
parentbdeede603c8cc5b0c08842526eea11326c5d121f (diff)
cleanup
Diffstat (limited to 'php-pecl-handlebars.spec')
-rw-r--r--php-pecl-handlebars.spec16
1 files changed, 9 insertions, 7 deletions
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