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

index a9e0ee9c681d958095f1bebbce9b04a813abb597..609d9b81085f062449566a2d5fb5999e3f78fab1 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # Not packaged:
 # /etc/xdg/ui
@@ -88,10 +91,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.400514 seconds and 4 git commands to generate.