]> git.pld-linux.org Git - packages/php-ezc-ConsoleTools.git/blob - php-ezc-ConsoleTools.spec
package design documents as doc
[packages/php-ezc-ConsoleTools.git] / php-ezc-ConsoleTools.spec
1 %define         status          stable
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
7 Version:        1.6.1
8 Release:        3
9 License:        New BSD
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}
19 Requires:       php(iconv)
20 Requires:       php(pcre)
21 Requires:       php-channel(components.ez.no)
22 Requires:       php-ezc-Base >= 1.8
23 Requires:       php-pear
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
31
32 In PEAR status of this package is: %{status}.
33
34 %prep
35 %pear_package_setup
36
37 install -d examples
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/* .
42
43 # design docs
44 mv .%{php_pear_dir}/data/ConsoleTools/design .
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{php_pear_dir}
49 %pear_package_install
50
51 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
54 # don't care for tests
55 rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc CREDITS LICENSE install.log design
63 %{php_pear_dir}/.registry/.channel.*/*.reg
64 %{php_pear_dir}/ezc/autoload/console_autoload.php
65 %{php_pear_dir}/ezc/ConsoleTools
66 %{_examplesdir}/%{name}-%{version}
This page took 0.099221 seconds and 3 git commands to generate.