# Conditional build:
%bcond_with tests # build without tests
#
-%define kdeframever 5.99
+%define kdeframever 5.110
%define qtver 5.15.2
%define kfname modemmanager-qt
Summary: Qt wrapper for ModemManager DBus API
Name: kf5-%{kfname}
-Version: 5.99.0
+Version: 5.110.0
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 63ba79921322a6c14e660c337e2a867b
+# Source0-md5: 9319b8873ab28ca425182a1fe0c9afc5
URL: http://www.kde.org/
BuildRequires: ModemManager-devel
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-devel >= %{qtver}
BuildRequires: Qt5Widgets-devel >= %{qtver}
%endif
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16
BuildRequires: kf5-extra-cmake-modules >= %{version}
BuildRequires: ninja
BuildRequires: qt5-build >= %{qtver}
%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
-%{?with_tests:%ninja_build test}
+%ninja_build -C build
+
+%{?with_tests:%ninja_build -C build test}
%install