aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-local/spec/libdbi-drivers
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-07 11:08:01 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-07 11:12:54 +0200
commita1b81b8129ff5f51f6dbcc2e8b76b83d5dd621d6 (patch)
treed93a46408799fc535ad80545ad80b0a9627cb560 /rpm-local/spec/libdbi-drivers
parentefbb9562a692060eabc99f08396b24b5b359c75b (diff)
rpm-local/spec: import files from mnhauke
$ osc co home:mnhauke:osmocom:nightly
Diffstat (limited to 'rpm-local/spec/libdbi-drivers')
-rw-r--r--rpm-local/spec/libdbi-drivers/_service14
-rw-r--r--rpm-local/spec/libdbi-drivers/configure.ac.patch11
-rw-r--r--rpm-local/spec/libdbi-drivers/libdbi-drivers.changes109
-rw-r--r--rpm-local/spec/libdbi-drivers/libdbi-drivers.spec163
4 files changed, 297 insertions, 0 deletions
diff --git a/rpm-local/spec/libdbi-drivers/_service b/rpm-local/spec/libdbi-drivers/_service
new file mode 100644
index 0000000..206298f
--- /dev/null
+++ b/rpm-local/spec/libdbi-drivers/_service
@@ -0,0 +1,14 @@
+<services>
+ <service name="tar_scm" mode="localonly">
+ <param name="scm">git</param>
+ <param name="url">git://git.code.sf.net/p/libdbi-drivers/libdbi-drivers</param>
+ <param name="revision">master</param>
+ <param name="parent-tag">libdbi-drivers-0.9.0</param>
+ <param name="versionformat">0.9.0.g@TAG_OFFSET@</param>
+ </service>
+ <service name="recompress" mode="localonly">
+ <param name="file">*.tar</param>
+ <param name="compression">xz</param>
+ </service>
+ <service name="set_version" mode="localonly"/>
+</services>
diff --git a/rpm-local/spec/libdbi-drivers/configure.ac.patch b/rpm-local/spec/libdbi-drivers/configure.ac.patch
new file mode 100644
index 0000000..7f9eb7c
--- /dev/null
+++ b/rpm-local/spec/libdbi-drivers/configure.ac.patch
@@ -0,0 +1,11 @@
+--- libdbi-drivers/configure.ac.orig 2016-02-04 10:12:56.049468401 +0100
++++ libdbi-drivers/configure.ac 2016-02-04 10:13:10.336666283 +0100
+@@ -3,7 +3,7 @@
+ AC_CONFIG_SRCDIR([drivers/sqlite/dbd_sqlite.c])
+ AM_MAINTAINER_MODE
+
+-AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects serial-tests])
++AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects])
+ AM_CONFIG_HEADER(config.h)
+ AC_LIBTOOL_WIN32_DLL
+ AC_CONFIG_MACRO_DIR([m4])
diff --git a/rpm-local/spec/libdbi-drivers/libdbi-drivers.changes b/rpm-local/spec/libdbi-drivers/libdbi-drivers.changes
new file mode 100644
index 0000000..d0fee07
--- /dev/null
+++ b/rpm-local/spec/libdbi-drivers/libdbi-drivers.changes
@@ -0,0 +1,109 @@
+-------------------------------------------------------------------
+Thu Mar 15 21:22:41 UTC 2018 - mardnh@gmx.de
+
+- Don't build with support for sqlite or freetds
+
+-------------------------------------------------------------------
+Fri Jan 27 09:07:26 UTC 2017 - jengelh@inai.de
+
+- Update to new git snapshot 0.9.0.g53
+* Resolve build error with freetds 1.0
+
+-------------------------------------------------------------------
+Thu Feb 4 10:19:16 UTC 2016 - christof.hanke@rzg.mpg.de
+
+- allow building on SLES11-SP3 by removing freetds dependency
+ and unknown configure option "serial-tests" for SLES11;
+ add configure.ac.patch
+
+-------------------------------------------------------------------
+Tue Nov 11 13:53:28 UTC 2014 - jengelh@inai.de
+
+- Update to new git snapshot 0.9.0+git51
+* Fixed an out-of-bounds access in dbd_mysql due to bad type
+ punning. [boo#904873]
+
+-------------------------------------------------------------------
+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
+
+- Update to new git snapshot 0.9.0+git42
+* dbd_mysql, dbd_msql: avoid NULL dereference
+
+-------------------------------------------------------------------
+Thu Apr 17 14:57:46 UTC 2014 - jengelh@inai.de
+
+- Update to new git snapshot 0.9.0+git40
+* Support the new datetimex API from libdbi-0.9.0+git21
+* dbd_sqlite3: resolve a stack buffer overflow
+- Remove sqlite3.diff, badcode.diff, libdl.diff: merged upstream
+
+-------------------------------------------------------------------
+Thu Feb 6 11:50:13 UTC 2014 - fcrozat@suse.com
+
+- Add COPYING to generated package.
+
+-------------------------------------------------------------------
+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
+
+-------------------------------------------------------------------
+Thu Sep 27 09:38:04 UTC 2012 - idonmez@suse.com
+
+- Fix libdbi dependencies
+
+-------------------------------------------------------------------
+Wed Feb 1 01:54:59 UTC 2012 - jengelh@medozas.de
+
+- Remove redundant tags/sections per specfile guideline suggestions
+- Parallel building using %_smp_mflags
+
+-------------------------------------------------------------------
+Thu Jan 12 11:30:42 UTC 2012 - coolo@suse.com
+
+- change license to be in spdx.org format
+
+-------------------------------------------------------------------
+Tue Feb 22 08:57:42 UTC 2011 - coolo@novell.com
+
+- remove explicit (and wrong) libmysql require
+
+-------------------------------------------------------------------
+Wed Dec 15 16:17:10 CET 2010 - meissner@suse.de
+
+- spec file cleanup
+- disabled static driver libs
+- pass in RPM_OPT_FLAGS
+
+-------------------------------------------------------------------
+Wed Dec 15 16:05:55 CET 2010 - meissner@suse.de
+
+- split off from libdbi
+
diff --git a/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec b/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec
new file mode 100644
index 0000000..39b4c7f
--- /dev/null
+++ b/rpm-local/spec/libdbi-drivers/libdbi-drivers.spec
@@ -0,0 +1,163 @@
+#
+# spec file for package libdbi-drivers
+#
+# Copyright (c) 2014 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
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+%define build_freetds 0
+
+Name: libdbi-drivers
+Version: 0.9.0.g55
+Release: 0
+Summary: Database drivers for libdbi
+License: LGPL-2.1+
+Group: Productivity/Databases/Servers
+URL: http://libdbi-drivers.sf.net/
+
+#Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz
+Source: %name-%version.tar.xz
+Patch1: configure.ac.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext
+%if %build_freetds
+BuildRequires: freetds-devel
+%endif
+BuildRequires: libdbi-devel >= 0.9.0.g30
+BuildRequires: libtool
+BuildRequires: mysql-devel
+BuildRequires: openjade
+BuildRequires: postgresql-devel
+BuildRequires: sqlite3-devel
+BuildRequires: xz
+%define build_doc 0
+%if %build_doc
+# Only needed when doc is not already prebuilt
+BuildRequires: docbook-dsssl-stylesheets
+BuildRequires: openjade
+BuildRequires: texlive-collection-fontsrecommended
+BuildRequires: texlive-jadetex
+BuildRequires: texlive-pdftex-bin
+%endif
+
+%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.
+
+%if %build_freetds
+%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.
+%endif
+
+%package dbd-mysql
+Summary: MySQL driver for libdbi
+Group: System/Libraries
+
+%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.
+
+%package dbd-pgsql
+Summary: PostgreSQL driver for libdbi
+Group: System/Libraries
+
+%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.
+
+%package dbd-sqlite3
+Summary: SQLite3 driver for libdbi
+Group: System/Libraries
+
+%description dbd-sqlite3
+This driver provides connectivity to SQLite 3.x database servers through the
+libdbi database independent abstraction layer. Switching a program's driver
+does not require recompilation or rewriting source code.
+
+%prep
+%setup -q
+%if 0%{?suse_version} == 1110
+%patch -P 1 -p1
+%endif
+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')
+sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c
+
+%build
+if [ ! -e configure ]; then
+ autoreconf -fi
+fi
+export CFLAGS="%optflags -O0 -ggdb3"
+%configure \
+%if %build_freetds
+ --with-freetds \
+%endif
+ --with-mysql \
+ --with-pgsql \
+ --with-sqlite3 \
+ --with-dbi-incdir="%_includedir/dbi" \
+ --with-dbi-libdir="%_libdir" \
+ --disable-static \
+ --docdir="%_docdir/%name" --disable-docs
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR="%buildroot"
+find "%buildroot" -type f -name "*.la" -delete
+
+%check
+make check || :
+
+%if %build_freetds
+%files dbd-freetds
+%defattr(-,root,root)
+%doc COPYING
+%dir %_libdir/dbd
+%_libdir/dbd/libdbdfreetds.so
+%endif
+
+%files dbd-mysql
+%defattr(-,root,root)
+%doc COPYING
+%dir %_libdir/dbd
+%_libdir/dbd/libdbdmysql.so
+
+%files dbd-pgsql
+%defattr(-,root,root)
+%doc COPYING
+%dir %_libdir/dbd
+%_libdir/dbd/libdbdpgsql.so
+
+%files dbd-sqlite3
+%defattr(-,root,root)
+%doc COPYING
+%dir %_libdir/dbd
+%_libdir/dbd/libdbdsqlite3.so
+
+%changelog