1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 sup_arches = aarch64 x86_64 i686
11 thisapp = %{name}-%{version}
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
29 unifont = /usr/share/X11/fonts/misc/unifont.pcf.gz
39 dejavu-fonts-sans-fonts
49 # Don't leak our CFLAGS to boot code
50 export HOST_CFLAGS = %{CFLAGS}
51 export HOST_LDFLAGS = %{LDFLAGS}
55 if "%{DISTRO_PLATFORM}" == "x86"
60 cp -vf %{unifont} unifont.pcf.gz
63 for platform in %{platforms}; do
64 cp -r %{DIR_APP} %{DIR_APP}-${platform}
68 # As the modules contain always 32 bit code, they
69 # should be living in /usr/lib.
70 libdir = %{prefix}/lib
73 for platform in %{platforms}; do
74 pushd %{DIR_APP}-${platform}
76 %{configure_options} \
77 --with-platform=${platform} \
81 make %{PARALLELISMFLAGS}
87 for platform in %{platforms}; do
88 pushd %{DIR_APP}-${platform}
89 make install DESTDIR=%{BUILDROOT}
93 # Install empty configuration file.
94 mkdir -pv %{BUILDROOT}/boot/grub
95 touch %{BUILDROOT}/boot/grub/grub.cfg
96 ln -svf ../boot/grub/grub.cfg %{BUILDROOT}%{sysconfdir}/grub2.cfg
98 # Don't ship the default theme, replace it by our own one.
99 rm -rfv %{BUILDROOT}/boot/grub/themes/starfield \
100 %{datadir}/grub/themes
101 mkdir -pv %{BUILDROOT}/boot/grub/themes/system
102 cp -rfv %{DIR_SOURCE}/theme/* \
103 %{BUILDROOT}/boot/grub/themes/system/
106 mkdir -pv %{BUILDROOT}/boot/grub/themes/system
107 pushd %{BUILDROOT}/boot/grub/themes/system/
108 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-10.pf2 -s 10 \
109 %{datadir}/fonts/dejavu/DejaVuSans.ttf
110 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-12.pf2 -s 12 \
111 %{datadir}/fonts/dejavu/DejaVuSans.ttf
112 %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-Bold-14.pf2 \
113 -s 14 %{datadir}/fonts/dejavu/DejaVuSans-Bold.ttf
117 debuginfo_strict_build_id = false
127 # An EFI version of grub does not exist any more.
138 package %{name}-debuginfo