-%define kdeappsver 21.12.3
-%define kframever 5.56.0
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 22.08.1
+%define kframever 5.94.0
+%define qtver 5.15.2
%define kaname akonadi-calendar
Summary: Akonadi Calendar
Name: ka5-%{kaname}
-Version: 21.12.3
-Release: 1
+Version: 22.08.1
+Release: 2
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: b67c74f378f5c9e63ece42a11cd38cfb
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 8b49f93ac59f97463660b8db90a250fc
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-devel >= 5.11.1
BuildRequires: kf5-kdbusaddons-devel >= %{kframever}
BuildRequires: kf5-kiconthemes-devel >= %{kframever}
BuildRequires: kf5-kio-devel >= %{kframever}
+BuildRequires: kf5-knotifications-devel >= %{kframever}
BuildRequires: kf5-kwallet-devel >= %{kframever}
BuildRequires: ninja
BuildRequires: qt5-build >= %{qtver}
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
%{_datadir}/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop
%{_datadir}/qlogging-categories5/akonadi-calendar.categories
%{_datadir}/qlogging-categories5/akonadi-calendar.renamecategories
+/etc/xdg/autostart/org.kde.kalendarac.desktop
+%attr(755,root,root) %{_bindir}/kalendarac
+%{_datadir}/dbus-1/services/org.kde.kalendarac.service
+%{_datadir}/knotifications5/kalendarac.notifyrc
+%{_datadir}/qlogging-categories5/org_kde_kalendarac.categories
+%dir %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars
+%{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so
%files devel
%defattr(644,root,root,755)
-%{_includedir}/KF5/Akonadi/Calendar
-%{_includedir}/KF5/akonadi-calendar_version.h
-%{_includedir}/KF5/akonadi/calendar
%{_libdir}/cmake/KF5AkonadiCalendar
%{_libdir}/libKF5AkonadiCalendar.so
%{_libdir}/qt5/mkspecs/modules/qt_AkonadiCalendar.pri
+%{_includedir}/KF5/AkonadiCalendar