From 621246d46cdcbf175ce9748ffc6de17dd7ee14f6 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Thu, 5 Oct 2023 09:20:53 +0530 Subject: [PATCH] fix conflict with pkg efi-filesystem --- opi5-efi.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/opi5-efi.spec b/opi5-efi.spec index d82b825..8c4bc74 100644 --- a/opi5-efi.spec +++ b/opi5-efi.spec @@ -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