mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user