forked from pool/libdbi-drivers
Enable FreeTDS
OBS-URL: https://build.opensuse.org/package/show/server:database/libdbi-drivers?expand=0&rev=9
This commit is contained in:
parent
88068ab8f5
commit
fefe81c62b
@ -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
|
Mon Jun 16 14:06:55 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
BuildRequires: freetds-devel
|
||||||
BuildRequires: libdbi-devel >= 0.9.0.g21
|
BuildRequires: libdbi-devel >= 0.9.0.g21
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: mysql-devel
|
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
|
similar to the DBI/DBD layer in Perl. Drivers are distributed
|
||||||
separately from the library itself.
|
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
|
%package dbd-mysql
|
||||||
Summary: MySQL driver for libdbi
|
Summary: MySQL driver for libdbi
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -76,7 +87,7 @@ a program's driver does not require recompilation or rewriting source
|
|||||||
code.
|
code.
|
||||||
|
|
||||||
%package dbd-sqlite
|
%package dbd-sqlite
|
||||||
Summary: SQLite (old) driver for libdbi
|
Summary: SQLite2 driver for libdbi
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description dbd-sqlite
|
%description dbd-sqlite
|
||||||
@ -95,9 +106,7 @@ does not require recompilation or rewriting source code.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %name
|
%setup -qn %name
|
||||||
|
chmod a-x COPYING
|
||||||
#ensure license doesn't have a executable permission
|
|
||||||
chmod 644 COPYING
|
|
||||||
|
|
||||||
# Fake the __DATE__ so we do not needelessly rebuild
|
# Fake the __DATE__ so we do not needelessly rebuild
|
||||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %_sourcedir/%name.changes '+%%b %%e %%Y')
|
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
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
%configure \
|
%configure \
|
||||||
|
--with-freetds \
|
||||||
--with-mysql \
|
--with-mysql \
|
||||||
--with-pgsql \
|
--with-pgsql \
|
||||||
--with-sqlite3 --with-sqlite \
|
--with-sqlite3 --with-sqlite \
|
||||||
@ -122,6 +132,12 @@ find "%buildroot" -type f -name "*.la" -delete
|
|||||||
%check
|
%check
|
||||||
make check || :
|
make check || :
|
||||||
|
|
||||||
|
%files dbd-freetds
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING
|
||||||
|
%dir %_libdir/dbd
|
||||||
|
%_libdir/dbd/libdbdfreetds.so
|
||||||
|
|
||||||
%files dbd-mysql
|
%files dbd-mysql
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user