From fe516daf90e60f686781254c4c341253e46d4b82 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 6 Dec 2021 09:14:13 +0100 Subject: disable test suite on EL add autoloader from sources on EL --- php-zetacomponents-console-tools.spec | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'php-zetacomponents-console-tools.spec') diff --git a/php-zetacomponents-console-tools.spec b/php-zetacomponents-console-tools.spec index 8594d75..dfad87c 100644 --- a/php-zetacomponents-console-tools.spec +++ b/php-zetacomponents-console-tools.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-zetacomponents-console-tools # -# Copyright (c) 2015-2020 Remi Collet +# Copyright (c) 2015-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -13,20 +13,30 @@ %global gh_project ConsoleTools %global cname console-tools %global ezcdir %{_datadir}/php/ezc -%global with_tests %{?_without_tests:0}%{!?_without_tests:1} + +%if 0%{?fedora} +%bcond_without tests +%bcond_without phpab +%else +%bcond_with tests +%bcond_with phpab +%endif Name: php-%{gh_owner}-%{cname} Version: 1.7.2 -Release: 1%{?dist} +Release: 4%{?dist} Summary: Zeta %{gh_project} Component License: ASL 2.0 URL: http://zetacomponents.org/ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz +Source1: autoloader.php BuildArch: noarch +%if %{with phpab} BuildRequires: %{_bindir}/phpab -%if %{with_tests} +%endif +%if %{with tests} # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-composer(%{gh_owner}/base) >= 1.8 with php-composer(%{gh_owner}/base) < 2) @@ -46,7 +56,7 @@ BuildRequires: php-composer(%{gh_owner}/unit-test) # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-composer(%{gh_owner}/base) >= 1.8 with php-composer(%{gh_owner}/base) < 2) -# remirepo:4 +# remirepo:3 %else Requires: php-zetacomponents-base >= 1.8 %endif @@ -82,6 +92,7 @@ Requires: %{name} = %{version}-%{release} %build +%if %{with phpab} : Generate a simple autoloader %{_bindir}/phpab \ --output src/autoloader.php \ @@ -90,6 +101,9 @@ cat < - 1.7.2-4 +- disable test suite on EL +- add autoloader from sources on EL + * Fri Oct 30 2020 Remi Collet - 1.7.2-1 - update to 1.7.2 - switch to phpunit7 -- cgit