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