Accepting request 616065 from server:database

OBS-URL: https://build.opensuse.org/request/show/616065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sqlite3?expand=0&rev=105
This commit is contained in:
Yuchen Lin 2018-06-15 12:35:56 +00:00 committed by Git OBS Bridge
commit 4c906d75a6
7 changed files with 62 additions and 34 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:92842b283e5e744eff5da29ed3c69391de7368fccc4d0ee6bf62490ce555ef25
size 2675362

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:85f936ba6db3540db92f878990d088b10bb453c691fccf05714396a03c813872
size 8882546

3
sqlite-doc-3240000.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77b104df2b57a32c40d0336bbf77ab013a1a95ab49a5fe0ea92250e9f2ae82c1
size 9030826

View File

@ -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
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72a302f5ac624079a0aaf98316dddda00063a52053f5ab7651cfc4119e1693a5
size 10980065

View File

@ -1,3 +1,41 @@
-------------------------------------------------------------------
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
- Enable SQLITE_ENABLE_UPDATE_DELETE_LIMIT
-------------------------------------------------------------------
Wed Jun 6 16:22:50 UTC 2018 - astieger@suse.com
- update to 3.24.0:
* Add support for PostgreSQL-style UPSERT
* Add support for auxiliary columns in r-tree tables
* Add C-language APIs for discovering SQL keywords used by SQLite
* Add C-language APIs for dynamic strings based on sqlite3_str
* Enhance ALTER TABLE so that it recognizes "true" and "false" as
valid arguments to DEFAULT
* Add the sorter-reference optimization as a compile-time option
* Improve the format of the EXPLAIN QUERY PLAN raw output, so that
it gives better information about the query plan and about the
relationships between the various components of the plan
* Added the SQLITE_DBCONFIG_RESET_DATABASE option to the
sqlite3_db_config() API.
* Automatically intercept the raw EXPLAIN QUERY PLAN output an
reformat it into an ASCII-art graph.
* Lines that begin with "#" and that are not in the middle of an
SQL statement are interpreted as comments
* Add the --append option to the ".backup" command
* Add the ".dbconfig" command
* various performance improvements
* various bug fixes
-------------------------------------------------------------------
Wed Apr 11 11:40:57 UTC 2018 - astieger@suse.com

View File

@ -17,28 +17,26 @@
%define oname sqlite
%define tarversion 3230100
%define tarversion 3240000
Name: sqlite3
Version: 3.23.1
Version: 3.24.0
Release: 0
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
URL: http://www.sqlite.org/
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}
Obsoletes: %{oname} < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SQLite is a C library that implements an embeddable SQL database
@ -106,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 \
@ -124,6 +121,7 @@ export CFLAGS="%{optflags} \
-DSQLITE_ENABLE_JSON1 \
-DSQLITE_ENABLE_RBU \
-DSQLITE_ENABLE_RTREE \
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
-DSQLITE_SOUNDEX \
-DSQLITE_ENABLE_UNLOCK_NOTIFY \
-DSQLITE_SECURE_DELETE \
@ -131,34 +129,38 @@ 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
%postun -n libsqlite3-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/sqlite3
%{_mandir}/man1/sqlite3.1%{ext_man}
%{_mandir}/man1/sqlite3.1%{?ext_man}
%files -n libsqlite3-0
%defattr(-,root,root)
%{_libdir}/libsqlite3.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/sqlite3.h
%{_includedir}/sqlite3ext.h
%{_libdir}/libsqlite3.so
%{_libdir}/pkgconfig/sqlite3.pc
%files doc
%defattr(-,root,root)
%doc sqlite-doc-%{tarversion}/*
%changelog