%define majver %(echo %version | cut -d. -f1-3) Name: libdbi-drivers Version: 0.9.0 Release: 3mamba Summary: Drivers for the Database Independent Abstraction Layer for C Group: Development/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://libdbi-drivers.sourceforge.net/ Source: http://downloads.sourceforge.net/project/libdbi-drivers/libdbi-drivers/libdbi-drivers-%{majver}%{?minver:-%minver}/libdbi-drivers-%{majver}%{?minver:-%minver}.tar.gz Patch0: libdbi-drivers-0.9.0-freetds-1.4.10.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libdbi-devel BuildRequires: libfreetds-devel BuildRequires: libmariadb-devel BuildRequires: libpostgresql-devel BuildRequires: libsqlite-devel ## AUTOBUILDREQ-END BuildRequires: autoconf BuildRequires: docbook-dsssl BuildRequires: libkrb5-devel BuildRequires: libopenssl-devel BuildRequires: openjade Requires: libdbi %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. The libdbi-drivers project provides the database-specific drivers for the libdbi framework. The current version of libdbi-drivers will work with any 0.8.x release of the framework. %package freetds Group: Development/Libraries Summary: FreeTDS plugin for libdbi %description freetds Drivers for the Database Independent Abstraction Layer for C. This package contains FreeTDS plugin for libdbi. %package mysql Group: Development/Libraries Summary: MySQL plugin for libdbi %description mysql Drivers for the Database Independent Abstraction Layer for C. This package contains MySQL plugin for libdbi. %package pgsql Group: Development/Libraries Summary: PostgreSQL plugin for libdbi %description pgsql Drivers for the Database Independent Abstraction Layer for C. This package contains PostgreSQL plugin for libdbi. %package sqlite Group: Development/Libraries Summary: SQLite plugin for libdbi %description sqlite Drivers for the Database Independent Abstraction Layer for C. This package contains SQLite plugin for libdbi. %package static Group: Development/Libraries Summary: Static libraries for %{name} Requires: %{name}-freetds = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name}-mysql = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name}-pgsql = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name}-sqlite = %{?epoch:%epoch:}%{version}-%{release} %description static Drivers for the Database Independent Abstraction Layer for C. This package contains static libraries needed for development. %debug_package %prep %setup -q -n %{name}-%{majver}%{?minver:-%minver} %patch 0 -p1 ./autogen.sh %build %configure \ --with-freetds \ --with-mysql \ --with-pgsql \ --with-sqlite3 \ --without-sqlite \ --with-freetds-libdir=%{_libdir} \ --with-freetds-incdir=%{_includedir} \ --with-mysql-libdir=%{_libdir}/mysql \ --with-mysql-incdir=%{_includedir}/mysql \ --with-pgsql-libdir=%{_libdir} \ --with-pgsql-incdir=%{_includedir} \ --with-dbi-libdir=%{_libdir} %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall rm -rf %{buildroot}%{_docdir}/libdbi-drivers-%{version}%{?rel} mv drivers/freetds/README drivers/freetds/freetds-README %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files freetds %defattr(-,root,root) %{_libdir}/dbd/libdbdfreetds.so %doc AUTHORS COPYING %files mysql %defattr(-,root,root) %{_libdir}/dbd/libdbdmysql.so %doc AUTHORS COPYING %files pgsql %defattr(-,root,root) %{_libdir}/dbd/libdbdpgsql.so %doc AUTHORS COPYING %files sqlite %defattr(-,root,root) %{_libdir}/dbd/libdbdsqlite3.so %doc AUTHORS COPYING %files static %defattr(-,root,root) %{_libdir}/dbd/libdbd*.*a %changelog * Sat Mar 02 2024 Silvan Calarco 0.9.0-3mamba - rebuilt with mariadb and specfile fixes * Mon Jan 27 2014 Silvan Calarco 0.9.0-2mamba - rebuilt with libsqlite3 instead of libsqlite2, remove empty libdbi-driver package * Fri Mar 22 2013 Automatic Build System 0.9.0-1mamba - automatic version update by autodist * Tue Oct 16 2012 Automatic Build System 0.8.3.1-1mamba - update to 0.8.3.1 * Fri Dec 17 2010 gil 0.8.3-1mamba - package created by autospec