]> git.pld-linux.org Git - packages/php-pear-XML_HTMLSax.git/blob - php-pear-XML_HTMLSax.spec
- updated deps with pearize.sh
[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 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}
9 Version:        3.0.0
10 Release:        6
11 License:        PHP
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
20 Requires:       php-pear
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 XML_HTMLSax is a SAX based XML parser for badly formed XML documents,
26 such as HTML. The original code base was developed by Alexander Zhukov
27 and published at http://sourceforge.net/projects/phpshelve/, who in
28 turn was inspired by the Python HTMLSax package. Alexander kindly gave
29 permission to modify the code and license for inclusion in PEAR.
30 PEAR::XML_HTMLSax takes the last release from Sourceforge
31 (HTMLSax2002082201) and changes the API to make using HTMLSax very
32 similar to using the native PHP Expat extension, opening it up for use
33 with projects like SAX filters:
34 http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
35 This version also fixes some bugs and adds further features such as
36 the ability to handle processing instructions and JSP/ASP markup.
37
38 In PEAR status of this package is: %{_status}.
39
40 %description -l pl.UTF-8
41 XML_HTMLSax to oparty na SAX analizator XML-a dla źle sformułowanych
42 dokumentów XML, takich jak HTML. Oryginalny kod został stworzony przez
43 Alexandra Zhukova i opublikowany pod
44 http://sourceforge.net/projects/phpshelve/, który z kolei był
45 inspirowany pakietem HTMLSax dla Pythona. Alexander pozwolił na
46 modyfikowanie kodu i licencjonowanie do włączenia do PEAR.
47 PEAR::XML_HTMLSax wywodzi się z ostatniej wersji z Sourceforge
48 (HTMLSax2002082201) i ma zmienione API, aby można było używać HTMLSax
49 bardzo podobnie do natywnego rozszerzenia PHP Expat, pozwalając na
50 używanie w projektach typu filtry SAX:
51 http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
52 Ta wersja dodatkowo poprawia kilka błędów i dodaje nowe możliwości,
53 takie jak obsługa przetwarzania instrukcji i znaczników JSP/ASP.
54
55 Ta klasa ma w PEAR status: %{_status}.
56
57 %package tests
58 Summary:        Tests for PEAR::%{_pearname}
59 Summary(pl.UTF-8):      Testy dla PEAR::%{_pearname}
60 Group:          Development/Languages/PHP
61 Requires:       %{name} = %{version}-%{release}
62 AutoProv:       no
63 AutoReq:        no
64
65 %description tests
66 Tests for PEAR::%{_pearname}.
67
68 %description tests -l pl.UTF-8
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.070924 seconds and 4 git commands to generate.