2 %define _subclass Entities
4 %define _pearname HTML_Entities
5 Summary: %{_pearname} - konvert text to/from HTML entities
6 Summary(pl.UTF-8): %{_pearname} - konwersja tekstu do/z encji HTML
7 Name: php-pear-%{_pearname}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 # Source0-md5: 5e8db2985d5e9ffd72894761f062c21a
14 URL: http://pear.php.net/package/HTML_Entities/
15 BuildRequires: php-pear-PEAR
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.300
19 Obsoletes: php-pear-HTML_Entities-tests
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package allows to convert utf-8 text to html entities and
25 vice-versa. It provides functions similar to php functions
26 html_entity_decode, htmlentities and get_html_translation_table, but
27 it works properly with utf-8 in PHP4, and contains ALL defined HTML
30 In PEAR status of this package is: %{_status}.
32 %description -l pl.UTF-8
33 Pakiet ten pozwala na konwersję tekstu utf-8 do/z encji html. Pakiet
34 dostarcza funkcjonalność zbliżoną do funkcji PHP takich jak
35 html_entity_decode, htmlentities i get_html_translation_table, jednak
36 działa poprawnie z utf-8 w PHP 4 oraz zawiera wszystkie zdefiniowane
39 Ta klasa ma w PEAR status: %{_status}.
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc install.log docs/HTML_Entities/examples
55 %{php_pear_dir}/.registry/*.reg
56 %{php_pear_dir}/HTML/Entities
57 %{php_pear_dir}/HTML/Entities.php