Name: uke-pstore-dt-check Version: 1.0 Release: 1%{?dist} Summary: Uke firmware ramoops fallback verification License: MIT Source0: %{name}-%{version}.tar.gz BuildRequires: gcc clang libfdt-devel ExclusiveArch: aarch64 %description Source-only device-tree fixture for the Uke ramoops layout. The installed package contains a text verification report. %prep %autosetup %build %install mkdir -p %{buildroot}%{_docdir}/%{name} %check test "$(uname -m)" = aarch64 { echo "Architecture: $(uname -m)" for compiler in gcc clang; do CC="$compiler" bash tests/pstore-fdt731-contract.sh echo "$compiler verified the Uke ramoops layout and firmware fallback" done sha256sum src/boot/uke-pstore-dt.h tests/pstore-fdt731-contract.sh } | tee %{buildroot}%{_docdir}/%{name}/verification.txt %files %doc %{_docdir}/%{name}/verification.txt