1 %include /usr/lib/rpm/macros.php
3 %define _subclass Color
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - easily use ANSI console colors in your application
8 Summary(pl): %{_pearname} - ³atwe u¿ycie kolorów ANSI w aplikacjach
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 8fe454cb9d04b2bbe40bf06626217839
16 URL: http://pear.php.net/package/Console_Color/
17 BuildRequires: php-pear-PEAR
18 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 BuildRequires: rpmbuild(macros) >= 1.300
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 You can use Console_Color::convert to transform colorcodes like %r
26 into ANSI control codes. 'print Console_Color::convert("%rHello
27 World!%n");' would print "Hello World" in red, for example.
29 In PEAR status of this package is: %{_status}.
32 Console_Color::convert mo¿na u¿ywaæ do przekszta³cania kodów kolorów
33 typu %r na kody steruj±ce ANSI. Na przyk³ad 'print
34 Console_Color::convert("%rHello World!%n");' wypisze "Hello World" na
37 Ta klasa ma w PEAR status: %{_status}.
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{php_pear_dir}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %doc docs/%{_pearname}/examples
54 %{php_pear_dir}/.registry/*.reg
55 %{php_pear_dir}/%{_class}/*.php