From be968f0cad0b1b28a16bb19b32ff5d46ea2e34ff Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 6 Dec 2021 09:56:26 +0100 Subject: [PATCH] disable test suite on EL --- php-fedora-autoloader.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/php-fedora-autoloader.spec b/php-fedora-autoloader.spec index 6e2018a..4ec655f 100644 --- a/php-fedora-autoloader.spec +++ b/php-fedora-autoloader.spec @@ -24,15 +24,18 @@ %global phpab_min_ver 1.22 %global phpab_max_ver 2.0 -# Build using "--without tests" to disable tests -%global with_tests 0%{!?_without_tests:1} +%if 0%{?fedora} +%bcond_without tests +%else +%bcond_with tests +%endif %{!?phpdir: %global phpdir %{_datadir}/php} %global phpab_template_dir %{phpdir}/TheSeer/Autoload/templates/ci Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 6%{?dist} +Release: 7%{?dist} Summary: Fedora Autoloader License: MIT @@ -41,7 +44,7 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{githu BuildArch: noarch # Tests -%if %{with_tests} +%if %{with tests} BuildRequires: php-cli ## composer.json BuildRequires: php(language) >= %{php_min_ver} @@ -127,7 +130,7 @@ cp -p res/phpab/fedora*.php.tpl %{buildroot}%{phpab_template_dir}/ %check -%if %{with_tests} +%if %{with tests} : Create tests bootstrap cat <<'BOOTSTRAP' | tee bootstrap.php - 1.0.1-7 +- disable test suite on EL + * Fri Jul 23 2021 Fedora Release Engineering - 1.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild