]>
Commit | Line | Data |
---|---|---|
f97cafb4 | 1 | # TODO |
dc6928bc | 2 | # - reap out which in probe scripts and drop R: which |
f97cafb4 | 3 | # - subpackages? e.g. modules and utils |
bcd6a47e | 4 | # - check where is that locale path: /boot/grub/locale and fix it or change it |
8fcee4aa ER |
5 | # - grubemu notes |
6 | # --enable-grub-emu-usb conflicts with --enable-grub-emu-pci, emu-pci seems experimental | |
7 | # - to build and install the `grub-emu' debugging utility we need to re-run build with --target=emu | |
8 | # - put grub-emu to subpackage if it is fixed | |
f97cafb4 | 9 | # |
90feddde | 10 | # Conditional build: |
a2b4434b | 11 | %bcond_with grubemu # grub-emu debugging utility |
75218533 | 12 | %bcond_without efiemu # efiemu runtimes (64-bit efiemu on 32-bit boot platform) |
a2b4434b JB |
13 | %bcond_without unifont # unifont based fonts |
14 | %bcond_without arc # MIPS ARC platform support | |
15 | %bcond_without coreboot # coreboot/linuxbios platform support (x86/arm specific) | |
16 | %bcond_without efi # EFI platform support | |
17 | %bcond_without ieee1275 # ieee1275 platform support (x86/ppc/sparc specific) | |
18 | %bcond_without loongson # MIPS loongson platform support (mipsel specific) | |
19 | %bcond_without multiboot # multiboot platform support (x86/arm specific) | |
20 | %bcond_without pc # PC BIOS platform support (x86 specific) | |
21 | %bcond_without qemu # qemu platform support (x86/mips specific) | |
22 | %bcond_without uboot # ARM uBoot platform support | |
23 | %bcond_without xen # Xen platform support (x86 specific) | |
24 | %bcond_without xen_pvh # Xen PVH platform support (x86 specific) | |
25 | ||
26 | %ifnarch mips mipsel mips64 mips64el | |
27 | %undefine with_arc | |
28 | %endif | |
29 | %ifnarch %{ix86} %{x8664} x32 %{arm} | |
30 | %undefine with_coreboot | |
feaacba3 | 31 | %endif |
1a68d0fe | 32 | %ifnarch %{ix86} %{x8664} x32 %{arm} aarch64 ia64 |
feaacba3 JB |
33 | %undefine with_efi |
34 | %endif | |
a2b4434b JB |
35 | %ifnarch %{ix86} %{x8664} x32 ppc ppc64 sparc64 |
36 | %undefine with_ieee1275 | |
37 | %endif | |
38 | %ifnarch mipsel mips64el | |
39 | %undefine with_loongson | |
40 | %endif | |
41 | %ifnarch %{ix86} %{x8664} x32 | |
42 | %undefine with_multiboot | |
43 | %undefine with_pc | |
44 | %undefine with_xen | |
45 | %undefine with_xen_pvh | |
46 | %endif | |
47 | %ifnarch %{ix86} mips mipsel mips64 mips64el | |
48 | %undefine with_qemu | |
49 | %endif | |
50 | %ifnarch %{arm} | |
51 | %undefine with_uboot | |
52 | %endif | |
53 | ||
75218533 JB |
54 | # FIXME: x86_64-xen build is broken (as of 2.06) |
55 | %ifarch %{x8664} x32 | |
56 | %undefine with_xen | |
57 | %endif | |
58 | ||
a2b4434b JB |
59 | # these require unifont |
60 | %if %{without unifont} | |
61 | %undefine with_coreboot | |
62 | %undefine with_loongson | |
63 | %undefine with_qemu | |
64 | %endif | |
feaacba3 | 65 | |
50ffb0ba | 66 | %ifnarch %{x8664} x32 |
2d8da575 AM |
67 | # non-x86_64 arch doesn't support this |
68 | %undefine with_efiemu | |
69 | %endif | |
70 | ||
1536aaf2 | 71 | # the 'most natural' platform should go last |
1a68d0fe | 72 | %ifarch %{ix86} %{x8664} x32 |
75218533 | 73 | %define platforms %{?with_coreboot:coreboot} %{?with_ieee1275:ieee1275} %{?with_multiboot:multiboot} %{?with_qemu:qemu} %{?with_xen:xen} %{?with_xen_pvh:xen_pvh} %{?with_efi:efi} %{?with_pc:pc} |
feaacba3 | 74 | %endif |
1a68d0fe | 75 | %ifarch %{arm} |
a2b4434b | 76 | %define platforms %{?with_efi:efi} %{?with_uboot:uboot} |
1a68d0fe JB |
77 | %endif |
78 | %ifarch aarch64 ia64 riscv32 riscv64 | |
79 | %define platforms efi | |
feaacba3 | 80 | %endif |
a2b4434b | 81 | %ifarch mips mips64 |
feaacba3 JB |
82 | %define platforms arc |
83 | %endif | |
a2b4434b JB |
84 | %ifarch mipsel mips64el |
85 | %define platforms %{?with_arc:arc} %{?with_loongson:loongson} | |
1a68d0fe JB |
86 | %endif |
87 | %ifarch ppc ppc64 sparc64 | |
88 | %define platforms ieee1275 | |
feaacba3 | 89 | %endif |
1536aaf2 | 90 | |
a2b4434b JB |
91 | %ifarch %{ix86} |
92 | %define coreboot_arch i386 | |
93 | %define efi_arch i386 | |
94 | %define ieee1275_arch i386 | |
95 | %define qemu_arch i386 | |
96 | %define qemu_plat qemu | |
97 | %define xen_arch i386 | |
98 | %endif | |
99 | %ifarch %{x8664} x32 | |
100 | %define coreboot_arch i386 | |
101 | %define efi_arch x86_64 | |
102 | %define ieee1275_arch i386 | |
103 | %define qemu_arch i386 | |
104 | %define qemu_plat qemu | |
105 | %define xen_arch x86_64 | |
106 | %endif | |
107 | %ifarch %{arm} | |
108 | %define coreboot_arch arm | |
109 | %define efi_arch arm | |
110 | %endif | |
111 | %ifarch aarch64 | |
112 | %define efi_arch arm64 | |
113 | %endif | |
114 | %ifarch ia64 | |
115 | %define efi_arch ia64 | |
116 | %endif | |
117 | %ifarch mips mips64 | |
118 | %define arc_arch mips | |
119 | %define qemu_arch mips | |
120 | %define qemu_plat qemu_mips | |
121 | %endif | |
122 | %ifarch mipsel mips64el | |
123 | %define arc_arch mipsel | |
124 | %define qemu_arch mipsel | |
125 | %define qemu_plat qemu_mips | |
126 | %endif | |
127 | %ifarch ppc ppc64 | |
128 | %define ieee1275_arch powerpc | |
129 | %endif | |
130 | %ifarch riscv32 | |
131 | %define efi_arch riscv32 | |
132 | %endif | |
133 | %ifarch riscv64 | |
134 | %define efi_arch riscv64 | |
135 | %endif | |
136 | %ifarch sparc64 | |
137 | %define ieee1275_arch sparc64 | |
138 | %endif | |
139 | ||
afe8504a | 140 | Summary: GRand Unified Bootloader |
c8155f7f | 141 | Summary(de.UTF-8): GRUB2 - ein Bootloader für x86 und ppc |
f97cafb4 | 142 | Summary(hu.UTF-8): GRUB2 - rendszerbetöltő x86 és ppc gépekhez |
c8155f7f ER |
143 | Summary(pl.UTF-8): GRUB2 - bootloader dla x86 i ppc |
144 | Summary(pt_BR.UTF-8): Gerenciador de inicialização GRUB2 | |
afe8504a | 145 | Name: grub2 |
41468086 | 146 | Version: 2.06 |
913f2b3c | 147 | Release: 2 |
2e4bec6f | 148 | License: GPL v2 |
afe8504a | 149 | Group: Base |
a2b4434b | 150 | Source0: https://ftp.gnu.org/gnu/grub/grub-%{version}.tar.xz |
41468086 | 151 | # Source0-md5: cf0fd928b1e5479c8108ee52cb114363 |
22909ca1 ER |
152 | Source1: update-grub |
153 | Source2: update-grub.8 | |
b46589aa | 154 | Source3: grub.sysconfig |
e2964b87 | 155 | Source4: grub-custom.cfg |
b46589aa | 156 | Patch1: pld-sysconfdir.patch |
872700b0 | 157 | Patch2: grub-garbage.patch |
c9273ffc JK |
158 | Patch3: grub-lvmdevice.patch |
159 | Patch4: pld-mkconfigdir.patch | |
160 | Patch5: grub-mkconfig-diagnostics.patch | |
668ecb01 JK |
161 | Patch6: posix.patch |
162 | Patch7: %{name}-fonts_path.patch | |
668ecb01 JK |
163 | Patch9: just-say-linux.patch |
164 | Patch10: ignore-kernel-symlinks.patch | |
165 | Patch11: choose-preferred-initrd.patch | |
166 | Patch12: %{name}-cfg.patch | |
c287192d | 167 | Patch13: efi-net-fix.patch |
a4c52d96 | 168 | Patch14: blscfg.patch |
913f2b3c | 169 | Patch15: 0193-fs-xfs-Fix-unreadable-filesystem-with-v4-superblock.patch |
feaacba3 | 170 | URL: http://www.gnu.org/software/grub/ |
41468086 | 171 | BuildRequires: autoconf >= 2.63 |
27550907 | 172 | BuildRequires: automake >= 1:1.11.1-1 |
a2b4434b JB |
173 | BuildRequires: bison >= 2.3 |
174 | BuildRequires: device-mapper-devel >= 1.02.34 | |
feaacba3 | 175 | BuildRequires: flex >= 2.5.35 |
26996aed | 176 | BuildRequires: fonts-TTF-DejaVu |
a2b4434b JB |
177 | %if %{with unifont} |
178 | BuildRequires: fonts-misc-unifont | |
179 | %endif | |
180 | BuildRequires: freetype-devel >= 2.1.5 | |
12fd19f5 | 181 | BuildRequires: gawk |
a2b4434b | 182 | BuildRequires: gcc >= 6:5.1 |
75218533 JB |
183 | %ifarch %{x8664} x32 |
184 | %if %{with efiemu} || %{with coreboot} || %{with ieee1275} || %{with multiboot} || %{with pc} || %{with xen_pvh} | |
185 | BuildRequires: gcc-multilib-32 >= 6:5.1 | |
186 | %endif | |
187 | %endif | |
188 | %ifarch x32 | |
189 | %if %{with efiemu} || %{with efi} | |
190 | BuildRequires: gcc-multilib-64 >= 6:5.1 | |
191 | %endif | |
192 | %endif | |
41468086 | 193 | BuildRequires: gettext-tools >= 0.18.3 |
5bafb558 | 194 | BuildRequires: glibc-localedb-all |
feaacba3 | 195 | BuildRequires: glibc-static |
1349ebb8 | 196 | BuildRequires: help2man |
42985b0d | 197 | BuildRequires: libfuse-devel |
afe8504a | 198 | BuildRequires: libtool |
feaacba3 | 199 | BuildRequires: ncurses-devel |
41468086 | 200 | BuildRequires: pkgconfig |
a2b4434b JB |
201 | BuildRequires: python >= 1:2.6 |
202 | BuildRequires: python-modules >= 1:2.6 | |
feaacba3 | 203 | BuildRequires: rpm >= 4.4.9-56 |
e391ec8f | 204 | BuildRequires: rpm-build >= 4.6 |
feaacba3 JB |
205 | BuildRequires: rpmbuild(macros) >= 1.213 |
206 | BuildRequires: sed >= 4.0 | |
207 | BuildRequires: tar >= 1:1.22 | |
81a7e0ba | 208 | BuildRequires: texinfo |
feaacba3 JB |
209 | BuildRequires: xz |
210 | BuildRequires: xz-devel | |
feaacba3 | 211 | Requires: %{name}-platform = %{version}-%{release} |
a5138d8d | 212 | Requires: pld-release |
dc6928bc | 213 | Requires: which |
a2b4434b | 214 | %ifarch %{ix86} %{x8664} x32 |
feaacba3 JB |
215 | Suggests: %{name}-platform-pc |
216 | %endif | |
190cc685 | 217 | Suggests: cdrkit-mkisofs |
97ee543c | 218 | Suggests: os-prober |
afe8504a | 219 | Provides: bootloader |
fc835b5e | 220 | Conflicts: grub |
a2b4434b | 221 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 ia64 mips mipsel mips64 mips64el ppc ppc64 riscv32 riscv64 sparc64 |
afe8504a SP |
222 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
223 | ||
224 | %define _sbindir /sbin | |
4a00f3b7 | 225 | %define _bindir %{_sbindir} |
1536aaf2 | 226 | %define _libdir /lib |
e6fbd304 | 227 | %define _datadir %{_libdir} |
26e757db | 228 | %define _libexecdir %{_libdir}/grub |
1536aaf2 | 229 | %define _grubdir /boot/grub |
da9b7cf9 | 230 | %define _localedir /usr/share/locale |
9d44d75e | 231 | |
0e2cbb94 JK |
232 | # part of grub code is not relocable (these are not Linux libs) |
233 | # stack protector also breaks non-Linux binaries | |
8c5e5aa2 JR |
234 | # any kind of forced optimizations makes grub2 unreliable (random |
235 | # reboots and hangs on boot menu screen) | |
5bc5d891 | 236 | %define filterout_c -fPIC -O. |
5967241e | 237 | %undefine _ssp_cflags |
5bc5d891 | 238 | %undefine _fortify_cflags |
0e2cbb94 | 239 | |
afe8504a SP |
240 | %description |
241 | GRUB is a GPLed bootloader intended to unify bootloading across x86 | |
242 | operating systems. In addition to loading the Linux and *BSD kernels, | |
243 | it implements the Multiboot standard, which allows for flexible | |
244 | loading of multiple boot images (needed for modular kernels such as | |
245 | the GNU Hurd). | |
246 | ||
211df1ed ER |
247 | GRUB 2 is derived from PUPA which was a research project to |
248 | investigate the next generation of GRUB. GRUB 2 has been rewritten | |
249 | from scratch to clean up everything for modularity and portability. | |
250 | ||
251 | GRUB 2 targets at the following goals: | |
252 | - Scripting support, such as conditionals, loops, variables and | |
253 | functions. | |
254 | - Graphical interface. | |
255 | - Dynamic loading of modules in order to extend itself at the run time | |
256 | rather than at the build time. | |
257 | - Portability for various architectures. | |
258 | - Internationalization. This includes support for non-ASCII character | |
259 | code, message catalogs like gettext, fonts, graphics console, and so | |
260 | on. | |
261 | - Real memory management, to make GNU GRUB more extensible. | |
262 | - Modular, hierarchical, object-oriented framework for file systems, | |
263 | files, devices, drives, terminals, commands, partition tables and OS | |
264 | loaders. | |
265 | - Cross-platform installation which allows for installing GRUB from a | |
266 | different architecture. | |
267 | - Rescue mode saves unbootable cases. Stage 1.5 was eliminated. | |
268 | - Fix design mistakes in GRUB Legacy, which could not be solved for | |
269 | backward-compatibility, such as the way of numbering partitions. | |
270 | ||
6b0aefbf | 271 | %description -l de.UTF-8 |
afe8504a SP |
272 | GRUB (GRand Unified Boot-loader) ist ein Bootloader, der oft auf |
273 | Rechnern eingesetzt wird, auf denen das freie Betriebssystem Linux | |
6b0aefbf | 274 | läuft. GRUB löst den betagten LILO (Linux-Loader) ab. |
afe8504a SP |
275 | |
276 | GRUB wurde innerhalb des GNU Hurd-Projektes als Boot-Loader entwickelt | |
6b0aefbf JR |
277 | und wird unter der GPL vertrieben. Aufgrund seiner höheren |
278 | Flexibilität verdrängt GRUB in vielen Linux-Distributionen den | |
afe8504a SP |
279 | traditionellen Boot-Loader LILO. |
280 | ||
f97cafb4 ZU |
281 | %description -l hu.UTF-8 |
282 | GRUB egy GPL liszenszű rendszerbetöltő. Linux és *BSD kernelek | |
283 | betöltése mellett támogatja a Multiboot standard-ot, amely lehetővé | |
284 | teszi boot képek betöltését (moduláris kerneleknek kell, mint pl. a | |
285 | GNU Hurd). | |
286 | ||
287 | GRUB2 céljai a következők: | |
288 | - szkriptelés támogatása, úgymint feltételek, ciklusok, változók, | |
289 | függvények. | |
290 | - grafikus felület | |
291 | - modulok dinamikus betöltése futási időben | |
292 | - hordozhatóság több architektúrára | |
293 | - többnyelvűség: nem-ASCII karakterek támogatása, üzenetkatalógusok, | |
294 | mint gettext, betűtípusok, grafikus konzolon, és így tovább | |
295 | - valós memória kezelés, amellyel még bővíthetőbbé tehetjük | |
296 | - moduláris, hierarchikus, objektum-orientált keretrendszer | |
297 | fájlrendszerekhez, fájlokhoz, eszközökhöz, meghajtókhoz, | |
298 | terminálokhoz, parancsokhoz, partíciós táblákhoz és OS betöltőkhöz | |
299 | ||
6b0aefbf JR |
300 | %description -l es.UTF-8 |
301 | Éste es GRUB - Grand Unified Boot Loader - un administrador de | |
302 | inicialización capaz de entrar en la mayoría de los sistemas | |
afe8504a | 303 | operacionales libres - Linux, FreeBSD, NetBSD, GNU Mach, etc. como |
6b0aefbf | 304 | también en la mayoría de los sistemas operacionales comerciales para |
afe8504a SP |
305 | PC. |
306 | ||
307 | El administrador GRUB puede ser una buena alternativa a LILO, para | |
6b0aefbf JR |
308 | usuarios conmás experiencia y que deseen obtener más recursos de su |
309 | cargador de inicialización (boot loader). | |
afe8504a | 310 | |
6b0aefbf | 311 | %description -l pl.UTF-8 |
feaacba3 | 312 | GRUB jest bootloaderem na licencji GNU GPL, mającym na celu unifikację |
6b0aefbf | 313 | procesu bootowania na systemach x86. Potrafi nie tylko ładować jądra |
feaacba3 | 314 | Linuksa i *BSD: posiada również implementację standardu Multiboot, |
6b0aefbf JR |
315 | który pozwala na elastyczne ładowanie wielu obrazów bootowalnych |
316 | (czego wymagają modułowe jądra, takie jak GNU Hurd). | |
afe8504a | 317 | |
6b0aefbf JR |
318 | %description -l pt_BR.UTF-8 |
319 | Esse é o GRUB - Grand Unified Boot Loader - um gerenciador de boot | |
afe8504a SP |
320 | capaz de entrar na maioria dos sistemas operacionais livres - Linux, |
321 | FreeBSD, NetBSD, GNU Mach, etc. assim como na maioria dos sistemas | |
322 | operacionais comerciais para PC. | |
323 | ||
6b0aefbf JR |
324 | O GRUB pode ser uma boa alternativa ao LILO, para usuários mais |
325 | avançados e que querem mais recursos de seu boot loader. | |
afe8504a | 326 | |
565fe2e3 ER |
327 | %package -n bash-completion-%{name} |
328 | Summary: bash-completion for GRUB | |
feaacba3 | 329 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla GRUB-a |
565fe2e3 | 330 | Group: Applications/Shells |
a2b4434b | 331 | Requires: %{name} = %{version}-%{release} |
565fe2e3 | 332 | Requires: bash-completion |
d28207fb | 333 | BuildArch: noarch |
565fe2e3 ER |
334 | |
335 | %description -n bash-completion-%{name} | |
336 | This package provides bash-completion for GRUB. | |
337 | ||
338 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
feaacba3 | 339 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla GRUB-a. |
565fe2e3 | 340 | |
a2b4434b JB |
341 | %package fonts |
342 | Summary: Fonts for GRUB | |
343 | Summary(pl.UTF-8): Fonty dla GRUB-a | |
62081337 | 344 | Group: Base |
a2b4434b JB |
345 | Requires: %{name} = %{version}-%{release} |
346 | ||
347 | %description fonts | |
348 | Fonts for GRUB. | |
349 | ||
350 | %description fonts -l pl.UTF-8 | |
351 | Fonty dla GRUB-a. | |
352 | ||
353 | %package platform-arc | |
354 | Summary: MIPS ARC platform support for GRUB | |
355 | Summary(pl.UTF-8): Obsługa platformy MIPS ARC dla GRUB-a | |
356 | Group: Base | |
357 | Requires: %{name} = %{version}-%{release} | |
6d8475a4 | 358 | Provides: %{name}-platform = %{version}-%{release} |
1536aaf2 | 359 | |
a2b4434b JB |
360 | %description platform-arc |
361 | MIPS ARC platform support for GRUB. | |
1536aaf2 | 362 | |
a2b4434b JB |
363 | %description platform-arc -l pl.UTF-8 |
364 | Obsługa platformy MIPS ARC dla GRUB-a. | |
365 | ||
366 | %package platform-coreboot | |
367 | Summary: Coreboot (LinuxBIOS) platform support for GRUB | |
368 | Summary(pl.UTF-8): Obsługa platformy Coreboot (LinuxBIOS) dla GRUB-a | |
369 | Group: Base | |
370 | Requires: %{name} = %{version}-%{release} | |
371 | Requires: %{name}-fonts = %{version}-%{release} | |
372 | Provides: %{name}-platform = %{version}-%{release} | |
373 | ||
374 | %description platform-coreboot | |
375 | Coreboot (LinuxBIOS) platform support for GRUB. | |
376 | ||
377 | %description platform-coreboot -l pl.UTF-8 | |
378 | Obsługa platformy Coreboot (LinuxBIOS) dla GRUB-a. | |
feaacba3 | 379 | |
6d8475a4 | 380 | %package platform-efi |
1536aaf2 | 381 | Summary: (U)EFI platform support for GRUB |
feaacba3 | 382 | Summary(pl.UTF-8): Obsługa platformy (U)EFI dla GRUB-a |
1536aaf2 | 383 | Group: Base |
a2b4434b | 384 | Requires: %{name} = %{version}-%{release} |
6e81e1fe | 385 | Suggests: efibootmgr |
6d8475a4 | 386 | Provides: %{name}-platform = %{version}-%{release} |
1536aaf2 | 387 | |
6d8475a4 | 388 | %description platform-efi |
1536aaf2 JK |
389 | (U)EFI platform support for GRUB. |
390 | ||
feaacba3 JB |
391 | %description platform-efi -l pl.UTF-8 |
392 | Obsługa platformy (U)EFI dla GRUB-a. | |
393 | ||
a2b4434b JB |
394 | %package platform-ieee1275 |
395 | Summary: IEEE 1275 (OpenFirmware) platform support for GRUB | |
396 | Summary(pl.UTF-8): Obsługa platformy IEEE 1275 (OpenFirmware) dla GRUB-a | |
397 | Group: Base | |
398 | Requires: %{name} = %{version}-%{release} | |
399 | Provides: %{name}-platform = %{version}-%{release} | |
400 | ||
401 | %description platform-ieee1275 | |
402 | IEEE 1275 (OpenFirmware) platform support for GRUB. | |
403 | ||
404 | %description platform-ieee1275 -l pl.UTF-8 | |
405 | Obsługa platformy IEEE 1275 (OpenFirmware) dla GRUB-a. | |
406 | ||
407 | %package platform-loongson | |
408 | Summary: MIPS Loongson platform support for GRUB | |
409 | Summary(pl.UTF-8): Obsługa platformy MIPS Loongson dla GRUB-a | |
410 | Group: Base | |
411 | Requires: %{name} = %{version}-%{release} | |
412 | Requires: %{name}-fonts = %{version}-%{release} | |
413 | Provides: %{name}-platform = %{version}-%{release} | |
414 | ||
415 | %description platform-loongson | |
416 | MIPS Loongson (yeelong, fuloong) platform support for GRUB. | |
417 | ||
418 | %description platform-loongson -l pl.UTF-8 | |
419 | Obsługa platformy MIPS Loongson (yeelong, fuloong) dla GRUB-a. | |
420 | ||
421 | %package platform-multiboot | |
422 | Summary: Multiboot platform support for GRUB | |
423 | Summary(pl.UTF-8): Obsługa platformy Multiboot dla GRUB-a | |
424 | Group: Base | |
425 | Requires: %{name} = %{version}-%{release} | |
426 | Provides: %{name}-platform = %{version}-%{release} | |
427 | ||
428 | %description platform-multiboot | |
429 | Multiboot platform support for GRUB. | |
430 | ||
431 | %description platform-multiboot -l pl.UTF-8 | |
432 | Obsługa platformy Multiboot dla GRUB-a. | |
433 | ||
434 | %package platform-pc | |
435 | Summary: PC BIOS platform support for GRUB | |
436 | Summary(pl.UTF-8): Obsługa platformy PC BIOS dla GRUB-a | |
437 | Group: Base | |
438 | Requires: %{name} = %{version}-%{release} | |
439 | Provides: %{name}-platform = %{version}-%{release} | |
440 | ||
441 | %description platform-pc | |
442 | PC BIOS platform support for GRUB. | |
443 | ||
444 | %description platform-pc -l pl.UTF-8 | |
445 | Obsługa platformy PC BIOS dla GRUB-a. | |
446 | ||
447 | %package platform-qemu | |
448 | Summary: Qemu platform support for GRUB | |
449 | Summary(pl.UTF-8): Obsługa platformy Qemu dla GRUB-a | |
450 | Group: Base | |
451 | Requires: %{name} = %{version}-%{release} | |
452 | Requires: %{name}-fonts = %{version}-%{release} | |
453 | Provides: %{name}-platform = %{version}-%{release} | |
454 | ||
455 | %description platform-qemu | |
456 | Qemu platform support for GRUB. | |
457 | ||
458 | %description platform-qemu -l pl.UTF-8 | |
459 | Obsługa platformy Qemu dla GRUB-a. | |
460 | ||
461 | %package platform-uboot | |
462 | Summary: ARM uBoot platform support for GRUB | |
463 | Summary(pl.UTF-8): Obsługa platformy ARM uBoot dla GRUB-a | |
464 | Group: Base | |
465 | Requires: %{name} = %{version}-%{release} | |
466 | Provides: %{name}-platform = %{version}-%{release} | |
467 | ||
468 | %description platform-uboot | |
469 | ARM uBoot platform support for GRUB. | |
470 | ||
471 | %description platform-uboot -l pl.UTF-8 | |
472 | Obsługa platformy ARM uBoot dla GRUB-a. | |
473 | ||
474 | %package platform-xen | |
475 | Summary: Xen platform support for GRUB | |
476 | Summary(pl.UTF-8): Obsługa platformy Xen dla GRUB-a | |
477 | Group: Base | |
478 | Requires: %{name} = %{version}-%{release} | |
479 | Provides: %{name}-platform = %{version}-%{release} | |
480 | ||
481 | %description platform-xen | |
482 | Xen platform support for GRUB. | |
483 | ||
484 | %description platform-xen -l pl.UTF-8 | |
485 | Obsługa platformy Xen dla GRUB-a. | |
486 | ||
487 | %package platform-xen_pvh | |
488 | Summary: Xen PVH platform support for GRUB | |
489 | Summary(pl.UTF-8): Obsługa platformy Xen PVH dla GRUB-a | |
490 | Group: Base | |
491 | Requires: %{name} = %{version}-%{release} | |
492 | Provides: %{name}-platform = %{version}-%{release} | |
493 | ||
494 | %description platform-xen_pvh | |
495 | Xen PVH platform support for GRUB. | |
496 | ||
497 | %description platform-xen_pvh -l pl.UTF-8 | |
498 | Obsługa platformy Xen PVH dla GRUB-a. | |
499 | ||
7615a862 JK |
500 | %package mkfont |
501 | Summary: GRUB font files converter | |
feaacba3 | 502 | Summary(pl.UTF-8): Konwerter plików fontów GRUB-a |
7615a862 JK |
503 | Group: Base |
504 | ||
505 | %description mkfont | |
506 | Converts common font file formats into PF2. | |
507 | ||
feaacba3 JB |
508 | %description mkfont -l pl.UTF-8 |
509 | Program do konwersji popularnych formatów plików fontów do PF2. | |
510 | ||
8ac8605d JK |
511 | %package theme-starfield |
512 | Summary: starfield theme for GRUB | |
feaacba3 | 513 | Summary(pl.UTF-8): Motyw starfield dla GRUB-a |
a2b4434b | 514 | Requires: %{name} = %{version}-%{release} |
8ac8605d JK |
515 | Group: Base |
516 | ||
517 | %description theme-starfield | |
518 | starfield theme for GRUB. | |
519 | ||
feaacba3 JB |
520 | %description theme-starfield -l pl.UTF-8 |
521 | Motyw starfield dla GRUB-a. | |
522 | ||
afe8504a | 523 | %prep |
729e6097 | 524 | %setup -q -n grub-%{version} |
b46589aa | 525 | %patch1 -p1 |
872700b0 | 526 | %patch2 -p1 |
f951fcbe | 527 | %patch3 -p1 |
aec70abd | 528 | %patch4 -p1 |
f7ae30d0 | 529 | %patch5 -p1 |
668ecb01 JK |
530 | %patch6 -p1 |
531 | %patch7 -p1 | |
668ecb01 | 532 | %patch9 -p1 |
26996aed | 533 | %patch10 -p1 |
668ecb01 JK |
534 | %patch11 -p1 |
535 | %patch12 -p0 | |
c287192d | 536 | %patch13 -p1 |
f1c7b511 | 537 | %patch14 -p1 |
913f2b3c | 538 | %patch15 -p1 |
5bafb558 JK |
539 | |
540 | # we don't have C.utf-8 and need an UTF-8 locale for build | |
541 | sed -i -e 's/LC_ALL=C.UTF-8/LC_ALL=en_US.utf-8/g' po/Makefile* po/Rules* | |
afe8504a SP |
542 | |
543 | %build | |
928eb9c1 | 544 | # if gold is used then grub doesn't even boot |
9bc7aab3 AM |
545 | # https://savannah.gnu.org/bugs/?34539 |
546 | # http://sourceware.org/bugzilla/show_bug.cgi?id=14196 | |
7a73b7a5 | 547 | install -d our-ld |
70fd3248 | 548 | ln -f -s /usr/bin/ld.bfd our-ld/ld |
7a73b7a5 | 549 | export PATH=$(pwd)/our-ld:$PATH |
928eb9c1 | 550 | |
a2b4434b | 551 | ## not only the typical autotools stuff |
b876d99a JK |
552 | #./autogen.sh |
553 | ||
50ffb0ba | 554 | #{__gettextize} |
b876d99a JK |
555 | %{__aclocal} -I m4 |
556 | %{__autoconf} | |
557 | %{__autoheader} | |
558 | %{__automake} | |
12fd19f5 | 559 | |
1536aaf2 | 560 | for platform in %{platforms} ; do |
fc490c3e JK |
561 | install -d build-${platform} |
562 | cd build-${platform} | |
0e2cbb94 | 563 | |
75218533 JB |
564 | platform_opts="" |
565 | case platform in | |
566 | coreboot|ieee1275|multiboot|pc|qemu|xen_pvh) | |
feaacba3 | 567 | platform_opts="--enable-efiemu%{!?with_efiemu:=no}" |
75218533 JB |
568 | ;; |
569 | esac | |
0e2cbb94 | 570 | |
55d67ca1 | 571 | ln -f -s ../configure . |
1536aaf2 JK |
572 | # mawk stalls at ./genmoddep.awk, so force gawk |
573 | AWK=gawk \ | |
574 | %configure \ | |
575 | --with-platform=${platform} \ | |
576 | --disable-werror \ | |
18b992da | 577 | --enable-grub-themes \ |
1536aaf2 JK |
578 | %if %{with grubemu} |
579 | --enable-grub-emu-usb \ | |
580 | --enable-grub-emu-sdl \ | |
581 | --enable-grub-emu-pci \ | |
582 | %endif | |
0e2cbb94 | 583 | $platform_opts \ |
1536aaf2 JK |
584 | TARGET_LDFLAGS=-static |
585 | ||
ec98fb4c | 586 | %{__make} -j1 -C po update-gmo |
1536aaf2 JK |
587 | %{__make} |
588 | cd .. | |
589 | done | |
0fb8b1a5 | 590 | |
afe8504a SP |
591 | %install |
592 | rm -rf $RPM_BUILD_ROOT | |
afe8504a | 593 | |
1536aaf2 | 594 | for platform in %{platforms} ; do |
fc490c3e | 595 | cd build-${platform} |
1536aaf2 JK |
596 | %{__make} install \ |
597 | pkgdatadir=%{_libexecdir} \ | |
598 | pkglibdir=%{_libexecdir} \ | |
599 | DESTDIR=$RPM_BUILD_ROOT | |
600 | cd .. | |
601 | done | |
afe8504a | 602 | |
7615a862 JK |
603 | # not in Th (?) |
604 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de@hebrew | |
605 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/en@{arabic,cyrillic,greek,hebrew,piglatin} | |
606 | ||
f951fcbe AM |
607 | %find_lang grub |
608 | ||
bcd6a47e ER |
609 | # this must be after 'make install' |
610 | install -d $RPM_BUILD_ROOT%{_libexecdir}/locale | |
611 | ||
1536aaf2 JK |
612 | install -d $RPM_BUILD_ROOT%{_grubdir} |
613 | cp -p docs/grub.cfg $RPM_BUILD_ROOT%{_grubdir} | |
614 | ||
7b6caae9 | 615 | # grub.d/41_custom |
1536aaf2 | 616 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_grubdir}/custom.cfg |
7b6caae9 ER |
617 | %{__rm} $RPM_BUILD_ROOT/lib/grub.d/40_custom |
618 | ||
22909ca1 | 619 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/update-grub |
7b6caae9 ER |
620 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man8/update-grub.8 |
621 | ||
622 | install -d $RPM_BUILD_ROOT/etc/sysconfig | |
623 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/grub | |
624 | ||
625 | # rm -f, because it sometimes exists, sometimes not, depending which texlive you have installed | |
47069130 | 626 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
e2964b87 | 627 | |
feaacba3 | 628 | # platform specific, unnecessarily always installed |
50ffb0ba | 629 | %ifnarch %{ix86} %{x8664} x32 |
feaacba3 JB |
630 | %{__rm} $RPM_BUILD_ROOT{%{_sbindir}/grub-bios-setup,%{_mandir}/man8/grub-bios-setup.8} |
631 | %endif | |
632 | %ifnarch sparc64 | |
633 | %{__rm} $RPM_BUILD_ROOT{%{_sbindir}/grub-sparc64-setup,%{_mandir}/man8/grub-sparc64-setup.8} | |
634 | %endif | |
635 | ||
cbd79801 | 636 | # core.img - bootable image generated by grub-mkimage(1) via grub-install(1) |
1536aaf2 JK |
637 | touch $RPM_BUILD_ROOT%{_grubdir}/core.img |
638 | touch $RPM_BUILD_ROOT%{_grubdir}/device.map | |
cbd79801 | 639 | |
8b5c394b ER |
640 | # needs to be exactly 1KiB |
641 | # but we're ghosting it. so whom are we kidding here? :P (maybe %config it in future?) | |
1536aaf2 | 642 | dd bs=1024 if=/dev/zero count=1 of=$RPM_BUILD_ROOT%{_grubdir}/grubenv |
8b5c394b | 643 | |
afe8504a SP |
644 | %clean |
645 | rm -rf $RPM_BUILD_ROOT | |
646 | ||
5028d8c9 | 647 | %post -p %{_sbindir}/postshell |
fc58858a | 648 | -/usr/sbin/fix-info-dir -c %{_infodir} |
f4604ef8 | 649 | |
5028d8c9 | 650 | %postun -p %{_sbindir}/postshell |
fc58858a | 651 | -/usr/sbin/fix-info-dir -c %{_infodir} |
f4604ef8 | 652 | |
8c5e5aa2 JR |
653 | %triggerpostun -- %{name} < 2.00-2 |
654 | # Note this trigger on version upgrade needed only for upgrade from | |
655 | # old grub2 packages which contained modules in /boot/grub | |
701e14fb JB |
656 | # or were built with optimizations enabled. |
657 | # Don't do anything on --downgrade. | |
92904505 ER |
658 | if [ $1 -le 1 ]; then |
659 | exit 0 | |
660 | fi | |
661 | echo "Grub was upgraded, trying to setup it to boot sector" | |
662 | /sbin/grub-install '(hd0)' || : | |
663 | ||
701e14fb | 664 | # -- %{name} < 1.99-7.3 |
7b6caae9 ER |
665 | # migrate /etc/grub.d/custom.cfg.rpmsave -> /boot/grub/custom.cfg |
666 | if [ -f %{_sysconfdir}/grub.d/custom.cfg.rpmsave ]; then | |
1536aaf2 JK |
667 | cp -f %{_grubdir}/custom.cfg{,.rpmnew} |
668 | mv -f %{_sysconfdir}/grub.d/custom.cfg.rpmsave %{_grubdir}/custom.cfg | |
7b6caae9 ER |
669 | fi |
670 | ||
f951fcbe | 671 | %files -f grub.lang |
afe8504a | 672 | %defattr(644,root,root,755) |
2e4bec6f | 673 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
aec70abd | 674 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/grub |
71c933c0 | 675 | %attr(755,root,root) %{_sbindir}/grub-editenv |
3ea0c40e | 676 | %attr(755,root,root) %{_sbindir}/grub-fstest |
5bafb558 JK |
677 | %attr(755,root,root) %{_sbindir}/grub-file |
678 | %attr(755,root,root) %{_sbindir}/grub-glue-efi | |
e9d73181 | 679 | %attr(755,root,root) %{_sbindir}/grub-kbdcomp |
fc835b5e | 680 | %attr(755,root,root) %{_sbindir}/grub-install |
5bafb558 | 681 | %attr(755,root,root) %{_sbindir}/grub-macbless |
e9d73181 | 682 | %attr(755,root,root) %{_sbindir}/grub-menulst2cfg |
fc835b5e | 683 | %attr(755,root,root) %{_sbindir}/grub-mkconfig |
e9d73181 AM |
684 | %attr(755,root,root) %{_sbindir}/grub-mklayout |
685 | %attr(755,root,root) %{_sbindir}/grub-mknetdir | |
71c933c0 ER |
686 | %attr(755,root,root) %{_sbindir}/grub-mkpasswd-pbkdf2 |
687 | %attr(755,root,root) %{_sbindir}/grub-mkrelpath | |
688 | %attr(755,root,root) %{_sbindir}/grub-mkrescue | |
7615a862 JK |
689 | %attr(755,root,root) %{_sbindir}/grub-mkstandalone |
690 | %attr(755,root,root) %{_sbindir}/grub-mount | |
691 | %attr(755,root,root) %{_sbindir}/grub-ofpathname | |
71c933c0 | 692 | %attr(755,root,root) %{_sbindir}/grub-reboot |
5bafb558 | 693 | %attr(755,root,root) %{_sbindir}/grub-render-label |
71c933c0 ER |
694 | %attr(755,root,root) %{_sbindir}/grub-script-check |
695 | %attr(755,root,root) %{_sbindir}/grub-set-default | |
5bafb558 | 696 | %attr(755,root,root) %{_sbindir}/grub-syslinux2cfg |
22909ca1 | 697 | %attr(755,root,root) %{_sbindir}/update-grub |
50ffb0ba | 698 | %ifarch %{ix86} %{x8664} x32 |
feaacba3 JB |
699 | %attr(755,root,root) %{_sbindir}/grub-bios-setup |
700 | %{_mandir}/man8/grub-bios-setup.8* | |
701 | %endif | |
50ffb0ba | 702 | %ifarch %{ix86} %{x8664} x32 |
76be4c4a | 703 | %attr(755,root,root) %{_sbindir}/grub-mkimage |
fc835b5e | 704 | %{_mandir}/man1/grub-mkimage.1* |
76be4c4a AM |
705 | %else |
706 | %attr(755,root,root) %{_sbindir}/grub-probe | |
76be4c4a | 707 | %{_mandir}/man8/grub-probe.8* |
76be4c4a | 708 | %endif |
feaacba3 JB |
709 | %ifarch sparc64 |
710 | %attr(755,root,root) %{_sbindir}/grub-sparc64-setup | |
711 | %{_mandir}/man8/grub-sparc64-setup.8* | |
712 | %endif | |
71c933c0 | 713 | %{_mandir}/man1/grub-editenv.1* |
5bafb558 | 714 | %{_mandir}/man1/grub-file.1* |
3ea0c40e | 715 | %{_mandir}/man1/grub-fstest.1* |
5bafb558 | 716 | %{_mandir}/man1/grub-glue-efi.1* |
7615a862 | 717 | %{_mandir}/man1/grub-kbdcomp.1* |
e9d73181 | 718 | %{_mandir}/man1/grub-menulst2cfg.1* |
e9d73181 | 719 | %{_mandir}/man1/grub-mklayout.1* |
5bafb558 | 720 | %{_mandir}/man1/grub-mknetdir.1* |
71c933c0 | 721 | %{_mandir}/man1/grub-mkpasswd-pbkdf2.1* |
03b9d04b | 722 | %{_mandir}/man1/grub-mkrelpath.1* |
71c933c0 | 723 | %{_mandir}/man1/grub-mkrescue.1* |
7615a862 JK |
724 | %{_mandir}/man1/grub-mkstandalone.1* |
725 | %{_mandir}/man1/grub-mount.1* | |
5bafb558 | 726 | %{_mandir}/man1/grub-render-label.1* |
71c933c0 | 727 | %{_mandir}/man1/grub-script-check.1* |
5bafb558 | 728 | %{_mandir}/man1/grub-syslinux2cfg.1* |
71c933c0 | 729 | %{_mandir}/man8/grub-install.8* |
a4c52d96 | 730 | %{_mandir}/man8/grub-macbless.8* |
fc835b5e | 731 | %{_mandir}/man8/grub-mkconfig.8* |
7615a862 | 732 | %{_mandir}/man8/grub-ofpathname.8* |
71c933c0 ER |
733 | %{_mandir}/man8/grub-reboot.8* |
734 | %{_mandir}/man8/grub-set-default.8* | |
22909ca1 | 735 | %{_mandir}/man8/update-grub.8* |
797addca | 736 | %if %{with grubemu} |
8fcee4aa ER |
737 | %attr(755,root,root) %{_sbindir}/grub-emu |
738 | %{_mandir}/man8/grub-emu.8* | |
797addca | 739 | %endif |
e6fbd304 | 740 | %{_libexecdir}/grub-mkconfig_lib |
aec70abd | 741 | |
1536aaf2 | 742 | %dir %{_grubdir} |
26e757db | 743 | %dir %{_libexecdir} |
bcd6a47e | 744 | # XXX: check this locale dir location and if it is neccesaary to exist on /boot |
565fe2e3 | 745 | |
bcd6a47e | 746 | %dir %{_libexecdir}/locale |
1536aaf2 JK |
747 | %config(noreplace) %verify(not md5 mtime size) %{_grubdir}/grub.cfg |
748 | %config(noreplace) %verify(not md5 mtime size) %{_grubdir}/custom.cfg | |
aec70abd | 749 | |
cbd79801 | 750 | # generated by grub at runtime |
1536aaf2 JK |
751 | %ghost %{_grubdir}/device.map |
752 | %ghost %{_grubdir}/core.img | |
753 | %ghost %{_grubdir}/grubenv | |
cbd79801 | 754 | |
e2964b87 ER |
755 | %dir /lib/grub.d |
756 | %doc /lib/grub.d/README | |
757 | %attr(755,root,root) /lib/grub.d/00_header | |
758 | %attr(755,root,root) /lib/grub.d/10_linux | |
e9d73181 | 759 | %attr(755,root,root) /lib/grub.d/20_linux_xen |
e2964b87 | 760 | %attr(755,root,root) /lib/grub.d/30_os-prober |
e9d73181 | 761 | %attr(755,root,root) /lib/grub.d/41_custom |
e2964b87 | 762 | |
50ffb0ba | 763 | %ifarch %{ix86} %{x8664} x32 |
1ffaf1f6 | 764 | %attr(755,root,root) %{_sbindir}/grub-probe |
fc835b5e | 765 | %{_mandir}/man8/grub-probe.8* |
4a00f3b7 | 766 | %endif |
aec70abd | 767 | |
f4604ef8 | 768 | %{_infodir}/grub*.info* |
565fe2e3 | 769 | |
8ac8605d JK |
770 | %dir %{_datadir}/grub/themes |
771 | ||
e391ec8f JB |
772 | %files -n bash-completion-%{name} |
773 | %defattr(644,root,root,755) | |
774 | /etc/bash_completion.d/grub | |
775 | ||
a2b4434b JB |
776 | %if %{with unifont} |
777 | %files fonts | |
1536aaf2 | 778 | %defattr(644,root,root,755) |
a2b4434b JB |
779 | %{_libexecdir}/ascii.h |
780 | %{_libexecdir}/ascii.pf2 | |
781 | %{_libexecdir}/euro.pf2 | |
782 | %{_libexecdir}/unicode.pf2 | |
783 | %{_libexecdir}/widthspec.h | |
1536aaf2 | 784 | %endif |
a2b4434b JB |
785 | |
786 | %if %{with arc} | |
787 | %files platform-arc | |
788 | %defattr(644,root,root,755) | |
789 | %dir %{_libexecdir}/%{arc_arch}-arc | |
790 | %{_libexecdir}/%{arc_arch}-arc/modinfo.sh | |
791 | %{_libexecdir}/%{arc_arch}-arc/*.lst | |
792 | %{_libexecdir}/%{arc_arch}-arc/*.mod | |
793 | %{_libexecdir}/%{arc_arch}-arc/*.module | |
794 | %{_libexecdir}/%{arc_arch}-arc/config.h | |
795 | %{_libexecdir}/%{arc_arch}-arc/gdb_grub | |
796 | %{_libexecdir}/%{arc_arch}-arc/gmodule.pl | |
797 | %{_libexecdir}/%{arc_arch}-arc/kernel.exec | |
798 | %{_libexecdir}/%{arc_arch}-arc/kernel.img | |
1536aaf2 | 799 | %endif |
a2b4434b JB |
800 | |
801 | %if %{with coreboot} | |
802 | %files platform-coreboot | |
803 | %defattr(644,root,root,755) | |
804 | %dir %{_libexecdir}/%{coreboot_arch}-coreboot | |
805 | %{_libexecdir}/%{coreboot_arch}-coreboot/modinfo.sh | |
806 | %{_libexecdir}/%{coreboot_arch}-coreboot/*.lst | |
807 | %{_libexecdir}/%{coreboot_arch}-coreboot/*.mod | |
808 | %{_libexecdir}/%{coreboot_arch}-coreboot/*.module | |
809 | %{_libexecdir}/%{coreboot_arch}-coreboot/config.h | |
810 | %{_libexecdir}/%{coreboot_arch}-coreboot/gdb_grub | |
811 | %{_libexecdir}/%{coreboot_arch}-coreboot/gmodule.pl | |
812 | %{_libexecdir}/%{coreboot_arch}-coreboot/kernel.exec | |
813 | %{_libexecdir}/%{coreboot_arch}-coreboot/kernel.img | |
75218533 JB |
814 | %if %{with efiemu} |
815 | %{_libexecdir}/%{coreboot_arch}-coreboot/efiemu*.o | |
816 | %endif | |
1536aaf2 JK |
817 | %endif |
818 | ||
819 | %if %{with efi} | |
6d8475a4 | 820 | %files platform-efi |
1536aaf2 | 821 | %defattr(644,root,root,755) |
41468086 | 822 | %attr(755,root,root) /lib/grub.d/30_uefi-firmware |
a2b4434b JB |
823 | %dir %{_libexecdir}/%{efi_arch}-efi |
824 | %{_libexecdir}/%{efi_arch}-efi/modinfo.sh | |
825 | %{_libexecdir}/%{efi_arch}-efi/*.lst | |
826 | %{_libexecdir}/%{efi_arch}-efi/*.mod | |
827 | %{_libexecdir}/%{efi_arch}-efi/*.module | |
828 | %{_libexecdir}/%{efi_arch}-efi/config.h | |
829 | %{_libexecdir}/%{efi_arch}-efi/gdb_grub | |
830 | %{_libexecdir}/%{efi_arch}-efi/gmodule.pl | |
831 | %{_libexecdir}/%{efi_arch}-efi/kernel.exec | |
832 | %{_libexecdir}/%{efi_arch}-efi/kernel.img | |
833 | %endif | |
834 | ||
835 | %if %{with ieee1275} | |
836 | %files platform-ieee1275 | |
837 | %defattr(644,root,root,755) | |
838 | %dir %{_libexecdir}/%{ieee1275_arch}-ieee1275 | |
839 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/modinfo.sh | |
840 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/*.lst | |
841 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/*.mod | |
842 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/*.module | |
843 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/config.h | |
844 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/gdb_grub | |
845 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/gmodule.pl | |
846 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/kernel.exec | |
847 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/kernel.img | |
75218533 JB |
848 | %if %{with efiemu} |
849 | %{_libexecdir}/%{ieee1275_arch}-ieee1275/efiemu*.o | |
850 | %endif | |
a2b4434b JB |
851 | %endif |
852 | ||
853 | %if %{with multiboot} | |
854 | %files platform-multiboot | |
855 | %defattr(644,root,root,755) | |
856 | %dir %{_libexecdir}/i386-multiboot | |
857 | %{_libexecdir}/i386-multiboot/modinfo.sh | |
858 | %{_libexecdir}/i386-multiboot/*.lst | |
859 | %{_libexecdir}/i386-multiboot/*.mod | |
860 | %{_libexecdir}/i386-multiboot/*.module | |
861 | %{_libexecdir}/i386-multiboot/config.h | |
862 | %{_libexecdir}/i386-multiboot/gdb_grub | |
863 | %{_libexecdir}/i386-multiboot/gmodule.pl | |
864 | %{_libexecdir}/i386-multiboot/kernel.exec | |
865 | %{_libexecdir}/i386-multiboot/kernel.img | |
75218533 JB |
866 | %if %{with efiemu} |
867 | %{_libexecdir}/i386-multiboot/efiemu*.o | |
868 | %endif | |
a2b4434b JB |
869 | %endif |
870 | ||
871 | %if %{with pc} | |
872 | %files platform-pc | |
873 | %defattr(644,root,root,755) | |
874 | %dir %{_libexecdir}/i386-pc | |
875 | %{_libexecdir}/i386-pc/modinfo.sh | |
876 | %{_libexecdir}/i386-pc/*.lst | |
877 | %{_libexecdir}/i386-pc/*.mod | |
878 | %{_libexecdir}/i386-pc/*.module | |
879 | %{_libexecdir}/i386-pc/config.h | |
880 | %{_libexecdir}/i386-pc/gdb_grub | |
881 | %{_libexecdir}/i386-pc/gmodule.pl | |
882 | %{_libexecdir}/i386-pc/boot.image | |
883 | %{_libexecdir}/i386-pc/boot.img | |
884 | %{_libexecdir}/i386-pc/boot_hybrid.image | |
885 | %{_libexecdir}/i386-pc/boot_hybrid.img | |
886 | %{_libexecdir}/i386-pc/cdboot.image | |
887 | %{_libexecdir}/i386-pc/cdboot.img | |
888 | %{_libexecdir}/i386-pc/diskboot.image | |
889 | %{_libexecdir}/i386-pc/diskboot.img | |
890 | %{_libexecdir}/i386-pc/kernel.exec | |
891 | %{_libexecdir}/i386-pc/kernel.img | |
892 | %{_libexecdir}/i386-pc/lnxboot.image | |
893 | %{_libexecdir}/i386-pc/lnxboot.img | |
894 | %{_libexecdir}/i386-pc/lzma_decompress.image | |
895 | %{_libexecdir}/i386-pc/lzma_decompress.img | |
896 | %{_libexecdir}/i386-pc/pxeboot.image | |
897 | %{_libexecdir}/i386-pc/pxeboot.img | |
898 | %if %{with efiemu} | |
899 | %{_libexecdir}/i386-pc/efiemu*.o | |
900 | %endif | |
901 | %endif | |
902 | ||
903 | %if %{with qemu} | |
904 | %files platform-qemu | |
905 | %defattr(644,root,root,755) | |
906 | %dir %{_libexecdir}/%{qemu_arch}-%{qemu_plat} | |
907 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/modinfo.sh | |
908 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/*.lst | |
909 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/*.mod | |
910 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/*.module | |
911 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/config.h | |
912 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/gdb_grub | |
913 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/gmodule.pl | |
914 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/boot.image | |
915 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/boot.img | |
916 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/kernel.exec | |
917 | %{_libexecdir}/%{qemu_arch}-%{qemu_plat}/kernel.img | |
918 | %endif | |
919 | ||
920 | %if %{with uboot} | |
921 | %files platform-uboot | |
922 | %defattr(644,root,root,755) | |
923 | %dir %{_libexecdir}/arm-uboot | |
924 | %{_libexecdir}/arm-uboot/modinfo.sh | |
925 | %{_libexecdir}/arm-uboot/*.lst | |
926 | %{_libexecdir}/arm-uboot/*.mod | |
927 | %{_libexecdir}/arm-uboot/*.module | |
928 | %{_libexecdir}/arm-uboot/config.h | |
929 | %{_libexecdir}/arm-uboot/gdb_grub | |
930 | %{_libexecdir}/arm-uboot/gmodule.pl | |
931 | %{_libexecdir}/arm-uboot/kernel.exec | |
932 | %{_libexecdir}/arm-uboot/kernel.img | |
933 | %endif | |
934 | ||
935 | %if %{with xen} | |
936 | %files platform-xen | |
937 | %defattr(644,root,root,755) | |
938 | %dir %{_libexecdir}/%{xen_arch}-xen | |
939 | %{_libexecdir}/%{xen_arch}-xen/modinfo.sh | |
940 | %{_libexecdir}/%{xen_arch}-xen/*.lst | |
941 | %{_libexecdir}/%{xen_arch}-xen/*.mod | |
942 | %{_libexecdir}/%{xen_arch}-xen/*.module | |
943 | %{_libexecdir}/%{xen_arch}-xen/config.h | |
944 | %{_libexecdir}/%{xen_arch}-xen/gdb_grub | |
945 | %{_libexecdir}/%{xen_arch}-xen/gmodule.pl | |
946 | %{_libexecdir}/%{xen_arch}-xen/kernel.exec | |
947 | %{_libexecdir}/%{xen_arch}-xen/kernel.img | |
948 | %endif | |
949 | ||
950 | %if %{with xen_pvh} | |
951 | %files platform-xen_pvh | |
952 | %defattr(644,root,root,755) | |
953 | %dir %{_libexecdir}/i386-xen_pvh | |
954 | %{_libexecdir}/i386-xen_pvh/modinfo.sh | |
955 | %{_libexecdir}/i386-xen_pvh/*.lst | |
956 | %{_libexecdir}/i386-xen_pvh/*.mod | |
957 | %{_libexecdir}/i386-xen_pvh/*.module | |
958 | %{_libexecdir}/i386-xen_pvh/config.h | |
959 | %{_libexecdir}/i386-xen_pvh/gdb_grub | |
960 | %{_libexecdir}/i386-xen_pvh/gmodule.pl | |
961 | %{_libexecdir}/i386-xen_pvh/kernel.exec | |
962 | %{_libexecdir}/i386-xen_pvh/kernel.img | |
75218533 JB |
963 | %if %{with efiemu} |
964 | %{_libexecdir}/i386-xen_pvh/efiemu*.o | |
965 | %endif | |
1536aaf2 JK |
966 | %endif |
967 | ||
7615a862 JK |
968 | %files mkfont |
969 | %defattr(644,root,root,755) | |
7615a862 | 970 | %attr(755,root,root) %{_sbindir}/grub-mkfont |
feaacba3 | 971 | %{_mandir}/man1/grub-mkfont.1* |
7615a862 | 972 | |
8ac8605d JK |
973 | %files theme-starfield |
974 | %defattr(644,root,root,755) | |
975 | %{_datadir}/grub/themes/starfield |