mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-04 19:02:19 +00:00
* 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>
(cherry picked from commit 208dfcb2b9)
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
@@ -3,7 +3,4 @@ project pkg {
|
||||
rpm {
|
||||
spec = "ivsc-firmware.spec"
|
||||
}
|
||||
labels {
|
||||
weekly = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
rpm.global("commit", gh_commit("intel/ivsc-firmware"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
Reference in New Issue
Block a user