#
# Conditional build:
%bcond_with tests # build with tests
-%define kdeappsver 23.04.1
+%define kdeappsver 23.08.4
%define kframever 5.94.0
%define qtver 5.15.2
%define kaname itinerary
Summary: Itinerary and boarding pass management application
Name: ka5-%{kaname}
-Version: 23.04.1
+Version: 23.08.4
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: 630dd13c767255a0ad1c5c2e9de6cfca
+# Source0-md5: 09e6129c6410807e0a0f1166119df80b
URL: https://community.kde.org/
BuildRequires: Qt5DBus-devel >= 5.15.2
BuildRequires: Qt5Gui-devel >= 5.15.2
BuildRequires: Qt5Quick-devel
BuildRequires: Qt5Test-devel
BuildRequires: Qt5Widgets-devel >= 5.15.2
-BuildRequires: cmake >= 3.5
+BuildRequires: cmake >= 3.20
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
BuildRequires: gettext-devel
BuildRequires: kf5-kxmlgui-devel >= 5.93.0
BuildRequires: kf5-networkmanager-qt-devel >= 5.88
BuildRequires: kf5-qqc2-desktop-style-devel >= 5.88
-BuildRequires: kirigami-addons-devel
+BuildRequires: kirigami-addons-devel >= 0.9
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: qt5-build >= %{qtver}
%setup -q -n %{kaname}-%{version}
%build
-install -d build
-cd build
%cmake \
+ -B build \
-G Ninja \
%{!?with_tests:-DBUILD_TESTING=OFF} \
-DHTML_INSTALL_DIR=%{_kdedocdir} \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- ..
-%ninja_build
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+%ninja_build -C build
%if %{with tests}
-ctest
+ctest --test-dir build
%endif