fix(ivsc-firmware): Macro and date (#4212)

* fix(spec): Macro and date

Signed-off-by: Gilver <rockgrub@disroot.org>

* fix(anda.hcl): Needs to be nightly for an accurate date

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Gilver
2025-04-01 11:46:13 -05:00
committed by GitHub
parent 99fbe850c2
commit 208dfcb2b9
3 changed files with 6 additions and 10 deletions
-3
View File
@@ -3,7 +3,4 @@ project pkg {
rpm {
spec = "ivsc-firmware.spec"
}
labels {
weekly = 1
}
}
+6 -2
View File
@@ -1,16 +1,20 @@
%global debug_package %{nil}
%global commit 3377801f46b86e03c464bfb03ca3c486e9b0db00
%global commitdate 20230811
%global commit_date 20250326
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: ivsc-firmware
Summary: Intel iVSC firmware
URL: https://github.com/intel/ivsc-firmware
Version: %{commitdate}.%{shortcommit}
Version: 0^%{commit_date}git.%{shortcommit}
Release: 1%?dist
License: Proprietary
Source0: https://github.com/intel/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
Requires: ipu6-camera-bins
# Fix the stupid issue when changing versioning schemes
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
Provides: %{name} = %{commit_date}.%{shortcommit}
%endif
ExclusiveArch: x86_64
%description
-5
View File
@@ -1,5 +0,0 @@
rpm.global("commit", gh_commit("intel/ivsc-firmware"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}