-%define kdeframever 5.91
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeframever 5.95
%define qtver 5.15.2
%define kfname kwidgetsaddons
Summary: Large set of desktop widgets
Name: kf5-%{kfname}
-Version: 5.91.0
+Version: 5.95.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 53ef80abdb614eb4b3db80299a648303
+# Source0-md5: c3c2f6bb36e2b447dbb738579f08cd20
Patch0: failed-tests.patch
URL: http://www.kde.org/
BuildRequires: Qt5Core-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