opi5-efi/opi5-efi.spec
2023-10-08 13:35:57 +05:30

44 lines
909 B
RPMSpec

# disable the '-debug{info,source}' pkgs
%define debug_package %{nil}
# also disable packaging files in '/usr/lib/.build-id/'
%define _build_id_links none
Name: opi5-efi
Version: 0.0.4
Release: 7%{?dist}
Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5
License: GPL
Provides: %{name}-%{version}
Requires: kernel-opi5-tfg uboot-tools bash
%global full_ver %{version}-%{release}
Source0: boot.cmd
Source1: uEnv.txt
Source2: post.sh
%description
This is a hack to get the kernel booting on the Oragne Pi 5
%prep
echo "Nothing to prepare"
%build
echo "Nothing to build"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/opt/opi5-efi
cp %{SOURCE0} $RPM_BUILD_ROOT/opt/opi5-efi/boot.cmd
cp %{SOURCE1} $RPM_BUILD_ROOT/opt/opi5-efi/uEnv.txt
cp %{SOURCE2} $RPM_BUILD_ROOT/opt/opi5-efi/post.sh
%clean
rm -rf $RPM_BUILD_ROOT
%post
bash /opt/opi5-efi/post.sh
%files
/opt/opi5-efi/*