From b67cee9870188660373a98b04ebcce650bdfa6b0 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Mon, 25 Dec 2023 23:30:51 -0800 Subject: [PATCH] chore: Move vpower to libexec --- ...nu.spec => gnome-shell-extension-compiz-windows-effect.spec} | 0 spec_files/vpower/fedora.patch | 2 +- spec_files/vpower/vpower.spec | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) rename spec_files/gnome-shell-extension-compiz-windows-effect/{gnome-shell-extension-bazzite-menu.spec => gnome-shell-extension-compiz-windows-effect.spec} (100%) diff --git a/spec_files/gnome-shell-extension-compiz-windows-effect/gnome-shell-extension-bazzite-menu.spec b/spec_files/gnome-shell-extension-compiz-windows-effect/gnome-shell-extension-compiz-windows-effect.spec similarity index 100% rename from spec_files/gnome-shell-extension-compiz-windows-effect/gnome-shell-extension-bazzite-menu.spec rename to spec_files/gnome-shell-extension-compiz-windows-effect/gnome-shell-extension-compiz-windows-effect.spec diff --git a/spec_files/vpower/fedora.patch b/spec_files/vpower/fedora.patch index 61a61604..6a1b4650 100644 --- a/spec_files/vpower/fedora.patch +++ b/spec_files/vpower/fedora.patch @@ -5,7 +5,7 @@ [Service] -ExecStart=/usr/lib/vpower -+ExecStart=/usr/bin/vpower ++ExecStart=/usr/libexec/vpower Restart=on-failure RestartSec=1 diff --git a/spec_files/vpower/vpower.spec b/spec_files/vpower/vpower.spec index e0604020..6adb966d 100644 --- a/spec_files/vpower/vpower.spec +++ b/spec_files/vpower/vpower.spec @@ -30,6 +30,8 @@ Service that calculates battery metrics and handles critical battery scenarios %install %cargo_install +mkdir -p %{buildroot}%{_libexecdir} +mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_libexecdir}/%{name} mkdir -p %{buildroot}%{_unitdir}/ cp -v vpower.service %{buildroot}%{_unitdir}/%{name}.service mkdir -p %{buildroot}%{_sysconfdir}/