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