#
# Conditional build:
%bcond_with tests # build with tests
-%define kdeplasmaver 5.27.6
+%define kdeplasmaver 5.27.7
%define qtver 5.15.2
%define kpname powerdevil
Summary: Manages the power consumption settings of a Plasma Shell
Name: kp5-%{kpname}
-Version: 5.27.6
+Version: 5.27.7
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
-# Source0-md5: 02d748a0b7395084a33c95201727bb02
+# Source0-md5: 2708af1b47a164321111220f3e3fb5f8
URL: https://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16.0
BuildRequires: kf5-bluez-qt-devel
BuildRequires: kf5-kactivities-devel
BuildRequires: kf5-kauth-devel
%setup -q -n %{kpname}-%{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 \
- -DHTML_INSTALL_DIR=%{_kdedocdir} \
- ../
-%ninja_build
+ -DHTML_INSTALL_DIR=%{_kdedocdir}
+%ninja_build -C build
%if %{with tests}
ctest