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