#
# Conditional build:
%bcond_with tests # build with tests
-%define kdeframever 5.101
+%define kdeframever 5.115
%define qtver 5.15.2
%define kfname plasma-framework
Summary: The foundations that can be used to build a primary user interface
Name: kf5-%{kfname}
-Version: 5.101.0
+Version: 5.115.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 77d731dedc7a7da106ecf2dcb7f0185c
+# Source0-md5: 553e0499f311ad2cf96177e3e76abf64
URL: http://www.kde.org/
BuildRequires: EGL-devel
BuildRequires: OpenGL-devel
BuildRequires: Qt5Widgets-devel >= %{qtver}
BuildRequires: Qt5X11Extras-devel >= %{qtver}
BuildRequires: Qt5Xml-devel >= %{qtver}
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16
BuildRequires: gettext-devel
BuildRequires: kf5-attica-devel >= %{version}
BuildRequires: kf5-extra-cmake-modules >= %{version}
%setup -q -n %{kfname}-%{version}
%build
-install -d build
-cd build
-%cmake -G Ninja \
+%cmake -B build \
+ -G Ninja \
%{!?with_tests:-DBUILD_TESTING=OFF} \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- ../
-%ninja_build
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
%if %{with tests}
-ctest
+%ninja_build -C build test
%endif