forked from pool/sqlite3
- 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:
committed by
Git OBS Bridge
parent
6aaf9cc059
commit
710b9b6313
@@ -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 \
|
||||
"
|
||||
|
Reference in New Issue
Block a user