| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,88 @@ |
| 0 |
+%define debug_package %{nil}
|
|
| 1 |
+%define __os_install_post %{nil}
|
|
| 2 |
+Summary: GRand Unified Bootloader |
|
| 3 |
+Name: grub2-efi |
|
| 4 |
+Version: 2.02 |
|
| 5 |
+Release: 1%{?dist}
|
|
| 6 |
+License: GPLv3+ |
|
| 7 |
+URL: http://www.gnu.org/software/grub |
|
| 8 |
+Group: Applications/System |
|
| 9 |
+Vendor: VMware, Inc. |
|
| 10 |
+Distribution: Photon |
|
| 11 |
+Source0: http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.gz |
|
| 12 |
+%define sha1 grub=b2c9227f9a54587532ae3f727d197ab112cdbbb3 |
|
| 13 |
+BuildRequires: device-mapper-devel |
|
| 14 |
+BuildRequires: xz-devel |
|
| 15 |
+Requires: xz |
|
| 16 |
+Requires: device-mapper |
|
| 17 |
+%description |
|
| 18 |
+The GRUB package contains the GRand Unified Bootloader. |
|
| 19 |
+ |
|
| 20 |
+%package lang |
|
| 21 |
+Summary: Additional language files for grub |
|
| 22 |
+Group: System Environment/Programming |
|
| 23 |
+Requires: grub2 >= 2.00 |
|
| 24 |
+%description lang |
|
| 25 |
+These are the additional language files of grub. |
|
| 26 |
+ |
|
| 27 |
+ |
|
| 28 |
+%prep |
|
| 29 |
+%setup -qn grub-2.02~beta2 |
|
| 30 |
+#sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h |
|
| 31 |
+%build |
|
| 32 |
+ |
|
| 33 |
+./configure \ |
|
| 34 |
+ --prefix=%{_prefix} \
|
|
| 35 |
+ --sbindir=/sbin \ |
|
| 36 |
+ --sysconfdir=%{_sysconfdir} \
|
|
| 37 |
+ --disable-grub-emu-usb \ |
|
| 38 |
+ --disable-werror \ |
|
| 39 |
+ --disable-efiemu \ |
|
| 40 |
+ --program-transform-name=s,grub,%{name}, \
|
|
| 41 |
+ --with-grubdir=grub2 \ |
|
| 42 |
+ --with-platform=efi \ |
|
| 43 |
+ --target=x86_64 \ |
|
| 44 |
+ --with-program-prefix="" \ |
|
| 45 |
+ --with-bootdir="/boot" |
|
| 46 |
+ |
|
| 47 |
+make %{?_smp_mflags}
|
|
| 48 |
+ |
|
| 49 |
+%install |
|
| 50 |
+make DESTDIR=%{buildroot} install
|
|
| 51 |
+mkdir %{buildroot}%{_sysconfdir}/default
|
|
| 52 |
+touch %{buildroot}%{_sysconfdir}/default/grub
|
|
| 53 |
+mkdir %{buildroot}%{_sysconfdir}/sysconfig
|
|
| 54 |
+ln -sf %{_sysconfdir}/default/grub %{buildroot}%{_sysconfdir}/sysconfig/grub
|
|
| 55 |
+mkdir -p %{buildroot}/boot/%{name}
|
|
| 56 |
+touch %{buildroot}/boot/%{name}/grub.cfg
|
|
| 57 |
+rm -rf %{buildroot}%{_infodir}
|
|
| 58 |
+%check |
|
| 59 |
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
|
| 60 |
+%post -p /sbin/ldconfig |
|
| 61 |
+%postun -p /sbin/ldconfig |
|
| 62 |
+%files |
|
| 63 |
+%defattr(-,root,root) |
|
| 64 |
+%dir %{_sysconfdir}/grub.d
|
|
| 65 |
+%config() %{_sysconfdir}/bash_completion.d/grub
|
|
| 66 |
+%config() %{_sysconfdir}/grub.d/00_header
|
|
| 67 |
+%config() %{_sysconfdir}/grub.d/10_linux
|
|
| 68 |
+%config() %{_sysconfdir}/grub.d/20_linux_xen
|
|
| 69 |
+%config() %{_sysconfdir}/grub.d/30_os-prober
|
|
| 70 |
+%config() %{_sysconfdir}/grub.d/40_custom
|
|
| 71 |
+%config() %{_sysconfdir}/grub.d/41_custom
|
|
| 72 |
+%config() %{_sysconfdir}/grub.d/README
|
|
| 73 |
+/sbin/* |
|
| 74 |
+%{_bindir}/*
|
|
| 75 |
+%{_libdir}/grub/*
|
|
| 76 |
+%{_datarootdir}/grub/*
|
|
| 77 |
+%{_sysconfdir}/sysconfig/grub
|
|
| 78 |
+%{_sysconfdir}/default/grub
|
|
| 79 |
+%ghost %config(noreplace) /boot/%{name}/grub.cfg
|
|
| 80 |
+ |
|
| 81 |
+%files lang |
|
| 82 |
+%defattr(-,root,root) |
|
| 83 |
+/usr/share/locale/* |
|
| 84 |
+ |
|
| 85 |
+%changelog |
|
| 86 |
+* Fri Jul 31 2015 Sharath George <sharathg@vmware.com> 2.02-1 |
|
| 87 |
+- Adding EFI support. |
| ... | ... |
@@ -5,7 +5,7 @@ |
| 5 | 5 |
"cracklib", "cracklib-dicts", "cracklib-python", "shadow", |
| 6 | 6 |
"coreutils", "grep", |
| 7 | 7 |
"findutils", |
| 8 |
- "xz", "grub2", "kmod", |
|
| 8 |
+ "xz", "grub2", "kmod", "grub2-efi", |
|
| 9 | 9 |
"util-linux", "e2fsprogs", |
| 10 | 10 |
"expat", |
| 11 | 11 |
"linux", "cpio", |
| ... | ... |
@@ -21,5 +21,5 @@ |
| 21 | 21 |
"libgpg-error", "libhif", "libhif-devel", |
| 22 | 22 |
"librepo", "librepo-devel", "libsoup", "libsoup-devel", |
| 23 | 23 |
"libxml2", "mkinitcpio", "openssl-devel", |
| 24 |
- "yum", "ostree"] |
|
| 24 |
+ "yum", "ostree" ] |
|
| 25 | 25 |
} |