]>
Commit | Line | Data |
---|---|---|
1e4839ae | 1 | %include /usr/lib/rpm/macros.php |
491f32c8 | 2 | %define _class DB |
3 | %define _subclass NestedSet | |
358548a2 | 4 | %define _status stable |
1e4839ae | 5 | %define _pearname %{_class}_%{_subclass} |
5a1fb824 | 6 | Summary: %{_pearname} - API to build and query nested sets |
aff867d3 | 7 | Summary(pl.UTF-8): %{_pearname} - API to tworzenia i wykonywania zagnieżdżonych zapytań |
1e4839ae | 8 | Name: php-pear-%{_pearname} |
358548a2 | 9 | Version: 1.4.1 |
ad7c5bc1 | 10 | Release: 2 |
1e4839ae AG |
11 | License: PHP 2.02 |
12 | Group: Development/Languages/PHP | |
1e4839ae | 13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
358548a2 | 14 | # Source0-md5: b906275511a6f4d1e9b1ed95ac6d7546 |
ad7c5bc1 | 15 | Patch0: includepath.patch |
e7ab206a | 16 | URL: http://pear.php.net/package/DB_NestedSet/ |
c719cb2b | 17 | BuildRequires: php-pear-PEAR |
d3ad717f | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-12 |
579e1dbb | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
1e4839ae AG |
20 | Requires: php-pear |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
0fbc86c0 ER |
24 | # included in tests |
25 | %define _noautoreq 'pear(TestBase.php)' 'pear(UnitTest.php)' | |
26 | ||
1e4839ae | 27 | %description |
868c9bb5 JB |
28 | DB_NestedSet lets you create trees with infinite depth inside a |
29 | relational database. The package provides a way to: | |
a892e562 AG |
30 | - create/update/delete nodes |
31 | - query nodes, trees and subtrees | |
32 | - copy (clone) nodes, trees and subtrees | |
33 | - move nodes, trees and subtrees | |
34 | - call event handlers on specific events like on node deletion | |
35 | - output the tree with | |
868c9bb5 JB |
36 | - PEAR::HTML_TreeMenu |
37 | - TigraMenu (http://www.softcomplex.com/products/tigra_menu/) | |
a892e562 | 38 | - It also features caching of SQL queries using PEAR::Cache. |
1e4839ae | 39 | |
47f31f00 | 40 | In PEAR status of this package is: %{_status}. |
1e4839ae | 41 | |
812d2a24 JR |
42 | %description -l pl.UTF-8 |
43 | DB_NestedSet pozwala na tworzenie drzew nieskończonej długości | |
44 | wewnątrz relacyjnych baz danych. Pakiet umożliwia: | |
45 | - tworzenie/modyfikowanie/usuwanie węzłów | |
46 | - odpytywanie węzłów, drzew i poddrzew | |
47 | - kopiowanie (klonowanie) węzłów, drzew i poddrzew | |
48 | - przenoszenie węzłów, drzew i poddrzew | |
49 | - wywoływanie procedur obsługi dla określonych zdarzeń typu usuwanie | |
50 | węzła | |
51 | - pokazanie drzewa przy użyciu: | |
868c9bb5 JB |
52 | - PEAR::HTML_TreeMenu |
53 | - TigraMenu (http://www.softcomplex.com/products/tigra_menu/) | |
812d2a24 | 54 | - może także buforować zapytania SQL przy użyciu PEAR::Cache. |
868c9bb5 JB |
55 | |
56 | Ta klasa ma w PEAR status: %{_status}. | |
57 | ||
ef64abba ER |
58 | %package tests |
59 | Summary: Tests for PEAR::%{_pearname} | |
aff867d3 | 60 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
c89c18f7 | 61 | Group: Development/Languages/PHP |
ad7c5bc1 | 62 | Requires: %{name} = %{version}-%{release} |
eb717495 | 63 | AutoProv: no |
ad7c5bc1 | 64 | AutoReq: no |
ef64abba ER |
65 | |
66 | %description tests | |
67 | Tests for PEAR::%{_pearname}. | |
68 | ||
812d2a24 | 69 | %description tests -l pl.UTF-8 |
05d5d86c ER |
70 | Testy dla PEAR::%{_pearname}. |
71 | ||
1e4839ae | 72 | %prep |
ef64abba | 73 | %pear_package_setup |
ad7c5bc1 | 74 | %patch0 -p1 |
1e4839ae | 75 | |
ad7c5bc1 ER |
76 | install -d examples |
77 | mv docs/%{_pearname}/docs/*example.php examples | |
0fbc86c0 | 78 | |
1e4839ae AG |
79 | %install |
80 | rm -rf $RPM_BUILD_ROOT | |
ef64abba ER |
81 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
82 | %pear_package_install | |
1e4839ae | 83 | |
ad7c5bc1 ER |
84 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
85 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
86 | ||
1e4839ae AG |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
ef64abba ER |
92 | %doc install.log |
93 | %doc docs/%{_pearname}/docs/* | |
94 | %{php_pear_dir}/.registry/*.reg | |
1e4839ae AG |
95 | %dir %{php_pear_dir}/%{_class}/%{_subclass} |
96 | %{php_pear_dir}/%{_class}/*.php | |
97 | %{php_pear_dir}/%{_class}/%{_subclass}/*.php | |
ef64abba | 98 | |
ad7c5bc1 ER |
99 | %{_examplesdir}/%{name}-%{version} |
100 | ||
ef64abba ER |
101 | %files tests |
102 | %defattr(644,root,root,755) | |
103 | %{php_pear_dir}/tests/* |