-%define kdeappsver 21.08.0
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 22.04.3
+%define qtver 5.15.2
%define kaname spectacle
Summary: Spectacle
Summary(pl.UTF-8): Spectacle
Name: ka5-%{kaname}
-Version: 21.08.0
+Version: 22.04.3
Release: 1
License: GPL
Group: X11/Applications/Editors
-Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: fcabb598567c1bc2ac20b826496c851f
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 08cbda71de0b978d75322325c76c8e46
URL: http://www.kde.org/
BuildRequires: Qt5Concurrent-devel
BuildRequires: Qt5Core-devel
BuildRequires: ninja
BuildRequires: qt5-build >= 5.6.0
BuildRequires: shared-mime-info
+BuildRequires: xcb-util-cursor-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
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}/knotifications5/spectacle.notifyrc
%{_datadir}/metainfo/org.kde.spectacle.appdata.xml
%attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts
+%attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion
+%{_datadir}/kconf_update/spectacle_rememberregion.upd
%attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py
%{_datadir}/kconf_update/spectacle_clipboard.upd
%{_datadir}/kconf_update/spectacle_shortcuts.upd