Changes of Revision 2
[-] | Changed | php-pecl-mcrypt.spec |
x 1
2 %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} 3 %global pecl_name mcrypt 4 %global ini_name 30-%{pecl_name}.ini 5 - 6 +%global with_tests 0 7 Summary: Bindings for the libmcrypt library 8 Name: %{?scl_prefix}php-pecl-mcrypt 9 Version: 1.0.1 10
11 --define extension=%{pecl_name} \ 12 --modules | grep %{pecl_name} 13 14 +%if %{with_tests} 15 : upstream test suite for NTS extension 16 TEST_PHP_EXECUTABLE=%{__php} \ 17 TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ 18 %{__php} -n run-tests.php --show-diff 19 +%endif 20 21 %if %{with_zts} 22 cd ../ZTS 23
24 --define extension=%{pecl_name} \ 25 --modules | grep %{pecl_name} 26 27 +%if %{with_tests} 28 : upstream test suite for ZTS extension 29 TEST_PHP_EXECUTABLE=%{__ztsphp} \ 30 TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ 31 %{__ztsphp} -n run-tests.php --show-diff 32 %endif 33 +%endif 34 35 36 %if 0%{?fedora} < 24 37 |