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