1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 sup_arches = x86_64 i686
12 url = http://www.gnu.org/software/grub/
14 summary = Grand Unified Boot Loader.
17 GRUB (Grand Unified Boot Loader) is an experimental boot loader
18 capable of booting into most free operating systems - Linux, FreeBSD,
19 NetBSD, GNU Mach, and others as well as most commercial operating
23 source_dl = http://ftp.gnu.org/gnu/grub/ ftp://alpha.gnu.org/gnu/grub/
24 sources = %{thisapp}.tar.xz
27 unifont = /usr/share/X11/fonts/misc/unifont.pcf.gz
36 dejavu-fonts-sans-fonts
48 cp -vf %{unifont} unifont.pcf.gz
52 # As the modules contain always 32 bit code, they
53 # should be living in /usr/lib.
54 libdir = %{prefix}/lib
56 configure_options += \
59 --program-transform-name=s,grub,grub, \
61 CFLAGS="$(echo %{CFLAGS} | sed \
62 -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' \
63 -e 's/-fstack-protector-all//g' \
64 -e 's/-fstack-protector//g' \
66 -e 's/--param=ssp-buffer-size=4//g' \
67 -e 's/-mregparm=3/-mregparm=4/g' \
68 -e 's/-fexceptions//g' \
70 -e 's/-fasynchronous-unwind-tables//g' )"
73 # Install empty configuration file.
74 mkdir -pv %{BUILDROOT}/boot/grub
75 touch %{BUILDROOT}/boot/grub/grub.cfg
76 ln -svf ../boot/grub/grub.cfg %{BUILDROOT}%{sysconfdir}/grub2.cfg
78 # Don't ship the default theme, replace it by our own one.
79 rm -rfv %{BUILDROOT}/boot/grub/themes/starfield \
80 %{datadir}/grub/themes
81 mkdir -pv %{BUILDROOT}/boot/grub/themes/system
82 cp -rfv %{DIR_SOURCE}/theme/* \
83 %{BUILDROOT}/boot/grub/themes/system/
86 mkdir -pv %{BUILDROOT}/boot/grub/themes/system
87 pushd %{BUILDROOT}/boot/grub/themes/system/
88 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-10.pf2 -s 10 \
89 %{datadir}/fonts/dejavu/DejaVuSans.ttf
90 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-12.pf2 -s 12 \
91 %{datadir}/fonts/dejavu/DejaVuSans.ttf
92 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-Bold-14.pf2 \
93 -s 14 %{datadir}/fonts/dejavu/DejaVuSans-Bold.ttf
98 %{BUILDROOT}%{sbindir}/grub-bios-setup \
99 %{BUILDROOT}%{sbindir}/grub-probe
102 debuginfo_strict_build_id = false
107 %{bindir}/*|%{sbindir}/*
119 # An EFI version of grub does not exist any more.
130 package %{name}-debuginfo