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¿d¿onych zapytañ
9 Name: php-pear-%{_pearname}
14 Group: Development/Languages/PHP
15 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
16 # Source0-md5: 556e7afbf740c0f18b35bfd820fd75b9
17 URL: http://pear.php.net/package/DB_NestedSet/
18 BuildRequires: rpm-php-pearprov >= 4.4.2-12
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _noautoreq 'pear(TestBase.php)' 'pear(UnitTest.php)'
27 DB_NestedSet lets you create trees with infinite depth inside a
28 relational database. The package provides a way to:
29 - create/update/delete nodes
30 - query nodes, trees and subtrees
31 - copy (clone) nodes, trees and subtrees
32 - move nodes, trees and subtrees
33 - call event handlers on specific events like on node deletion
34 - output the tree with
36 - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
37 - It also features caching of SQL queries using PEAR::Cache.
39 In PEAR status of this package is: %{_status}.
42 DB_NestedSet pozwala na tworzenie drzew nieskoñczonej d³ugo¶ci
43 wewn±trz relacyjnych baz danych. Pakiet umo¿liwia:
44 - tworzenie/modyfikowanie/usuwanie wêz³ów
45 - odpytywanie wêz³ów, drzew i poddrzew
46 - kopiowanie (klonowanie) wêz³ów, drzew i poddrzew
47 - przenoszenie wêz³ów, drzew i poddrzew
48 - wywo³ywanie procedur obs³ugi dla okre¶lonych zdarzeñ typu usuwanie
50 - pokazanie drzewa przy u¿yciu:
52 - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
53 - mo¿e tak¿e buforowaæ zapytania SQL przy u¿yciu PEAR::Cache.
55 Ta klasa ma w PEAR status: %{_status}.
58 Summary: Tests for PEAR::%{_pearname}
59 Summary(pl): Testy dla PEAR::%{_pearname}
60 Group: Development/Languages/PHP
61 Requires: %{name} = %{epoch}:%{version}-%{release}
65 Tests for PEAR::%{_pearname}.
67 %description tests -l pl
68 Testy dla PEAR::%{_pearname}.
74 cd ./%{php_pear_dir}/tests/%{_pearname}/tests
76 sed -i -e 's,\r,\n,g' index.php
78 # make it suitable after install
79 sed -i -e 's,NestedSet.php,DB/NestedSet.php,' *.php
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{php_pear_dir}
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %doc docs/%{_pearname}/docs/*
93 %{php_pear_dir}/.registry/*.reg
94 %dir %{php_pear_dir}/%{_class}/%{_subclass}
95 %{php_pear_dir}/%{_class}/*.php
96 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
99 %defattr(644,root,root,755)
100 %{php_pear_dir}/tests/*