# TODO:
# - runtime Requires if any
-%define kdeframever 5.92
+%define kdeframever 5.115
%define qtver 5.15.2
%define kfname kcoreaddons
Summary: Utilities for core application functionality and accessing the OS
Name: kf5-%{kfname}
-Version: 5.92.0
+Version: 5.115.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: 0cbeb3e8ece398e3645a82d28fe29a85
+# Source0-md5: 159559a9fcc0812b4145acdd073a73d7
Patch0: flaky-tests.patch
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
#%patch0 -p1
%build
-install -d build
-cd build
-%cmake -G Ninja \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- ../
-%ninja_build
+%cmake -B build \
+ -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
+
+%{?with_tests:%ninja_build -C build test}
-%{?with_tests:%ninja_build test}
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
+# not supported by glibc yet
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ie,tok}
+
%find_lang %{kfname}5_qt --with-qm --all-name --with-kde
%clean
%{_datadir}/mime/packages/kde5.xml
%attr(755,root,root) %{_libdir}/libKF5CoreAddons.so.*.*.*
%ghost %{_libdir}/libKF5CoreAddons.so.5
-%dir %{_libdir}/qt5/plugins/namespace
-%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/jsonplugin_cmake_macro.so
-%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/pluginwithoutmetadata.so
+##%dir %{_libdir}/qt5/plugins/namespace
+##%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/jsonplugin_cmake_macro.so
+##%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/pluginwithoutmetadata.so
%{_datadir}/qlogging-categories5/kcoreaddons.categories
%dir %{_datadir}/kf5/licenses
%{_datadir}/kf5/licenses/ARTISTIC