From cfbbdc777017757d7d50dcddeca936bbe3e2c555 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Tue, 25 Jul 2023 14:21:20 -0700 Subject: [PATCH] fix(deck): Add patch for vpower service file to point to correct location. --- spec_files/vpower/fedora.patch | 11 +++++++++++ spec_files/vpower/vpower.spec | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 spec_files/vpower/fedora.patch diff --git a/spec_files/vpower/fedora.patch b/spec_files/vpower/fedora.patch new file mode 100644 index 00000000..6c836931 --- /dev/null +++ b/spec_files/vpower/fedora.patch @@ -0,0 +1,11 @@ +--- vpower.service ++++ vpower.service +@@ -2,7 +2,7 @@ + Description=vpower daemon + + [Service] +-ExecStart=/usr/lib/vpower ++ExecStart=/usr/bin/vpower + Restart=on-failure + RestartSec=1 + diff --git a/spec_files/vpower/vpower.spec b/spec_files/vpower/vpower.spec index 93bb4890..66ccc997 100644 --- a/spec_files/vpower/vpower.spec +++ b/spec_files/vpower/vpower.spec @@ -1,11 +1,12 @@ Name: vpower -Version: 1.4.0 -Release: %autorelease +Version: {{{ git_dir_version }}} +Release: 1%{?dist} Summary: Service that calculates battery metrics and handles critical battery scenarios License: MIT URL: https://gitlab.com/evlaV/vpower/ Source: %{url}-/archive/main/vpower-main.tar.gz +Patch0: fedora.patch BuildRequires: rust-packaging >= 21 BuildRequires: lm_sensors-devel