1 %bcond_without mysql # don't build mysql driver
2 %bcond_without pgsql # don't build postgresql driver
3 %bcond_without sqlite # don't build sqlite driver
5 Summary: Database Independent Abstraction Layer for C
6 Summary(pl): Warstwa DBI dla C
12 Source0: http://dl.sourceforge.net/libdbi-drivers/libdbi-drivers-%{version}.tar.gz
13 # Source0-md5: 4a523d28b53934cdd6bf1fadf0bfc6b9
14 URL: http://libdbi-drivers.sourceforge.net/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libtool
18 BuildRequires: libdbi-devel >= %{dbiver}
19 %{?with_mysql:BuildRequires: mysql-devel}
20 %{?with_pgsql:BuildRequires: postgresql-devel}
21 %{?with_sqlite:BuildRequires: sqlite-devel}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 libdbi implements a database-independent abstraction layer in C,
26 similar to the DBI/DBD layer in Perl. Writing one generic set of code,
27 programmers can leverage the power of multiple databases and multiple
28 simultaneous database connections by using this framework.
31 libdbi jest implementacj± w C warstwy abstrakcyjnej niezale¿nej od
32 bazy danych, podobnej do warstwy DBI/DBD w Perlu. U¿ywaj±c tego
33 ¶rodowiska programista mo¿e za pomoc± jednego, wspólnego kodu
34 odwo³ywaæ siê do wielu ró¿nych baz danych, tak¿e jednocze¶nie.
37 Summary: MySQL plugin for libdbi
38 Summary(pl): Wtyczka MySQL dla libdbi
40 Requires: libdbi >= %{dbiver}
41 Provides: libdbi-dbd = %{version}-%{release}
42 Obsoletes: libdbi-dbd-mysql
45 This plugin provides connectivity to MySQL database servers through
46 the libdbi database independent abstraction layer. Switching a
47 program's plugin does not require recompilation or rewriting source
50 %description mysql -l pl
51 Ta wtyczka daje mo¿liwo¶æ ³±czenia siê z serwerami MySQL poprzez
52 bibliotekê libdbi. Zmiana u¿ywanej wtyczki nie wymaga rekompilacji ani
53 zmiany ¼róde³ programu.
56 Summary: PostgreSQL plugin for libdbi
57 Summary(pl): Wtyczka PostgreSQL dla libdbi
59 Requires: libdbi >= %{dbiver}
60 Provides: libdbi-dbd = %{version}-%{release}
61 Obsoletes: libdbi-dbd-pgsql
64 This plugin provides connectivity to PostgreSQL database servers
65 through the libdbi database independent abstraction layer. Switching a
66 program's plugin does not require recompilation or rewriting source
69 %description pgsql -l pl
70 Ta wtyczka daje mo¿liwo¶æ ³±czenia siê z serwerami PostgreSQL poprzez
71 bibliotekê libdbi. Zmiana u¿ywanej wtyczki nie wymaga rekompilacji ani
72 zmiany ¼róde³ programu.
75 Summary: SQLite plugin for libdbi
76 Summary(pl): Wtyczka SQLite dla libdbi
78 Requires: libdbi >= %{dbiver}
79 Provides: libdbi-dbd = %{version}-%{release}
82 This plugin provides connectivity to SQLite engine
83 through the libdbi database independent abstraction layer. Switching a
84 program's plugin does not require recompilation or rewriting source
87 %description sqlite -l pl
88 Ta wtyczka daje mo¿liwo¶æ ³±czenia siê z silnikiem SQLite poprzez
89 bibliotekê libdbi. Zmiana u¿ywanej wtyczki nie wymaga rekompilacji ani
90 zmiany ¼róde³ programu.
102 %{?with_sqlite:--with-sqlite} \
103 %{?with_mysql:--with-mysql} \
104 %{?with_pgsql:--with-pgsql} \
105 --with-dbi-incdir=%{_includedir}
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_libdir}/dbd
112 %{__make} DESTDIR=$RPM_BUILD_ROOT install
115 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
120 %doc drivers/mysql/*.pdf drivers/mysql/dbd_mysql
121 %attr(755,root,root) %{_libdir}/dbd/libmysql.so
126 %defattr(644,root,root,755)
127 %doc drivers/pgsql/*.pdf drivers/pgsql/dbd_pgsql
128 %attr(755,root,root) %{_libdir}/dbd/libpgsql.so
133 %defattr(644,root,root,755)
134 %doc drivers/sqlite/*.pdf drivers/sqlite/dbd_sqlite
135 %{_libdir}/dbd/libsqlite.so