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

index 455830104c95570d4e6280d30da67d9b30f1fbb7..7132f8e73a3617b0b8bade37b05e19958f5e4de7 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          kded
@@ -70,10 +73,16 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 install -d build
 cd build
 %cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        ../
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.479392 seconds and 4 git commands to generate.