rebuilt with mariadb and specfile fixes [release 0.9.0-3mamba;Sat Mar 02 2024]

This commit is contained in:
Silvan Calarco 2024-03-03 00:23:04 +01:00
parent 46a5c7ab64
commit f05e6a0e14
3 changed files with 25 additions and 43 deletions

View File

@ -3,10 +3,4 @@
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.
The drivers officially supported by libdbi are:
FreeTDS (provides access to MS SQL Server and Sybase)
MySQL
PostgreSQL
SQLite/SQLite3

View File

@ -0,0 +1,12 @@
--- libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c.orig 2024-03-02 16:21:20.791832505 +0100
+++ libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c 2024-03-02 16:21:26.827844703 +0100
@@ -232,9 +232,6 @@
// Format = X.XX.XX
switch (str[0]) {
// We can use it if "CS_TDS_80" will be add to ct_con_props() by CS_SET action
- case '8':
- num = CS_TDS_80;
- break;
case '7':
num = CS_TDS_70;
break;

View File

@ -1,47 +1,35 @@
%define majver %(echo %version | cut -d. -f1-3)
#% define minver %(echo %version | cut -d. -f4)
Name: libdbi-drivers
Version: 0.9.0
Release: 2mamba
Release: 3mamba
Summary: Drivers for the Database Independent Abstraction Layer for C
Group: Development/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libdbi-drivers.sourceforge.net/
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: libmysql-devel
BuildRequires: libmariadb-devel
BuildRequires: libpostgresql-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: autoconf
BuildRequires: docbook-dsssl
BuildRequires: libdbi-devel
BuildRequires: openjade
BuildRequires: libopenssl-devel
BuildRequires: libkrb5-devel
BuildRequires: libopenssl-devel
BuildRequires: openjade
Requires: libdbi
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# Firebird/Interbase plugin
%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.
The drivers officially supported by libdbi are:
FreeTDS (provides access to MS SQL Server and Sybase)
MySQL
PostgreSQL
SQLite/SQLite3
%package freetds
Group: Development/Libraries
@ -49,7 +37,6 @@ 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
@ -58,7 +45,6 @@ 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
@ -67,7 +53,6 @@ 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
@ -76,7 +61,6 @@ 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
@ -89,14 +73,17 @@ 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.
This package contains static libraries need for development.
%debug_package
%prep
%setup -q -n %{name}-%{majver}%{?minver:-%minver}
%patch 0 -p1
./autogen.sh
%build
./autogen.sh
%configure \
--with-freetds \
--with-mysql \
@ -127,20 +114,6 @@ mv drivers/freetds/README drivers/freetds/freetds-README
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
#%files
#%defattr(-,root,root)
#%dir %{_libdir}/dbd
#%dir %{_datadir}/doc/libdbi-drivers-*/
#%{_datadir}/doc/libdbi-drivers-*/*
#%doc ChangeLog README
#%doc drivers/freetds/freetds-README
#%doc drivers/mysql/dbd_mysql/*.html
#%doc drivers/mysql/*.pdf
#%doc drivers/pgsql/dbd_pgsql/*.html
#%doc drivers/pgsql/*.pdf
#%doc drivers/sqlite3/dbd_sqlite3/*.html
#%doc drivers/sqlite3/*.pdf
%files freetds
%defattr(-,root,root)
%{_libdir}/dbd/libdbdfreetds.so
@ -166,6 +139,9 @@ mv drivers/freetds/README drivers/freetds/freetds-README
%{_libdir}/dbd/libdbd*.*a
%changelog
* Sat Mar 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-3mamba
- rebuilt with mariadb and specfile fixes
* Mon Jan 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-2mamba
- rebuilt with libsqlite3 instead of libsqlite2, remove empty libdbi-driver package