Create amd-ucode-firmware subpackage

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
This commit is contained in:
Michel Lind 2023-10-17 15:27:18 -05:00
parent 50de9939e0
commit a5cdcc32ae
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

View File

@ -5,7 +5,7 @@
Name: linux-firmware Name: linux-firmware
Version: 20230919 Version: 20230919
Release: 3%{?dist} Release: 4%{?dist}
Summary: Firmware files used by the Linux kernel Summary: Firmware files used by the Linux kernel
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
URL: http://www.kernel.org/ URL: http://www.kernel.org/
@ -24,6 +24,11 @@ Conflicts: microcode_ctl < 2.1-0
Recommends: amd-gpu-firmware Recommends: amd-gpu-firmware
Recommends: intel-gpu-firmware Recommends: intel-gpu-firmware
Recommends: nvidia-gpu-firmware Recommends: nvidia-gpu-firmware
%if 0%{?fedora} && 0%{?fedora} < 40
Requires: amd-ucode-firmware
%else
Recommends: amd-ucode-firmware
%endif
%if 0%{?fedora} && 0%{?fedora} < 39 %if 0%{?fedora} && 0%{?fedora} < 39
Requires: atheros-firmware Requires: atheros-firmware
Requires: brcmfmac-firmware Requires: brcmfmac-firmware
@ -70,6 +75,14 @@ Requires: linux-firmware-whence
%description -n nvidia-gpu-firmware %description -n nvidia-gpu-firmware
Firmware for NVIDIA GPUs. Firmware for NVIDIA GPUs.
# Microcode updates
%package -n amd-ucode-firmware
Summary: Microcode updates for AMD CPUs
License: Redistributable, no modification permitted
Requires: linux-firmware-whence
%description -n amd-ucode-firmware
Microcode updates for AMD CPUs.
# WiFi/Bluetooth firmwares # WiFi/Bluetooth firmwares
%package -n atheros-firmware %package -n atheros-firmware
Summary: Firmware for Qualcomm Atheros WiFi/Bluetooth adapters Summary: Firmware for Qualcomm Atheros WiFi/Bluetooth adapters
@ -281,6 +294,7 @@ popd
sed -i -e 's:^./::' linux-firmware.{files,dirs} sed -i -e 's:^./::' linux-firmware.{files,dirs}
sed \ sed \
-i -e '/^amdgpu/d' \ -i -e '/^amdgpu/d' \
-i -e '/^amd-ucode/d' \
-i -e '/^ar3k/d' \ -i -e '/^ar3k/d' \
-i -e '/^ath6k/d' \ -i -e '/^ath6k/d' \
-i -e '/^ath9k_htc/d' \ -i -e '/^ath9k_htc/d' \
@ -347,6 +361,11 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%{_firmwarepath}/nvidia/g*/ %{_firmwarepath}/nvidia/g*/
%{_firmwarepath}/nvidia/tu*/ %{_firmwarepath}/nvidia/tu*/
# Microcode updates
%files -n amd-ucode-firmware
%license LICENSE.amd-ucode
%{_firmwarepath}/amd-ucode/
# WiFi/Bluetooth firmwares # WiFi/Bluetooth firmwares
%files -n atheros-firmware %files -n atheros-firmware
%license LICENCE.atheros_firmware %license LICENCE.atheros_firmware
@ -469,6 +488,9 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%{_firmwarepath}/v4l-cx2* %{_firmwarepath}/v4l-cx2*
%changelog %changelog
* Tue Oct 17 2023 Michel Lind <salimma@fedoraproject.org> - 20230919-4
- Create amd-ucode-firmware subpackage
* Mon Oct 16 2023 Michel Lind <salimma@fedoraproject.org> - 20230919-3 * Mon Oct 16 2023 Michel Lind <salimma@fedoraproject.org> - 20230919-3
- Re-add recommended firmware accidentally dropped in -2 - Re-add recommended firmware accidentally dropped in -2