|
@@ -5,8 +5,9 @@
|
|
|
|
|
|
%define with_check %{?_with_check:1}%{!?_with_check:0}
|
|
%define with_check %{?_with_check:1}%{!?_with_check:0}
|
|
|
|
|
|
-%define realver 3070500
|
|
+%define realver 3071401
|
|
-%define rpmver %(echo %{realver}|sed -e "s/00//g" -e "s/0/./g")
|
|
+%define docver 3071400
|
|
|
|
+%define rpmver 3.7.14.1
|
|
|
|
|
|
|
|
|
|
Summary: SQLite is a C library that implements an embeddable SQL database engine
|
|
Summary: SQLite is a C library that implements an embeddable SQL database engine
|
|
@@ -19,15 +20,23 @@ URL: http://www.sqlite.org
|
|
License: Public Domain
|
|
License: Public Domain
|
|
|
|
|
|
Source0: http://www.sqlite.org/%{archivename}-src-%{realver}.zip
|
|
Source0: http://www.sqlite.org/%{archivename}-src-%{realver}.zip
|
|
-Source1: http://www.sqlite.org/%{archivename}-doc-%{realver}.zip
|
|
+Source1: http://www.sqlite.org/%{archivename}-doc-%{docver}.zip
|
|
-# Fix build with --enable-load-extension, upstream ticket #3137
|
|
+
|
|
-Patch1: sqlite-3.6.12-libdl.patch
|
|
+# Support a system-wide lemon template
|
|
-# Avoid insecure sprintf(), use a system path for lempar.c, patch from Debian
|
|
+Patch1: sqlite-3.6.23-lemon-system-template.patch
|
|
-Patch2: sqlite-3.6.23.1-lemon-snprintf.patch
|
|
+# Shut up stupid tests depending on system settings of allowed open fd's
|
|
|
|
+Patch2: sqlite-3.7.7.1-stupid-openfiles-test.patch
|
|
|
|
+# Shut up pagecache overflow test whose expected result depends on compile
|
|
|
|
+# options and whatnot. Dunno why this started failing in 3.7.10 but
|
|
|
|
+# doesn't seem particularly critical...
|
|
|
|
+Patch3: sqlite-3.7.10-pagecache-overflow-test.patch
|
|
|
|
+# sqlite >= 3.7.10 is buggy if malloc_usable_size() is detected, disable it:
|
|
|
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=801981
|
|
|
|
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665363
|
|
|
|
+Patch4: sqlite-3.7.14.1-no-malloc-usable-size.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-Requires: readline, ncurses
|
|
+BuildRequires: tcl, readline-devel, ncurses-devel
|
|
-BuildRequires: tcl, readline-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -43,7 +52,7 @@ SQLite は組み込み型SQLデータベースエンジンを実装するCライ
|
|
SQLiteライブラリにリンクされたプログラムではSQLデータベースアクセスが
|
|
SQLiteライブラリにリンクされたプログラムではSQLデータベースアクセスが
|
|
できるようになります。その際、別のRDBMSプロセスは不要です。
|
|
できるようになります。その際、別のRDBMSプロセスは不要です。
|
|
|
|
|
|
-
|
|
+
|
|
%package -n %{name}-devel
|
|
%package -n %{name}-devel
|
|
Summary: Header files and libraries for developing apps which will use sqlite3
|
|
Summary: Header files and libraries for developing apps which will use sqlite3
|
|
Summary(ja): sqlite3の開発用ヘッダファイル及びライブラリ
|
|
Summary(ja): sqlite3の開発用ヘッダファイル及びライブラリ
|
|
@@ -137,8 +146,10 @@ sqlite3-develはSQLiteデータベースライブラリを用いるプログラ
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -a1 -n%{archivename}-src-%{realver}
|
|
%setup -q -a1 -n%{archivename}-src-%{realver}
|
|
-%patch1 -p1 -b .libdl
|
|
+%patch1 -p1 -b .lemon-system-template
|
|
-%patch2 -p1 -b .lemon-sprintf
|
|
+%patch2 -p1 -b .stupid-openfiles-test
|
|
|
|
+%patch3 -p1 -b .pagecache-overflow-test
|
|
|
|
+%patch4 -p1 -b .no-malloc-usable-size
|
|
|
|
|
|
rm -f %{name}-doc-%{realver}/search
|
|
rm -f %{name}-doc-%{realver}/search
|
|
|
|
|
|
@@ -191,8 +202,6 @@ install -D -m0644 tool/lempar.c $RPM_BUILD_ROOT/%{_datadir}/lemon/lempar.c
|
|
|
|
|
|
%files -n %{name}-devel
|
|
%files -n %{name}-devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-#%{_libdir}/*.a
|
|
|
|
-#%{_libdir}/*.la
|
|
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*
|
|
%{_libdir}/pkgconfig/*
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
@@ -218,14 +227,15 @@ install -D -m0644 tool/lempar.c $RPM_BUILD_ROOT/%{_datadir}/lemon/lempar.c
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
%files -n compat32-%{name}-devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-#%{_libdir}/*.a
|
|
|
|
-#%{_libdir}/*.la
|
|
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*
|
|
%{_libdir}/pkgconfig/*
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.15.1-1
|
|
|
|
+- new upstream release
|
|
|
|
+
|
|
* Tue Mar 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.5-1
|
|
* Tue Mar 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.5-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|