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
This commit is contained in:
Robert Munteanu 2017-01-02 23:10:44 +00:00 committed by Git OBS Bridge
parent b43d7b532e
commit 19c14242f5
2 changed files with 15 additions and 3 deletions

View File

@ -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 Sat Jul 16 10:14:33 UTC 2016 - mpluskal@suse.com

10
jq.spec
View File

@ -1,7 +1,7 @@
# #
# spec file for package jq # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Source: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz
Patch1: CVE-2015-8863.patch Patch1: CVE-2015-8863.patch
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: flex
BuildRequires: oniguruma-devel BuildRequires: oniguruma-devel
BuildRequires: valgrind
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -57,7 +59,7 @@ Development files (headers and libraries for jq).
%build %build
%configure \ %configure \
--disable-static \ --disable-static \
--disable-silent-rules --disable-silent-rules
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -73,7 +75,9 @@ rm %{buildroot}%{_libdir}/libjq.la
rm -rf %{buildroot}%{_datadir}/doc/%{name} rm -rf %{buildroot}%{_datadir}/doc/%{name}
%check %check
make check %if "%{qemu_user_space_build}" == "0"
make %{?_smp_mflags} check
%endif
%post -n libjq1 -p /sbin/ldconfig %post -n libjq1 -p /sbin/ldconfig
%postun -n libjq1 -p /sbin/ldconfig %postun -n libjq1 -p /sbin/ldconfig