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