commit libdbi-drivers for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package libdbi-drivers for openSUSE:Factory checked in at 2013-09-12 18:19:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libdbi-drivers (Old)
and /work/SRC/openSUSE:Factory/.libdbi-drivers.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libdbi-drivers"
Changes:
--------
--- /work/SRC/openSUSE:Factory/libdbi-drivers/libdbi-drivers.changes 2012-10-03 07:57:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libdbi-drivers.new/libdbi-drivers.changes 2013-09-12 18:19:27.000000000 +0200
@@ -1,0 +2,23 @@
+Wed Sep 11 13:07:00 UTC 2013 - jengelh@inai.de
+
+- Added libdl.diff (successfully link testsuite) and run testsuite
+ as far as possible
+
+-------------------------------------------------------------------
+Wed Sep 11 09:18:56 UTC 2013 - tchvatal@suse.com
+
+- Remove tests code to have this not fail on rpm checks.
+- Do not put __DATE__ into resulting binaries to avoid needless
+ rebuilds.
+
+-------------------------------------------------------------------
+Sun Sep 8 13:11:41 UTC 2013 - jengelh@inai.de
+
+- Update to new upstream release 0.9.0
+* the pgsql driver now supports features specific to PostgreSQL 9
+ and later
+* drivers now support transactions and savepoints if the underlying
+ database engines do
+- Added badcode.diff, sqlite3.diff to resolve build failures
+
+-------------------------------------------------------------------
Old:
----
libdbi-drivers-0.8.3-1.tar.bz2
New:
----
badcode.diff
libdbi-drivers-0.9.0.tar.gz
libdl.diff
sqlite3.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libdbi-drivers.spec ++++++
--- /var/tmp/diff_new_pack.GZ1F2u/_old 2013-09-12 18:19:28.000000000 +0200
+++ /var/tmp/diff_new_pack.GZ1F2u/_new 2013-09-12 18:19:28.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package libdbi-drivers
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,76 +16,62 @@
#
-%define special -1
-
-%define libdbi_ver 0.8.4
%define libdbi_sover 1
-
+Name: libdbi-drivers
+Version: 0.9.0
+Release: 0
Summary: Database drivers for libdbi
License: LGPL-2.1+
-Group: Development/Libraries
+Group: System/Libraries
+Url: http://libdbi-drivers.sf.net/
-Name: libdbi-drivers
-Version: 0.8.3
-Release: 0
-Url: http://libdbi-drivers.sourceforge.net/
-Source: %{name}-%{version}%{special}.tar.bz2
+Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz
+Patch1: sqlite3.diff
+Patch2: badcode.diff
+Patch3: libdl.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: gettext
BuildRequires: libdbi-devel
+BuildRequires: libtool
BuildRequires: mysql-devel
BuildRequires: openjade
BuildRequires: postgresql-devel
-BuildRequires: sqlite-devel
+BuildRequires: sqlite3-devel
%description
-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.
+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-mysql
Summary: MySQL driver for libdbi
-Group: Development/Libraries
-Requires: libdbi%{libdbi_sover} = %{libdbi_ver}
+Group: System/Libraries
+Requires: libdbi%{libdbi_sover} = %version
%description dbd-mysql
-This driver provides connectivity to MySQL database servers through the
-libdbi database independent abstraction layer. Switching a program's driver
-does not require recompilation or rewriting source code.
+This driver provides connectivity to MySQL database servers through
+the libdbi database independent abstraction layer. Switching a
+program's driver does not require recompilation or rewriting source
+code.
%package dbd-pgsql
Summary: PostgreSQL driver for libdbi
-Group: Development/Libraries
-Requires: libdbi%{libdbi_sover} = %{libdbi_ver}
+Group: System/Libraries
+Requires: libdbi%{libdbi_sover} = %version
Requires: postgresql >= 7.0.3
%description dbd-pgsql
-This driver provides connectivity to PostgreSQL database servers through the
-libdbi database independent abstraction layer. Switching a program's driver
-does not require recompilation or rewriting source code.
-
-%if 0%{?suse_version} == 910
-# SLES 9
-
-%package dbd-sqlite
-Summary: SQLite driver for libdbi
-Group: Development/Libraries
-Requires: libdbi%{libdbi_sover} = %{libdbi_ver}
-Requires: sqlite
-
-%description dbd-sqlite
-This driver provides connectivity to SQLite database servers through the
-libdbi database independent abstraction layer. Switching a program's driver
-does not require recompilation or rewriting source code.
-
-%else
+This driver provides connectivity to PostgreSQL database servers
+through the libdbi database independent abstraction layer. Switching
+a program's driver does not require recompilation or rewriting source
+code.
%package dbd-sqlite3
-
Summary: SQLite3 driver for libdbi
-Group: Development/Libraries
-Requires: libdbi%{libdbi_sover} = %{libdbi_ver}
+Group: System/Libraries
+Requires: libdbi%{libdbi_sover} = %version
Requires: sqlite
%description dbd-sqlite3
@@ -93,73 +79,46 @@
libdbi database independent abstraction layer. Switching a program's driver
does not require recompilation or rewriting source code.
-%endif
-
%prep
-%setup -q -n %{name}-%{version}%{special}
+%setup -q
+%patch -P 1 -P 2 -P 3 -p1
+
+# Fake the __DATE__ so we do not needelessly rebuild
+FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
+sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c
%build
+autoreconf -fi
%configure \
--with-mysql \
- --with-mysql-incdir=%_includedir/mysql \
- --with-mysql-libdir=%{_libdir}/mysql \
--with-pgsql \
- --with-pgsql-incdir=%_includedir/pgsql \
- --with-pgsql-libdir=%{_libdir} \
-%if 0%{?suse_version} == 910
- --with-sqlite \
- --with-sqlite-incdir=%_includedir \
- --with-sqlite-libdir=%{_libdir} \
-%else
--with-sqlite3 \
- --with-sqlite3-incdir=%_includedir \
- --with-sqlite3-libdir=%{_libdir} \
-%endif
--with-dbi-incdir=%_includedir/dbi \
--with-dbi-libdir=%{_libdir} \
--disable-static \
--disable-docs
-# Broken upstream code overrides CFLAGS !:-[. Since AM_CFLAGS is unused in
-# the source, we can hack there to get our flags in...
-make %{?_smp_mflags} AM_CFLAGS="%optflags"
+make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
+find "%buildroot" -type f -name "*.la" -delete
+
+%check
+make check || :
%files dbd-mysql
%defattr(-,root,root)
%dir %{_libdir}/dbd
%{_libdir}/dbd/libdbdmysql.so
-%{_libdir}/dbd/libdbdmysql.la
%files dbd-pgsql
%defattr(-,root,root)
%dir %{_libdir}/dbd
%{_libdir}/dbd/libdbdpgsql.so
-%{_libdir}/dbd/libdbdpgsql.la
-
-%if 0%{?suse_version} == 910
-%defattr(-,root,root)
-# SLES 9
-
-%files dbd-sqlite
-%defattr(-,root,root)
-%dir %{_libdir}/dbd
-%{_libdir}/dbd/libdbdsqlite.so
-%{_libdir}/dbd/libdbdsqlite.la
-
-%else
%files dbd-sqlite3
%defattr(-,root,root)
%dir %{_libdir}/dbd
%{_libdir}/dbd/libdbdsqlite3.so
-%{_libdir}/dbd/libdbdsqlite3.la
-
-%endif
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
%changelog
++++++ badcode.diff ++++++
From: Jan Engelhardt
participants (1)
-
root@hilbert.suse.de