From 53e25ab336295151961e5a96a182e1bc527abc8c Mon Sep 17 00:00:00 2001
From: Koichiro Iwao
Date: Mon, 19 May 2025 16:52:48 +0300
Subject: [PATCH] Enable vc4 and v3d for Raspberry Pi graphics in AlmaLinux
(Resolves: https://github.com/AlmaLinux/raspberry-pi/issues/32)
---
mesa.spec | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/mesa.spec b/mesa.spec
index a83827b..99048aa 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -5,7 +5,7 @@
release_number = 2;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
-}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
+}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}.alma.1
## END: Set by rpmautospec
%ifnarch s390x
@@ -46,6 +46,14 @@
%endif
%endif
+%ifarch aarch64
+# RHEL doesn't ship vc4 and v3d but we do for RPi
+%if 0%{?almalinux}
+%global with_vc4 1
+%global with_v3d 1
+%endif
+%endif
+
%ifarch aarch64 x86_64 %{ix86}
%if !0%{?rhel}
%global with_etnaviv 1
@@ -810,6 +818,10 @@ popd
%endif
%changelog
+* Mon May 19 2025 Koichiro Iwao - 24.2.8-2.alma.1
+- Enable vc4 and v3d for Raspberry Pi graphics in AlmaLinux (Resolves:
+ https://github.com/AlmaLinux/raspberry-pi/issues/32)
+
## START: Generated by rpmautospec
* Wed Feb 26 2025 José Expósito - 24.2.8-2
- AMD Navi4x support