From 5a6fff541e605befffbc357ab499fa5ad4bf70a9 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Thu, 16 Dec 2021 17:47:25 +0300 Subject: [PATCH] Use macro for directory with systemd user environment generators Thanks to ldv@ for poiting to existance of this macro --- kometa-xdg.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kometa-xdg.spec b/kometa-xdg.spec index deb0b75..50fe242 100644 --- a/kometa-xdg.spec +++ b/kometa-xdg.spec @@ -8,6 +8,7 @@ Release: alt1 Source0: kometa-xdg-%version.tar Source1: COPYING BuildArch: noarch +BuildRequires: rpm-macros-systemd %description XDG desktop settings for Kometa distros @@ -31,8 +32,7 @@ DE-независимые настройки рабочих окружений %doc COPYING %dir /etc/xdg/kometa %_bindir/kometa-xdg-env -# XXX ALT has no macro for /usr/lib/systemd/... -/usr/lib/systemd/user-environment-generators/10-kometa-xdg.sh +%_user_env_gen_dir/10-kometa-xdg.sh /etc/profile.d/10-kometa-xdg.sh #-------------------------------------------------------------- @@ -76,7 +76,7 @@ install -m0755 scripts/kometa-xdg-env %buildroot%_bindir/kometa-xdg-env # for console install -m0755 scripts/profile.sh %buildroot/etc/profile.d/10-kometa-xdg.sh # for dbus services -install -m0755 scripts/systemd.sh %buildroot/usr/lib/systemd/user-environment-generators/10-kometa-xdg.sh +install -m0755 scripts/systemd.sh %buildroot%_user_env_gen_dir/10-kometa-xdg.sh mkdir -p %buildroot/etc/xdg/kometa install -m0644 plasma5/* %buildroot/etc/xdg/kometa