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

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


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

    - updated to 5.24.4
    - added bcond_with tests

 kp5-kwin.spec | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/kp5-kwin.spec b/kp5-kwin.spec
index 5a95c9a..f5f16dc 100644
--- a/kp5-kwin.spec
+++ b/kp5-kwin.spec
@@ -1,7 +1,10 @@
 # TODO:
 # - libhybris
 #
-%define		kdeplasmaver	5.24.3
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+%define		kdeplasmaver	5.24.4
 %define		kf_ver		5.78
 %define		qt_ver		5.15.0
 %define		kpname		kwin
@@ -9,12 +12,12 @@
 Summary:	KDE Window manager
 Summary(pl.UTF-8):	Zarządca okien KDE
 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:	3c5cc20903ff9c6ef458806644cf7429
+# Source0-md5:	a5ede2005132371714de359be4cf9fb3
 Patch0:		kp5-kwin-absolute-path.patch
 URL:		http://www.kde.org/
 BuildRequires:	EGL-devel
@@ -178,11 +181,16 @@ rm -rf po/id
 
 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-kwin.git/commitdiff/bcb50d715645708c7664d45824271ed421105f5f



More information about the pld-cvs-commit mailing list