# TODO:
# - runtime Requires if any
-%define kdeframever 5.53
+%define kdeframever 5.56
%define qtver 5.9.0
%define kfname kcoreaddons
Summary: Utilities for core application functionality and accessing the OS
Name: kf5-%{kfname}
-Version: 5.53.0
+Version: 5.56.0
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 6c568d586c85e82b1d81221818862761
+# Source0-md5: 61056e358e4a90e15023573bf73bbbfc
Patch0: flaky-tests.patch
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: cmake >= 2.8.12
BuildRequires: fam-devel
BuildRequires: kf5-extra-cmake-modules >= 1.4.0
+BuildRequires: ninja
BuildRequires: qt5-linguist >= %{qtver}
BuildRequires: rpmbuild(macros) >= 1.164
BuildRequires: shared-mime-info
%build
install -d build
cd build
-%cmake \
+%cmake -G Ninja \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
../
-%{__make}
+%ninja_build
-%{?with_tests:%{__make} test}
+%{?with_tests:%ninja_build test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} -C build install \
- DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
%find_lang %{kfname}5_qt --with-qm --all-name --with-kde