]> git.pld-linux.org Git - packages/php-pear-XML_HTMLSax.git/blob - php-pear-XML_HTMLSax.spec
- rel 4 (rebuild with less deps)
[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:        4
12 Epoch:          0
13 License:        PHP
14 Group:          Development/Languages/PHP
15 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
16 # Source0-md5:  73b75ef6d68c74115b6da8d151293633
17 URL:            http://pear.php.net/package/XML_HTMLSax/
18 BuildRequires:  php-pear-PEAR
19 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
20 Requires:       php-common >= 3:4.0.5
21 Requires:       php-pear
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
38
39 In PEAR status of this package is: %{_status}.
40
41 %description -l pl
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.
55
56 Ta klasa ma w PEAR status: %{_status}.
57
58 %package tests
59 Summary:        Tests for PEAR::%{_pearname}
60 Summary(pl):    Testy dla PEAR::%{_pearname}
61 Group:          Development/Languages/PHP
62 Requires:       %{name} = %{epoch}:%{version}-%{release}
63 AutoReq:        no
64
65 %description tests
66 Tests for PEAR::%{_pearname}.
67
68 %description tests -l pl
69 Testy dla PEAR::%{_pearname}.
70
71 %prep
72 %pear_package_setup
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{php_pear_dir}
77 %pear_package_install
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc install.log
85 %doc docs/%{_pearname}/*
86 %dir %{php_pear_dir}/%{_class}/%{_subclass}
87 %{php_pear_dir}/.registry/*.reg
88 %{php_pear_dir}/%{_class}/*.php
89 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
90
91 %files tests
92 %defattr(644,root,root,755)
93 %{php_pear_dir}/tests/*
This page took 0.07242 seconds and 4 git commands to generate.