[libdbi-drivers] fix #include of mysql
Jan Pacner
jpacner at fedoraproject.org
Thu Jan 23 09:14:07 UTC 2014
commit fb4dfa711ac0895380c5322d76eaeb9af9fcb18f
Author: Jan Pacner <jpacner at redhat.com>
Date: Thu Jan 23 10:14:22 2014 +0100
fix #include of mysql
libdbi-drivers.spec | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/libdbi-drivers.spec b/libdbi-drivers.spec
index cd749fc..a983822 100644
--- a/libdbi-drivers.spec
+++ b/libdbi-drivers.spec
@@ -7,8 +7,7 @@ License: LGPLv2+
URL: http://libdbi-drivers.sourceforge.net/
Source: http://prdownloads.sourceforge.net/libdbi-drivers/%{name}-%{version}.tar.gz
-#Patch1: libdbi-drivers-cflags.patch
-#Patch2: libdbi-drivers-error-handler.patch
+# old automake does not offer aarch64
Patch1: libdbi-drivers-aarch64.patch
Requires: libdbi%{?_isa} >= 0.9
@@ -28,12 +27,12 @@ libdbi to particular database servers.
Summary: MySQL plugin for libdbi
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
-BuildRequires: mysql-devel, openssl-devel
+BuildRequires: mariadb-devel, openssl-devel
%description -n libdbi-dbd-mysql
-This plugin provides connectivity to MySQL database servers through the
-libdbi database independent abstraction layer. Switching a program's plugin
-does not require recompilation or rewriting source code.
+This plugin provides connectivity to MySQL/MariaDB database servers through
+the libdbi database independent abstraction layer. Switching a program's
+plugin does not require recompilation or rewriting source code.
%package -n libdbi-dbd-pgsql
Summary: PostgreSQL plugin for libdbi
@@ -61,6 +60,8 @@ does not require recompilation or rewriting source code.
%setup -q -n %{name}-%{version}
%patch1 -p1
+# mariadb provides headers in a subfolder <mysql/mysql.h>
+sed -i -r 's|<(mysql\.h)>|<mysql/\1>|' drivers/mysql/dbd_mysql.c
autoconf
More information about the scm-commits
mailing list