-%define kdeappsver 21.04.2
-%define kframever 5.56.0
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 23.04.0
+%define kframever 5.94.0
+%define qtver 5.15.2
%define kaname kolf
Summary: kolf
Name: ka5-%{kaname}
-Version: 21.04.2
+Version: 23.04.0
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Applications/Games
-Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: bd070a70c6233ec2c7bb8eba85a96cbf
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: b64b6ac40fe136d45775f332cb46e74b
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Qml-devel >= 5.11.1
different types of objects, such water hazards, slopes, sand traps,
and black holes (warps), among others.
+%description -l pl.UTF-8
+Kolf jest miniaturową grą w golfa. Gra jest pokazywana z z góry,
+z małą poprzeczką reprezentującą klub golfowy. Kolf zawiera
+wiele różnych typów obiektów, takich jak pułapki wodne, zbocza,
+pułapki piaskowe i czarne dziury.
+
%prep
%setup -q -n %{kaname}-%{version}
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