+#
+# Conditional build:
+%bcond_with tests # build with tests
# TODO:
# * dbusmenu-qt5 , Support for notification area menus via the DBusMenu protocol , <https://launchpad.net/libdbusmenu-qt>
#
-%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
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