diff --git a/anda/stardust/server/stardust-server.spec b/anda/stardust/server/stardust-server.spec index 3b27481f0b..d0f3820540 100644 --- a/anda/stardust/server/stardust-server.spec +++ b/anda/stardust/server/stardust-server.spec @@ -1,3 +1,7 @@ +%global commit 9546a362000bf4afa80591ea6099bcd326464f89 +%global commit_date 20240916 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +# Exclude input files from mangling %global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$ Name: stardust-server diff --git a/anda/stardust/server/update.rhai b/anda/stardust/server/update.rhai index 89a05318d8..16db710969 100644 --- a/anda/stardust/server/update.rhai +++ b/anda/stardust/server/update.rhai @@ -1 +1,5 @@ -rpm.version(gh("StardustXR/server")); +rpm.global("commit", gh_commit("StardustXR/server")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}