2 %define pearname HTML_BBCodeParser
3 Summary: %{pearname} - parser to replace UBB style tags with their HTML equivalents
4 Summary(pl.UTF-8): %{pearname} - parser zastępujący tagi typu UBB ich odpowiednikami HTML
5 Name: php-pear-%{pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5: 328fde110984ca21af59e089ebe5b431
12 URL: http://pear.php.net/package/HTML_BBCodeParser/
13 BuildRequires: php-pear-PEAR >= 1:1.5.4
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.580
17 Requires: php-pear-PEAR-core >= 1:1.5.4
18 Obsoletes: php-pear-HTML_BBCodeParser-tests
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This is a parser to replace UBB style tags with their HTML
24 equivalents. It does not simply do some regex calls, but is complete
25 stack based parse engine. This ensures that all tags are properly
26 nested, if not, extra tags are added to maintain the nesting. This
27 parser should only produce XHTML 1.0 compliant code. All tags are
28 validated and so are all their attributes. It should be easy to extend
29 this parser with your own tags.
31 In PEAR status of this package is: %{status}.
33 %description -l pl.UTF-8
34 Jest to parser zastępujący tagi typu UBB ich odpowiednikami HTML. Nie
35 jest to jednak to tylko wywołanie kilku wyrażeń regularnych, ale
36 kompletny silnik parsujący. Dzięki temu pewne jest, iż wszystkie tagi
37 będą poprawnie zagnieżdżone, a jeśli nie, dodatkowy tag zostanie
38 dodany w celu zachowania zagnieżdżenia. Ten parser powinien
39 wyprodukować kod zgodny z XHTML 1.0. Wszystkie tagi oraz ich atrybuty
40 sprawdzane są pod kątem poprawności. Możliwe jest rozszerzenie parsera
43 Ta klasa ma w PEAR status: %{status}.
48 mv .%{php_pear_dir}/data/HTML_BBCodeParser docs
49 mv docs/example examples
50 mv .%{php_pear_dir}/example/parser.php examples
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{php_pear_dir}
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
68 %{php_pear_dir}/.registry/*.reg
69 %{php_pear_dir}/HTML/*.php
70 %{php_pear_dir}/HTML/BBCodeParser
71 %{_examplesdir}/%{name}-%{version}