diff --git a/sqlite-autoconf-3390200.tar.gz b/sqlite-autoconf-3390200.tar.gz deleted file mode 100644 index c892795da514d0bed0cd907cd1495754bb3db7fb..0000000000000000000000000000000000000000 Binary files a/sqlite-autoconf-3390200.tar.gz and /dev/null differ diff --git a/sqlite-doc-3390200.zip b/sqlite-doc-3400000.zip similarity index 61% rename from sqlite-doc-3390200.zip rename to sqlite-doc-3400000.zip index cc9911f86e9fb83cf1ee85b67efdffc7604d4c4a..60991bdb65b349a322fd498c557268ad8436f89f 100644 Binary files a/sqlite-doc-3390200.zip and b/sqlite-doc-3400000.zip differ diff --git a/sqlite-src-3390200.zip b/sqlite-src-3400000.zip similarity index 81% rename from sqlite-src-3390200.zip rename to sqlite-src-3400000.zip index 75de36d0bd0fc5fe95095a6cf8b55e92f9374130..783421e90659aa00a5014598eabe4909205ff6f1 100644 Binary files a/sqlite-src-3390200.zip and b/sqlite-src-3400000.zip differ diff --git a/sqlite.spec b/sqlite.spec index 23a396e8840480f4733aa9f194b133c2769a7e0a..df46b9661b73b4a1058f13b396c3860de1b1b72d 100644 --- a/sqlite.spec +++ b/sqlite.spec @@ -1,29 +1,28 @@ -%define anolis_release 3 +%define anolis_release 1 %bcond_without tcl %bcond_without sqldiff %bcond_with static %bcond_without check -%define realver 3390200 -%define docver 3390200 +%define realver 3400000 +%define docver 3400000 %define year 2022 Summary: Library that implements an embeddable SQL database engine Name: sqlite -Version: 3.39.2 +Version: 3.40.0 Release: %{anolis_release}%{?dist} License: Public Domain URL: http://www.sqlite.org/ Source0: http://www.sqlite.org/%{year}/sqlite-src-%{realver}.zip Source1: http://www.sqlite.org/%{year}/sqlite-doc-%{docver}.zip -Source2: http://www.sqlite.org/%{year}/sqlite-autoconf-%{realver}.tar.gz BuildRequires: make -BuildRequires: gcc +BuildRequires: gcc BuildRequires: ncurses-devel readline-devel glibc-devel -BuildRequires: autoconf +BuildRequires: autoconf automake libtool %if %{with tcl} BuildRequires: /usr/bin/tclsh BuildRequires: tcl-devel @@ -45,7 +44,6 @@ are named to permit each to be installed on a single host %package devel Summary: Development tools for the sqlite3 embeddable SQL database engine Requires: %{name} = %{version}-%{release} -Requires: pkgconfig %description devel This package contains the header files and development documentation @@ -116,9 +114,8 @@ This package contains the analysis program for %{name}. # Remove backup-file rm -f %{name}-doc-%{docver}/sqlite.css~ || : -autoconf # Rerun with new autoconf to add support for aarm64 - %build +autoreconf -fi 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 \ @@ -173,13 +170,13 @@ install -D -m0755 sqldiff $RPM_BUILD_ROOT/%{_bindir}/sqldiff %endif %if ! %{with static} -rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{la,a} +rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a %endif %generate_compatibility_deps -%if %{with check} %check +%if %{with check} # XXX shell tests are broken due to loading system libsqlite3, work around... export LD_LIBRARY_PATH=`pwd`/.libs export MALLOC_CHECK_=3 @@ -190,11 +187,9 @@ export MALLOC_CHECK_=3 rm test/csv01.test %endif -make test +%make_build test %endif #with check -%ldconfig_scriptlets libs - %files %{_bindir}/sqlite3 %{abidir}/sqlite3-option.list @@ -212,7 +207,6 @@ make test %{_libdir}/pkgconfig/*.pc %if %{with static} %{_libdir}/*.a -%exclude %{_libdir}/*.la %endif %files doc @@ -220,7 +214,6 @@ make test %files -n lemon %{_bindir}/lemon -%{abidir}/lemon-option.list %{_datadir}/lemon %if %{with tcl} @@ -235,10 +228,12 @@ make test %files analyzer %{_bindir}/sqlite3_analyzer -%{abidir}/sqlite3_analyzer-option.list %endif %changelog +* Thu Nov 17 2022 Funda Wang - 3.40.0-1 +- New version 3.40.0 + * Fri Oct 14 2022 Chunmei Xu - 3.39.2-3 - optimise spec file