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