# # spec file for package raspberrypi-eeprom # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: raspberrypi-eeprom Version: 2021.01.21 Release: 0 Summary: Raspberry Pi 4 EEPROM firmware License: SUSE-Firmware Group: System/Boot URL: https://github.com/raspberrypi/rpi-eeprom Source0: raspberrypi-eeprom-%{version}.tar.bz2 Source1: get-from-git.sh Patch0: add-suse-config.patch Patch1: dont-use-env.patch Provides: rpi-eeprom Supplements: modalias(of:N*T*Cbrcm,bcm2711*C*) Requires: raspberrypi-eeprom-tools Requires: raspberrypi-firmware >= 2021.01.21 Requires: raspberrypi-firmware-dt >= 2020.12.07 BuildArch: noarch %description First stage bootloader packages for Raspberry Pi 4 %package tools Summary: Raspberry Pi 4 EEPROM firmware update and configuration tools License: BSD-3-Clause Group: System/Boot Provides: rpi-eeprom-config = %{version} Obsoletes: rpi-eeprom-config < %{version} Requires: raspberrypi-eeprom Requires: raspberrypi-eeprom-firmware %description tools First stage bootloader fimware upgrade and configuration for Raspberry Pi 4 %package firmware Summary: Raspberry Pi 4 EEPROM firmware blobs License: SUSE-Firmware Group: System/Boot Provides: raspberrypi-firmware-eeprom = %{version} Obsoletes: raspberrypi-firmware-eeprom < %{version} Requires: raspberrypi-eeprom Requires: raspberrypi-eeprom-tools BuildRequires: fdupes %description firmware First stage bootloader fimware blobs for Raspberry Pi 4 %prep %setup -q %patch0 -p1 %patch1 -p1 %build %install mkdir -p %{buildroot}%{_bindir} install -m 0755 rpi-eeprom-config %{buildroot}%{_bindir} install -m 0755 rpi-eeprom-update %{buildroot}%{_bindir} mkdir -p %{buildroot}/etc/default install -m 644 rpi-eeprom-update-default %{buildroot}/etc/default/rpi-eeprom-update mkdir -p %{buildroot}/lib/firmware/raspberrypi/bootloader mv firmware/beta %{buildroot}/lib/firmware/raspberrypi/bootloader mv firmware/critical %{buildroot}/lib/firmware/raspberrypi/bootloader mv firmware/stable %{buildroot}/lib/firmware/raspberrypi/bootloader cp -a firmware/latest %{buildroot}/lib/firmware/raspberrypi/bootloader cp -a firmware/default %{buildroot}/lib/firmware/raspberrypi/bootloader %fdupes -s %{buildroot}/lib/firmware/raspberrypi/bootloader %files %license LICENSE %files tools %{_bindir}/rpi-eeprom-config %{_bindir}/rpi-eeprom-update %config /etc/default/rpi-eeprom-update %files firmware /lib/firmware/ /lib/firmware/raspberrypi /lib/firmware/raspberrypi/bootloader/beta /lib/firmware/raspberrypi/bootloader/critical /lib/firmware/raspberrypi/bootloader/stable /lib/firmware/raspberrypi/bootloader/latest /lib/firmware/raspberrypi/bootloader/default %changelog