[packages/kdenlive] - bcond_with tests
witekfl
witekfl at pld-linux.org
Tue Apr 5 17:36:46 CEST 2022
commit 4d94c98e368ad695030499069c8ac6abd71a3184
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
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
More information about the pld-cvs-commit
mailing list