[packages/kp5-kscreenlocker] - updated to 5.24.4 - added bcond_with tests

witekfl witekfl at pld-linux.org
Wed Mar 30 15:42:25 CEST 2022


commit d3f73be0bf7fc54fe6ac1022df222d5a139db652
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Wed Mar 30 15:42:20 2022 +0200

    - updated to 5.24.4
    - added bcond_with tests

 kp5-kscreenlocker.spec | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/kp5-kscreenlocker.spec b/kp5-kscreenlocker.spec
index 6b59c61..b5d2598 100644
--- a/kp5-kscreenlocker.spec
+++ b/kp5-kscreenlocker.spec
@@ -1,15 +1,18 @@
-%define		kdeplasmaver	5.24.3
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+%define		kdeplasmaver	5.24.4
 %define		qtver		5.9.0
 %define		kf5ver		5.19.0
 %define		kpname		kscreenlocker
 Summary:	kscreenlocker
 Name:		kp5-%{kpname}
-Version:	5.24.3
+Version:	5.24.4
 Release:	1
 License:	LGPL v2.1+
 Group:		X11/Libraries
 Source0:	http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
-# Source0-md5:	eb1752e454940f116933d8f636030362
+# Source0-md5:	4c211e521bd8fc436d7e3b44ddaef96c
 URL:		http://www.kde.org/
 BuildRequires:	Qt5Core-devel >= %{qtver}
 BuildRequires:	Qt5Gui-devel >= %{qtver}
@@ -63,11 +66,16 @@ Pliki nagłówkowe dla programistów używających %{kpname}.
 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/kp5-kscreenlocker.git/commitdiff/d3f73be0bf7fc54fe6ac1022df222d5a139db652



More information about the pld-cvs-commit mailing list