1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
6 Summary: %{_pearname} - unified database API
7 Summary(pl): %{_pearname} - zunifikowane API baz danych
8 Name: php-pear-%{_pearname}
12 Release: 0.%{_pre}.%{_rel}
15 Group: Development/Languages/PHP
16 Source0: http://pear.php.net/get/%{_pearname}-%{version}%{_pre}.tgz
17 # Source0-md5: 95aee608b6c980b5c99ebbf7425c6aa8
18 URL: http://pear.php.net/package/MDB2/
19 BuildRequires: rpm-php-pearprov >= 4.4.2-11
20 Requires: php-common >= 3:4.2.0
22 Requires: php-pear-PEAR >= 1:1.0b1
23 Requires: php-pear-XML_Parser
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 # (probably) included in tests
28 %define _noautoreq 'pear(Console_TestListener.php)' 'pear(HTML_TestListener.php)' 'pear(XML/DTD/XmlValidator.php)' 'pear(testUtils.php)' 'pear(test_setup.php)'
31 MDB2 is a merge of PEAR's DB and Metabases that provides a unified DB
32 API. It also provides methods for DB portability and DB feature
33 emulation. Most notably it features a DB independent XML-Schema
36 In PEAR status of this package is: %{_status}.
39 MDB2 to po³±czenie PEAR DB i Metabases, które daje ujednolicone API do
40 baz danych. Zawiera tak¿e metody zapewniaj±ce przeno¶no¶æ i emulacjê
41 w³a¶ciwo¶ci dla baz danych. Najwa¿niejsza cecha to niezale¿ny od bazy
42 danych zarz±dca schematów XML.
44 Ta klasa ma w PEAR status: %{_status}.
47 Summary: Tests for PEAR::%{_pearname}
48 Summary(pl): Testy dla PEAR::%{_pearname}
50 Requires: %{name} = %{epoch}:%{version}-%{release}
53 Tests for PEAR::%{_pearname}.
55 %description tests -l pl
56 Testy dla PEAR::%{_pearname}.
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %doc docs/%{_pearname}/docs/*
73 %{php_pear_dir}/.registry/*.reg
75 %{php_pear_dir}/%{_class}
78 %defattr(644,root,root,755)
79 %{php_pear_dir}/tests/*