Use macro for directory with systemd user environment generators

Thanks to ldv@ for poiting to existance of this macro
p11
Mikhail Novosyolov 3 years ago
parent feaf5d27b4
commit 5a6fff541e
  1. 6
      kometa-xdg.spec

@ -8,6 +8,7 @@ Release: alt1
Source0: kometa-xdg-%version.tar Source0: kometa-xdg-%version.tar
Source1: COPYING Source1: COPYING
BuildArch: noarch BuildArch: noarch
BuildRequires: rpm-macros-systemd
%description %description
XDG desktop settings for Kometa distros XDG desktop settings for Kometa distros
@ -31,8 +32,7 @@ DE-независимые настройки рабочих окружений
%doc COPYING %doc COPYING
%dir /etc/xdg/kometa %dir /etc/xdg/kometa
%_bindir/kometa-xdg-env %_bindir/kometa-xdg-env
# XXX ALT has no macro for /usr/lib/systemd/... %_user_env_gen_dir/10-kometa-xdg.sh
/usr/lib/systemd/user-environment-generators/10-kometa-xdg.sh
/etc/profile.d/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 # for console
install -m0755 scripts/profile.sh %buildroot/etc/profile.d/10-kometa-xdg.sh install -m0755 scripts/profile.sh %buildroot/etc/profile.d/10-kometa-xdg.sh
# for dbus services # 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 mkdir -p %buildroot/etc/xdg/kometa
install -m0644 plasma5/* %buildroot/etc/xdg/kometa install -m0644 plasma5/* %buildroot/etc/xdg/kometa

Loading…
Cancel
Save