1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
5 Summary: %{_pearname} - unified database API
6 Summary(pl.UTF-8): %{_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: ca272056a3a4f1031a2b0e7f2e286a12
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}.
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.
43 Ta klasa ma w PEAR status: %{_status}.
46 Summary: Tests for PEAR::%{_pearname}
47 Summary(pl.UTF-8): 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.UTF-8
57 Testy dla PEAR::%{_pearname}.
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Driver/Native
67 rm -f $RPM_BUILD_ROOT/usr/share/pear/data/MDB2/LICENSE
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %doc docs/%{_pearname}/docs/*
76 %{php_pear_dir}/.registry/*.reg
78 %{php_pear_dir}/%{_class}
81 %defattr(644,root,root,755)
82 %{php_pear_dir}/tests/*