Jan Engelhardt 2014-06-27 18:32:07 +00:00 committed by Git OBS Bridge
parent 88068ab8f5
commit fefe81c62b
2 changed files with 25 additions and 4 deletions

View File

@ -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

View File

@ -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