SHA256
1
0
forked from pool/sqlite3

Accepting request 615931 from home:Guillaume_G:branches:server:database

- Use 'src' archive instead of 'amalgamation' to be able to use
  some flags, such as SQLITE_ENABLE_UPDATE_DELETE_LIMIT
- Remove 'sqlite-fts5-link.patch' since patched file is not 
  availaible in 'src' archive. Add '-lm' flag to LIBS var instead

OBS-URL: https://build.opensuse.org/request/show/615931
OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=209
This commit is contained in:
2018-06-11 14:45:59 +00:00
committed by Git OBS Bridge
parent 87fb9593b3
commit 8d3cb8c1de
5 changed files with 24 additions and 22 deletions

View File

@@ -25,15 +25,14 @@ Summary: Embeddable SQL Database Engine
License: SUSE-Public-Domain
Group: Productivity/Databases/Servers
URL: http://www.sqlite.org/
Source0: http://www.sqlite.org/2018/sqlite-autoconf-%{tarversion}.tar.gz
Source0: http://www.sqlite.org/2018/sqlite-src-%{tarversion}.zip
Source1: baselibs.conf
Source2: http://www.sqlite.org/2018/sqlite-doc-%{tarversion}.zip
Patch1: sqlite-fts5-link.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: tcl
BuildRequires: unzip
BuildRequires: pkgconfig(zlib)
Provides: %{oname} = %{version}
@@ -105,14 +104,13 @@ other documentation found on sqlite.org. The files can be found in
%{_docdir}/%{name}-doc.
%prep
%setup -q -n sqlite-autoconf-%{tarversion} -a2
%patch1 -p1
%setup -q -n sqlite-src-%{tarversion} -a2
rm -v sqlite-doc-%{tarversion}/releaselog/current.html
ln -sv `echo %{version} | sed "s/\./_/g"`.html sqlite-doc-%{tarversion}/releaselog/current.html
find -type f -name sqlite.css~ -delete
%build
autoreconf -fiv
export LIBS="$LIBS -lm "
export CFLAGS="%{optflags} \
-DSQLITE_ENABLE_API_ARMOR \
-DSQLITE_ENABLE_COLUMN_METADATA \
@@ -131,11 +129,19 @@ export CFLAGS="%{optflags} \
%configure \
--disable-static \
--disable-static-shell \
--enable-readline
--enable-readline \
--enable-fts4 \
--enable-fts5 \
--enable-json1 \
--enable-update-limit \
--enable-rtree
make sqlite3.c
make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}/%{_mandir}/man1/
cp sqlite3.1 %{buildroot}/%{_mandir}/man1/
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libsqlite3-0 -p /sbin/ldconfig