From 4abf74d32722ac93d152aeb87b2424f8431f111a Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 4 May 2021 10:32:22 -0500 Subject: [PATCH] new systemd user kde-baloo.service --- kf5-baloo.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kf5-baloo.spec b/kf5-baloo.spec index d9d6938..0c677cd 100644 --- a/kf5-baloo.spec +++ b/kf5-baloo.spec @@ -29,6 +29,7 @@ Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framewo Source1: 97-kde-baloo-filewatch-inotify.conf # shutdown script to explictly stop baloo_file on logout +# Now that baloo supports systemd user unit, this can probably be dropped -- rex Source2: baloo_file_shutdown.sh ## upstreamable patches @@ -53,6 +54,9 @@ BuildRequires: lmdb-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel +# for systemd-related macros +BuildRequires: systemd + %if 0%{?tests} BuildRequires: dbus-x11 BuildRequires: time @@ -123,6 +127,10 @@ License: LGPLv2 or LGPLv3 %install %cmake_install +%if 0%{?flatpak:1} +rm -fv %{buildroot}%{_userunitdir}/kde-baloo.service +%endif + # baloodb not installed unless BUILD_EXPERIMENTAL is enabled, so omit translations rm -fv %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/baloodb5.* @@ -172,6 +180,11 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: %{_kf5_bindir}/baloo_file %{_kf5_bindir}/baloo_file_extractor %config(noreplace) %{_kf5_sysconfdir}/xdg/autostart/baloo_file.desktop +%if ! 0%{?flatpak:1} +%{_userunitdir}/kde-baloo.service +%endif +%{_libexecdir}/baloo_file +%{_libexecdir}/baloo_file_extractor %ldconfig_scriptlets libs @@ -203,6 +216,7 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: %changelog * Mon May 03 2021 Rex Dieter - 5.82.0-1 - 5.82.0 +- new systemd user kde-baloo.service * Tue Apr 06 2021 Rex Dieter - 5.81.0-1 - 5.81.0