From 6fa1d9b032cd0432d35f34d183fa40591010706a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Jun 2015 09:26:29 +0200 Subject: php-zetacomponents-console-tools: 1.7 - New package --- php-zetacomponents-console-tools.spec | 130 ++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 php-zetacomponents-console-tools.spec (limited to 'php-zetacomponents-console-tools.spec') diff --git a/php-zetacomponents-console-tools.spec b/php-zetacomponents-console-tools.spec new file mode 100644 index 0000000..c275618 --- /dev/null +++ b/php-zetacomponents-console-tools.spec @@ -0,0 +1,130 @@ +# remirepo/fedora spec file for php-zetacomponents-console-tools +# +# Copyright (c) 2015 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# + +%global gh_commit 30d67e9d04f458ac8cae4c49e50f81061460ff2c +%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 +%global with_tests %{?_without_tests:0}%{!?_without_tests:1} + +Name: php-%{gh_owner}-%{cname} +Version: 1.7 +Release: 2%{?dist} +Summary: Zeta %{gh_project} Component + +Group: Development/Libraries +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 + +# Upstream patches +Patch0: %{name}-upstream.patch +# https://github.com/zetacomponents/ConsoleTools/pull/8 +Patch1: %{name}-pr8.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: %{_bindir}/phpab +%if %{with_tests} +BuildRequires: %{_bindir}/phpunit +BuildRequires: php-gd +BuildRequires: php-composer(%{gh_owner}/base) >= 1.8 +BuildRequires: php-composer(%{gh_owner}/unit-test) +%endif + +# From composer.json, "require": { +# "zetacomponents/base": "~1.8" +Requires: php-composer(%{gh_owner}/base) >= 1.8 +Requires: php-composer(%{gh_owner}/base) < 2 +# 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. + + +%prep +%setup -q -n %{gh_project}-%{gh_commit} + +%patch0 -p1 +%patch1 -p1 + + +%build +: Generate a simple autoloader +%{_bindir}/phpab \ + --output src/autoloader.php \ + src +cat < - 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 \ No newline at end of file -- cgit