]> git.pld-linux.org Git - SPECS.git/blob - php-pear-HTML_BBCodeParser.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / php-pear-HTML_BBCodeParser.spec
1 %define         status          stable
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}
6 Version:        1.2.4
7 Release:        1
8 License:        PHP 2.02
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
16 Requires:       php-pear
17 Requires:       php-pear-PEAR-core >= 1:1.5.4
18 Obsoletes:      php-pear-HTML_BBCodeParser-tests
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
30
31 In PEAR status of this package is: %{status}.
32
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
41 o własne tagi.
42
43 Ta klasa ma w PEAR status: %{status}.
44
45 %prep
46 %pear_package_setup
47
48 mv .%{php_pear_dir}/data/HTML_BBCodeParser docs
49 mv docs/example examples
50 mv .%{php_pear_dir}/example/parser.php examples
51 mv docs/TODO .
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{php_pear_dir}
56 %pear_package_install
57
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc TODO
67 %doc install.log
68 %{php_pear_dir}/.registry/*.reg
69 %{php_pear_dir}/HTML/*.php
70 %{php_pear_dir}/HTML/BBCodeParser
71 %{_examplesdir}/%{name}-%{version}
This page took 0.688069 seconds and 3 git commands to generate.