]> git.pld-linux.org Git - packages/php-pear-DB_NestedSet.git/blame - php-pear-DB_NestedSet.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-DB_NestedSet.git] / php-pear-DB_NestedSet.spec
CommitLineData
491f32c8 1%define _class DB
2%define _subclass NestedSet
358548a2 3%define _status stable
1e4839ae 4%define _pearname %{_class}_%{_subclass}
5a1fb824 5Summary: %{_pearname} - API to build and query nested sets
aff867d3 6Summary(pl.UTF-8): %{_pearname} - API to tworzenia i wykonywania zagnieżdżonych zapytań
1e4839ae 7Name: php-pear-%{_pearname}
358548a2 8Version: 1.4.1
e5df7424 9Release: 3
1e4839ae
AG
10License: PHP 2.02
11Group: Development/Languages/PHP
1e4839ae 12Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
358548a2 13# Source0-md5: b906275511a6f4d1e9b1ed95ac6d7546
ad7c5bc1 14Patch0: includepath.patch
e7ab206a 15URL: http://pear.php.net/package/DB_NestedSet/
c719cb2b 16BuildRequires: php-pear-PEAR
d3ad717f 17BuildRequires: rpm-php-pearprov >= 4.4.2-12
579e1dbb 18BuildRequires: rpmbuild(macros) >= 1.300
1e4839ae 19Requires: php-pear
7f7994b1 20Obsoletes: php-pear-DB_NestedSet-tests
1e4839ae
AG
21BuildArch: noarch
22BuildRoot: %{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
28DB_NestedSet lets you create trees with infinite depth inside a
29relational 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 40In PEAR status of this package is: %{_status}.
1e4839ae 41
812d2a24
JR
42%description -l pl.UTF-8
43DB_NestedSet pozwala na tworzenie drzew nieskończonej długości
44wewną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
56Ta klasa ma w PEAR status: %{_status}.
57
1e4839ae 58%prep
ef64abba 59%pear_package_setup
ad7c5bc1 60%patch0 -p1
1e4839ae 61
ad7c5bc1
ER
62install -d examples
63mv docs/%{_pearname}/docs/*example.php examples
0fbc86c0 64
1e4839ae
AG
65%install
66rm -rf $RPM_BUILD_ROOT
ef64abba
ER
67install -d $RPM_BUILD_ROOT%{php_pear_dir}
68%pear_package_install
1e4839ae 69
ad7c5bc1
ER
70install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72
1e4839ae
AG
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%files
77%defattr(644,root,root,755)
ef64abba
ER
78%doc install.log
79%doc docs/%{_pearname}/docs/*
80%{php_pear_dir}/.registry/*.reg
1e4839ae
AG
81%dir %{php_pear_dir}/%{_class}/%{_subclass}
82%{php_pear_dir}/%{_class}/*.php
83%{php_pear_dir}/%{_class}/%{_subclass}/*.php
ef64abba 84
ad7c5bc1 85%{_examplesdir}/%{name}-%{version}
This page took 0.055239 seconds and 4 git commands to generate.