%include /usr/lib/rpm/macros.php %define _class DB %define _subclass NestedSet %define _status stable %define _pearname %{_class}_%{_subclass} Summary: %{_pearname} - API to build and query nested sets Summary(pl): %{_pearname} - API to tworzenia i wykonywania zagnieżdzonych zapytań Name: php-pear-%{_pearname} Version: 1.3 Release: 1 License: PHP 2.02 Group: Development/Languages/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz # Source0-md5: f538cac3d22a004edb22c72c1443b7b4 URL: http://pear.php.net/package/%{_pearname}/ BuildRequires: rpm-php-pearprov >= 4.0.2-98 Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DB_NestedSet lets you create trees with infinite depth inside a relational database. The package provides a way to: - create/update/delete nodes - query nodes, trees and subtrees - copy (clone) nodes, trees and subtrees - move nodes, trees and subtrees - call event handlers on specific events like on node deletion - output the tree with - PEAR::HTML_TreeMenu - TigraMenu (http://www.softcomplex.com/products/tigra_menu/) - It also features caching of SQL queries using PEAR::Cache. This class has in PEAR status: %{_status}. %description -l pl DB_NestedSet pozwala na tworzenie drzew nieskończonej długości wewnątrz relacyjnych baz danych. Pakiet umożliwia: - tworzenie/modyfikowanie/usuwanie węzłów - odpytywanie węzłów, drzew i poddrzew - kopiowanie (klonowanie) węzłów, drzew i poddrzew - przenoszenie węzłów, drzew i poddrzew - wywoływanie procedur obsługi dla określonych zdarzeń typu usuwanie węzła - pokazanie drzewa przy użyciu: - PEAR::HTML_TreeMenu - TigraMenu (http://www.softcomplex.com/products/tigra_menu/) - może także buforować zapytania SQL przy użyciu PEAR::Cache. Ta klasa ma w PEAR status: %{_status}. %prep %setup -q -c %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} install %{_pearname}-%{version}/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc %{_pearname}-%{version}/{docs,tests} %dir %{php_pear_dir}/%{_class}/%{_subclass} %{php_pear_dir}/%{_class}/*.php %{php_pear_dir}/%{_class}/%{_subclass}/*.php