%global debug_package %{nil} # Tarfile created using git # git clone https://github.com/raspberrypi/firmware.git # cd firmware/boot # tar cJvf ../bcm283x-firmware-%{gitshort}.tar.xz *bin *dat *elf LICENCE.broadcom COPYING.linux overlays/ %define gitshort 784fe6c Name: bcm283x-firmware Version: 20180525 Release: 1.%{gitshort}%{?dist} Summary: Broadcom bcm283x firmware for the Raspberry Pi Group: System/Kernel and hardware # see LICENSE.broadcom License: Redistributable, no modification permitted URL: https://github.com/raspberrypi/ Source0: %{name}-%{gitshort}.tar.xz Source1: config.txt Source2: config-64.txt ExclusiveArch: %{arm} aarch64 %description Firmware for the Broadcom bcm283x SoC as shipped in devices such as the Raspberry Pi. %prep %setup -q -n %{name}-%{gitshort} -c %{name}-%{gitshort} %build %install mkdir -p %{buildroot}/%{_datadir}/%{name} mkdir -p %{buildroot}/%{_datadir}/%{name}/overlays install -p %{SOURCE1} %{buildroot}/%{_datadir}/%{name} install -p %{SOURCE2} %{buildroot}/%{_datadir}/%{name} install -p *bin %{buildroot}/%{_datadir}/%{name} install -p *dat %{buildroot}/%{_datadir}/%{name} install -p *elf %{buildroot}/%{_datadir}/%{name} install -p overlays/README %{buildroot}/%{_datadir}/%{name}/overlays install -p overlays/*.dtbo %{buildroot}/%{_datadir}/%{name}/overlays %files # DT Overlays covered under Linux Kernel GPLv2 %license LICENCE.broadcom COPYING.linux %{_datadir}/%{name}