Accepting request 619776 from server:database

OBS-URL: https://build.opensuse.org/request/show/619776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sqlite3?expand=0&rev=106
This commit is contained in:
Dominique Leuenberger 2018-07-02 21:29:39 +00:00 committed by Git OBS Bridge
commit 0b73b6b295
2 changed files with 18 additions and 5 deletions

View File

@ -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

View File

@ -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