%global release_date 20221215 %global release_time 105525 %global release_name_full usbboot-%{release_date}-%{release_time} Summary: Raspberry Pi generic firmware loading interface Name: rpiboot Version: 1.%{release_date}.%{release_time} Release: 1%{?dist} License: Apache-2.0 Group: System/Management URL: https://github.com/raspberrypi/usbboot Source0: https://github.com/raspberrypi/usbboot/archive/refs/tags/%{release_date}-%{release_time}.tar.gz#/%release_name_full.tar.gz BuildRequires: gcc BuildRequires: libusb1-devel %description Tool to boot a Raspberry Pi in device mode either directly into a mass storage device or to a specific boot file. %prep %autosetup -n %{release_name_full} %build %make_build %install mkdir -p %{buildroot}%{_bindir} install -Dm 0755 rpiboot %{buildroot}%{_bindir} install -Dm 0644 -t %{buildroot}%{_datarootdir}/rpiboot/ msd/*.{bin,elf,md} %files %{_bindir}/rpiboot %{_datarootdir}/rpiboot %changelog * Thu Jan 04 2024 Jan Pazdziora - Package the CM4 R1.1 / CM4S latest (a.k.a. 20221215-105525) release.