%check: use standardized BRs, 'make test'

epel9
Rex Dieter 9 years ago
parent a3ffaf7b01
commit 59b695072c

@ -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 <rdieter@fedoraproject.org> - 5.21.0-6
- %%check: use standardized BRs, 'make test'
* Fri Apr 29 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-5
- -file: Requires: %%name-libs

Loading…
Cancel
Save