-%define kdeplasmaver 5.23.2
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeplasmaver 5.25.0
%define qtver 5.9.0
%define kpname kmenuedit
Summary: KDE menu editor
Name: kp5-%{kpname}
-Version: 5.23.2
+Version: 5.25.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
-Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
-# Source0-md5: 6173fbecb2f58e2a5c865613f360f842
+Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
+# Source0-md5: 2e185d9e8e1af8cd5f89e2f130cfc4ad
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: cmake >= 2.8.12
install -d build
cd build
%cmake -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DHTML_INSTALL_DIR=%{_kdedocdir} \
../
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%{_datadir}/kxmlgui5/kmenuedit
%{_datadir}/qlogging-categories5/kmenuedit.categories
%attr(755,root,root) %{_libdir}/kconf_update_bin/kmenuedit_globalaccel
+%{_datadir}/metainfo/org.kde.kmenuedit.appdata.xml