1 |
slords |
1.2 |
# $Id$ |
2 |
|
|
|
3 |
slords |
1.1 |
Summary: PEAR Database Abstraction Layer |
4 |
|
|
%define name pear-db |
5 |
|
|
%define version 1.7.6 |
6 |
|
|
%define release 4 |
7 |
|
|
Name: %{name} |
8 |
|
|
Version: %{version} |
9 |
|
|
Release: %{release}%{?dist} |
10 |
|
|
License: PHP License |
11 |
|
|
Group: Applications/Web |
12 |
|
|
Source0: DB-%{version}.tgz |
13 |
|
|
Url: http://pear.php.net/package/DB |
14 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-%(id -u -n)-buildroot |
15 |
|
|
BuildArchitectures: noarch |
16 |
|
|
Requires: php |
17 |
|
|
|
18 |
|
|
%changelog |
19 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
20 |
|
|
- Clean up spec so package can be built by koji/plague |
21 |
|
|
|
22 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
23 |
|
|
- Update to new release naming. No functional changes. |
24 |
|
|
- Make Packager generic |
25 |
|
|
|
26 |
|
|
* Mon May 09 2005 Charlie Brady <charlieb@e-smith.com> 1.7.6-03es |
27 |
|
|
- Move files into the right heirarchy so they will be found. |
28 |
|
|
|
29 |
|
|
* Wed May 04 2005 Charlie Brady <charlieb@e-smith.com> 1.7.6-02es |
30 |
|
|
- Fix URL header. |
31 |
|
|
|
32 |
|
|
* Thu Apr 21 2005 Charlie Brady <charlieb@e-smith.com> 1.7.6-01es |
33 |
|
|
- Initial |
34 |
|
|
|
35 |
|
|
%description |
36 |
|
|
DB is a database abstraction layer providing: |
37 |
|
|
* an OO-style query API |
38 |
|
|
* portability features that make programs written for one DBMS work with other DBMS's |
39 |
|
|
* a DSN (data source name) format for specifying database servers |
40 |
|
|
* prepare/execute (bind) emulation for databases that don't support it natively |
41 |
|
|
* a result object for each query response |
42 |
|
|
* portable error codes |
43 |
|
|
* sequence emulation |
44 |
|
|
* sequential and non-sequential row fetching as well as bulk fetching |
45 |
|
|
* formats fetched rows as associative arrays, ordered arrays or objects |
46 |
|
|
* row limit support |
47 |
|
|
* transactions support |
48 |
|
|
* table information interface |
49 |
|
|
* DocBook and phpDocumentor API documentation |
50 |
|
|
|
51 |
|
|
DB layers itself on top of PHP's existing |
52 |
|
|
database extensions. |
53 |
|
|
|
54 |
|
|
Drivers for the following extensions pass |
55 |
|
|
the complete test suite and provide |
56 |
|
|
interchangeability when all of DB's |
57 |
|
|
portability options are enabled: |
58 |
|
|
|
59 |
|
|
fbsql, ibase, informix, msql, mssql, |
60 |
|
|
mysql, mysqli, oci8, odbc, pgsql, |
61 |
|
|
sqlite and sybase. |
62 |
|
|
|
63 |
|
|
There is also a driver for the dbase |
64 |
|
|
extension, but it can't be used |
65 |
|
|
interchangeably because dbase doesn't |
66 |
|
|
support many standard DBMS features. |
67 |
|
|
|
68 |
|
|
DB is compatible with both PHP 4 and PHP 5. |
69 |
|
|
|
70 |
|
|
%prep |
71 |
|
|
%setup -q -n DB-%{version} |
72 |
|
|
|
73 |
|
|
%build |
74 |
|
|
|
75 |
|
|
%clean |
76 |
|
|
rm -rf $RPM_BUILD_ROOT |
77 |
|
|
|
78 |
|
|
%install |
79 |
|
|
rm -rf $RPM_BUILD_ROOT |
80 |
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pear-addons/DB |
81 |
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pear-addons/doc/DB |
82 |
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pear-addons/test/DB |
83 |
|
|
cp -rp DB* $RPM_BUILD_ROOT/usr/share/pear-addons |
84 |
|
|
cp -rp doc $RPM_BUILD_ROOT/usr/share/pear-addons/doc/DB |
85 |
|
|
cp -rp tests $RPM_BUILD_ROOT/usr/share/pear-addons/test/DB |
86 |
|
|
|
87 |
|
|
%files |
88 |
|
|
%defattr(-,root,root) |
89 |
|
|
%dir /usr/share/pear-addons |
90 |
|
|
%dir /usr/share/pear-addons/DB |
91 |
|
|
/usr/share/pear-addons/* |