[packages/ka5-okular] - bcond_with tests

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


commit 67d8ba8602e13aeab94e1d203cafdc0440369ab7
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue Apr 5 17:35:43 2022 +0200

    - bcond_with tests

 ka5-okular.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/ka5-okular.spec b/ka5-okular.spec
index bafc97a..7fa9f9e 100644
--- a/ka5-okular.spec
+++ b/ka5-okular.spec
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
 %define		kdeappsver	21.12.3
 %define		kframever	5.56.0
 %define		qtver		5.9.0
@@ -81,11 +84,17 @@ install -d build
 cd build
 %cmake \
 	-G Ninja \
+	%{!?with_tests:-DBUILD_TESTING=OFF} \
 	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
 	-DHTML_INSTALL_DIR=%{_kdedocdir} \
 	..
 %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-okular.git/commitdiff/67d8ba8602e13aeab94e1d203cafdc0440369ab7



More information about the pld-cvs-commit mailing list