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

index e3487f27c1ff622ec96bc720e5fbe3e02b6313ff..24086e15fa41d4ddbb3342afcd8bc4cefe2bee9b 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # Not packaged:
 # - build with kf5-gpgmepp
@@ -85,10 +88,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.529903 seconds and 4 git commands to generate.