1 %include /usr/lib/rpm/macros.php
3 %define _subclass Entities
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}
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 BuildRequires: rpmbuild(macros) >= 1.300
20 Obsoletes: php-pear-HTML_Entities-tests
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This package allows to convert utf-8 text to html entities and
26 vice-versa. It provides functions similar to php functions
27 html_entity_decode, htmlentities and get_html_translation_table, but
28 it works properly with utf-8 in PHP4, and contains ALL defined HTML
31 In PEAR status of this package is: %{_status}.
33 %description -l pl.UTF-8
34 Pakiet ten pozwala na konwersję tekstu utf-8 do/z encji html. Pakiet
35 dostarcza funkcjonalność zbliżoną do funkcji PHP takich jak
36 html_entity_decode, htmlentities i get_html_translation_table, jednak
37 działa poprawnie z utf-8 w PHP 4 oraz zawiera wszystkie zdefiniowane
40 Ta klasa ma w PEAR status: %{_status}.
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc install.log docs/HTML_Entities/examples
56 %{php_pear_dir}/.registry/*.reg
57 %{php_pear_dir}/HTML/Entities
58 %{php_pear_dir}/HTML/Entities.php