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}
11 Release: 0.%{_pre}.%{_rel}
14 Group: Development/Languages/PHP
15 Source0: http://pear.php.net/get/%{_pearname}-%{version}%{_pre}.tgz
16 # Source0-md5: 711c90da893f3634dd855e489e6a7e73
17 URL: http://pear.php.net/package/MDB2/
18 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 Requires: php-common >= 3:4.2.0
21 Requires: php-pear-PEAR-core >= 1:1.0b1
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}
49 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}/%{_class}/Driver/Native
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %doc docs/%{_pearname}/docs/*
74 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/%{_class}
79 %defattr(644,root,root,755)
80 %{php_pear_dir}/tests/*