-%define kdeframever 5.89
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeframever 5.98
%define qtver 5.15.2
%define kfname kconfig
Summary: Backend for storing application configuration
Name: kf5-%{kfname}
-Version: 5.89.0
+Version: 5.98.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 57111fa47703d8f9db485fb8bdf5fd49
+# Source0-md5: f2f48dc92a7d2ce155fc1a78ea0e0f92
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5DBus-devel >= %{qtver}
install -d build
cd build
%cmake -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
../
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/kconf_update
%{_includedir}/KF5/KConfigCore
%{_includedir}/KF5/KConfigGui
%{_includedir}/KF5/KConfigQml
-%{_includedir}/KF5/kconfig_version.h
+%{_includedir}/KF5/KConfig
%{_libdir}/cmake/KF5Config
%{qt5dir}/mkspecs/modules/qt_KConfigCore.pri
%{qt5dir}/mkspecs/modules/qt_KConfigGui.pri