From 9ec151887ba1994630cbd5ffc37d21723c73e43f Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 30 Mar 2022 15:42:49 +0200 Subject: [PATCH] - updated to 5.24.4 - added bcond_with tests --- kp5-plasma-workspace.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/kp5-plasma-workspace.spec b/kp5-plasma-workspace.spec index a276fec..cfd03a7 100644 --- a/kp5-plasma-workspace.spec +++ b/kp5-plasma-workspace.spec @@ -1,18 +1,21 @@ +# +# Conditional build: +%bcond_with tests # build with tests # TODO: # * dbusmenu-qt5 , Support for notification area menus via the DBusMenu protocol , # -%define kdeplasmaver 5.24.3 +%define kdeplasmaver 5.24.4 %define qtver 5.9.0 %define kpname plasma-workspace Summary: KDE Plasma Workspace Name: kp5-%{kpname} -Version: 5.24.3 +Version: 5.24.4 Release: 1 License: LGPL v2.1+ Group: X11/Libraries Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz -# Source0-md5: f81d7263eb900d64685f7cade816e78f +# Source0-md5: 318d41c127cbdefee055babd426ae159 Source1: kde.pam Patch0: kp5-plasma-workspace-absolute-path.patch Patch1: kp5-plasma-workspace-scripts.patch @@ -96,11 +99,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 -- 2.44.0