]>
Commit | Line | Data |
---|---|---|
c8214215 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Console | |
3 | %define _subclass Color | |
a87ea79e | 4 | %define _status stable |
c8214215 | 5 | %define _pearname %{_class}_%{_subclass} |
48ad6596 | 6 | |
c8214215 | 7 | Summary: %{_pearname} - easily use ANSI console colors in your application |
484b929c | 8 | Summary(pl.UTF-8): %{_pearname} - łatwe użycie kolorów ANSI w aplikacjach |
c8214215 | 9 | Name: php-pear-%{_pearname} |
d422a55f | 10 | Version: 1.0.2 |
a87ea79e | 11 | Release: 1 |
c8214215 AG |
12 | License: PHP 3.0 |
13 | Group: Development/Languages/PHP | |
c8214215 | 14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
d422a55f | 15 | # Source0-md5: 8fe454cb9d04b2bbe40bf06626217839 |
1f7b99b4 | 16 | URL: http://pear.php.net/package/Console_Color/ |
98fc9c4e | 17 | BuildRequires: php-pear-PEAR |
6b0d7929 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
676361e0 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
c8214215 AG |
20 | Requires: php-pear |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
655183e7 | 25 | You can use Console_Color::convert to transform colorcodes like %r |
36baf24b JB |
26 | into ANSI control codes. 'print Console_Color::convert("%rHello |
27 | World!%n");' would print "Hello World" in red, for example. | |
28 | ||
b1854546 | 29 | In PEAR status of this package is: %{_status}. |
48ad6596 | 30 | |
d190aec7 JR |
31 | %description -l pl.UTF-8 |
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 | |
36baf24b JB |
34 | Console_Color::convert("%rHello World!%n");' wypisze "Hello World" na |
35 | czerwono. | |
c8214215 | 36 | |
48ad6596 AG |
37 | Ta klasa ma w PEAR status: %{_status}. |
38 | ||
c8214215 | 39 | %prep |
bf3ce346 | 40 | %pear_package_setup |
c8214215 AG |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
bf3ce346 ER |
44 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
45 | %pear_package_install | |
c8214215 AG |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
bf3ce346 ER |
52 | %doc install.log |
53 | %doc docs/%{_pearname}/examples | |
54 | %{php_pear_dir}/.registry/*.reg | |
c8214215 | 55 | %{php_pear_dir}/%{_class}/*.php |