- Enable FTS5 support.

- Add sqlite-fts5-link.patch to link to math library because FTS5
  code uses log().

OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=147
This commit is contained in:
Ismail Dönmez 2016-03-07 14:02:44 +00:00 committed by Git OBS Bridge
parent 6aaf9cc059
commit 710b9b6313
3 changed files with 27 additions and 2 deletions

13
sqlite-fts5-link.patch Normal file
View File

@ -0,0 +1,13 @@
Index: sqlite-autoconf-3110100/Makefile.am
===================================================================
--- sqlite-autoconf-3110100.orig/Makefile.am
+++ sqlite-autoconf-3110100/Makefile.am
@@ -7,7 +7,7 @@ libsqlite3_la_LDFLAGS = -no-undefined -v
bin_PROGRAMS = sqlite3
sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h
-sqlite3_LDADD = @READLINE_LIBS@
+sqlite3_LDADD = @READLINE_LIBS@ -lm
sqlite3_DEPENDENCIES = @EXTRA_SHELL_OBJ@
sqlite3_CFLAGS = $(AM_CFLAGS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Mar 7 13:53:03 UTC 2016 - idonmez@suse.com
- Enable FTS5 support.
- Add sqlite-fts5-link.patch to link to math library because FTS5
code uses log().
-------------------------------------------------------------------
Fri Mar 4 18:23:17 UTC 2016 - astieger@suse.com

View File

@ -30,11 +30,13 @@ Url: http://www.sqlite.org/
Source0: http://www.sqlite.org/2016/sqlite-autoconf-%{tarversion}.tar.gz
Source1: baselibs.conf
Source2: http://www.sqlite.org/2016/sqlite-doc-%{tarversion}.zip
#
Patch1: sqlite-fts5-link.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: unzip
#
Requires: libsqlite3-0 = %{version}
Provides: %{oname} = %{version}
Obsoletes: %{oname} < %{version}
@ -116,13 +118,16 @@ other documentation found on sqlite.org. The files can be found in
%prep
%setup -q -n sqlite-autoconf-%{tarversion} -a2
autoreconf -fi
rm -v sqlite-doc-%{tarversion}/releaselog/current.html
ln -sv `echo %{version} | sed "s/\./_/g"`.html sqlite-doc-%{tarversion}/releaselog/current.html
%patch1 -p1
%build
export CFLAGS="%{optflags} \
-DSQLITE_ENABLE_COLUMN_METADATA \
-DSQLITE_ENABLE_FTS4 \
-DSQLITE_ENABLE_FTS5 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY \
-DSQLITE_ENABLE_JSON1 \
"