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

index 0904447387ee60cac384aa9830fa09319f98fd65..ee78ef7dfb83c811ddf7c65da7f8b6b421447409 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # find_lang needs to be updated (to handle pmap, pmapc, js files)
 %define                kdeframever     5.92
@@ -63,10 +66,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.434859 seconds and 4 git commands to generate.