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