1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
5 Summary: %{_pearname} - unified database API
6 Summary(pl): %{_pearname} - zunifikowane API baz danych
7 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 31c7294943b665c293f1453e1c4b20a4
15 URL: http://pear.php.net/package/MDB2/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
19 Requires: php-common >= 3:4.3.0
21 Requires: php-pear-PEAR-core >= 1:1.4.0-0.b1
22 Requires: php-pear-XML_Parser
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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)'
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
35 In PEAR status of this package is: %{_status}.
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.
43 Ta klasa ma w PEAR status: %{_status}.
46 Summary: Tests for PEAR::%{_pearname}
47 Summary(pl): Testy dla PEAR::%{_pearname}
48 Group: Development/Languages/PHP
49 Requires: %{name} = %{epoch}:%{version}-%{release}
54 Tests for PEAR::%{_pearname}.
56 %description tests -l pl
57 Testy dla PEAR::%{_pearname}.
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Driver/Native
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %doc docs/%{_pearname}/docs/*
75 %{php_pear_dir}/.registry/*.reg
77 %{php_pear_dir}/%{_class}
80 %defattr(644,root,root,755)
81 %{php_pear_dir}/tests/*