[packages/ka5-kdevelop] - bcond_with tests

witekfl witekfl at pld-linux.org
Tue Apr 5 17:30:35 CEST 2022


commit 29f462f36b33a81c522e95f7444cf2c40a7d68c5
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue Apr 5 17:30:31 2022 +0200

    - bcond_with tests

 ka5-kdevelop.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/ka5-kdevelop.spec b/ka5-kdevelop.spec
index 8c1cc28..c40e66c 100644
--- a/ka5-kdevelop.spec
+++ b/ka5-kdevelop.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-#
+%bcond_with	tests		# build with tests
+
 %define		kdeappsver	21.12.3
 %define		kframever	5.78.0
 %define		qtver		5.15.0
@@ -142,12 +143,18 @@ install -d build
 cd build
 %cmake \
 	-G Ninja \
+	%{!?with_tests:-DBUILD_TESTING=OFF} \
 	-DHTML_INSTALL_DIR=%{_kdedocdir} \
 	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
 	-DFORCE_BASH_COMPLETION_INSTALLATION=ON \
 	..
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %ninja_install -C build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ka5-kdevelop.git/commitdiff/29f462f36b33a81c522e95f7444cf2c40a7d68c5



More information about the pld-cvs-commit mailing list