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
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
29 In PEAR status of this package is: %{_status}.
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
38 Ta klasa ma w PEAR status: %{_status}.
41 Summary: Tests for PEAR::%{_pearname}
42 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
43 Group: Development/Languages/PHP
45 Requires: %{name} = %{version}-%{release}
49 Tests for PEAR::%{_pearname}.
51 %description tests -l pl.UTF-8
52 Testy dla PEAR::%{_pearname}.
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{php_pear_dir}
63 rm -rf $RPM_BUILD_ROOT
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
73 %defattr(644,root,root,755)
74 %{php_pear_dir}/tests/HTML_Entities