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

index 6c540edd9d6fa09ee010da3a3ae3cab13f4f117a..bc4f69c684b0595fd198d77cc71ac1338f2448c1 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          kcontacts
@@ -53,11 +56,17 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
 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.384249 seconds and 4 git commands to generate.