#
+# Conditional build:
+%bcond_with tests # build with tests
+#
# TODO:
# - runtime Requires if any
-%define kdeframever 5.84
+%define kdeframever 5.92
%define qtver 5.9.0
%define kfname kirigami2
Summary: Kirigami2 library
Name: kf5-%{kfname}
-Version: 5.84.0
+Version: 5.92.0
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 727e43621d82997628bac527cf2888ae
+Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 6bfe820fada95b801035afd9aa62bf5c
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-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