Compare commits

...

49 Commits
f31 ... rawhide

Author SHA1 Message Date
Zuzana Miklankova 0ddb5e1f4a
update to 3.39.2 2022-07-29 10:06:10 +02:00
Fedora Release Engineering b570eb4256 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 09:16:43 +00:00
Zuzana Miklankova 3beb0299d4
update to 3.39.1
And fix incorrect date in changelog of specfile.

Resolves: #2106900
2022-07-18 14:47:59 +02:00
Zuzana Miklankova 57bfa64729
update to 3.39.0 2022-06-27 11:57:20 +02:00
Zuzana Miklankova 807afbf3e8
Release bump for rebuild with fixed '--without sqldiff' option
This is not really necessary, because the change would not affect the
resulting package, which is shipped to Fedora, but this way I see as
more transparent.
2022-06-09 16:13:45 +02:00
Jan Pazdziora 110de5f827
Fix build error --without sqldiff.
Addressing
error: Installed (but unpackaged) file(s) found:
   /usr/bin/sqldiff
   /usr/lib/debug/usr/bin/sqldiff-3.31.1-1.fc31.x86_64.debug
2022-06-09 13:27:18 +02:00
Zuzana Miklankova f04125dafa
update to 3.38.5 2022-05-09 11:19:28 +02:00
Zuzana Miklankova 3926e22b6b
Bump release because of various updates in build 2022-05-02 11:39:30 +02:00
Zuzana Miklankova 5fdbe169f2
add autoupdate command to %prep
Use of autoupdate removes WARNING messages, that tell about using deprecated macros
in the %build.

https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/autoupdate-Invocation.html
2022-05-02 11:33:23 +02:00
Zuzana Miklankova 1b8b324002
remove configure flag --enable-json1, as it is default from 3.38.0
Its usage causes warnings, as the flag is not available anymore.
Upstream docs: https://www.sqlite.org/compile.html#enable_json1

Moreover --disable-dependency-tracking and --enable-threads-override-locks
flags are not supported by the sqlite, but used as configure options and
are causing WARNING.
This is because they are a part of %configure macro and can not be
removed easily from there.
2022-05-02 11:28:31 +02:00
Zuzana Miklankova f45efa0be6
add flag -mbranch-protection=standard for aarch64
added because of rpminspect check, which failed with:

FAIL: branch-protection test because the -mbranch-protection option was
not used
2022-05-02 11:27:07 +02:00
Zuzana Miklankova 0f684764a1
Update to 3.38.3 2022-04-28 09:24:43 +02:00
Zuzana Miklankova 511cb0af85
Update to 3.38.2 2022-04-07 10:51:28 +02:00
Zuzana Miklankova afab63ea3c Merge #13 `Enable tmt CI tests, remove obsolete STI test` 2022-03-24 12:59:07 +00:00
Zuzana Miklankova c2aa962caa
Update to 3.38.1 2022-03-23 13:03:09 +01:00
Filip Janus a015330730 Enable tmt CI tests, remove obsolete STI test 2022-03-21 17:34:26 +01:00
Zuzana Miklankova 9e13576d40
Rebase to 3.38.0
- CFLAGS switched to configure options where possible
- remove SQLITE_ENABLE_MATH_FUNCTION, as this is default
- for i686 the atof1.test removed, due to failures, issue is filled in
  upstream. If the issue is fixed upstream, the test can be reenabled.
  Link on the issue: https://www.sqlite.org/forum/forumpost/b6a48b79f9
2022-03-15 13:11:48 +01:00
Fedora Release Engineering f67f322c94 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 01:31:30 +00:00
Ondrej Dubaj 584b64a32d Enabled SQLITE_DBPAGE virtual table (#1973454) 2021-08-18 09:11:47 +02:00
Fedora Release Engineering c598d326d1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 18:09:23 +00:00
Ondrej Dubaj df6059ea18 Support SHA-1 algorithms (revert) 2021-07-12 08:31:03 +02:00
Ondrej Dubaj 219120d4fc Rebase to version 3.36.0 (#1973815) 2021-07-01 14:42:36 +02:00
Ondrej Dubaj bee3a4ab7c Updated to version 3.35.5 (#1951196) 2021-04-20 07:55:15 +02:00
Ondrej Dubaj 2b4b69fa67 Remove SHA-1 algorithms according to its deprecation in RHEL-9 (#1935442) 2021-04-19 10:11:35 +02:00
Ondrej Dubaj d95c433dc3 Fixed handling LIKE experrsion in WHERE clause (#1947883) 2021-04-14 08:33:09 +02:00
Ondrej Dubaj cc02f02fbe Updated to version 3.35.4 (#1945904) 2021-04-06 09:19:44 +02:00
Ondrej Dubaj f268594ea0 Updated to version 3.35.3 (#1943555) 2021-03-27 18:55:44 +01:00
Ondrej Dubaj 0a82e2f7fc Updated to version 3.35.2 (#1940208) 2021-03-18 08:23:04 +01:00
Ondrej Dubaj 8c30a63270 Updated to version 3.35.1 (#1939197) 2021-03-16 09:15:25 +01:00
Ondrej Dubaj 4f5d23b554 Updated to version 3.35.0 (#1938256) 2021-03-15 09:30:27 +01:00
Fedora Release Engineering 39b5d413df - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 20:55:49 +00:00
Ondrej Dubaj d0951b106a Rebase to version 3.34.1 2021-01-25 09:12:11 +01:00
Tom Stellard 090121b464 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 21:53:31 +00:00
Ondrej Dubaj ee088db164 Updated to version 3.34.0 2020-12-02 08:33:34 +01:00
Ondrej Dubaj 6d6c71ff90 Enabled fts3conf.test on s390x and ppc64 architectures 2020-12-01 09:37:44 +01:00
Sheng Mao f098d15dcf Enable FTS4 extensions (rhbz#1887106) 2020-10-10 15:15:56 -06:00
Michal Schorm ed8cce7995 Remove redundant macros
%{?_smp_mflags} macro is a part of %make_build macro
2020-08-18 22:49:37 +00:00
Ondrej Dubaj cfaecde041 Rebased to version 3.33.0
Resolves: #1868945
2020-08-16 17:55:11 +02:00
Fedora Release Engineering 51ca689e25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 11:20:21 +00:00
Ondrej Dubaj 6d8f355237 Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
2020-07-21 14:12:34 +02:00
Ondrej Dubaj 9eee6d2954 Rebase to version 3.32.3 2020-06-24 08:00:23 +02:00
Ondrej Dubaj efa76439d7 Rebase to version 3.32.2
Resolves: #1844043
2020-06-05 08:08:11 +02:00
Ondrej Dubaj f23b9ba5aa Rebase to version 3.32.1
Resolves: #1839834
2020-05-26 13:00:46 +02:00
Ondrej Dubaj 442daf2297 Rebase to version 3.32.0
Resolves: #1839234
2020-05-25 09:50:16 +02:00
Ondrej Dubaj 236dd0f14c - 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
2020-02-05 08:48:04 +01:00
Fedora Release Engineering 60ea8a821d - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 00:08:02 +00:00
Petr Kubat 5cf0d06ce8 introduce sqlite-tools package 2020-01-20 10:43:25 +01:00
Tom Callaway 683ae70000 apply upstream fix for CVE-2019-19926 (bz1789441) 2020-01-09 16:44:30 -05:00
Petr Kubat 45f87b7215 Updated to version 3.30.1 (https://sqlite.org/releaselog/3_30_1.html) 2019-10-14 09:24:14 +02:00
10 changed files with 214 additions and 213 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

10
ci.fmf Normal file
View 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

View File

@ -1,3 +1,3 @@
SHA512 (sqlite-doc-3300000.zip) = 11bc9910fa0b4740b19bb6c533a329f29520f68951e6e24c9957cd2ac3dc6708640d6e535a8be5af173eb0b273ab3bdee6f81724d5b5560054fccddf7d454f78
SHA512 (sqlite-src-3300000.zip) = 43dbe38eae0b14ecba962e418a7a717ef5a0b7aa8610a973daea3f538564fea9440c0053dccabbf1f6652ced180bf44de1a122609564fe357f0f8c7a34078dd7
SHA512 (sqlite-autoconf-3300000.tar.gz) = d1b0d4c6874e600f4e0f8c3eae8a5d754f8a25b3ab68b058ea657641acbae7e4f517d075dd103a87544ccf62a706990e3db909de18cf649ac5a1a459d123926a
SHA512 (sqlite-autoconf-3390200.tar.gz) = c16b50ade3c182d5473014ac0a51e2bb8a5cfc46e532c2bda77ae4d530336e2b57aa4f12dccb6aa2148d60e9289305bf20842ac95dc52f2d31df8eb5f0599de6
SHA512 (sqlite-src-3390200.zip) = a838386a48654391590ea0e1cb355d29f6f93033c3e582df7c63139adaf5119dd5a1550e913dbad0d3eafb0bfa03c4fc6dc48a334d9c45ffb8a7205a528b38f1
SHA512 (sqlite-doc-3390200.zip) = 54b9e632244b95ebf35fcaa5ce9c02381601eb442eec2ec2a809a7fe24d2cfed751581bb82fd243aaede2c935864da39fd1f1685e762826dd76fc754c7f79c0b

View File

@ -1,21 +1,13 @@
diff -up sqlite-3.6.23/tool/lemon.c.system-template sqlite-3.6.23/tool/lemon.c
--- sqlite-3.6.23/tool/lemon.c.system-template 2010-03-10 16:40:35.000000000 +0200
+++ sqlite-3.6.23/tool/lemon.c 2010-03-10 16:40:39.000000000 +0200
@@ -3363,6 +3363,8 @@ PRIVATE FILE *tplt_open(struct lemon *le
diff --git a/tool/lemon.c b/tool/lemon.c
index 54c8946..ac14a06 100644
--- a/tool/lemon.c
+++ b/tool/lemon.c
@@ -3668,6 +3668,8 @@ PRIVATE FILE *tplt_open(struct lemon *lemp)
tpltname = buf;
}else if( access(templatename,004)==0 ){
tpltname = templatename;
+ }else if( access("/usr/share/lemon/lempar.c", R_OK)==0){
+ tpltname = "/usr/share/lemon/lempar.c";
}else{
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;
toFree = tpltname = pathsearch(lemp->argv0,templatename,0);
}

View File

@ -1,22 +1,24 @@
# bcond default logic is nicely backwards...
%bcond_without tcl
%bcond_without sqldiff
%bcond_with static
%bcond_without check
%define realver 3300000
%define docver 3300000
%define rpmver 3.30.0
%define realver 3390200
%define docver 3390200
%define rpmver 3.39.2
%define year 2022
Summary: Library that implements an embeddable SQL database engine
Name: sqlite
Version: %{rpmver}
Release: 1%{?dist}
Release: 2%{?dist}
License: Public Domain
URL: http://www.sqlite.org/
Source0: http://www.sqlite.org/2019/sqlite-src-%{realver}.zip
Source1: http://www.sqlite.org/2019/sqlite-doc-%{docver}.zip
Source2: http://www.sqlite.org/2019/sqlite-autoconf-%{realver}.tar.gz
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
# Support a system-wide lemon template
Patch1: sqlite-3.6.23-lemon-system-template.patch
# sqlite >= 3.7.10 is buggy if malloc_usable_size() is detected, disable it:
@ -30,7 +32,8 @@ Patch4: sqlite-3.16-datetest-2.2c.patch
# Modify sync2.test to pass with DIRSYNC turned off
Patch5: sqlite-3.18.0-sync2-dirsync.patch
BuildRequires: gcc
BuildRequires: make
BuildRequires: gcc
BuildRequires: ncurses-devel readline-devel glibc-devel
BuildRequires: autoconf
%if %{with tcl}
@ -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
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}
%package tcl
Summary: Tcl module for the sqlite3 embeddable SQL database engine
@ -126,39 +140,64 @@ This package contains the analysis program for %{name}.
%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~ || :
autoupdate
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=3 \
-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_FTS3_PARENTHESIS=1 \
-DSQLITE_ENABLE_DBPAGE_VTAB \
-Wall -fno-strict-aliasing"
%ifarch == aarch64
export CFLAGS="$CFLAGS -mbranch-protection=standard"
%endif
%configure %{!?with_tcl:--disable-tcl} \
--enable-rtree \
--enable-fts3 \
--enable-fts4 \
--enable-fts5 \
--enable-threadsafe \
--enable-threads-override-locks \
--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
make %{?_smp_mflags}
%make_build
# Build sqlite3_analyzer
# depends on tcl
%if %{with tcl}
make %{?_smp_mflags} sqlite3_analyzer
%make_build sqlite3_analyzer
%endif
# Build sqldiff
%if %{with sqldiff}
%make_build sqldiff
%endif
%install
make DESTDIR=${RPM_BUILD_ROOT} install
%make_install
install -D -m0644 sqlite3.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite3.1
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
%endif
# Install sqldiff
%if %{with sqldiff}
install -D -m0755 sqldiff $RPM_BUILD_ROOT/%{_bindir}/sqldiff
%endif
%if ! %{with static}
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{la,a}
%endif
@ -187,12 +231,8 @@ export MALLOC_CHECK_=3
rm test/csv01.test
%endif
%ifarch s390x ppc64
rm test/fts3conf.test
%endif
make test
%endif # with check
%endif #with check
%ldconfig_scriptlets libs
@ -224,11 +264,145 @@ make test
%files tcl
%{tcl_sitearch}/sqlite3
%if %{with sqldiff}
%files tools
%{_bindir}/sqldiff
%endif
%files analyzer
%{_bindir}/sqlite3_analyzer
%endif
%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
- Updated to version 3.30.0 (https://sqlite.org/releaselog/3_30_0.html)
- updated spec file, deleted useless patches

View File

@ -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)

View File

@ -1,3 +0,0 @@
PURPOSE of /CoreOS/sqlite3/Sanity/basic
Description: Basic test for python and sqlite3 DB
Author: Branislav Nater <bnater@redhat.com>

View File

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

View File

@ -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()

View File

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