1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 release = 0.3.%{prerelease}
10 thisapp = %{name}-%{version}~%{prerelease}
11 sup_arches = x86_64 i686
14 url = http://www.gnu.org/software/grub/
16 summary = Grand Unified Boot Loader.
19 GRUB (Grand Unified Boot Loader) is an experimental boot loader
20 capable of booting into most free operating systems - Linux, FreeBSD,
21 NetBSD, GNU Mach, and others as well as most commercial operating
25 source_dl = http://ftp.gnu.org/gnu/grub/ ftp://alpha.gnu.org/gnu/grub/
26 sources = %{thisapp}.tar.xz
44 # Create a copy of the source tree to build
45 # an EFI enabled version of grub.
46 cp -pR . %{DIR_SRC}/%{thisapp}-efi
49 # As the modules contain always 32 bit code, they
50 # should be living in /usr/lib.
51 libdir = %{prefix}/lib
53 configure_options += \
57 --program-transform-name=s,grub,grub, \
59 CFLAGS="$(echo %{CFLAGS} | sed \
60 -e 's/-fstack-protector//g' \
61 -e 's/--param=ssp-buffer-size=4//g' \
62 -e 's/-mregparm=3/-mregparm=4/g' \
63 -e 's/-fexceptions//g' \
65 -e 's/-fasynchronous-unwind-tables//g' )"
70 %{configure_options} \
72 CFLAGS="$(echo %{CFLAGS} | sed \
74 -e 's/-fstack-protector//g' \
75 -e 's/--param=ssp-buffer-size=4//g' \
76 -e 's/-mregparm=3/-mregparm=4/g' \
77 -e 's/-fexceptions//g' \
79 -e 's/-fasynchronous-unwind-tables//g' )"
81 make %{PARALLELISMFLAGS}
85 -p /EFI/%{DISTRO_SNAME}/grub-efi \
87 -d grub-core part_gpt hfsplus fat ext2 btrfs normal chain \
88 boot configfile linux appleldr minicmd loadbios reboot halt \
89 search font gfxterm echo video all_video
94 make install DESTDIR=%{BUILDROOT}
96 install -m 755 -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/
97 install -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi
98 touch %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
99 ln -svf ../boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg %{BUILDROOT}/etc/grub-efi.cfg
100 install -m 755 grub.efi %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.efi
103 make install DESTDIR=%{BUILDROOT}
105 # Install empty configuration file.
106 mkdir -pv %{BUILDROOT}/boot/grub
107 touch %{BUILDROOT}/boot/grub/grub.cfg
108 ln -svf ../boot/grub/grub.cfg %{BUILDROOT}%{sysconfdir}/grub2.cfg
111 debuginfo_strict_build_id = false
116 /usr/bin/*|/usr/sbin/*
125 /usr/share/X11/fonts/misc/unifont.pcf.gz
134 # Generate grub compatible font for graphical boot menu
135 # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
137 /usr/bin/grub-mkfont --output /boot/grub/unifont.pf2 \
138 --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f \
139 /usr/share/X11/fonts/misc/unifont.pcf.gz
145 EFI version of GRUB, the Grand Unified Boot Loader.
147 summary = %{description}
149 requires += grub = %{thisver}
152 /boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
158 /usr/lib/grub/i386-efi
162 package %{name}-debuginfo