Compare commits

..

2 Commits

Author SHA1 Message Date
d8da01df5d
bump rel_ver 2023-10-05 09:21:09 +05:30
621246d46c
fix conflict with pkg efi-filesystem 2023-10-05 09:20:53 +05:30

View File

@ -5,7 +5,7 @@
Name: opi5-efi
Version: 0.0.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5
License: GPL
Provides: %{name}-%{version}
@ -27,15 +27,19 @@ echo "Nothing to build"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/boot/efi
cp %{SOURCE0} $RPM_BUILD_ROOT/boot/efi/boot.cmd
cp %{SOURCE1} $RPM_BUILD_ROOT/boot/efi/uEnv.txt
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
%clean
rm -rf $RPM_BUILD_ROOT
%post
set -xeuf -o pipefail
cp /opt/opi5-efi/boot.cmd $RPM_BUILD_ROOT/boot/efi/boot.cmd
cp /opt/opi5-efi/uEnv.txt $RPM_BUILD_ROOT/boot/efi/uEnv.txt
cp /boot/efi/boot.cmd /boot/efi/boot.cmd-%{full_ver}
cp /boot/efi/uEnv.txt /boot/efi/uEnv.txt-%{full_ver}
if [ -f /boot/.uname ]; then