]>
Commit | Line | Data |
---|---|---|
b44929de | 1 | %include /usr/lib/rpm/macros.php |
3889a184 | 2 | %define _class XML |
3 | %define _subclass XPath | |
81a1fee2 | 4 | %define _status stable |
b44929de | 5 | %define _pearname %{_class}_%{_subclass} |
74da8701 | 6 | |
04020991 | 7 | Summary: %{_pearname} - XPath/DOM XML manipulation, maneuvering and query interface |
3b95b410 | 8 | Summary(pl.UTF-8): %{_pearname} - interfejs do obróbki i zapytań XPath/DOM XML |
b44929de | 9 | Name: php-pear-%{_pearname} |
24c67ffc | 10 | Version: 1.2.3 |
9f307a7a | 11 | Release: 3 |
b44929de AG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
24c67ffc | 15 | # Source0-md5: 7f3ac45db9e6bc5e549666e39a804c99 |
ae806e70 | 16 | Patch0: %{name}-path_fix.patch |
9bd1230c | 17 | URL: http://pear.php.net/package/XML_XPath/ |
e018eb61 | 18 | BuildRequires: php-pear-PEAR |
dcb99c41 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
deafb529 | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
9f307a7a | 21 | Requires: php(domxml) |
24c67ffc | 22 | Requires: php-common < 3:5.0.0 |
9f307a7a | 23 | Requires: php-common >= 3:4.2.1 |
b44929de AG |
24 | Requires: php-pear |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
04020991 | 29 | The PEAR::XML_XPath class provides an XPath/DOM XML manipulation, |
b44929de AG |
30 | maneuvering and query interface. |
31 | ||
32 | The class allows for easy manipulation, maneuvering and querying of a | |
04020991 | 33 | DOMXML tree using both XPath queries and DOM walk functions. It uses |
b44929de | 34 | an internal pointer for all methods on which the action is performed. |
04020991 | 35 | Results from an DOM/XPath query are returned as an XPath_Result |
b44929de AG |
36 | object, which contains an internal array of DOM nodes and which |
37 | extends the common DOM class and hence contains all the DOM functions | |
38 | from the main object to run on each of the elements in the internal | |
39 | array. This class tries to hold as close as possible to the DOM | |
40 | Recommendation. You MUST have the domxml extension to use this class. | |
41 | ||
42 | The XML_XPath class was inspired by a class maintained by Nigel | |
43 | Swinson called phpxpath. The phpxpath class does not rely on PHP | |
44 | xmldom functions and is therefore a sibling to this class: | |
24c67ffc | 45 | <http://sourceforge.net/projects/phpxpath/>. |
b44929de | 46 | |
a3358e5a | 47 | In PEAR status of this package is: %{_status}. |
b44929de | 48 | |
d08cf0e4 JR |
49 | %description -l pl.UTF-8 |
50 | Klasa PEAR::XML_XPath udostępnia interfejs do obróbki, manewrowania i | |
51 | zapytań XPath/DOM XML. | |
04020991 | 52 | |
d08cf0e4 JR |
53 | Klasa ta pozwala na łatwe manipulowanie, manewrowanie i odpytywanie |
54 | drzewa DOMXML przy użyciu zapytań XPath i funkcji chodzących DOM. | |
55 | Używa wewnętrznego wskaźnika dla wszystkich metod, na których jest | |
56 | wykonywana akcja. Wyniki zapytań DOM/XPath są zwracane jako obiekt | |
57 | XPath_Result, który zawiera wewnętrzną tablicę węzłów DOM i rozszerza | |
58 | ogólną klasę DOM, przez co zawiera wszystkie funkcje DOM z głównego | |
59 | obiektu, które można uruchamiać na każdym z elementów wewnętrznej | |
60 | tablicy. Ta klasa próbuje być najbliżej rekomendacji DOM na ile to | |
61 | możliwe. Aby używać tej klasy, trzeba mieć rozszerzenie domxml. | |
04020991 | 62 | |
d08cf0e4 | 63 | Klasa XML_XPath była inspirowana klasą phpxpath utrzymywaną przez |
04020991 JB |
64 | Nigela Swinsona. Klasa phpxpath nie polega na funkcjach PHP xmldom, |
65 | dlatego jest siostrzana dla tej klasy: | |
24c67ffc | 66 | <http://sourceforge.net/projects/phpxpath/>. |
04020991 JB |
67 | |
68 | Ta klasa ma w PEAR status: %{_status}. | |
69 | ||
b44929de | 70 | %prep |
dcb99c41 ER |
71 | %pear_package_setup |
72 | cd ./%{php_pear_dir}/%{_class} | |
73 | %patch0 -p2 | |
b44929de AG |
74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
dcb99c41 ER |
77 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
78 | %pear_package_install | |
b44929de AG |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
dcb99c41 ER |
85 | %doc install.log |
86 | %doc docs/%{_pearname}/docs/* | |
b44929de | 87 | %dir %{php_pear_dir}/%{_class}/%{_subclass} |
dcb99c41 | 88 | %{php_pear_dir}/.registry/*.reg |
b44929de AG |
89 | %{php_pear_dir}/%{_class}/*.php |
90 | %{php_pear_dir}/%{_class}/%{_subclass}/*.php |