1 %include /usr/lib/rpm/macros.php
3 %define _subclass NestedSet
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - API to build and query nested sets
8 Summary(pl): %{_pearname} - API to tworzenia i wykonywania zagnie¿dzonych zapytañ
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 556e7afbf740c0f18b35bfd820fd75b9
16 URL: http://pear.php.net/package/DB_NestedSet/
17 BuildRequires: rpm-php-pearprov >= 4.0.2-98
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 DB_NestedSet lets you create trees with infinite depth inside a
24 relational database. The package provides a way to:
25 - create/update/delete nodes
26 - query nodes, trees and subtrees
27 - copy (clone) nodes, trees and subtrees
28 - move nodes, trees and subtrees
29 - call event handlers on specific events like on node deletion
30 - output the tree with
32 - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
33 - It also features caching of SQL queries using PEAR::Cache.
35 In PEAR status of this package is: %{_status}.
38 DB_NestedSet pozwala na tworzenie drzew nieskoñczonej d³ugo¶ci
39 wewn±trz relacyjnych baz danych. Pakiet umo¿liwia:
40 - tworzenie/modyfikowanie/usuwanie wêz³ów
41 - odpytywanie wêz³ów, drzew i poddrzew
42 - kopiowanie (klonowanie) wêz³ów, drzew i poddrzew
43 - przenoszenie wêz³ów, drzew i poddrzew
44 - wywo³ywanie procedur obs³ugi dla okre¶lonych zdarzeñ typu usuwanie
46 - pokazanie drzewa przy u¿yciu:
48 - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
49 - mo¿e tak¿e buforowaæ zapytania SQL przy u¿yciu PEAR::Cache.
51 Ta klasa ma w PEAR status: %{_status}.
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
60 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
61 install %{_pearname}-%{version}/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc %{_pearname}-%{version}/{docs,tests}
69 %dir %{php_pear_dir}/%{_class}/%{_subclass}
70 %{php_pear_dir}/%{_class}/*.php
71 %{php_pear_dir}/%{_class}/%{_subclass}/*.php