]> git.pld-linux.org Git - packages/sqlite3.git/blobdiff - sqlite3.spec
- x32 rebuild
[packages/sqlite3.git] / sqlite3.spec
index 9baddef883d1a41a77bb83b01f60f43db07299d7..f6db5e9ddb5e9c2d006d7eb6855ba008d7bd6ab6 100644 (file)
 %endif
 
 #define                version_num %(echo %{version} |  awk -F. '{printf("%d%02d%02d%02d", $1, $2, $3, $4)}')
-%define                version_num 3080000
+%define                version_num 3080702
 %define                _ulibdir        /usr/lib
-%define                tclver          8.5
+%define                tclver          8.6
 
 Summary:       SQLite library
 Summary(pl.UTF-8):     Biblioteka SQLite
 Name:          sqlite3
-Version:       3.8.0
-Release:       1
+Version:       3.8.7.2
+Release:       3
 License:       Public Domain
 Group:         Libraries
 # Source0Download: http://www.sqlite.org/download.html
-Source0:       http://www.sqlite.org/2013/sqlite-src-%{version_num}.zip
-# Source0-md5: 08bb5001f1def80c85ba973278ac5653
+Source0:       http://www.sqlite.org/2014/sqlite-src-%{version_num}.zip
+# Source0-md5: d5f7285c59527caeb2e7401454fdc63e
 Patch0:                %{name}-sign-function.patch
 URL:           http://www.sqlite.org/
 %{?with_load_extension:Provides:       %{name}(load_extension)}
@@ -46,7 +46,7 @@ BuildRequires:        libtool
 BuildRequires: readline-devel
 %{?with_load_extension:BuildRequires:  sed >= 4.0}
 BuildRequires: tcl
-%{?with_tcl:BuildRequires:     tcl-devel}
+%{?with_tcl:BuildRequires:     tcl-devel >= %{tclver}}
 BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -179,6 +179,11 @@ Rozszerzenie sqlite3 dla Tcl.
 
 %{__sed} -i 's/mkdir doc/#mkdir doc/' Makefile.in
 
+if [ "$(cat VERSION)" != "%{version}" ]; then
+       echo "Tarball content doesn't match version %{version}." >&2
+       exit 1
+fi
+
 %build
 %{__libtoolize}
 cp -f /usr/share/automake/config.sub .
@@ -265,7 +270,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc README.md
 %attr(755,root,root) %{_bindir}/sqlite3
 %attr(755,root,root) /%{_lib}/libsqlite3.so.*.*.*
 %attr(755,root,root) %ghost /%{_lib}/libsqlite3.so.0
This page took 0.360166 seconds and 4 git commands to generate.