diff --git a/grub2.changes b/grub2.changes index de6beef..87a3f84 100644 --- a/grub2.changes +++ b/grub2.changes @@ -1,10 +1,3 @@ -------------------------------------------------------------------- -Fri Jan 18 08:57:48 UTC 2013 - mchang@suse.com - -- put 32-bit grub2 modules to /usr/lib/grub2 -- put 64-bit grub2 modules to /usr/lib64/grub2 (x86_64-efi) -- put grub.efi to /usr/lib64/efi(x86_64) or /usr/lib/efi(i586) - ------------------------------------------------------------------- Fri Jan 18 07:39:18 UTC 2013 - mchang@suse.com diff --git a/grub2.spec b/grub2.spec index 30468d2..6de126c 100644 --- a/grub2.spec +++ b/grub2.spec @@ -51,13 +51,6 @@ BuildRequires: guile # Modules always contain just 32-bit code %define _libdir %{_exec_prefix}/lib -%ifarch x86_64 -# x86_64-efi is 64-bit code, though .. -%define efi_libdir %{_exec_prefix}/lib64 -%else -%define efi_libdir %{_libdir} -%endif - %ifarch ppc ppc64 %define grubcpu powerpc %define platform ieee1275 @@ -281,7 +274,6 @@ export CFLAGS CXXFLAGS FFLAGS %configure \ TARGET_LDFLAGS=-static \ --target=%{_target_platform} \ - --libdir=%{efi_libdir} \ --with-platform=efi \ --program-transform-name=s,grub,%{name}, make %{?_smp_mflags} @@ -346,8 +338,8 @@ make %{?_smp_mflags} cd grub-efi-%{version} make DESTDIR=$RPM_BUILD_ROOT install -install -m 755 -d $RPM_BUILD_ROOT%{efi_libdir}/efi -install -m 755 grub.efi $RPM_BUILD_ROOT%{efi_libdir}/efi/grub.efi +install -m 755 -d $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/ +install -m 755 grub.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/grub.efi cd .. %endif @@ -370,14 +362,7 @@ install -d $RPM_BUILD_ROOT/boot/%{name} touch $RPM_BUILD_ROOT/boot/%{name}/grub.cfg # Remove devel files -%ifarch x86_64 -%if ! 0%{?only_efi:1} rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*/*.h -%endif -rm $RPM_BUILD_ROOT/%{efi_libdir}/%{name}/*/*.h -%else -rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*/*.h -%endif %if 0%{?suse_version} >= 1140 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.h %endif @@ -584,6 +569,7 @@ fi %{_bindir}/%{name}-mkstandalone %{_bindir}/%{name}-mount %{_bindir}/%{name}-script-check +%dir %{_libdir}/%{name} %dir %{_datadir}/%{name} %if 0%{?suse_version} >= 1140 %{_datadir}/%{name}/*.pf2 @@ -595,7 +581,6 @@ fi %if ! 0%{?only_efi:1} %files %{grubarch} %defattr(-,root,root,-) -%dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/%{grubarch} %ifnarch ppc ppc64 %{_libdir}/%{name}/%{grubarch}/*.image @@ -625,18 +610,19 @@ fi %files %{grubefiarch} %defattr(-,root,root,-) -%dir %{efi_libdir}/efi -%dir %{efi_libdir}/%{name} -%dir %{efi_libdir}/%{name}/%{grubefiarch} -%{efi_libdir}/efi/grub.efi -%{efi_libdir}/%{name}/%{grubefiarch}/*.img -%{efi_libdir}/%{name}/%{grubefiarch}/*.lst -%{efi_libdir}/%{name}/%{grubefiarch}/*.mod -%{efi_libdir}/%{name}/%{grubefiarch}/*.module -%{efi_libdir}/%{name}/%{grubefiarch}/gdb_grub2 -%{efi_libdir}/%{name}/%{grubefiarch}/gmodule.pl -%{efi_libdir}/%{name}/%{grubefiarch}/kernel.exec -%{efi_libdir}/%{name}/%{grubefiarch}/modinfo.sh +%dir /boot/efi +%dir /boot/efi/EFI +%dir /boot/efi/EFI/%{efidir} +%attr(0755,root,root)/boot/efi/EFI/%{efidir}/grub.efi +%dir %{_libdir}/%{name}/%{grubefiarch} +%{_libdir}/%{name}/%{grubefiarch}/*.img +%{_libdir}/%{name}/%{grubefiarch}/*.lst +%{_libdir}/%{name}/%{grubefiarch}/*.mod +%{_libdir}/%{name}/%{grubefiarch}/*.module +%{_libdir}/%{name}/%{grubefiarch}/gdb_grub2 +%{_libdir}/%{name}/%{grubefiarch}/gmodule.pl +%{_libdir}/%{name}/%{grubefiarch}/kernel.exec +%{_libdir}/%{name}/%{grubefiarch}/modinfo.sh %endif %changelog