-%define kdeframever 5.91
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeframever 5.98
%define qtver 5.15.2
%define kfname kded
Summary: Central daemon of KDE work spaces
+Summary(pl.UTF-8): Centralny demon przestrzeni roboczych KDE
Name: kf5-%{kfname}
-Version: 5.91.0
+Version: 5.98.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: a272d2e425e1bcda33151c89d68b806b
-URL: http://www.kde.org/
+# Source0-md5: 09bece0ab6d1f590932df778ac8b8642
+URL: https://kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5DBus-devel >= %{qtver}
BuildRequires: Qt5Widgets-devel >= %{qtver}
the background and performs a number of small tasks. Some of these
tasks are built in, others are started on demand.
+%description -l pl.UTF-8
+KDED to skrót od KDE Daemon, co nie mówi zbyt wiele. KDED działa w tle
+i wykonuje wiele małych zadań. Niektóre są wbudowane, inne uruchamiane
+w razie potrzeby.
+
%package devel
Summary: Header files for %{kfname} development
Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
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
%clean