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

index b0862b91334fe2c0d028f088111c0fb53c0df339..b053355ccad06c130964506af1ae8095eb00fc6b 100644 (file)
@@ -1,4 +1,7 @@
 #
+# Conditional build:
+%bcond_with    tests           # build with tests
+#
 # TODO:
 # - runtime Requires if any
 
@@ -52,10 +55,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.060793 seconds and 4 git commands to generate.