rpi-eeprom/rpi-eeprom.spec

82 lines
2.9 KiB
RPMSpec

%define pkgver %(echo %version | tr _ -)
Name: rpi-eeprom
Version: 2021.03.18_138a1
Release: 1mamba
Summary: Raspberry Pi4 boot EEPROM updater
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://rpf.io/eeprom
Source: https://github.com/raspberrypi/rpi-eeprom.git/v%{pkgver}/rpi-eeprom-%{version}.tar.bz2
Patch0: rpi-eeprom-0.20200209git-rpi-eprom-update.patch
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: nano
Requires: util-linux
ExclusiveArch: arm aarch64
%description
Raspberry Pi4 boot EEPROM updater.
%prep
%setup -q
## Patch /opt/vc/bin into PATH in script due to install location of raspberrypi-firmware
%patch0 -p0
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
#install -D -m 755 firmware/vl805 %{buildroot}%{_bindir}/vl805
install -D -m 755 rpi-eeprom-config %{buildroot}%{_bindir}/rpi-eeprom-config
install -D -m 755 rpi-eeprom-update %{buildroot}%{_bindir}/rpi-eeprom-update
# Copy all the firmware and files to the right place
install -d -m 755 %{buildroot}/lib/firmware/raspberrypi/bootloader
cp -a firmware/* %{buildroot}/lib/firmware/raspberrypi/bootloader
# Copy the override in place
install -d -m 755 %{buildroot}%{_sysconfdir}/default
install -D -m 644 rpi-eeprom-update-default %{buildroot}%{_sysconfdir}/default/rpi-eeprom-update
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/default/rpi-eeprom-update
%{_bindir}/rpi-eeprom-config
%{_bindir}/rpi-eeprom-update
%dir /lib/firmware/raspberrypi
%dir /lib/firmware/raspberrypi/bootloader
/lib/firmware/raspberrypi/bootloader/default
/lib/firmware/raspberrypi/bootloader/latest
/lib/firmware/raspberrypi/bootloader/release-notes.md
%dir /lib/firmware/raspberrypi/bootloader/beta
/lib/firmware/raspberrypi/bootloader/beta/*.bin
%dir /lib/firmware/raspberrypi/bootloader/critical
/lib/firmware/raspberrypi/bootloader/critical/*.bin
%dir /lib/firmware/raspberrypi/bootloader/stable
/lib/firmware/raspberrypi/bootloader/stable/*.bin
%dir /lib/firmware/raspberrypi/bootloader/old
%dir /lib/firmware/raspberrypi/bootloader/old/beta
/lib/firmware/raspberrypi/bootloader/old/beta/*.bin
%dir /lib/firmware/raspberrypi/bootloader/old/critical
/lib/firmware/raspberrypi/bootloader/old/critical/*.bin
%dir /lib/firmware/raspberrypi/bootloader/old/stable
/lib/firmware/raspberrypi/bootloader/old/stable/*.bin
%doc LICENSE
%changelog
* Mon Apr 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2021.03.18_138a1-1mamba
- update to 2021.03.18_138a1
* Wed Mar 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.09.03_138a1-1mamba
- update to 2020.09.03_138a1
* Sun Feb 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20200209git-1mamba
- package created using the webbuild interface