]> git.pld-linux.org Git - packages/php-pear-MDB2.git/blob - php-pear-MDB2.spec
- new pear packaging
[packages/php-pear-MDB2.git] / php-pear-MDB2.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          MDB2
3 %define         _pearname       %{_class}
4 %define         _status         beta
5
6 Summary:        %{_pearname} - unified database API
7 Summary(pl):    %{_pearname} - zunifikowane API baz danych
8 Name:           php-pear-%{_pearname}
9 Version:        2.0.0
10 %define _pre    beta4
11 %define _rel    1.1
12 Release:        0.%{_pre}.%{_rel}
13 Epoch:          1
14 License:        BSD style
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-pear
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 # (probably) included in tests
25 %define         _noautoreq 'pear(Console_TestListener.php)' 'pear(HTML_TestListener.php)' 'pear(XML/DTD/XmlValidator.php)' 'pear(testUtils.php)' 'pear(test_setup.php)'
26
27 %description
28 MDB2 is a merge of PEAR's DB and Metabases that provides a unified DB
29 API. It also provides methods for DB portability and DB feature
30 emulation. Most notably it features a DB independent XML-Schema
31 manager.
32
33 In PEAR status of this package is: %{_status}.
34
35 %description -l pl
36 MDB2 to po³±czenie PEAR DB i Metabases, które daje ujednolicone API do
37 baz danych. Zawiera tak¿e metody zapewniaj±ce przeno¶no¶æ i emulacjê
38 w³a¶ciwo¶ci dla baz danych. Najwa¿niejsza cecha to niezale¿ny od bazy
39 danych zarz±dca schematów XML.
40
41 Ta klasa ma w PEAR status: %{_status}.
42
43 %package tests
44 Summary:        Tests for PEAR::%{_pearname}
45 Summary(pl):    Testy dla PEAR::%{_pearname}
46 Group:          Development
47 Requires:       %{name} = %{epoch}:%{version}-%{release}
48
49 %description tests
50 Tests for PEAR::%{_pearname}.
51
52 %description tests -l pl
53 Testy dla PEAR::%{_pearname}.
54
55 %prep
56 %pear_package_setup
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
61 %pear_package_install
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc install.log
69 %doc docs/%{_pearname}/docs/*
70 %{php_pear_dir}/.registry/*.reg
71 %{php_pear_dir}/*.php
72 %{php_pear_dir}/%{_class}
73
74 %files tests
75 %defattr(644,root,root,755)
76 %{php_pear_dir}/tests/*
This page took 0.043438 seconds and 4 git commands to generate.