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

index 8a3e643a533c6a2c8c178180bd090d63afe1a586..dc52c57f6722ee6f5d8dd970707f6851b5f60cdb 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 %define                kdeframever     5.92
 %define                qtver           5.9.0
 %define                kfname          ktexteditor
@@ -91,10 +94,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.264251 seconds and 4 git commands to generate.