From 5513048e30503c08f15c75fb1f126b17be1db8f6f91a6958f30ff7b74b3d7ea0 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Fri, 29 Jun 2018 13:06:55 +0000 Subject: [PATCH] Accepting request 619771 from home:pluskalm:branches:server:database - Run tests during build OBS-URL: https://build.opensuse.org/request/show/619771 OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=211 --- sqlite3.changes | 5 +++++ sqlite3.spec | 18 +++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/sqlite3.changes b/sqlite3.changes index d788188..421f1c6 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 29 10:21:38 UTC 2018 - mpluskal@suse.com + +- Run tests during build + ------------------------------------------------------------------- Fri Jun 8 14:01:06 UTC 2018 - guillaume.gardet@opensuse.org diff --git a/sqlite3.spec b/sqlite3.spec index dd33773..0aae02e 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -32,7 +32,7 @@ BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: readline-devel -BuildRequires: tcl +BuildRequires: tcl-devel BuildRequires: unzip BuildRequires: pkgconfig(zlib) Provides: %{oname} = %{version} @@ -93,9 +93,7 @@ application which supports the Qt database plug-ins. %package doc Summary: Documentation for %{name} Group: Documentation/Other -%if 0%{?suse_version} >= 1130 BuildArch: noarch -%endif %description doc @@ -135,13 +133,23 @@ export CFLAGS="%{optflags} \ --enable-json1 \ --enable-update-limit \ --enable-rtree -make sqlite3.c +make %{?_smp_mflags} sqlite3.c make %{?_smp_mflags} +%ifnarch %ix86 +# Tests fail due to slight precision variation caused by FPU being 80-bit internally. +# see https://bugs.gentoo.org/628242 +%check +make %{?_smp_mflags} test +%endif + %install %make_install mkdir -p %{buildroot}/%{_mandir}/man1/ -cp sqlite3.1 %{buildroot}/%{_mandir}/man1/ +install -Dpm 0644 sqlite3.1 \ + %{buildroot}/%{_mandir}/man1/sqlite3.1 +# tcl bindings are provided by tcl itself +rm -rf %{buildroot}%{_libdir}/tcl/tcl8.?/sqlite3* find %{buildroot} -type f -name "*.la" -delete -print %post -n libsqlite3-0 -p /sbin/ldconfig