]>
Commit | Line | Data |
---|---|---|
1 | # ToDo: | |
2 | # - pl summary/description | |
3 | %include /usr/lib/rpm/macros.php | |
4 | %define _class XML | |
5 | %define _subclass HTMLSax | |
6 | %define _status beta | |
7 | %define _pearname %{_class}_%{_subclass} | |
8 | Summary: %{_pearname} - A SAX based parser for HTML and other badly formed XML documents | |
9 | Name: php-pear-%{_pearname} | |
10 | Version: 0.9.0rc2 | |
11 | Release: 1 | |
12 | License: PHP 2.02 | |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
15 | URL: http://pear.php.net/ | |
16 | BuildRequires: rpm-php-pearprov >= 4.0.2-98 | |
17 | Requires: php-pear | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | XML_HTMLSax is a SAX based XML parser for badly formed XML documents, | |
23 | such as HTML. The original code base was developed by Alexander Zhukov | |
24 | and published at http://sourceforge.net/projects/phpshelve/, who in | |
25 | turn was inspired by the Python HTMLSax package. Alexander kindly gave | |
26 | permission to modify the code and license for inclusion in PEAR. | |
27 | PEAR::XML_HTMLSax takes the last release from Sourceforge | |
28 | (HTMLSax2002082201) and changes the API to make using HTMLSax very | |
29 | similar to using the native PHP Expat extension, opening it up for use | |
30 | with projects like SAX filters: | |
31 | http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html. | |
32 | This version also fixes some bugs and adds further features such as | |
33 | the ability to handle processing instructions and JSP/ASP markup. | |
34 | ||
35 | This class has in PEAR status: %{_status}. | |
36 | ||
37 | %prep | |
38 | %setup -q -c | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} | |
43 | ||
44 | install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc %{_pearname}-%{version}/docs | |
52 | %{php_pear_dir}/%{_class}/*.php |