1 %include /usr/lib/rpm/macros.php
3 %define _subclass HTMLSax
5 %define _pearname %{_class}_%{_subclass}
6 Summary: %{_pearname} - a SAX based parser for HTML and other badly formed XML documents
7 Summary(pl.UTF-8): %{_pearname} - analizator SAX dla HTML-a i innych źle sformułowanych dokumentów XML
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 73b75ef6d68c74115b6da8d151293633
15 URL: http://pear.php.net/package/XML_HTMLSax/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
19 Requires: php-common >= 3:4.0.5
21 Obsoletes: php-pear-XML_HTMLSax-tests
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 XML_HTMLSax is a SAX based XML parser for badly formed XML documents,
27 such as HTML. The original code base was developed by Alexander Zhukov
28 and published at http://sourceforge.net/projects/phpshelve/, who in
29 turn was inspired by the Python HTMLSax package. Alexander kindly gave
30 permission to modify the code and license for inclusion in PEAR.
31 PEAR::XML_HTMLSax takes the last release from Sourceforge
32 (HTMLSax2002082201) and changes the API to make using HTMLSax very
33 similar to using the native PHP Expat extension, opening it up for use
34 with projects like SAX filters:
35 http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
36 This version also fixes some bugs and adds further features such as
37 the ability to handle processing instructions and JSP/ASP markup.
39 In PEAR status of this package is: %{_status}.
41 %description -l pl.UTF-8
42 XML_HTMLSax to oparty na SAX analizator XML-a dla źle sformułowanych
43 dokumentów XML, takich jak HTML. Oryginalny kod został stworzony przez
44 Alexandra Zhukova i opublikowany pod
45 http://sourceforge.net/projects/phpshelve/, który z kolei był
46 inspirowany pakietem HTMLSax dla Pythona. Alexander pozwolił na
47 modyfikowanie kodu i licencjonowanie do włączenia do PEAR.
48 PEAR::XML_HTMLSax wywodzi się z ostatniej wersji z Sourceforge
49 (HTMLSax2002082201) i ma zmienione API, aby można było używać HTMLSax
50 bardzo podobnie do natywnego rozszerzenia PHP Expat, pozwalając na
51 używanie w projektach typu filtry SAX:
52 http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
53 Ta wersja dodatkowo poprawia kilka błędów i dodaje nowe możliwości,
54 takie jak obsługa przetwarzania instrukcji i znaczników JSP/ASP.
56 Ta klasa ma w PEAR status: %{_status}.
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %doc docs/%{_pearname}/*
73 %dir %{php_pear_dir}/%{_class}/%{_subclass}
74 %{php_pear_dir}/.registry/*.reg
75 %{php_pear_dir}/%{_class}/*.php
76 %{php_pear_dir}/%{_class}/%{_subclass}/*.php