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

index ecfbd43818d2269a84e86ce8a820fa14f9848cab..125e30ddf13d99cbc7ea4db8ac803b9363395493 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # Conflict /usr/bin/kactivitymanagerd
 %define                kdeframever     5.92
@@ -87,10 +90,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
 %ninja_install -C build
This page took 0.60404 seconds and 4 git commands to generate.