mkdir and %files

This commit is contained in:
Pratham Patel 2023-10-05 06:06:47 +05:30
parent 387f5d5e27
commit e42173b9a0
No known key found for this signature in database

View File

@ -26,6 +26,8 @@ echo "Nothing to prepare"
echo "Nothing to build" echo "Nothing to build"
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/boot/efi
cp ${SOURCE0} $RPM_BUILD_ROOT/boot/efi/boot.cmd cp ${SOURCE0} $RPM_BUILD_ROOT/boot/efi/boot.cmd
cp ${SOURCE1} $RPM_BUILD_ROOT/boot/efi/uEnv.txt cp ${SOURCE1} $RPM_BUILD_ROOT/boot/efi/uEnv.txt
@ -55,3 +57,6 @@ cp /boot/uInitrd-${UNAME_R} /boot/uInitrd
diff /boot/efi/boot.cmd /boot/efi/boot.cmd-%{full_ver} > /boot/diff_boot_cmd diff /boot/efi/boot.cmd /boot/efi/boot.cmd-%{full_ver} > /boot/diff_boot_cmd
diff /boot/efi/uEnv.txt /boot/efi/uEnv.txt-%{full_ver} > /boot/diff_uenv_txt diff /boot/efi/uEnv.txt /boot/efi/uEnv.txt-%{full_ver} > /boot/diff_uenv_txt
%files
/boot/*