From 19c14242f547302f0188c44a6bfb492777db774d3fdbb3f18a48eb6cb8988bff Mon Sep 17 00:00:00 2001 From: Robert Munteanu Date: Mon, 2 Jan 2017 23:10:44 +0000 Subject: [PATCH] Accepting request 448457 from home:pluskalm:branches:utilities - Update tests dependencies to increase test coverage (bsc#1017157) * valgrind based tests were skipped - Do not run tests in qemu builds, valgrind does not work reliably in such conditions OBS-URL: https://build.opensuse.org/request/show/448457 OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=15 --- jq.changes | 8 ++++++++ jq.spec | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/jq.changes b/jq.changes index bd09f25..cdaede8 100644 --- a/jq.changes +++ b/jq.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jan 2 08:47:00 UTC 2017 - mpluskal@suse.com + +- Update tests dependencies to increase test coverage (bsc#1017157) + * valgrind based tests were skipped +- Do not run tests in qemu builds, valgrind does not work reliably + in such conditions + ------------------------------------------------------------------- Sat Jul 16 10:14:33 UTC 2016 - mpluskal@suse.com diff --git a/jq.spec b/jq.spec index ebd23d6..2c82173 100644 --- a/jq.spec +++ b/jq.spec @@ -1,7 +1,7 @@ # # spec file for package jq # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,9 @@ Url: http://stedolan.github.io/jq/ Source: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz Patch1: CVE-2015-8863.patch BuildRequires: chrpath +BuildRequires: flex BuildRequires: oniguruma-devel +BuildRequires: valgrind BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -57,7 +59,7 @@ Development files (headers and libraries for jq). %build %configure \ --disable-static \ - --disable-silent-rules + --disable-silent-rules make %{?_smp_mflags} %install @@ -73,7 +75,9 @@ rm %{buildroot}%{_libdir}/libjq.la rm -rf %{buildroot}%{_datadir}/doc/%{name} %check -make check +%if "%{qemu_user_space_build}" == "0" +make %{?_smp_mflags} check +%endif %post -n libjq1 -p /sbin/ldconfig %postun -n libjq1 -p /sbin/ldconfig