]>
Commit | Line | Data |
---|---|---|
14df171b | 1 | %include /usr/lib/rpm/macros.php |
07382d65 | 2 | %define _class DB |
3 | %define _subclass QueryTool | |
14df171b PG |
4 | %define _status stable |
5 | %define _pearname %{_class}_%{_subclass} | |
07382d65 | 6 | |
7 | Summary: %{_pearname} - an OO-interface for easily retrieving and modifying data in a DB | |
833c2ce7 | 8 | Summary(pl.UTF-8): %{_pearname} - obiektowy interfejs do odczytywania i modyfikowania danych w DB |
14df171b | 9 | Name: php-pear-%{_pearname} |
963c40de | 10 | Version: 1.1.0 |
a963a7c2 | 11 | Release: 2 |
8fcf3819 | 12 | Epoch: 0 |
14df171b PG |
13 | License: PHP 2.02 |
14 | Group: Development/Languages/PHP | |
15 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
963c40de | 16 | # Source0-md5: d46683e414b51a638985e0e03eb9569e |
6269df5b | 17 | URL: http://pear.php.net/package/DB_QueryTool/ |
97c1142c | 18 | BuildRequires: php-pear-PEAR |
b27b3987 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
b67f95dc | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
14df171b | 21 | Requires: php-pear |
404d503a ER |
22 | Requires: php-pear-DB |
23 | Requires: php-pear-Log >= 1.7 | |
963c40de | 24 | Requires: php-pear-PEAR-core >= 1:1.4.0b1 |
14df171b PG |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This package is an OO-abstraction to the SQL-Query language, it | |
30 | provides methods such as setWhere, setOrder, setGroup, setJoin, etc. | |
31 | to easily build queries. It also provides an easy to learn interface | |
32 | that interacts nicely with HTML-forms using arrays that contain the | |
33 | column data, that shall be updated/added in a DB. This package bases | |
34 | on an SQL-Builder which lets you easily build SQL-Statements and | |
35 | execute them. | |
36 | ||
6ed5a36a | 37 | In PEAR status of this package is: %{_status}. |
14df171b | 38 | |
b54f37dd JR |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet to obiektowo zorientowana abstrakcja dla języka zapytań | |
41 | SQL, udostępniająca metody takie jak setWhere, setOrder, setGroup, | |
42 | setJoin itp. do łatwego tworzenia zapytań. Udostępnia on także łatwy | |
43 | do nauczenia się interfejs współpracujący z HTML-forms przy użyciu | |
44 | tablic zawierających dane z kolumn, które mają być uaktualnione/dodane | |
45 | do bazy. Ten pakiet bazuje na SQL-Builderze, który pozwala na łatwe | |
9053c2ba | 46 | tworzenie i wykonywanie instrukcji SQL. |
14df171b PG |
47 | |
48 | Ta klasa ma w PEAR status: %{_status}. | |
49 | ||
b27b3987 ER |
50 | %package tests |
51 | Summary: Tests for PEAR::%{_pearname} | |
833c2ce7 | 52 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
b85c845c | 53 | Group: Development/Languages/PHP |
a29f638e | 54 | Requires: %{name} = %{epoch}:%{version}-%{release} |
31f382fb | 55 | AutoReq: no |
20d2599f | 56 | AutoProv: no |
b27b3987 ER |
57 | |
58 | %description tests | |
59 | Tests for PEAR::%{_pearname}. | |
60 | ||
b54f37dd | 61 | %description tests -l pl.UTF-8 |
46a23868 JB |
62 | Testy dla PEAR::%{_pearname}. |
63 | ||
14df171b | 64 | %prep |
b27b3987 | 65 | %pear_package_setup |
14df171b PG |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
b27b3987 ER |
69 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
70 | %pear_package_install | |
14df171b PG |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
b27b3987 ER |
77 | %doc install.log |
78 | %{php_pear_dir}/.registry/*.reg | |
14df171b | 79 | %{php_pear_dir}/%{_class}/*.php |
e18bd6f9 | 80 | %{php_pear_dir}/%{_class}/%{_subclass}/ |
b27b3987 ER |
81 | |
82 | %files tests | |
83 | %defattr(644,root,root,755) | |
84 | %{php_pear_dir}/tests/* |