Compare commits
49 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0ddb5e1f4a | ||
|
b570eb4256 | ||
|
3beb0299d4 | ||
|
57bfa64729 | ||
|
807afbf3e8 | ||
|
110de5f827 | ||
|
f04125dafa | ||
|
3926e22b6b | ||
|
5fdbe169f2 | ||
|
1b8b324002 | ||
|
f45efa0be6 | ||
|
0f684764a1 | ||
|
511cb0af85 | ||
|
afab63ea3c | ||
|
c2aa962caa | ||
|
a015330730 | ||
|
9e13576d40 | ||
|
f67f322c94 | ||
|
584b64a32d | ||
|
c598d326d1 | ||
|
df6059ea18 | ||
|
219120d4fc | ||
|
bee3a4ab7c | ||
|
2b4b69fa67 | ||
|
d95c433dc3 | ||
|
cc02f02fbe | ||
|
f268594ea0 | ||
|
0a82e2f7fc | ||
|
8c30a63270 | ||
|
4f5d23b554 | ||
|
39b5d413df | ||
|
d0951b106a | ||
|
090121b464 | ||
|
ee088db164 | ||
|
6d6c71ff90 | ||
|
f098d15dcf | ||
|
ed8cce7995 | ||
|
cfaecde041 | ||
|
51ca689e25 | ||
|
6d8f355237 | ||
|
9eee6d2954 | ||
|
efa76439d7 | ||
|
f23b9ba5aa | ||
|
442daf2297 | ||
|
236dd0f14c | ||
|
60ea8a821d | ||
|
5cf0d06ce8 | ||
|
683ae70000 | ||
|
45f87b7215 |
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
10
ci.fmf
Normal file
10
ci.fmf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/test:
|
||||||
|
summary:
|
||||||
|
Basic set of quick tests for sqlite.
|
||||||
|
discover:
|
||||||
|
- name: fedora
|
||||||
|
how: fmf
|
||||||
|
url: "https://src.fedoraproject.org/tests/sqlite.git"
|
||||||
|
ref: main
|
||||||
|
execute:
|
||||||
|
how: tmt
|
6
sources
6
sources
@ -1,3 +1,3 @@
|
|||||||
SHA512 (sqlite-doc-3300000.zip) = 11bc9910fa0b4740b19bb6c533a329f29520f68951e6e24c9957cd2ac3dc6708640d6e535a8be5af173eb0b273ab3bdee6f81724d5b5560054fccddf7d454f78
|
SHA512 (sqlite-autoconf-3390200.tar.gz) = c16b50ade3c182d5473014ac0a51e2bb8a5cfc46e532c2bda77ae4d530336e2b57aa4f12dccb6aa2148d60e9289305bf20842ac95dc52f2d31df8eb5f0599de6
|
||||||
SHA512 (sqlite-src-3300000.zip) = 43dbe38eae0b14ecba962e418a7a717ef5a0b7aa8610a973daea3f538564fea9440c0053dccabbf1f6652ced180bf44de1a122609564fe357f0f8c7a34078dd7
|
SHA512 (sqlite-src-3390200.zip) = a838386a48654391590ea0e1cb355d29f6f93033c3e582df7c63139adaf5119dd5a1550e913dbad0d3eafb0bfa03c4fc6dc48a334d9c45ffb8a7205a528b38f1
|
||||||
SHA512 (sqlite-autoconf-3300000.tar.gz) = d1b0d4c6874e600f4e0f8c3eae8a5d754f8a25b3ab68b058ea657641acbae7e4f517d075dd103a87544ccf62a706990e3db909de18cf649ac5a1a459d123926a
|
SHA512 (sqlite-doc-3390200.zip) = 54b9e632244b95ebf35fcaa5ce9c02381601eb442eec2ec2a809a7fe24d2cfed751581bb82fd243aaede2c935864da39fd1f1685e762826dd76fc754c7f79c0b
|
||||||
|
@ -1,21 +1,13 @@
|
|||||||
diff -up sqlite-3.6.23/tool/lemon.c.system-template sqlite-3.6.23/tool/lemon.c
|
diff --git a/tool/lemon.c b/tool/lemon.c
|
||||||
--- sqlite-3.6.23/tool/lemon.c.system-template 2010-03-10 16:40:35.000000000 +0200
|
index 54c8946..ac14a06 100644
|
||||||
+++ sqlite-3.6.23/tool/lemon.c 2010-03-10 16:40:39.000000000 +0200
|
--- a/tool/lemon.c
|
||||||
@@ -3363,6 +3363,8 @@ PRIVATE FILE *tplt_open(struct lemon *le
|
+++ b/tool/lemon.c
|
||||||
|
@@ -3668,6 +3668,8 @@ PRIVATE FILE *tplt_open(struct lemon *lemp)
|
||||||
tpltname = buf;
|
tpltname = buf;
|
||||||
}else if( access(templatename,004)==0 ){
|
}else if( access(templatename,004)==0 ){
|
||||||
tpltname = templatename;
|
tpltname = templatename;
|
||||||
+ }else if( access("/usr/share/lemon/lempar.c", R_OK)==0){
|
+ }else if( access("/usr/share/lemon/lempar.c", R_OK)==0){
|
||||||
+ tpltname = "/usr/share/lemon/lempar.c";
|
+ tpltname = "/usr/share/lemon/lempar.c";
|
||||||
}else{
|
}else{
|
||||||
tpltname = pathsearch(lemp->argv0,templatename,0);
|
toFree = tpltname = pathsearch(lemp->argv0,templatename,0);
|
||||||
}
|
|
||||||
@@ -3374,7 +3376,7 @@ PRIVATE FILE *tplt_open(struct lemon *le
|
|
||||||
}
|
|
||||||
in = fopen(tpltname,"rb");
|
|
||||||
if( in==0 ){
|
|
||||||
- fprintf(stderr,"Can't open the template file \"%s\".\n",templatename);
|
|
||||||
+ fprintf(stderr,"Can't open the template file \"%s\".\n",tpltname);
|
|
||||||
lemp->errorcnt++;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
208
sqlite.spec
208
sqlite.spec
@ -1,22 +1,24 @@
|
|||||||
# bcond default logic is nicely backwards...
|
# bcond default logic is nicely backwards...
|
||||||
%bcond_without tcl
|
%bcond_without tcl
|
||||||
|
%bcond_without sqldiff
|
||||||
%bcond_with static
|
%bcond_with static
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
|
|
||||||
%define realver 3300000
|
%define realver 3390200
|
||||||
%define docver 3300000
|
%define docver 3390200
|
||||||
%define rpmver 3.30.0
|
%define rpmver 3.39.2
|
||||||
|
%define year 2022
|
||||||
|
|
||||||
Summary: Library that implements an embeddable SQL database engine
|
Summary: Library that implements an embeddable SQL database engine
|
||||||
Name: sqlite
|
Name: sqlite
|
||||||
Version: %{rpmver}
|
Version: %{rpmver}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.sqlite.org/
|
URL: http://www.sqlite.org/
|
||||||
|
|
||||||
Source0: http://www.sqlite.org/2019/sqlite-src-%{realver}.zip
|
Source0: http://www.sqlite.org/%{year}/sqlite-src-%{realver}.zip
|
||||||
Source1: http://www.sqlite.org/2019/sqlite-doc-%{docver}.zip
|
Source1: http://www.sqlite.org/%{year}/sqlite-doc-%{docver}.zip
|
||||||
Source2: http://www.sqlite.org/2019/sqlite-autoconf-%{realver}.tar.gz
|
Source2: http://www.sqlite.org/%{year}/sqlite-autoconf-%{realver}.tar.gz
|
||||||
# Support a system-wide lemon template
|
# Support a system-wide lemon template
|
||||||
Patch1: sqlite-3.6.23-lemon-system-template.patch
|
Patch1: sqlite-3.6.23-lemon-system-template.patch
|
||||||
# sqlite >= 3.7.10 is buggy if malloc_usable_size() is detected, disable it:
|
# sqlite >= 3.7.10 is buggy if malloc_usable_size() is detected, disable it:
|
||||||
@ -30,6 +32,7 @@ Patch4: sqlite-3.16-datetest-2.2c.patch
|
|||||||
# Modify sync2.test to pass with DIRSYNC turned off
|
# Modify sync2.test to pass with DIRSYNC turned off
|
||||||
Patch5: sqlite-3.18.0-sync2-dirsync.patch
|
Patch5: sqlite-3.18.0-sync2-dirsync.patch
|
||||||
|
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: ncurses-devel readline-devel glibc-devel
|
BuildRequires: ncurses-devel readline-devel glibc-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -98,6 +101,17 @@ that can be used to eliminate resource leaks, making is suitable for
|
|||||||
use in long-running programs such as graphical user interfaces or
|
use in long-running programs such as graphical user interfaces or
|
||||||
embedded controllers.
|
embedded controllers.
|
||||||
|
|
||||||
|
%if %{with sqldiff}
|
||||||
|
%package tools
|
||||||
|
Summary: %{name} tools
|
||||||
|
Group: Development/Tools
|
||||||
|
|
||||||
|
%description tools
|
||||||
|
%{name} related tools. Currently contains only sqldiff.
|
||||||
|
- sqldiff: The sqldiff binary is a command-line utility program
|
||||||
|
that displays the differences between SQLite databases.
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with tcl}
|
%if %{with tcl}
|
||||||
%package tcl
|
%package tcl
|
||||||
Summary: Tcl module for the sqlite3 embeddable SQL database engine
|
Summary: Tcl module for the sqlite3 embeddable SQL database engine
|
||||||
@ -126,25 +140,45 @@ This package contains the analysis program for %{name}.
|
|||||||
%endif
|
%endif
|
||||||
%patch5 -p1
|
%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
|
# Remove backup-file
|
||||||
rm -f %{name}-doc-%{docver}/sqlite.css~ || :
|
rm -f %{name}-doc-%{docver}/sqlite.css~ || :
|
||||||
|
|
||||||
|
autoupdate
|
||||||
autoconf # Rerun with new autoconf to add support for aarm64
|
autoconf # Rerun with new autoconf to add support for aarm64
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
# following CFLAGS are not possible to set via the configure script
|
||||||
-DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 \
|
export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS \
|
||||||
-DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 \
|
-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_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
||||||
-DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_JSON1=1 \
|
-DSQLITE_ENABLE_FTS3_PARENTHESIS=1 \
|
||||||
|
-DSQLITE_ENABLE_DBPAGE_VTAB \
|
||||||
-Wall -fno-strict-aliasing"
|
-Wall -fno-strict-aliasing"
|
||||||
|
|
||||||
|
%ifarch == aarch64
|
||||||
|
export CFLAGS="$CFLAGS -mbranch-protection=standard"
|
||||||
|
%endif
|
||||||
|
|
||||||
%configure %{!?with_tcl:--disable-tcl} \
|
%configure %{!?with_tcl:--disable-tcl} \
|
||||||
|
--enable-rtree \
|
||||||
|
--enable-fts3 \
|
||||||
|
--enable-fts4 \
|
||||||
--enable-fts5 \
|
--enable-fts5 \
|
||||||
--enable-threadsafe \
|
--enable-threadsafe \
|
||||||
--enable-threads-override-locks \
|
--enable-threads-override-locks \
|
||||||
--enable-load-extension \
|
--enable-load-extension \
|
||||||
%{?with_tcl:TCLLIBDIR=%{tcl_sitearch}/sqlite3}
|
%{?with_tcl:TCLLIBDIR=%{tcl_sitearch}/sqlite3}
|
||||||
|
|
||||||
|
|
||||||
# rpath removal
|
# rpath removal
|
||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
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
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
@ -157,8 +191,13 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|||||||
%make_build sqlite3_analyzer
|
%make_build sqlite3_analyzer
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Build sqldiff
|
||||||
|
%if %{with sqldiff}
|
||||||
|
%make_build sqldiff
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
%make_install
|
||||||
|
|
||||||
install -D -m0644 sqlite3.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite3.1
|
install -D -m0644 sqlite3.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite3.1
|
||||||
install -D -m0755 lemon $RPM_BUILD_ROOT/%{_bindir}/lemon
|
install -D -m0755 lemon $RPM_BUILD_ROOT/%{_bindir}/lemon
|
||||||
@ -171,6 +210,11 @@ chmod 0755 ${RPM_BUILD_ROOT}/%{tcl_sitearch}/sqlite3/*.so
|
|||||||
install -D -m0755 sqlite3_analyzer $RPM_BUILD_ROOT/%{_bindir}/sqlite3_analyzer
|
install -D -m0755 sqlite3_analyzer $RPM_BUILD_ROOT/%{_bindir}/sqlite3_analyzer
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Install sqldiff
|
||||||
|
%if %{with sqldiff}
|
||||||
|
install -D -m0755 sqldiff $RPM_BUILD_ROOT/%{_bindir}/sqldiff
|
||||||
|
%endif
|
||||||
|
|
||||||
%if ! %{with static}
|
%if ! %{with static}
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{la,a}
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{la,a}
|
||||||
%endif
|
%endif
|
||||||
@ -187,12 +231,8 @@ export MALLOC_CHECK_=3
|
|||||||
rm test/csv01.test
|
rm test/csv01.test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch s390x ppc64
|
|
||||||
rm test/fts3conf.test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make test
|
make test
|
||||||
%endif # with check
|
%endif #with check
|
||||||
|
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
@ -224,11 +264,145 @@ make test
|
|||||||
%files tcl
|
%files tcl
|
||||||
%{tcl_sitearch}/sqlite3
|
%{tcl_sitearch}/sqlite3
|
||||||
|
|
||||||
|
%if %{with sqldiff}
|
||||||
|
%files tools
|
||||||
|
%{_bindir}/sqldiff
|
||||||
|
%endif
|
||||||
|
|
||||||
%files analyzer
|
%files analyzer
|
||||||
%{_bindir}/sqlite3_analyzer
|
%{_bindir}/sqlite3_analyzer
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 29 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.39.2-1
|
||||||
|
- Updated to version 3.39.2 (https://sqlite.org/releaselog/3_39_2.html)
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.39.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 18 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.39.1-1
|
||||||
|
- Updated to version 3.39.1 (https://sqlite.org/releaselog/3_39_1.html)
|
||||||
|
|
||||||
|
* Mon Jun 27 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.39.0-1
|
||||||
|
- Updated to version 3.39.0 (https://sqlite.org/releaselog/3_39_0.html)
|
||||||
|
|
||||||
|
* Thu Jun 09 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.5-2
|
||||||
|
- Fix build error --without sqldiff
|
||||||
|
- Fix typo in changelog
|
||||||
|
|
||||||
|
* Mon May 09 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.5-1
|
||||||
|
- Updated to version 3.38.5 (https://sqlite.org/releaselog/3_38_5.html)
|
||||||
|
|
||||||
|
* Mon May 02 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.3-2
|
||||||
|
- add flag -mbranch-protection=standard for aarch64
|
||||||
|
- remove configure flag --enable-json1, as this is default from 3.38.0
|
||||||
|
- run autoupdate before autoconf in %prep
|
||||||
|
|
||||||
|
* Thu Apr 28 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.3-1
|
||||||
|
- Updated to version 3.38.3 (https://sqlite.org/releaselog/3_38_3.html)
|
||||||
|
|
||||||
|
* Thu Apr 07 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.2-1
|
||||||
|
- Updated to version 3.38.2 (https://sqlite.org/releaselog/3_38_2.html)
|
||||||
|
|
||||||
|
* Wed Mar 23 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.38.1-1
|
||||||
|
- Updated to version 3.38.1 (https://sqlite.org/releaselog/3_38_1.html)
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Wed Aug 18 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.36.0-4
|
||||||
|
- Enabled SQLITE_DBPAGE virtual table (#1973454)
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.36.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 12 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.36.0-2
|
||||||
|
- Support SHA-1 algorithms in sqlite (revert)
|
||||||
|
|
||||||
|
* Thu Jul 01 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.36.0-1
|
||||||
|
- Updated to version 3.36.0 (https://sqlite.org/releaselog/3_36_0.html)
|
||||||
|
|
||||||
|
* Tue Apr 20 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.5-1
|
||||||
|
- Updated to version 3.35.5 (https://sqlite.org/releaselog/3_35_5.html)
|
||||||
|
|
||||||
|
* Thu Apr 15 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.4-3
|
||||||
|
- Remove SHA-1 algorithms according to its deprecation in RHEL-9 (#1935442)
|
||||||
|
|
||||||
|
* Wed Apr 14 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.4-2
|
||||||
|
- Fixed handling LIKE experrsion in WHERE clause (#1947883)
|
||||||
|
|
||||||
|
* Tue Apr 06 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.4-1
|
||||||
|
- Updated to version 3.35.4 (https://sqlite.org/releaselog/3_35_4.html)
|
||||||
|
|
||||||
|
* Fri Mar 26 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.3-1
|
||||||
|
- Updated to version 3.35.3 (https://sqlite.org/releaselog/3_35_3.html)
|
||||||
|
|
||||||
|
* Thu Mar 18 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.2-1
|
||||||
|
- Updated to version 3.35.2 (https://sqlite.org/releaselog/3_35_2.html)
|
||||||
|
|
||||||
|
* Tue Mar 16 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.1-1
|
||||||
|
- Updated to version 3.35.1 (https://sqlite.org/releaselog/3_35_1.html)
|
||||||
|
|
||||||
|
* Mon Mar 15 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.35.0-1
|
||||||
|
- Updated to version 3.35.0 (https://sqlite.org/releaselog/3_35_0.html)
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.34.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 21 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.34.1-1
|
||||||
|
- Updated to version 3.34.1 (https://sqlite.org/releaselog/3_34_1.html)
|
||||||
|
|
||||||
|
* Wed Dec 02 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.34.0-1
|
||||||
|
- Updated to version 3.34.0 (https://sqlite.org/releaselog/3_34_0.html)
|
||||||
|
- Enabled fts3conf.test on s390x and ppc64 architectures
|
||||||
|
|
||||||
|
* Fri Oct 09 2020 Sheng Mao <shngmao@gmail.com> - 3.33.0-2
|
||||||
|
- Enable FTS4 extensions (rhbz#1887106)
|
||||||
|
|
||||||
|
* Fri Aug 14 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.33.0-1
|
||||||
|
- Updated to version 3.33.0 (https://sqlite.org/releaselog/3_33_0.html)
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.32.3-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 3.32.3-2
|
||||||
|
- Use make macros
|
||||||
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||||
|
|
||||||
|
* Fri Jun 19 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.32.3-1
|
||||||
|
- Updated to version 3.32.3 (https://sqlite.org/releaselog/3_32_3.html)
|
||||||
|
|
||||||
|
* Fri Jun 05 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.32.2-1
|
||||||
|
- Updated to version 3.32.2 (https://sqlite.org/releaselog/3_32_2.html)
|
||||||
|
|
||||||
|
* Tue May 26 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.32.1-1
|
||||||
|
- Updated to version 3.32.1 (https://sqlite.org/releaselog/3_32_1.html)
|
||||||
|
|
||||||
|
* Mon May 25 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.32.0-1
|
||||||
|
- Updated to version 3.32.0 (https://sqlite.org/releaselog/3_32_0.html)
|
||||||
|
|
||||||
|
* Wed Feb 05 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.31.1-1
|
||||||
|
- Updated to version 3.31.1 (https://sqlite.org/releaselog/3_31_1.html)
|
||||||
|
- updated spec file, deleted useless patches
|
||||||
|
- Resolved s390 arch incompatibility
|
||||||
|
- Modified FTS tests to support big endian platforms
|
||||||
|
|
||||||
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.30.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 20 2020 Petr Kubat <pkubat@redhat.com> - 3.30.1-3
|
||||||
|
- introduce sqlite-tools package
|
||||||
|
|
||||||
|
* Thu Jan 9 2020 Tom Callaway <spot@fedoraproject.org> - 3.30.1-2
|
||||||
|
- apply upstream fix for CVE-2019-19926 (bz1789441)
|
||||||
|
|
||||||
|
* Mon Oct 14 2019 Petr Kubat <pkubat@redhat.com> - 3.30.1-1
|
||||||
|
- Updated to version 3.30.1 (https://sqlite.org/releaselog/3_30_1.html)
|
||||||
|
|
||||||
* Mon Oct 07 2019 Ondrej Dubaj <odubaj@redhat.com> - 3.30.0-1
|
* Mon Oct 07 2019 Ondrej Dubaj <odubaj@redhat.com> - 3.30.0-1
|
||||||
- Updated to version 3.30.0 (https://sqlite.org/releaselog/3_30_0.html)
|
- Updated to version 3.30.0 (https://sqlite.org/releaselog/3_30_0.html)
|
||||||
- updated spec file, deleted useless patches
|
- updated spec file, deleted useless patches
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
#
|
|
||||||
# Makefile of /CoreOS/sqlite3/Sanity/basic
|
|
||||||
# Description: Basic test for python and sqlite3 DB
|
|
||||||
# Author: Branislav Nater <bnater@redhat.com>
|
|
||||||
#
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
#
|
|
||||||
# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
|
|
||||||
#
|
|
||||||
# This copyrighted material is made available to anyone wishing
|
|
||||||
# to use, modify, copy, or redistribute it subject to the terms
|
|
||||||
# and conditions of the GNU General Public License version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be
|
|
||||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
# PURPOSE. See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
||||||
# Boston, MA 02110-1301, USA.
|
|
||||||
#
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
export TEST=/CoreOS/sqlite3/Sanity/basic
|
|
||||||
export TESTVERSION=1.0
|
|
||||||
|
|
||||||
BUILT_FILES=
|
|
||||||
|
|
||||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE sqlite3-test.py
|
|
||||||
|
|
||||||
.PHONY: all install download clean
|
|
||||||
|
|
||||||
run: $(FILES) build
|
|
||||||
./runtest.sh
|
|
||||||
|
|
||||||
build: $(BUILT_FILES)
|
|
||||||
test -x runtest.sh || chmod a+x runtest.sh
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *~ $(BUILT_FILES)
|
|
||||||
|
|
||||||
|
|
||||||
include /usr/share/rhts/lib/rhts-make.include
|
|
||||||
|
|
||||||
$(METADATA): Makefile
|
|
||||||
@echo "Owner: Branislav Nater <bnater@redhat.com>" > $(METADATA)
|
|
||||||
@echo "Name: $(TEST)" >> $(METADATA)
|
|
||||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
||||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
||||||
@echo "Description: Basic test for python and sqlite DB" >> $(METADATA)
|
|
||||||
@echo "Type: Sanity" >> $(METADATA)
|
|
||||||
@echo "TestTime: 5m" >> $(METADATA)
|
|
||||||
@echo "RunFor: sqlite3" >> $(METADATA)
|
|
||||||
@echo "Requires: python sqlite" >> $(METADATA)
|
|
||||||
@echo "Priority: Normal" >> $(METADATA)
|
|
||||||
@echo "License: GPLv2" >> $(METADATA)
|
|
||||||
@echo "Confidential: no" >> $(METADATA)
|
|
||||||
@echo "Destructive: no" >> $(METADATA)
|
|
||||||
|
|
||||||
rhts-lint $(METADATA)
|
|
@ -1,3 +0,0 @@
|
|||||||
PURPOSE of /CoreOS/sqlite3/Sanity/basic
|
|
||||||
Description: Basic test for python and sqlite3 DB
|
|
||||||
Author: Branislav Nater <bnater@redhat.com>
|
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
#
|
|
||||||
# runtest.sh of /CoreOS/sqlite3/Sanity/basic
|
|
||||||
# Description: Basic test for python and sqlite3 DB
|
|
||||||
# Author: Branislav Nater <bnater@redhat.com>
|
|
||||||
#
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
#
|
|
||||||
# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
|
|
||||||
#
|
|
||||||
# This copyrighted material is made available to anyone wishing
|
|
||||||
# to use, modify, copy, or redistribute it subject to the terms
|
|
||||||
# and conditions of the GNU General Public License version 2.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be
|
|
||||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
# PURPOSE. See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
||||||
# Boston, MA 02110-1301, USA.
|
|
||||||
#
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
# Include rhts environment
|
|
||||||
. /usr/bin/rhts-environment.sh
|
|
||||||
. /usr/lib/beakerlib/beakerlib.sh
|
|
||||||
|
|
||||||
PACKAGES=${PACKAGES:-"python2 sqlite"}
|
|
||||||
REQUIRES=${REQUIRES:-sqlite}
|
|
||||||
PYTHON=${PYTHON:-python}
|
|
||||||
|
|
||||||
rlJournalStart
|
|
||||||
rlPhaseStartSetup
|
|
||||||
rlAssertRpm --all
|
|
||||||
rlAssertBinaryOrigin $PYTHON
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
|
||||||
rlRun "cp sqlite3-test.py $TmpDir" 0 "Copy test script to $TmpDir"
|
|
||||||
rlRun "pushd $TmpDir"
|
|
||||||
rlPhaseEnd
|
|
||||||
|
|
||||||
rlGetTestState && {
|
|
||||||
rlPhaseStartTest
|
|
||||||
rlRun "$PYTHON sqlite3-test.py"
|
|
||||||
rlPhaseEnd
|
|
||||||
}
|
|
||||||
|
|
||||||
rlPhaseStartCleanup
|
|
||||||
rlRun "popd"
|
|
||||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
|
||||||
rlPhaseEnd
|
|
||||||
rlJournalEnd
|
|
||||||
rlJournalPrintText
|
|
@ -1,37 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
|
|
||||||
import sqlite3
|
|
||||||
import sys
|
|
||||||
|
|
||||||
conn = None
|
|
||||||
|
|
||||||
try:
|
|
||||||
conn = sqlite3.connect('test.db')
|
|
||||||
|
|
||||||
cur = conn.cursor()
|
|
||||||
|
|
||||||
cur.execute('SELECT SQLITE_VERSION()')
|
|
||||||
ver = cur.fetchone()
|
|
||||||
print("SQLite version: %s" % ver)
|
|
||||||
|
|
||||||
# Create a new table 'Writers'
|
|
||||||
cur.execute("CREATE TABLE Writers(Id INTEGER PRIMARY KEY AUTOINCREMENT, \
|
|
||||||
Name VARCHAR(25))")
|
|
||||||
cur.execute("INSERT INTO Writers(Name) VALUES('Jack London')")
|
|
||||||
cur.execute("INSERT INTO Writers(Name) VALUES('Honore de Balzac')")
|
|
||||||
cur.execute("INSERT INTO Writers(Name) VALUES('Lion Feuchtwanger')")
|
|
||||||
|
|
||||||
# Retrieve data
|
|
||||||
for row in cur.execute("SELECT * FROM Writers"):
|
|
||||||
print(row)
|
|
||||||
|
|
||||||
cur.execute("DROP TABLE Writers")
|
|
||||||
|
|
||||||
except (sqlite3.Error) as e:
|
|
||||||
print("Error %s:" % e.args[0])
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
finally:
|
|
||||||
|
|
||||||
if conn:
|
|
||||||
conn.close()
|
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
# Tests to run in a classic environment
|
|
||||||
- hosts: localhost
|
|
||||||
roles:
|
|
||||||
- role: standard-test-beakerlib
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
- container
|
|
||||||
tests:
|
|
||||||
- basic
|
|
||||||
required_packages:
|
|
||||||
- findutils # beakerlib needs find command
|
|
||||||
- which
|
|
||||||
- python2
|
|
||||||
- sqlite
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user