support bootstrap, %check: enable tests

epel9
Rex Dieter 9 years ago
parent 84a867afc5
commit b171bf34c1

@ -1,9 +1,16 @@
%define framework baloo
%global framework baloo
# uncomment to enable bootstrap mode
#global bootstrap 1
%if !0%{?bootstrap}
%global tests 1
%endif
Name: kf5-%{framework}
Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality
Version: 5.21.0
Release: 2%{?dist}
Release: 3%{?dist}
# libs are LGPL, tools are GPL
# KDE e.V. may determine that future LGPL/GPL versions are accepted
@ -97,7 +104,8 @@ License: LGPLv2 or LGPLv3
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
make %{?_smp_mflags} -C %{_target_platform}
@ -124,6 +132,13 @@ cat kio_tags.lang kio_baloosearch.lang kio_timeline.lang balooctl.lang baloosear
cat baloo_file.lang baloo_file_extractor.lang \
> %{name}-file.lang
%check
%if 0%{?tests}
time make test -C %{_target_platform} ARGS="--timeout 300 --output-on-failure"
%endif
%post
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || :
@ -175,6 +190,9 @@ fi
%changelog
* Wed Apr 27 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-3
- support bootstrap, %%check: enable tests
* Wed Apr 27 2016 Orion Poplawski <orion@cora.nwra.com> - 5.21.0-2
- Do not obsolete/provide baloo{-file} in EPEL, use Conflicts (for now)
- update URL

Loading…
Cancel
Save