]> git.pld-linux.org Git - packages/ka5-kolf.git/blobdiff - ka5-kolf.spec
- updated to 23.04.0
[packages/ka5-kolf.git] / ka5-kolf.spec
index 5079c64e48a5011c6057e5fd34390af9c028e7e8..ce5e4d3a866bd30c2d451991611988a283f31a05 100644 (file)
@@ -1,15 +1,18 @@
-%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
@@ -44,6 +47,12 @@ view, with a short bar representing the golf club. Kolf features many
 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}
 
@@ -52,11 +61,17 @@ install -d build
 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
This page took 0.108384 seconds and 4 git commands to generate.