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

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


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

    - updated to 5.24.4
    - added bcond_with tests

 kp5-kwayland-server.spec | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/kp5-kwayland-server.spec b/kp5-kwayland-server.spec
index b9c84fd..113615f 100644
--- a/kp5-kwayland-server.spec
+++ b/kp5-kwayland-server.spec
@@ -1,18 +1,21 @@
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
 # TODO:
 # wayland-scanner from wayland project
 #
-%define		kdeplasmaver	5.24.3
+%define		kdeplasmaver	5.24.4
 %define		qtver		5.15.2
 %define		kpname		kwayland-server
 
 Summary:	Qt-style Client and Server library wrapper for the Wayland libraries
 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:	89d3c8d7b2ce217630009c24de4223a2
+# Source0-md5:	e186ec1eddf8bb89a200ea5709d2af06
 URL:		http://www.kde.org/
 BuildRequires:	Qt5Core-devel >= %{qtver}
 BuildRequires:	Qt5WaylandClient-devel >= %{qtver}
@@ -48,10 +51,15 @@ Pliki nagłówkowe dla programistów używających %{kpname}.
 install -d build
 cd build
 %cmake \
+	%{!?with_tests:-DBUILD_TESTING=OFF} \
 	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
 	../
 %{__make}
 
+%if %{with tests}
+ctest
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kp5-kwayland-server.git/commitdiff/24656c3fb7a832121fe6b9b0b463163d84911940



More information about the pld-cvs-commit mailing list