]>
Commit | Line | Data |
---|---|---|
9d50f7a1 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class HTML | |
3 | %define _subclass Entities | |
4 | %define _status alpha | |
5 | %define _pearname HTML_Entities | |
6 | Summary: %{_pearname} - konvert text to/from HTML entities | |
7 | Summary(pl.UTF-8): %{_pearname} - konwersja tekstu do/z encji HTML | |
8 | Name: php-pear-%{_pearname} | |
9 | Version: 0.2.2 | |
10 | Release: 1 | |
11 | License: BSD License | |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
14 | # Source0-md5: 5e8db2985d5e9ffd72894761f062c21a | |
15 | URL: http://pear.php.net/package/HTML_Entities/ | |
16 | BuildRequires: php-pear-PEAR | |
17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
18 | Requires: php-pear | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | This package allows to convert utf-8 text to html entities and | |
24 | vice-versa. It provides functions similar to php functions | |
25 | html_entity_decode, htmlentities and get_html_translation_table, but | |
26 | it works properly with utf-8 in PHP4, and contains ALL defined HTML | |
27 | entities. | |
28 | ||
29 | In PEAR status of this package is: %{_status}. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Pakiet ten pozwala na konwersję tekstu utf-8 do/z encji html. Pakiet | |
33 | dostarcza funkcjonalność zbliżoną do funkcji PHP takich jak | |
34 | html_entity_decode, htmlentities i get_html_translation_table, jednak | |
35 | działa poprawnie z utf-8 w PHP 4 oraz zawiera wszystkie zdefiniowane | |
36 | encje HTML. | |
37 | ||
38 | Ta klasa ma w PEAR status: %{_status}. | |
39 | ||
40 | %package tests | |
41 | Summary: Tests for PEAR::%{_pearname} | |
42 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
43 | Group: Development/Languages/PHP | |
44 | AutoReq: no | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | AutoProv: no | |
47 | ||
48 | %description tests | |
49 | Tests for PEAR::%{_pearname}. | |
50 | ||
51 | %description tests -l pl.UTF-8 | |
52 | Testy dla PEAR::%{_pearname}. | |
53 | ||
54 | %prep | |
55 | %pear_package_setup | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
60 | %pear_package_install | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc install.log docs/HTML_Entities/examples | |
68 | %{php_pear_dir}/.registry/*.reg | |
69 | %{php_pear_dir}/HTML/Entities | |
70 | %{php_pear_dir}/HTML/Entities.php | |
71 | ||
72 | %files tests | |
73 | %defattr(644,root,root,755) | |
74 | %{php_pear_dir}/tests/HTML_Entities |