| |
@@ -4,15 +4,15 @@
|
| |
%bcond_with static
|
| |
%bcond_without check
|
| |
|
| |
- %define realver 3360000
|
| |
- %define docver 3360000
|
| |
- %define rpmver 3.36.0
|
| |
- %define year 2021
|
| |
+ %define realver 3380000
|
| |
+ %define docver 3380000
|
| |
+ %define rpmver 3.38.0
|
| |
+ %define year 2022
|
| |
|
| |
Summary: Library that implements an embeddable SQL database engine
|
| |
Name: sqlite
|
| |
Version: %{rpmver}
|
| |
- Release: 5%{?dist}
|
| |
+ Release: 1%{?dist}
|
| |
License: Public Domain
|
| |
URL: http://www.sqlite.org/
|
| |
|
| |
@@ -33,7 +33,7 @@
|
| |
Patch5: sqlite-3.18.0-sync2-dirsync.patch
|
| |
|
| |
BuildRequires: make
|
| |
- BuildRequires: gcc
|
| |
+ BuildRequires: gcc
|
| |
BuildRequires: ncurses-devel readline-devel glibc-devel
|
| |
BuildRequires: autoconf
|
| |
%if %{with tcl}
|
| |
@@ -140,22 +140,33 @@
|
| |
%endif
|
| |
%patch5 -p1
|
| |
|
| |
+ # The atof test is failing on the i686 architecture, when binary configured with
|
| |
+ # --enable-rtree option. Failing part is text->real conversion and
|
| |
+ # text->real->text conversion in lower significant values after decimal point in a number.
|
| |
+ %ifarch == i686
|
| |
+ rm test/atof1.test
|
| |
+ %endif
|
| |
+
|
| |
# Remove backup-file
|
| |
rm -f %{name}-doc-%{docver}/sqlite.css~ || :
|
| |
|
| |
autoconf # Rerun with new autoconf to add support for aarm64
|
| |
|
| |
%build
|
| |
- export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
| |
- -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=1 \
|
| |
- -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 \
|
| |
+ # following CFLAGS are not possible to set via the configure script
|
| |
+ export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS \
|
| |
+ -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
| |
+ -DSQLITE_DISABLE_DIRSYNC=1 \
|
| |
+ -DSQLITE_SECURE_DELETE=1 \
|
| |
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
| |
- -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_JSON1=1 \
|
| |
- -DSQLITE_ENABLE_FTS4=1 \
|
| |
- -DSQLITE_ENABLE_MATH_FUNCTIONS \
|
| |
+ -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 \
|
| |
-DSQLITE_ENABLE_DBPAGE_VTAB \
|
| |
-Wall -fno-strict-aliasing"
|
| |
+
|
| |
%configure %{!?with_tcl:--disable-tcl} \
|
| |
+ --enable-rtree \
|
| |
+ --enable-json1 \
|
| |
+ --enable-fts3 \
|
| |
--enable-fts4 \
|
| |
--enable-fts5 \
|
| |
--enable-threadsafe \
|
| |
@@ -163,6 +174,7 @@
|
| |
--enable-load-extension \
|
| |
%{?with_tcl:TCLLIBDIR=%{tcl_sitearch}/sqlite3}
|
| |
|
| |
+
|
| |
# rpath removal
|
| |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
| |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
| |
@@ -258,6 +270,10 @@
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Thu Mar 03 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.0-1
|
| |
+ - Updated to version 3.38.0 (https://sqlite.org/releaselog/3_38_0.html)
|
| |
+ - Set flags with configure script, whenever possible
|
| |
+
|
| |
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.36.0-5
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
| |
|
| |