summaryrefslogtreecommitdiffstats
path: root/php-pecl-json-post.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-json-post.spec')
-rw-r--r--php-pecl-json-post.spec9
1 files changed, 5 insertions, 4 deletions
diff --git a/php-pecl-json-post.spec b/php-pecl-json-post.spec
index a2584a1..f58401b 100644
--- a/php-pecl-json-post.spec
+++ b/php-pecl-json-post.spec
@@ -9,8 +9,11 @@
#
# Please, preserve the changelog entries
#
+
%{?scl:%scl_package php-pecl-json-post}
+%bcond_without tests
+
# For PHP < 5.6 and EPEL-9
%{!?__phpize: %global __phpize %{_bindir}/phpize}
%{!?__ztsphpize: %global __ztsphpize %{_bindir}/zts-phpize}
@@ -19,7 +22,6 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name json_post
-%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
%if "%{php_version}" < "5.6"
# after json
%global ini_name %{pecl_name}.ini
@@ -28,7 +30,6 @@
%global ini_name 50-%{pecl_name}.ini
%endif
#global prever RC2
-
%global sources %{pecl_name}-%{version}
%global _configure ../%{sources}/configure
@@ -179,7 +180,7 @@ cd %{sources}
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
--modules | grep '^%{pecl_name}$'
-%if %{with_tests}
+%if %{with tests}
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
TEST_PHP_CGI_EXECUTABLE=%{_bindir}/php-cgi \
@@ -195,7 +196,7 @@ cd ../ZTS
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
--modules | grep '^%{pecl_name}$'
-%if %{with_tests}
+%if %{with tests}
: Upstream test suite skipped as zts-php-cgi not available
%endif
%endif