-%define kdeframever 5.86
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeframever 5.97
+%define qtver 5.15.2
%define kfname kross
#
Summary: Embedding of scripting into applications
Name: kf5-%{kfname}
-Version: 5.86.0
-Release: 1
+Version: 5.97.0
+Release: 2
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz
-# Source0-md5: 004a639e055fc1d166e461526f7eddfe
+# Source0-md5: 85e084c6a4840153a9fccb581e60dad6
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel
BuildRequires: Qt5DBus-devel >= 5.2.0
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
%ninja_install -C build