Summary: Database-specific drivers for libdbi
Name: libdbi-drivers
Version: 0.7.1
Release: 1
Group: Development/Libraries
License: LGPL
URL: http://libdbi-drivers.sourceforge.net/
Source: http://prdownloads.sourceforge.net/libdbi-drivers/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: libdbi >= 0.7
BuildRequires: libdbi-devel >= 0.7
BuildRequires: postgresql-devel, krb5-devel, openssl-devel
BuildRequires: mysqlclient10-devel
%description
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.
libdbi-drivers contains the database-specific plugins needed to connect
libdbi to particular database servers.
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%prep
%setup -q -n %{name}-%{version}
%build
# configure is broken, must pass both --with-*sql-libdir _AND_
# --with-*sql-incdir in order for --with-*sql-libdir to be used
%configure --with-mysql --with-pgsql --with-mysql-libdir=%{_libdir}/mysql3/mysql \
--with-mysql-incdir=%{_includedir}/mysql3 \
--with-pgsql-libdir=%{_libdir} \
--with-pgsql-incdir=%{_includedir}
make %{?_smp_mflags}
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
#makeinstall plugindir=$RPM_BUILD_ROOT%{_libdir}/dbd
make DESTDIR=$RPM_BUILD_ROOT install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc README
%{_libdir}/dbd/
%changelog
* Thu Mar 10 2005 Tom Lane <tgl@redhat.com> 0.7.1-1
- Import new libdbi version, splitting libdbi-drivers into a separate SRPM
so we can track new upstream packaging.