diff --git a/php-maxminddb.spec b/php-maxminddb.spec index 231fab2..d1fa3bb 100644 --- a/php-maxminddb.spec +++ b/php-maxminddb.spec @@ -20,12 +20,16 @@ # pure PHP library %global pk_vendor maxmind-db %global pk_project reader -%global with_tests 0%{!?_without_tests:1} +%if 0%{?fedora} +%bcond_without tests +%else +%bcond_with tests +%endif Summary: MaxMind DB Reader extension Name: php-maxminddb Version: 1.11.0 -Release: 2%{?dist} +Release: 3%{?dist} License: ASL 2.0 URL: https://github.com/%{gh_owner}/%{gh_project} @@ -67,7 +71,7 @@ Summary: MaxMind DB Reader BuildArch: noarch BuildRequires: php-fedora-autoloader-devel -%if %{with_tests} +%if %{with tests} BuildRequires: php-bcmath BuildRequires: php-gmp # from composer.json "require-dev": { @@ -197,8 +201,6 @@ cp -pr src/MaxMind/Db %{buildroot}%{_datadir}/php/MaxMind/Db --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} %endif - -%if %{with_tests} ret=0 cd NTS @@ -219,6 +221,7 @@ REPORT_EXIT_STATUS=1 \ %{__ztsphp} -n run-tests.php --show-diff || ret=1 %endif +%if %{with tests} cd .. : Upstream test suite for the library for cmd in php php72 php73 php74 php80 php81; do @@ -239,7 +242,6 @@ exit $ret %files -%{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md %{pecl_xmldir}/%{name}.xml @@ -262,6 +264,9 @@ exit $ret %changelog +* Fri Dec 10 2021 Remi Collet - 1.11.0-3 +- disable library test suite for EL build + * Thu Oct 28 2021 Remi Collet - 1.11.0-2 - rebuild for https://fedoraproject.org/wiki/Changes/php81