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:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d9d14e88c6fb6d68de9ca0d1f9797477d82fc3aed613558f87ffbdbbc5ceb74a
|
|
||||||
size 2699252
|
|
@@ -1,12 +0,0 @@
|
|||||||
Index: sqlite-autoconf-3110100/Makefile.am
|
|
||||||
===================================================================
|
|
||||||
--- sqlite-autoconf-3110100.orig/Makefile.am
|
|
||||||
+++ sqlite-autoconf-3110100/Makefile.am
|
|
||||||
@@ -3,6 +3,7 @@ AM_CFLAGS = @THREADSAFE_FLAGS@ @DYNAMIC_
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libsqlite3.la
|
|
||||||
libsqlite3_la_SOURCES = sqlite3.c
|
|
||||||
+libsqlite3_la_LIBADD = -lm
|
|
||||||
libsqlite3_la_LDFLAGS = -no-undefined -version-info 8:6:8
|
|
||||||
|
|
||||||
bin_PROGRAMS = sqlite3
|
|
3
sqlite-src-3240000.zip
Normal file
3
sqlite-src-3240000.zip
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:72a302f5ac624079a0aaf98316dddda00063a52053f5ab7651cfc4119e1693a5
|
||||||
|
size 10980065
|
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 8 14:01:06 UTC 2018 - guillaume.gardet@opensuse.org
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 7 09:50:31 UTC 2018 - guillaume.gardet@opensuse.org
|
Thu Jun 7 09:50:31 UTC 2018 - guillaume.gardet@opensuse.org
|
||||||
|
|
||||||
|
20
sqlite3.spec
20
sqlite3.spec
@@ -25,15 +25,14 @@ Summary: Embeddable SQL Database Engine
|
|||||||
License: SUSE-Public-Domain
|
License: SUSE-Public-Domain
|
||||||
Group: Productivity/Databases/Servers
|
Group: Productivity/Databases/Servers
|
||||||
URL: http://www.sqlite.org/
|
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
|
Source1: baselibs.conf
|
||||||
Source2: http://www.sqlite.org/2018/sqlite-doc-%{tarversion}.zip
|
Source2: http://www.sqlite.org/2018/sqlite-doc-%{tarversion}.zip
|
||||||
Patch1: sqlite-fts5-link.patch
|
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: tcl
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
Provides: %{oname} = %{version}
|
Provides: %{oname} = %{version}
|
||||||
@@ -105,14 +104,13 @@ other documentation found on sqlite.org. The files can be found in
|
|||||||
%{_docdir}/%{name}-doc.
|
%{_docdir}/%{name}-doc.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sqlite-autoconf-%{tarversion} -a2
|
%setup -q -n sqlite-src-%{tarversion} -a2
|
||||||
%patch1 -p1
|
|
||||||
rm -v sqlite-doc-%{tarversion}/releaselog/current.html
|
rm -v sqlite-doc-%{tarversion}/releaselog/current.html
|
||||||
ln -sv `echo %{version} | sed "s/\./_/g"`.html 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
|
find -type f -name sqlite.css~ -delete
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
export LIBS="$LIBS -lm "
|
||||||
export CFLAGS="%{optflags} \
|
export CFLAGS="%{optflags} \
|
||||||
-DSQLITE_ENABLE_API_ARMOR \
|
-DSQLITE_ENABLE_API_ARMOR \
|
||||||
-DSQLITE_ENABLE_COLUMN_METADATA \
|
-DSQLITE_ENABLE_COLUMN_METADATA \
|
||||||
@@ -131,11 +129,19 @@ export CFLAGS="%{optflags} \
|
|||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-static-shell \
|
--disable-static-shell \
|
||||||
--enable-readline
|
--enable-readline \
|
||||||
|
--enable-fts4 \
|
||||||
|
--enable-fts5 \
|
||||||
|
--enable-json1 \
|
||||||
|
--enable-update-limit \
|
||||||
|
--enable-rtree
|
||||||
|
make sqlite3.c
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
mkdir -p %{buildroot}/%{_mandir}/man1/
|
||||||
|
cp sqlite3.1 %{buildroot}/%{_mandir}/man1/
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n libsqlite3-0 -p /sbin/ldconfig
|
%post -n libsqlite3-0 -p /sbin/ldconfig
|
||||||
|
Reference in New Issue
Block a user