From fefe81c62bf12ac21675db02a29527ce97ffa0a96594cc08ac5a4dc8163ce76f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 27 Jun 2014 18:32:07 +0000 Subject: [PATCH] Enable FreeTDS OBS-URL: https://build.opensuse.org/package/show/server:database/libdbi-drivers?expand=0&rev=9 --- libdbi-drivers.changes | 5 +++++ libdbi-drivers.spec | 24 ++++++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/libdbi-drivers.changes b/libdbi-drivers.changes index 5a630a8..0cf5c61 100644 --- a/libdbi-drivers.changes +++ b/libdbi-drivers.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 27 18:31:58 UTC 2014 - jengelh@inai.de + +- Enable building FreeTDS plugin + ------------------------------------------------------------------- Mon Jun 16 14:06:55 UTC 2014 - jengelh@inai.de diff --git a/libdbi-drivers.spec b/libdbi-drivers.spec index a876d3c..2716287 100644 --- a/libdbi-drivers.spec +++ b/libdbi-drivers.spec @@ -32,6 +32,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext +BuildRequires: freetds-devel BuildRequires: libdbi-devel >= 0.9.0.g21 BuildRequires: libtool BuildRequires: mysql-devel @@ -55,6 +56,16 @@ libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl. Drivers are distributed separately from the library itself. +%package dbd-freetds +Summary: FreeTDS driver for libdbi +Group: System/Libraries + +%description dbd-freetds +This driver provides connectivity to FreeTDS database servers +through the libdbi database independent abstraction layer. Switching +a program's driver does not require recompilation or rewriting source +code. + %package dbd-mysql Summary: MySQL driver for libdbi Group: System/Libraries @@ -76,7 +87,7 @@ a program's driver does not require recompilation or rewriting source code. %package dbd-sqlite -Summary: SQLite (old) driver for libdbi +Summary: SQLite2 driver for libdbi Group: System/Libraries %description dbd-sqlite @@ -95,9 +106,7 @@ does not require recompilation or rewriting source code. %prep %setup -qn %name - -#ensure license doesn't have a executable permission -chmod 644 COPYING +chmod a-x COPYING # Fake the __DATE__ so we do not needelessly rebuild FAKE_BUILDDATE=$(LC_ALL=C date -u -r %_sourcedir/%name.changes '+%%b %%e %%Y') @@ -106,6 +115,7 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c %build autoreconf -fi %configure \ + --with-freetds \ --with-mysql \ --with-pgsql \ --with-sqlite3 --with-sqlite \ @@ -122,6 +132,12 @@ find "%buildroot" -type f -name "*.la" -delete %check make check || : +%files dbd-freetds +%defattr(-,root,root) +%doc COPYING +%dir %_libdir/dbd +%_libdir/dbd/libdbdfreetds.so + %files dbd-mysql %defattr(-,root,root) %doc COPYING