%check: make test

epel9
Rex Dieter 8 years ago
parent 6fd06e3069
commit cebdf3451f

@ -1,11 +1,15 @@
%global framework sonnet
# bootstrap without backend plugins
# uncomment to enable bootstrap mode
#global bootstrap 1
%if !0%{?bootstrap}
%global tests 1
%endif
Name: kf5-%{framework}
Version: 5.27.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: KDE Frameworks 5 Tier 1 solution for spell checking
License: LGPLv2+
@ -72,7 +76,8 @@ GUI part of the Sonnet framework provides widgets with spell checking support.
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DHUNSPELL_MAIN_DICT_PATH:PATH="%{_datadir}/myspell"
-DHUNSPELL_MAIN_DICT_PATH:PATH="%{_datadir}/myspell" \
%{?tests:-DBUILD_TESTING:BOOL=ON}
popd
make %{?_smp_mflags} -C %{_target_platform}
@ -84,6 +89,13 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang_kf5 sonnet5_qt
%check
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%endif
%files
%doc README.md
%license COPYING.LIB
@ -120,6 +132,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog
* Tue Dec 13 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.27.0-5
- %%check: make test
* Tue Dec 13 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 5.27.0-4
- Rebuild for hunspell 1.5.x

Loading…
Cancel
Save