%bcond_with tests # build with tests
# TODO:
# - fix build with aspell
-%define kdeframever 5.108
+%define kdeframever 5.109
%define qtver 5.15.2
%define kfname sonnet
Summary: Multi-language spell checker
Summary(pl.UTF-8): Wielojęzyczne narzędzie do sprawdzania pisowni
Name: kf5-%{kfname}
-Version: 5.108.0
+Version: 5.109.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: c6351aa1a5bd58171d03906908ad8007
+# Source0-md5: 8aff00ce75275252f45d915c478279de
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Test-devel >= %{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
+
+%ninja_build -C build
%if %{with tests}
-ctest
+%ninja_build -C build test
%endif