fix?(ipu6*, ivsc*): Add an epoch (#4264) (#4267)

* Update ipu6-camera-bins.spec

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

* Update ivsc-firmware.spec

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

* Update ivsc-firmware.spec

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

* Bump the date WTF??

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

* I would like one upgrade path please

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

* Update ipu6-camera-bins.spec

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

* Drop release since the date bump technically bumped this?

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

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit 08cc1b2347)

Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-04-05 07:47:55 -07:00
committed by GitHub
parent d6873e61f9
commit 93b9b4d9fb
2 changed files with 15 additions and 6 deletions
@@ -1,13 +1,16 @@
%global debug_package %{nil}
%global commit 3c1cdd3e634bb4668a900d75efd4d6292b8c7d1d
%global commit_date 20240507
%global commit_date 20241127
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global ver 1.0.1
Name: ipu6-camera-bins
Summary: Libraries for Intel IPU6
Version: %{ver}^%{commit_date}git.%{shortcommit}
Release: 3%?dist
Release: 1%?dist
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
Epoch: 1
%endif
License: Proprietary
URL: https://github.com/intel/ipu6-camera-bins
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
@@ -31,7 +34,8 @@ Obsoletes: ivsc-firmware < 0^20250326git.3377801-3
Provides: intel-ipu6-kmod-common = %{version}
# Fix the stupid issue when changing versioning schemes
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
Provides: %{name} = %{commit_date}.%{shortcommit}
Provides: %{name} = %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-%{release}
Obsoletes: %{name} < %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-2
%endif
ExclusiveArch: x86_64
Packager: Gilver E. <rockgrub@disroot.org>
@@ -43,7 +47,8 @@ Provides binary libraries for Intel IPU6.
Summary: IPU6 development files
Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
Provides: %{name}-devel = %{commit_date}.%{shortcommit}
Provides: %{name}-devel = %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-%{release}
Obsoletes: %{name}-devel < %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-2
%endif
%description devel
+6 -2
View File
@@ -7,13 +7,17 @@ Name: ivsc-firmware
Summary: Intel iVSC firmware
URL: https://github.com/intel/ivsc-firmware
Version: 0^%{commit_date}git.%{shortcommit}
Release: 2%?dist
Release: 3%?dist
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
Epoch: 1
%endif
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}
Provides: %{name} = %{?epoch:%{epoch}:}%{commit_date}.%{shortcommit}-%{release}
Obsoletes: %{name} < %{?epoch:%{epoch}:}20230811.74a01d1-2
%endif
ExclusiveArch: x86_64