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