Browse code

sqlite : update to version 3.21.0

Change-Id: I1680725070d338428b55a9a4dc4684e796a60757
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4283
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

xiaolin-vmware authored on 2017/11/11 15:28:10
Showing 1 changed files
... ...
@@ -1,57 +1,55 @@
1
-%define sourcever 3190300
2
-Summary:	A portable, high level programming interface to various calling conventions
3
-Name:		sqlite
4
-Version:	3.19.3
5
-Release:	1%{?dist}
6
-License:	Public Domain
7
-URL:		http://www.sqlite.org
8
-Group:		System Environment/GeneralLibraries
9
-Vendor:		VMware, Inc.
10
-Distribution: Photon
11
-Source0:	http://sqlite.org/2016/%{name}-autoconf-3190300.tar.gz
12
-%define sha1 sqlite=58f2cabffb3ff4761a3ac7f834d9db7b46307c1f
13
-#https://sqlite.org/src/vpatch?from=0db20efe201736b3&to=66de6f4a9504ec26
14
-Patch0:         CVE-2017-10989.patch
15
-Obsoletes:	sqlite-autoconf
16
-Requires:	sqlite-libs = %{version}-%{release}
17
-Provides:	sqlite3
1
+%define sourcever 3210000
2
+Summary:    A portable, high level programming interface to various calling conventions
3
+Name:           sqlite
4
+Version:        3.21.0
5
+Release:        1%{?dist}
6
+License:        Public Domain
7
+URL:            http://www.sqlite.org
8
+Group:          System Environment/GeneralLibraries
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+Source0:        http://sqlite.org/2017/%{name}-autoconf-3210000.tar.gz
12
+%define sha1    sqlite=f56fe3407d8297fc0a68a058f4c9e6b77e83575c
13
+Obsoletes:      sqlite-autoconf
14
+Requires:       sqlite-libs = %{version}-%{release}
15
+Provides:       sqlite3
18 16
 %description
19 17
 This package contains most of the static files that comprise the
20 18
 www.sqlite.org website including all of the SQL Syntax and the 
21 19
 C/C++ interface specs and other miscellaneous documentation.
22 20
 
23 21
 %package devel
24
-Summary:	sqlite3 link library & header files
25
-Group:		Development/Libraries
26
-Requires:	%{name} = %{version}-%{release}
27
-%description devel
22
+Summary:        sqlite3 link library & header files
23
+Group:          Development/Libraries
24
+Requires:       %{name} = %{version}-%{release}
25
+%description    devel
28 26
 The sqlite devel package include the needed library link and
29 27
 header files for development.
30 28
 
31 29
 %package libs
32
-Summary:	sqlite3 library
33
-Group:		Libraries
34
-Provides:	pkgconfig(sqlite3)
35
-Obsoletes:	libsqlite
36
-Obsoletes:	sqlite-autoconf
30
+Summary:        sqlite3 library
31
+Group:          Libraries
32
+Provides:       pkgconfig(sqlite3)
33
+Obsoletes:      libsqlite
34
+Obsoletes:      sqlite-autoconf
37 35
 %description libs
38 36
 The sqlite3 library.
39 37
 
40 38
 %prep
41 39
 %setup -q -n %{name}-autoconf-%{sourcever}
42
-%patch0 -p1
43 40
 
44 41
 %build
45 42
 ./configure \
46
-	CFLAGS="%{optflags}" \
47
-	CXXFLAGS="%{optflags} -DSQLITE_ENABLE_FTS3=1 \
48
-	-DSQLITE_ENABLE_COLUMN_METADATA=1 \
49
-	-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
50
-	-DSQLITE_SECURE_DELETE=1" \
51
-	--prefix=%{_prefix} \
52
-	--bindir=%{_bindir} \
53
-	--libdir=%{_libdir} \
54
-	--disable-static
43
+    CFLAGS="%{optflags}"                \
44
+    CXXFLAGS="%{optflags}               \
45
+    -DSQLITE_ENABLE_FTS3=1              \
46
+    -DSQLITE_ENABLE_COLUMN_METADATA=1   \
47
+    -DSQLITE_ENABLE_UNLOCK_NOTIFY=1     \
48
+    -DSQLITE_SECURE_DELETE=1"           \
49
+    --prefix=%{_prefix}                 \
50
+    --bindir=%{_bindir}                 \
51
+    --libdir=%{_libdir}                 \
52
+    --disable-static
55 53
 make
56 54
 %install
57 55
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
... ...
@@ -67,7 +65,7 @@ make %{?_smp_mflags} check
67 67
 %post libs
68 68
 /sbin/ldconfig
69 69
 
70
-%postun	libs
70
+%postun libs
71 71
 /sbin/ldconfig
72 72
 
73 73
 %clean
... ...
@@ -90,6 +88,8 @@ rm -rf %{buildroot}/*
90 90
 %{_libdir}/libsqlite3.so.0.8.6
91 91
 
92 92
 %changelog
93
+*   Fri Nov 10 2017 Xiaolin Li <xiaolinl@vmware.com> 3.21.0-1
94
+-   Upgrade to version 3.21.0
93 95
 *   Fri Jul 14 2017 Dheeraj Shetty <dheerajs@vmware.com> 3.19.3-1
94 96
 -   Upgrading to version 3.19.0 and adding patch for CVE-2017-10989
95 97
 *   Thu Jun 29 2017 Divya Thaluru <dthaluru@vmware.com> 3.18.0-2