]> git.pld-linux.org Git - packages/php-pear-XML_HTMLSax.git/blob - php-pear-XML_HTMLSax.spec
- rel 3
[packages/php-pear-XML_HTMLSax.git] / php-pear-XML_HTMLSax.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          XML
3 %define         _subclass       HTMLSax
4 %define         _status         stable
5 %define         _pearname       %{_class}_%{_subclass}
6
7 Summary:        %{_pearname} - a SAX based parser for HTML and other badly formed XML documents
8 Summary(pl):    %{_pearname} - analizator SAX dla HTML-a i innych ¼le sformu³owanych dokumentów XML
9 Name:           php-pear-%{_pearname}
10 Version:        3.0.0
11 Release:        3
12 License:        PHP
13 Group:          Development/Languages/PHP
14 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5:  73b75ef6d68c74115b6da8d151293633
16 URL:            http://pear.php.net/package/XML_HTMLSax/
17 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
18 Requires:       php-common >= 3:4.0.5
19 Requires:       php-pear
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 XML_HTMLSax is a SAX based XML parser for badly formed XML documents,
25 such as HTML. The original code base was developed by Alexander Zhukov
26 and published at http://sourceforge.net/projects/phpshelve/, who in
27 turn was inspired by the Python HTMLSax package. Alexander kindly gave
28 permission to modify the code and license for inclusion in PEAR.
29 PEAR::XML_HTMLSax takes the last release from Sourceforge
30 (HTMLSax2002082201) and changes the API to make using HTMLSax very
31 similar to using the native PHP Expat extension, opening it up for use
32 with projects like SAX filters:
33 http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
34 This version also fixes some bugs and adds further features such as
35 the ability to handle processing instructions and JSP/ASP markup.
36
37 In PEAR status of this package is: %{_status}.
38
39 %description -l pl
40 XML_HTMLSax to oparty na SAX analizator XML-a dla ¼le sformu³owanych
41 dokumentów XML, takich jak HTML. Oryginalny kod zosta³ stworzony przez
42 Alexandra Zhukova i opublikowany pod
43 http://sourceforge.net/projects/phpshelve/, który z kolei by³
44 inspirowany pakietem HTMLSax dla Pythona. Alexander pozwoli³ na
45 modyfikowanie kodu i licencjonowanie do w³±czenia do PEAR.
46 PEAR::XML_HTMLSax wywodzi siê z ostatniej wersji z Sourceforge
47 (HTMLSax2002082201) i ma zmienione API, aby mo¿na by³o u¿ywaæ HTMLSax
48 bardzo podobnie do natywnego rozszerzenia PHP Expat, pozwalaj±c na
49 u¿ywanie w projektach typu filtry SAX:
50 http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
51 Ta wersja dodatkowo poprawia kilka b³êdów i dodaje nowe mo¿liwo¶ci,
52 takie jak obs³uga przetwarzania instrukcji i znaczników JSP/ASP.
53
54 Ta klasa ma w PEAR status: %{_status}.
55
56 %package tests
57 Summary:        Tests for PEAR::%{_pearname}
58 Summary(pl):    Testy dla PEAR::%{_pearname}
59 Group:          Development
60 Requires:       %{name} = %{epoch}:%{version}-%{release}
61 AutoReq:        no
62
63 %description tests
64 Tests for PEAR::%{_pearname}.
65
66 %description tests -l pl
67 Testy dla PEAR::%{_pearname}.
68
69 %prep
70 %pear_package_setup
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{php_pear_dir}
75 %pear_package_install
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc install.log
83 %doc docs/%{_pearname}/*
84 %dir %{php_pear_dir}/%{_class}/%{_subclass}
85 %{php_pear_dir}/.registry/*.reg
86 %{php_pear_dir}/%{_class}/*.php
87 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
88
89 %files tests
90 %defattr(644,root,root,755)
91 %{php_pear_dir}/tests/*
This page took 0.122571 seconds and 4 git commands to generate.