commit 4d94c98e368ad695030499069c8ac6abd71a3184
Author: Witold Filipczyk <[email protected]>
Date:   Tue Apr 5 17:36:42 2022 +0200

    - bcond_with tests

 kdenlive.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/kdenlive.spec b/kdenlive.spec
index 6cd141f..f8b1cda 100644
--- a/kdenlive.spec
+++ b/kdenlive.spec
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 %define                kdeappsver      21.12.3
 %define                qtver           5.9.0
 %define                kaname          kdenlive
@@ -104,12 +107,18 @@ mkdir -p build
 cd build
 %cmake .. \
        -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        -DHTML_INSTALL_DIR=%{_kdedocdir} \
        -DPLUGIN_INSTALL_DIR=%{_libdir}/qt5/plugins
 
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kdenlive.git/commitdiff/4d94c98e368ad695030499069c8ac6abd71a3184

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to