[packages/php-ezc-ConsoleTools] Up to 1.7.5
arekm
arekm at pld-linux.org
Wed Apr 15 19:24:59 CEST 2026
commit f27dd2fca9d12e54922941c68d1dc945e7ceb44f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Apr 15 19:24:42 2026 +0200
Up to 1.7.5
php-ezc-ConsoleTools.spec | 50 +++++++++++++++--------------------------------
1 file changed, 16 insertions(+), 34 deletions(-)
---
diff --git a/php-ezc-ConsoleTools.spec b/php-ezc-ConsoleTools.spec
index 8d79563..d1d68f7 100644
--- a/php-ezc-ConsoleTools.spec
+++ b/php-ezc-ConsoleTools.spec
@@ -1,25 +1,19 @@
-%define status stable
%define pearname ConsoleTools
-%define php_min_version 5.0.0
-Summary: %{pearname} - A set of classes to do different actions with the console (also called shell)
+%define php_min_version 5.4.0
+Summary: ConsoleTools - A set of classes to do different actions with the console (also called shell)
Name: php-ezc-ConsoleTools
-Version: 1.6.1
-Release: 5
-License: New BSD
+Version: 1.7.5
+Release: 1
+License: Apache v2.0
Group: Development/Languages/PHP
-Source0: http://components.ez.no/get/%{pearname}-%{version}.tgz
-# Source0-md5: 987783f590fc3a75fbf3c2e19818b2a4
-URL: http://ezcomponents.org/
-BuildRequires: php-channel(components.ez.no)
-BuildRequires: php-pear-PEAR >= 1:1.4.2
-BuildRequires: rpm-php-pearprov >= 4.4.2-11
+Source0: https://github.com/zetacomponents/ConsoleTools/archive/%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 81a6c475a27262ada43aa8e1e29c533d
+URL: https://github.com/zetacomponents/ConsoleTools
BuildRequires: rpmbuild(macros) >= 1.571
Requires: php(core) >= %{php_min_version}
Requires: php(iconv)
Requires: php(pcre)
-Requires: php-channel(components.ez.no)
Requires: php-ezc-Base >= 1.8
-Requires: php-pear
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,38 +22,26 @@ 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.
-In PEAR status of this package is: %{status}.
-
%prep
-%pear_package_setup
-
-install -d examples
-mv docs/ConsoleTools/docs/img examples
-mv docs/ConsoleTools/docs/example* examples
-mv docs/ConsoleTools/docs/tutorial* examples
-mv docs/ConsoleTools/docs/* .
-
-# design docs
-mv .%{php_pear_dir}/data/ConsoleTools/design .
+%setup -q -n %{pearname}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}
-%pear_package_install
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/ezc/autoload
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/ezc/ConsoleTools
+cp -a src/* $RPM_BUILD_ROOT%{php_pear_dir}/ezc/ConsoleTools
+mv $RPM_BUILD_ROOT%{php_pear_dir}/ezc/ConsoleTools/console_autoload.php \
+ $RPM_BUILD_ROOT%{php_pear_dir}/ezc/autoload/console_autoload.php
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-# don't care for tests
-rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
+cp -a docs/example* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CREDITS LICENSE install.log design
-%{php_pear_dir}/.registry/.channel.*/*.reg
+%doc CREDITS ChangeLog LICENSE.txt
%{php_pear_dir}/ezc/autoload/console_autoload.php
%{php_pear_dir}/ezc/ConsoleTools
%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-ezc-ConsoleTools.git/commitdiff/f27dd2fca9d12e54922941c68d1dc945e7ceb44f
More information about the pld-cvs-commit
mailing list