]> git.pld-linux.org Git - packages/kf5-kdav.git/commitdiff
- bcond_with tests
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 5 Apr 2022 16:03:52 +0000 (18:03 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 5 Apr 2022 16:03:52 +0000 (18:03 +0200)
kf5-kdav.spec

index 7ec61f4b7e5a363b2d8df2cddf2011f7ea21bb5a..00b06fd86e456c90847e7eb65d6203b2dc6e135f 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 %define                kdeframever     5.92
 %define                qtver           5.15.0
 %define                kfname          kdav
@@ -53,11 +56,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
This page took 0.305325 seconds and 4 git commands to generate.