]>
Commit | Line | Data |
---|---|---|
d3772f7d AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class MDB2 | |
3 | %define _pearname %{_class} | |
f579f37f | 4 | %define _status stable |
d3772f7d | 5 | Summary: %{_pearname} - unified database API |
3818dc11 | 6 | Summary(pl.UTF-8): %{_pearname} - zunifikowane API baz danych |
d3772f7d | 7 | Name: php-pear-%{_pearname} |
43685511 | 8 | Version: 2.4.1 |
4e2d2b55 | 9 | Release: 2 |
d3772f7d AG |
10 | Epoch: 1 |
11 | License: BSD style | |
12 | Group: Development/Languages/PHP | |
f579f37f | 13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
43685511 | 14 | # Source0-md5: ca272056a3a4f1031a2b0e7f2e286a12 |
d3772f7d | 15 | URL: http://pear.php.net/package/MDB2/ |
bfa20d4b | 16 | BuildRequires: php-pear-PEAR |
31023fd2 | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
5601c94d | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
f579f37f | 19 | Requires: php-common >= 3:4.3.0 |
d3772f7d | 20 | Requires: php-pear |
dbabcbf0 | 21 | Requires: php-pear-PEAR-core >= 1:1.4.0-0.b1 |
962e5b35 | 22 | Requires: php-pear-XML_Parser |
d3772f7d AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
31023fd2 ER |
26 | # (probably) included in tests |
27 | %define _noautoreq 'pear(Console_TestListener.php)' 'pear(HTML_TestListener.php)' 'pear(XML/DTD/XmlValidator.php)' 'pear(testUtils.php)' 'pear(test_setup.php)' | |
28 | ||
d3772f7d AG |
29 | %description |
30 | MDB2 is a merge of PEAR's DB and Metabases that provides a unified DB | |
31 | API. It also provides methods for DB portability and DB feature | |
32 | emulation. Most notably it features a DB independent XML-Schema | |
33 | manager. | |
34 | ||
3501cee2 | 35 | In PEAR status of this package is: %{_status}. |
d3772f7d | 36 | |
e530dc4b JR |
37 | %description -l pl.UTF-8 |
38 | MDB2 to połączenie PEAR DB i Metabases, które daje ujednolicone API do | |
39 | baz danych. Zawiera także metody zapewniające przenośność i emulację | |
40 | właściwości dla baz danych. Najważniejsza cecha to niezależny od bazy | |
41 | danych zarządca schematów XML. | |
d3772f7d AG |
42 | |
43 | Ta klasa ma w PEAR status: %{_status}. | |
44 | ||
31023fd2 ER |
45 | %package tests |
46 | Summary: Tests for PEAR::%{_pearname} | |
3818dc11 | 47 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
411e897e | 48 | Group: Development/Languages/PHP |
31023fd2 | 49 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0fa79bea | 50 | AutoReq: no |
af488eca | 51 | AutoProv: no |
31023fd2 ER |
52 | |
53 | %description tests | |
54 | Tests for PEAR::%{_pearname}. | |
55 | ||
e530dc4b | 56 | %description tests -l pl.UTF-8 |
31023fd2 ER |
57 | Testy dla PEAR::%{_pearname}. |
58 | ||
d3772f7d | 59 | %prep |
31023fd2 | 60 | %pear_package_setup |
d3772f7d AG |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
0fa79bea | 64 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Driver/Native |
31023fd2 | 65 | %pear_package_install |
d3772f7d | 66 | |
f0a8df74 ER |
67 | rm -f $RPM_BUILD_ROOT/usr/share/pear/data/MDB2/LICENSE |
68 | ||
d3772f7d AG |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
31023fd2 ER |
74 | %doc install.log |
75 | %doc docs/%{_pearname}/docs/* | |
76 | %{php_pear_dir}/.registry/*.reg | |
d3772f7d AG |
77 | %{php_pear_dir}/*.php |
78 | %{php_pear_dir}/%{_class} | |
31023fd2 ER |
79 | |
80 | %files tests | |
81 | %defattr(644,root,root,755) | |
82 | %{php_pear_dir}/tests/* |