-%define kdeappsver 21.04.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 22.04.0
%define qtver 5.9.0
%define kaname spectacle
Summary: Spectacle
Summary(pl.UTF-8): Spectacle
Name: ka5-%{kaname}
-Version: 21.04.0
+Version: 22.04.0
Release: 1
License: GPL
Group: X11/Applications/Editors
Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: d5895f4a2def9205b6a1602b686763f3
+# Source0-md5: 2689bf5dde461d5aec76eff63a780072
URL: http://www.kde.org/
BuildRequires: Qt5Concurrent-devel
BuildRequires: Qt5Core-devel
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
%dir %{_datadir}/kglobalaccel
%{_datadir}/kglobalaccel/org.kde.spectacle.desktop