%global debug_package %{nil} %global __os_install_post %{nil} Name: uke-qseecom-tpm-live-module Version: 1.0 Release: 1%{?dist} Summary: Build a fixed resident Qualcomm TPM app lookup for Xiaomi Uke License: GPL-2.0-only ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.xz BuildRequires: bash curl cpio rpm gnupg2 gawk coreutils findutils tar xz sed grep diffutils BuildRequires: clang llvm lld gcc make perl bc bison flex binutils kmod openssl-devel elfutils-libelf-devel %description Reproduce the explicit lookup for the matching signed Uke kernel ABIs. The output contains unsigned build artifacts for offline module signing. %prep set -o pipefail printf '%%s %%s\n' d12328c8a1c2314ca61fd994d9b9641e513e97a4d87530810a5e74b1ecbc79e6 %{SOURCE0} | sha256sum -c --strict mkdir inputs results tar -xJf %{SOURCE0} -C inputs (cd inputs; sha256sum -c --strict --quiet SHA256SUMS) %build bash inputs/build-lookup-module.sh inputs results %install install -d %{buildroot}%{_datadir}/%{name} install -m644 results/* %{buildroot}%{_datadir}/%{name}/ %files %{_datadir}/%{name}/