-%define kdeappsver 21.04.3
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 21.12.3
%define kframever 5.56.0
%define qtver 5.9.0
%define kaname kalarm
Summary: kalarm
Name: ka5-%{kaname}
-Version: 21.04.3
+Version: 21.12.3
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Applications
Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: dc95b4830989c0d6661f20bf679cc24a
+# Source0-md5: 95085825d08d76e2bf8cfbd15bfa6c83
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: cmake >= 2.8.12
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
%{_iconsdir}/hicolor/48x48/apps/kalarm.png
%{_iconsdir}/hicolor/64x64/apps/kalarm.png
%{_datadir}/kalarm
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-1.2.1-general.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-1.9.5-defaults.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-15.08-kickoff.sh
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-2.0.2-general.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-2.1.5-general.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-version.pl
-%{_datadir}/kconf_update/kalarm.upd
%dir %{_datadir}/kxmlgui5/kalarm
%{_datadir}/kxmlgui5/kalarm/kalarmui.rc
%{_datadir}/metainfo/org.kde.kalarm.appdata.xml