#
# Conditional build:
%bcond_with tests # build with tests
-%define kdeappsver 23.04.3
+%define kdeappsver 23.08.0
%define kframever 5.94.0
%define qtver 5.15.2
%define kaname eventviews
Summary: Library for creating events
Name: ka5-%{kaname}
-Version: 23.04.3
+Version: 23.08.0
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: 24e660e6166146087f21d8de8bc48f69
+# Source0-md5: 6a6bc63b518e7932fb2b5f37420e7f8e
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-devel >= 5.11.1
BuildRequires: Qt5Test-devel
BuildRequires: Qt5UiTools-devel
BuildRequires: Qt5Widgets-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.20
BuildRequires: gettext-devel
BuildRequires: ka5-akonadi-calendar-devel >= %{kdeappsver}
BuildRequires: ka5-akonadi-devel >= %{kdeappsver}
%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
%defattr(644,root,root,755)
%{_libdir}/qt5/mkspecs/modules/qt_EventViews.pri
%{_includedir}/KPim5/EventViews
-%{_libdir}/cmake/KF5EventViews
%{_libdir}/cmake/KPim5EventViews
%{_libdir}/libKPim5EventViews.so