2 %define pearname ConsoleTools
3 %define php_min_version 5.0.0
4 Summary: %{pearname} - A set of classes to do different actions with the console (also called shell)
5 Name: php-ezc-ConsoleTools
9 Group: Development/Languages/PHP
10 Source0: http://components.ez.no/get/%{pearname}-%{version}.tgz
11 # Source0-md5: 987783f590fc3a75fbf3c2e19818b2a4
12 URL: http://ezcomponents.org/
13 BuildRequires: php-channel(components.ez.no)
14 BuildRequires: php-pear-PEAR >= 1:1.4.2
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.571
17 Requires: php(core) >= %{php_min_version}
20 Requires: php-channel(components.ez.no)
21 Requires: php-ezc-Base >= 1.8
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A set of classes to do different actions with the console (also called
28 shell). It can render a progress bar, tables and a status bar and
29 contains a class for parsing command line options.
31 In PEAR status of this package is: %{status}.
37 mv docs/ConsoleTools/docs/img examples
38 mv docs/ConsoleTools/docs/example* examples
39 mv docs/ConsoleTools/docs/tutorial* examples
40 mv docs/ConsoleTools/docs/* .
43 mv .%{php_pear_dir}/data/ConsoleTools/design .
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 # don't care for tests
54 rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc CREDITS LICENSE install.log design
62 %{php_pear_dir}/.registry/.channel.*/*.reg
63 %{php_pear_dir}/ezc/autoload/console_autoload.php
64 %{php_pear_dir}/ezc/ConsoleTools
65 %{_examplesdir}/%{name}-%{version}