fix (lact): use VERGEN_GIT_SHA=454a6e2 (#12162)

* fix (lact): use VERGEN_GIT_SHA=454a6e2

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* define commit and shortcommit

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* this

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* add commit and version bumper update.rhai

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

---------

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Owen Zimmerman
2026-05-10 12:56:09 -05:00
committed by GitHub
parent f24a5644f2
commit f24e0ce22a
2 changed files with 12 additions and 3 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
%global commit 454a6e24af830a1f434385fc3faebec19c0cbefa
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%define appid io.github.ilya_zlobintsev.LACT
Name: lact
Version: 0.9.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Linux GPU Configuration And Monitoring Tool
URL: https://github.com/ilya-zlobintsev/LACT
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
@@ -40,7 +43,7 @@ Packager: Owen Zimmerman <owen@fyralabs.com>
%cargo_prep_online
%build
%cargo_build
VERGEN_GIT_SHA=%{shortcommit} %cargo_build
%install
install -Dm755 target/rpm/lact %{buildroot}%{_bindir}/lact
+7 -1
View File
@@ -1 +1,7 @@
rpm.version(gh("ilya-zlobintsev/LACT"));
let r = get("https://api.github.com/repos/ilya-zlobintsev/LACT/tags").json_arr();
rpm.version(r[0].name);
if rpm.changed() {
rpm.global("commit", r[0].commit.sha);
}