]> git.pld-linux.org Git - packages/php-ezc-ConsoleTools.git/blob - php-ezc-ConsoleTools.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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 Summary:        %{pearname} - A set of classes to do different actions with the console (also called shell)
5 Name:           php-ezc-ConsoleTools
6 Version:        1.6.1
7 Release:        3
8 License:        New BSD
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}
18 Requires:       php(iconv)
19 Requires:       php(pcre)
20 Requires:       php-channel(components.ez.no)
21 Requires:       php-ezc-Base >= 1.8
22 Requires:       php-pear
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
30
31 In PEAR status of this package is: %{status}.
32
33 %prep
34 %pear_package_setup
35
36 install -d examples
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/* .
41
42 # design docs
43 mv .%{php_pear_dir}/data/ConsoleTools/design .
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}
48 %pear_package_install
49
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53 # don't care for tests
54 rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
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}
This page took 0.095947 seconds and 4 git commands to generate.