58 lines
2.2 KiB
RPMSpec
58 lines
2.2 KiB
RPMSpec
%global gh_tag v%{version}-2712
|
|
%global srcdir %{name}-%{version}-2712
|
|
|
|
Name: rpi-eeprom
|
|
Version: 2025.01.22
|
|
Release: 1%{?dist}
|
|
Summary: Raspberry Pi 4/5 boot EEPROM updater (experimental)
|
|
BuildArch: noarch
|
|
ExclusiveArch: aarch64
|
|
|
|
License: BSD-3-Clause AND MIT AND Custom
|
|
URL: https://github.com/raspberrypi/rpi-eeprom
|
|
Source0: https://github.com/raspberrypi/rpi-eeprom/archive/refs/tags/%{gh_tag}.tar.gz
|
|
|
|
#Requires:
|
|
|
|
%description
|
|
Raspberry Pi 4/5 boot EEPROM updater and configuration tool to edit the
|
|
bootloader configuration such as boot order and more.
|
|
|
|
%prep
|
|
%setup -n %{srcdir}
|
|
|
|
%build
|
|
# nothing to build
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
%{__install} -d %{buildroot}%{_bindir}
|
|
%{__install} -m 555 rpi-eeprom-config %{buildroot}%{_bindir}
|
|
%{__install} -m 555 rpi-eeprom-digest %{buildroot}%{_bindir}
|
|
%{__install} -m 555 rpi-eeprom-update %{buildroot}%{_bindir}
|
|
# These tools are not installed due to lack of pycryptdome
|
|
#%{__install} -m 555 tools/rpi-bootloader-key-convert %{buildroot}%{_bindir}
|
|
#%{__install} -m 555 tools/rpi-otp-private-key %{buildroot}%{_bindir}
|
|
#%{__install} -m 555 tools/rpi-sign-bootcode %{buildroot}%{_bindir}
|
|
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711
|
|
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711
|
|
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711
|
|
%{__install} -d %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2712
|
|
%{__cp} -r firmware-2711/default %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711/
|
|
%{__cp} -r firmware-2711/latest %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2711/
|
|
%{__cp} -r firmware-2712/default %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2712/
|
|
%{__cp} -r firmware-2712/latest %{buildroot}%{_prefix}/lib/firmware/raspberrypi/bootloader-2712/
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md releases.md
|
|
%dir %{_prefix}/lib/firmware/raspberrypi
|
|
%{_bindir}/rpi-eeprom-config
|
|
%{_bindir}/rpi-eeprom-digest
|
|
%{_bindir}/rpi-eeprom-update
|
|
%{_prefix}/lib/firmware/raspberrypi/*
|
|
|
|
%changelog
|
|
* Thu Feb 13 2025 Koichiro Iwao <meta@almalinux.org> - 2025.01.22-1
|
|
- Initial creation
|