From: Witold Filipczyk Date: Tue, 5 Apr 2022 15:26:51 +0000 (+0200) Subject: - bcond_with tests X-Git-Tag: auto/th/ka5-cantor-22.04.0-1~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=c2fe35569f2bbf8313494dff34ccbcbdc12c00ea;p=packages%2Fka5-cantor.git - bcond_with tests --- diff --git a/ka5-cantor.spec b/ka5-cantor.spec index 5867565..e27cc80 100644 --- a/ka5-cantor.spec +++ b/ka5-cantor.spec @@ -1,6 +1,7 @@ # # Conditional build: %bcond_without luajit # build without luajit +%bcond_with tests # build with tests # %ifarch x32 %undefine with_luajit @@ -120,11 +121,17 @@ install -d build cd build %cmake \ -G Ninja \ + %{!?with_tests:-DBUILD_TESTING=OFF} \ -DHTML_INSTALL_DIR=%{_kdedocdir} \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ .. %ninja_build +%if %{with tests} +ctest +%endif + + %install rm -rf $RPM_BUILD_ROOT %ninja_install -C build