From 59b695072cf325d0c9461b998f3914df98d52354 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sat, 30 Apr 2016 18:38:13 -0500 Subject: [PATCH] %check: use standardized BRs, 'make test' --- kf5-baloo.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/kf5-baloo.spec b/kf5-baloo.spec index 526f4f0..699be3f 100644 --- a/kf5-baloo.spec +++ b/kf5-baloo.spec @@ -10,7 +10,7 @@ Name: kf5-%{framework} Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality Version: 5.21.0 -Release: 5%{?dist} +Release: 6%{?dist} # libs are LGPL, tools are GPL # KDE e.V. may determine that future LGPL/GPL versions are accepted @@ -46,6 +46,11 @@ BuildRequires: kf5-solid-devel >= %{version} BuildRequires: lmdb-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel +%if 0%{?tests} +BuildRequires: dbus-x11 +BuildRequires: time +BuildRequires: xorg-x11-server-Xvfb +%endif Requires: kf5-filesystem >= %{version} @@ -137,7 +142,11 @@ cat baloo_file.lang baloo_file_extractor.lang \ %check %if 0%{?tests} -time make test -C %{_target_platform} ARGS="--timeout 300 --output-on-failure" ||: +export CTEST_OUTPUT_ON_FAILURE=1 +xvfb-run -a \ +dbus-launch --exit-with-session \ +time \ +make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: %endif @@ -193,6 +202,9 @@ fi %changelog +* Sat Apr 30 2016 Rex Dieter - 5.21.0-6 +- %%check: use standardized BRs, 'make test' + * Fri Apr 29 2016 Rex Dieter - 5.21.0-5 - -file: Requires: %%name-libs