# git archive --format=tar --prefix=rpi-utils-%{gitshort}/ %{gitshort} | xz > rpi-utils-%{gitshort}.tar.xz %define gitshort f0ceb0282 Name: rpi-utils Version: 0 Release: 1.%{gitshort}%{?dist} Summary: A collection of scripts and simple applications for the Raspberry Pi License: Redistributable URL: https://github.com/raspberrypi/utils Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{gitshort}.tar.xz ExclusiveArch: aarch64 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: sed # BR: gnutls-devel - rpifwcrypto dep Requires: iproute Requires: usbutils %description A collection of scripts and simple applications for the Raspberry Pi series of devices used for general device information, debug, firmware upgrades and other Raspberry Pi specific bits. We only include utilities usable on Fedora so there are a few missing from the RPi tools. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-c++ = %{version}-%{release} %if 0%{?with_python} Requires: python3-%{name} = %{version}-%{release} %endif %description devel Files for development with %{name}. %prep %autosetup -n %{name}-%{gitshort} -p1 sed -i 's/ifconfig/ ip a/' raspinfo/raspinfo %build # Need to add: rpifwcrypto, vclog, plus maybe some of the DT bits for f in eeptools otpset piolib raspinfo vcgencmd vclog vcmailbox do cd $f sed -i '/CMAKE_C_FLAGS/d' CMakeLists.txt %cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir} %cmake_build cd - done %install for f in eeptools otpset piolib raspinfo vcgencmd vclog vcmailbox do cd $f %cmake_install cd - done %files %license LICENCE %doc README.md #{_bindir}/pwm %{_bindir}/apitest %{_bindir}/dpi_csync %{_bindir}/eepdump %{_bindir}/eepflash.sh %{_bindir}/eepmake %{_bindir}/otpset %{_bindir}/piopwm %{_bindir}/pioseq %{_bindir}/piotest %{_bindir}/piows2812 %{_bindir}/quadenc %{_bindir}/raspinfo %{_bindir}/rp1sm %{_bindir}/vcgencmd %{_bindir}/vclog %{_bindir}/vcmailbox %{_datadir}/bash-completion/completions/vcgencmd %{_libdir}/libpio.so.0 %{_mandir}/man1/vc* %{_mandir}/man7/rasp* %{_mandir}/man7/vc* %files devel %{_includedir}/piolib/ %{_libdir}/libpio.so %changelog * Mon Feb 09 2026 Peter Robinson - 0-0.f0ceb0282 - Initial package