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