Browse code

sqlite : Upgrade to version 3.21.0

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

xiaolin-vmware authored on 2017/11/11 15:36:32
Showing 1 changed files
... ...
@@ -1,38 +1,36 @@
1
-%define sourcever 3180000
2
-Summary:	A portable, high level programming interface to various calling conventions
3
-Name:		sqlite-autoconf
4
-Version:	3.18.0
5
-Release:	2%{?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}-3180000.tar.gz
12
-%define sha1 sqlite=74559194e1dd9b9d577cac001c0e9d370856671b
13
-#https://sqlite.org/src/vpatch?from=0db20efe201736b3&to=66de6f4a9504ec26
14
-Patch0:		CVE-2017-10989.patch
15
-Obsoletes:	libsqlite
16
-Provides:	sqlite3
1
+%define sourcever 3210000
2
+Summary:        A portable, high level programming interface to various calling conventions
3
+Name:           sqlite-autoconf
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}-3210000.tar.gz
12
+%define sha1    sqlite=f56fe3407d8297fc0a68a058f4c9e6b77e83575c
13
+Obsoletes:      libsqlite
14
+Provides:       sqlite3
17 15
 %description
18 16
 This package contains most of the static files that comprise the
19 17
 www.sqlite.org website including all of the SQL Syntax and the 
20 18
 C/C++ interface specs and other miscellaneous documentation.
21 19
 %prep
22 20
 %setup -q -n %{name}-%{sourcever}
23
-%patch0 -p1
24 21
 
25 22
 %build
26 23
 ./configure \
27
-	CFLAGS="%{optflags}" \
28
-	CXXFLAGS="%{optflags} -DSQLITE_ENABLE_FTS3=1 \
29
-	-DSQLITE_ENABLE_COLUMN_METADATA=1 \
30
-	-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
31
-	-DSQLITE_SECURE_DELETE=1" \
32
-	--prefix=%{_prefix} \
33
-	--bindir=%{_bindir} \
34
-	--libdir=%{_libdir} \
35
-	--disable-static
24
+    CFLAGS="%{optflags}"                \
25
+    CXXFLAGS="%{optflags}               \
26
+    -DSQLITE_ENABLE_FTS3=1              \
27
+    -DSQLITE_ENABLE_COLUMN_METADATA=1   \
28
+    -DSQLITE_ENABLE_UNLOCK_NOTIFY=1     \
29
+    -DSQLITE_SECURE_DELETE=1"           \
30
+    --prefix=%{_prefix}                 \
31
+    --bindir=%{_bindir}                 \
32
+    --libdir=%{_libdir}                 \
33
+    --disable-static
36 34
 make -j1
37 35
 %install
38 36
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
... ...
@@ -43,8 +41,8 @@ rm -rf %{buildroot}/%{_infodir}
43 43
 %{_fixperms} %{buildroot}/*
44 44
 %check
45 45
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
46
-%post	-p /sbin/ldconfig
47
-%postun	-p /sbin/ldconfig
46
+%post   -p /sbin/ldconfig
47
+%postun -p /sbin/ldconfig
48 48
 %clean
49 49
 rm -rf %{buildroot}/*
50 50
 %files
... ...
@@ -55,6 +53,8 @@ rm -rf %{buildroot}/*
55 55
 %{_libdir}/pkgconfig/*
56 56
 %{_mandir}/man1/*
57 57
 %changelog
58
+*   Fri Nov 10 2017 Xiaolin Li <xiaolinl@vmware.com> 3.21.0-1
59
+-   Upgrade to version 3.21.0
58 60
 *   Thu Jul 13 2017 Dheeraj Shetty <dheerajs@vmware.com> 3.18.0-2
59 61
 -   Adding patch for CVE-2017-10989
60 62
 *   Mon May 8 2017 Divya Thaluru <dthaluru@vmware.com> 3.18.0-1
... ...
@@ -66,4 +66,4 @@ rm -rf %{buildroot}/*
66 66
 *   Wed Feb 03 2016 Anish Swaminathan <anishs@vmware.com> - 3.8.3.1-2
67 67
 -   Fix versioning
68 68
 *   Mon Oct 7 2014 Divya Thaluru <dthaluru@vmware.com> 3080301-1
69
--   Initial build.	First version
69
+-   Initial build.  First version