From 29fe2c00707cd9d76d0ca31701b6700610767224 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 30 Mar 2022 15:43:40 +0200 Subject: [PATCH] - updated to 5.24.4 - added bcond_with tests --- kp5-kwayland-integration.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/kp5-kwayland-integration.spec b/kp5-kwayland-integration.spec index 9707838..7e3638a 100644 --- a/kp5-kwayland-integration.spec +++ b/kp5-kwayland-integration.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.15.2 %define kpname kwayland-integration Summary: Provides integration plugins for various KDE frameworks for the wayland windowing system 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: 028c89154e55e2cc974824ab5ae2901d +# Source0-md5: 21935e1a654bd80f135d80cd5b4488ec URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5WaylandClient-devel >= %{qtver} @@ -35,11 +38,16 @@ wayland windowing system. 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 -- 2.44.0