]> git.pld-linux.org Git - packages/kf5-kio.git/blobdiff - kf5-kio.spec
- bcond_with tests
[packages/kf5-kio.git] / kf5-kio.spec
index 3892426bbefa7dd19b4ce80b2dd447ea72cfa834..fc746a391943c7769f8e1741a0c57c266496c91a 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 %define                kdeframever     5.92
 %define                qtver           5.15.2
 %define                kfname          kio
@@ -146,11 +149,17 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 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.049275 seconds and 4 git commands to generate.