[packages/ka5-cantor] - bcond_with tests

witekfl witekfl at pld-linux.org
Tue Apr 5 17:26:54 CEST 2022


commit c2fe35569f2bbf8313494dff34ccbcbdc12c00ea
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue Apr 5 17:26:51 2022 +0200

    - bcond_with tests

 ka5-cantor.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/ka5-cantor.spec b/ka5-cantor.spec
index 5867565..e27cc80 100644
--- a/ka5-cantor.spec
+++ b/ka5-cantor.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without	luajit		# build without luajit
+%bcond_with	tests		# build with tests
 #
 %ifarch x32
 %undefine	with_luajit
@@ -120,11 +121,17 @@ install -d build
 cd build
 %cmake \
 	-G Ninja \
+	%{!?with_tests:-DBUILD_TESTING=OFF} \
 	-DHTML_INSTALL_DIR=%{_kdedocdir} \
 	-DKDE_INSTALL_USE_QT_SYS_PATHS=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-cantor.git/commitdiff/c2fe35569f2bbf8313494dff34ccbcbdc12c00ea



More information about the pld-cvs-commit mailing list