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

index 72b28dcf6b23d463fb99abba461e4c216f6dc2b9..caf4941102f29bde5873ec342add1cb9d9318bc6 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 %define                kdeframever     5.92
 %define                qtver           5.15.2
 %define                kfname          kconfig
@@ -75,10 +78,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
 install -d $RPM_BUILD_ROOT%{_datadir}/kconf_update
This page took 0.086239 seconds and 4 git commands to generate.