From 2aa8022411906087c5e8a2183d7c5e94436bcf87 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Jul 2023 13:58:04 +0200 Subject: cleanup --- php-pecl-json-post.spec | 9 +++++---- 1 file 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 -- cgit