diff options
author | Remi Collet <remi@remirepo.net> | 2023-07-07 13:58:04 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-07-07 13:58:04 +0200 |
commit | 2aa8022411906087c5e8a2183d7c5e94436bcf87 (patch) | |
tree | 3056d25c23470aba5344aa0ade2c762e4ddc985a | |
parent | 5e4d45fd3fcb8518b234b36963aace740e4b3cdd (diff) |
cleanup
-rw-r--r-- | php-pecl-json-post.spec | 9 |
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 |