diff --git a/sqlite-fts5-link.patch b/sqlite-fts5-link.patch new file mode 100644 index 0000000..26751f8 --- /dev/null +++ b/sqlite-fts5-link.patch @@ -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 + diff --git a/sqlite3.changes b/sqlite3.changes index f113852..e1b9996 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -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 diff --git a/sqlite3.spec b/sqlite3.spec index c19c10e..0ba3a05 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -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 \ "