I would like to update mingw32-sqlite to match native in both version an
feature set. Are there any objections?

Thanks
Tom

--- mingw32-sqlite.spec.orig	2009-04-23 11:09:21.000000000 +0200
+++ mingw32-sqlite.spec	2009-04-23 11:24:37.000000000 +0200
@@ -5,8 +5,8 @@
 %define __find_provides %{_mingw32_findprovides}
 
 Name:           mingw32-sqlite
-Version:        3.6.6.2
-Release:        3%{?dist}
+Version:        3.6.12
+Release:        1%{?dist}
 Summary:        MinGW Windows port of sqlite embeddable SQL database engine
 
 License:        Public Domain
@@ -18,11 +18,14 @@
 BuildArch:      noarch
 
 # Patches from Fedora native package.
-Patch1:         sqlite-3.6.6.2-libdl.patch
+Patch1:         sqlite-3.6.12-libdl.patch
+# Avoid insecure sprintf(), use a system path for lempar.c, patch from Debian 
 Patch2:         sqlite-3.6.6.2-lemon-snprintf.patch
+Patch3:         sqlite-3.6.12-no-sqlite-doc.patch
+Patch4:         sqlite-3.6.12-memalign.patch
 
 # Patches for MinGW port.
-Patch1000:      mingw32-sqlite-3.6.6.2-no-undefined.patch
+Patch1000:      mingw32-sqlite-3.6.12-no-undefined.patch
 
 BuildRequires:  mingw32-filesystem >= 49
 BuildRequires:  mingw32-gcc
@@ -55,6 +58,8 @@
 %setup -q -n sqlite-%{version}
 %patch1 -p1 -b .libdl
 %patch2 -p1 -b .lemon-sprintf
+%patch3 -p1 -b .no-sqlite-doc
+%patch4 -p1 -b .align
 %patch1000 -p1
 
 # Ships with an old/broken version of libtool which cannot create
@@ -72,6 +77,8 @@
 # the extension via this export.
 #   - RWMJ 2008-09-30
 export config_TARGET_EXEEXT=.exe
+# add compile flags to enable rtree, fts3
+export MINGW32_CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -fno-strict-aliasing"
 
 %{_mingw32_configure}
 make
@@ -104,6 +111,10 @@
 
 
 %changelog
+* Thu Apr 23 2009 Thomas Sailer <[email protected]> - 3.6.12-1
+- update to 3.6.12 to match native
+- enable rtree, fts3
+
 * Wed Feb 25 2009 Fedora Release Engineering <[email protected]> - 3.6.6.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw

Reply via email to