#
# Conditional build:
%bcond_without luajit # build without luajit
+%bcond_with tests # build with tests
#
%ifarch x32
%undefine with_luajit
%endif
-%define kdeappsver 21.12.3
+%define kdeappsver 22.04.1
%define kframever 5.56.0
%define qtver 5.9.0
%define kaname cantor
Summary: Cantor
Name: ka5-%{kaname}
-Version: 21.12.3
-Release: 2
+Version: 22.04.1
+Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 3e267f8ce771c97325cad2f6bd56e697
+# Source0-md5: 21bd2b2d7a2f6625295fa031e7626669
URL: https://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-devel
cd build
%cmake \
-G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DHTML_INSTALL_DIR=%{_kdedocdir} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
..
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build