Accepting request 240910 from server:database

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/240910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdbi-drivers?expand=0&rev=17
This commit is contained in:
Stephan Kulow 2014-07-15 06:01:03 +00:00 committed by Git OBS Bridge
commit dfa2a3f4d3
4 changed files with 40 additions and 12 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a21cedfe5bac7d729d569c92b9d10b647770da9e64790c003b6eea87f8029fff
size 254532

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ddbb836dc0ef3e1afae60030d1e4c98da4cdee73738d647f99bb5e5a0a282c6
size 254728

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Jul 7 11:17:31 UTC 2014 - jengelh@inai.de
- Update to new git snapshot 0.9.0+git46
* Support automatic reconnect under MySQL
* Support character set retention across autoreconnect cycles
* Have drivers use the new DBI_TYPE_XDECIMAL type
- Enable building FreeTDS plugin
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 8 21:15:16 UTC 2014 - jengelh@inai.de Thu May 8 21:15:16 UTC 2014 - jengelh@inai.de

View File

@ -17,21 +17,23 @@
Name: libdbi-drivers Name: libdbi-drivers
Version: 0.9.0.g42 Version: 0.9.0.g46
#Snapshot: libdbi-drivers-0.9.0-42-g209e317 #Snapshot: libdbi-drivers-0.9.0-46-g0ee8394
Release: 0 Release: 0
Summary: Database drivers for libdbi Summary: Database drivers for libdbi
License: LGPL-2.1+ License: LGPL-2.1+
Group: Productivity/Databases/Servers Group: Productivity/Databases/Servers
URL: http://libdbi-drivers.sf.net/ URL: http://libdbi-drivers.sf.net/
#Git-Clone: git://git.code.sf.net/p/libdbi-drivers/libdbi-drivers
#Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz #Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz
Source: %name-%version.tar.xz Source: %name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: gettext BuildRequires: gettext
BuildRequires: libdbi-devel >= 0.9.0.g21 BuildRequires: freetds-devel
BuildRequires: libdbi-devel >= 0.9.0.g30
BuildRequires: libtool BuildRequires: libtool
BuildRequires: mysql-devel BuildRequires: mysql-devel
BuildRequires: openjade BuildRequires: openjade
@ -54,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
@ -75,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
@ -94,17 +106,18 @@ 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')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c
%build %build
if [ ! -e configure ]; then
autoreconf -fi autoreconf -fi
fi
%configure \ %configure \
--with-freetds \
--with-mysql \ --with-mysql \
--with-pgsql \ --with-pgsql \
--with-sqlite3 --with-sqlite \ --with-sqlite3 --with-sqlite \
@ -121,6 +134,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