# remirepo/fedora spec file for php-zetacomponents-console-tools # # Copyright (c) 2015-2024 Remi Collet # License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global gh_commit c487720bffd26e74a297c3baa31a9b90580759b2 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner zetacomponents %global gh_project ConsoleTools %global cname console-tools %global ezcdir %{_datadir}/php/ezc %if 0%{?fedora} %bcond_without tests %else %bcond_with tests %endif %bcond_without phpab Name: php-%{gh_owner}-%{cname} Version: 1.7.4 Release: 1%{?dist} Summary: Zeta %{gh_project} Component License: Apache-2.0 URL: http://zetacomponents.org/ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz Source1: autoloader.php BuildArch: noarch %if %{with phpab} BuildRequires: %{_bindir}/phpab %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) # remirepo:3 %else BuildRequires: php-zetacomponents-base >= 1.8 %endif # From composer.json, "require-dev": { # "phpunit/phpunit": "~9.0", # "zetacomponents/unit-test": "*" BuildRequires: phpunit9 BuildRequires: php-composer(%{gh_owner}/unit-test) >= 1.2.4 %endif # From composer.json, "require": { # "zetacomponents/base": "~1.8" # 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:3 %else Requires: php-zetacomponents-base >= 1.8 %endif # From phpcompatinfo report for 1.7 Requires: php(language) > 5.3 Requires: php-iconv Requires: php-pcre Requires: php-spl Provides: php-composer(%{gh_owner}/%{cname}) = %{version} %description A set of classes to do different actions with the console, also called shell. It can render a progress bar, tables and a status bar and contains a class for parsing command line options. Documentation is available in the %{name}-doc package. %package doc Summary: Documentation for %{name} Group: Documentation # For License Requires: %{name} = %{version}-%{release} %description doc %{summary}. %prep %setup -q -n %{gh_project}-%{gh_commit} %build %if %{with phpab} : Generate a simple autoloader %{_bindir}/phpab \ --output src/autoloader.php \ src cat < - 1.7.4-1 - update to 1.7.4 - drop patch merged upstream * Wed Jan 31 2024 Remi Collet - 1.7.3-8 - add upstream patch for PHP 8.2 - add patch for PHP 8.3 from https://github.com/zetacomponents/ConsoleTools/pull/26 - fix FTBFS #2261516 * Tue Jul 19 2022 Remi Collet - 1.7.3-3 - switch to phpunit9 * Wed Jan 19 2022 Remi Collet - 1.7.3-1 - update to 1.7.3 * Mon Dec 6 2021 Remi Collet - 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 * Mon Mar 16 2020 Remi Collet - 1.7.1-1 - update to 1.7.1 - use range dependencies - drop patches, merged upstream * Mon Jul 13 2015 Remi Collet - 1.7-3 - create subpackage for documentation - minor improvments, from review #1228091 comments * Thu Jun 4 2015 Remi Collet - 1.7-2 - fix summary * Wed Jun 3 2015 Remi Collet - 1.7-1 - initial package - open https://github.com/zetacomponents/ConsoleTools/pull/8 interactive