+#
+# Conditional build:
+%bcond_with tests # build with tests
# TODO:
# Conflict /usr/bin/kactivitymanagerd
-%define kdeframever 5.81
-%define qtver 5.9.0
+%define kdeframever 5.108
+%define qtver 5.15.2
%define kfname kactivities-stats
Summary: Core components for the KDE's Activities Activity Manager
Name: kf5-%{kfname}
-Version: 5.81.0
+Version: 5.108.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: a2c64962f39627d544eac7698aa19fc6
+Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: d851dce91b8110aa6823a7ea947e9a57
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5DBus-devel >= %{qtver}
install -d build
cd build
%cmake -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
../
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%files devel
%defattr(644,root,root,755)
%{_includedir}/KF5/KActivitiesStats
-%{_includedir}/KF5/kactivitiesstats_version.h
%{_libdir}/cmake/KF5ActivitiesStats
%{_libdir}/libKF5ActivitiesStats.so
%{_pkgconfigdir}/libKActivitiesStats.pc