From f2089ed603bef42c788fe80c3fbdbfc38475df73 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 13 Sep 2022 12:33:57 +0100 Subject: [PATCH] Use requires for GPU firmware on < Fedora 37 --- linux-firmware.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/linux-firmware.spec b/linux-firmware.spec index 0616217..0affe1b 100644 --- a/linux-firmware.spec +++ b/linux-firmware.spec @@ -1,5 +1,5 @@ %global debug_package %{nil} -%global firmware_release 138 +%global firmware_release 139 %global _firmwarepath /usr/lib/firmware %define _binaries_in_noarch_packages_terminate_build 0 @@ -20,9 +20,15 @@ Requires: linux-firmware-whence Provides: kernel-firmware = %{version} Obsoletes: kernel-firmware < %{version} Conflicts: microcode_ctl < 2.1-0 +%if 0%{?fedora} > 36 Recommends: amd-gpu-firmware Recommends: intel-gpu-firmware Recommends: nvidia-gpu-firmware +%else +Requires: amd-gpu-firmware +Requires: intel-gpu-firmware +Requires: nvidia-gpu-firmware +%endif %description This package includes firmware files required for some devices to @@ -522,6 +528,9 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files %{_firmwarepath}/netronome/* %changelog +* Tue Sep 13 2022 Peter Robinson - 20220815-139 +- Use requires for GPU firmware on < Fedora 37 + * Tue Aug 16 2022 Peter Robinson - 20220815-138 - Update to upstream 20220815 release - mediatek: Update mt8183/mt8192/mt8195 SCP firmware