File u-boot-asahi.spec of Package u-boot-asahi
%define _asahirel 1
%define _tag_id asahi-v%{version}-%{_asahirel}
%define ubootdir /boot
Name: u-boot-asahi
Version: 2025.10
Release: 1
Summary: The U-Boot firmware for the Apple Silicon platform
License: GPL-2.0-or-later
Group: System/Boot
URL: https://github.com/AsahiLinux/u-boot
Vendor: asahi-opensuse
Source: https://github.com/AsahiLinux/u-boot/archive/refs/tags/%{_tag_id}.tar.gz
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc
BuildRequires: ImageMagick
BuildRequires: make
BuildRequires: libopenssl-devel
BuildRequires: libuuid-devel libgnutls-devel
Conflicts: u-boot-loader
Provides: u-boot-loader
Provides: u-boot-asahi = %{version}
Obsoletes: u-boot-asahi < %{version}
ExclusiveArch: aarch64
%description
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
This package contains the firmware for the Apple Silicon platform.
%prep
%setup -b 0 -n u-boot-%{_tag_id}
make %{_builddir}/u-boot-%{_tag_id} apple_m1_defconfig
%build
%make_build CROSS_COMPILE=""
%install
install -Dpm0644 -t %{buildroot}%{ubootdir} u-boot-nodtb.bin
%files
%license Licenses/*
%dir %{ubootdir}
%{ubootdir}/u-boot-nodtb.bin
%changelog