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

index d43a5a5f0115fb03429ed18b35b2fa3d5cc62dbb..055fb36b330d5f9bd22049f66cb29de7ad0df1e5 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 %define                kdeframever     5.92
 %define                qtver           5.14.0
 %define                kfname          kconfigwidgets
@@ -73,10 +76,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.450018 seconds and 4 git commands to generate.