0e50f1f
# Modules always contain just 32-bit code
0e50f1f
%define _libdir %{_exec_prefix}/lib
0e50f1f
e046631
# 64bit intel machines use 32bit boot loader
0e50f1f
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
0e50f1f
%ifarch x86_64
0e50f1f
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
0e50f1f
%endif
c95e580
# sparc is always compiled 64 bit
e046631
%ifarch %{sparc}
e046631
%define _target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu}
e046631
%endif
0e50f1f
95e479d
%if ! 0%{?efi}
8d4efa5
8c7f759
%global efi_only aarch64
8c7f759
%global efiarchs %{ix86} x86_64 ia64 %{efi_only}
8d4efa5
8d4efa5
%ifarch %{ix86}
8d4efa5
%global grubefiarch i386-efi
8d4efa5
%global grubefiname grubia32.efi
5d4d477
%global grubeficdname gcdia32.efi
8d4efa5
%endif
8d4efa5
%ifarch x86_64
8d4efa5
%global grubefiarch %{_arch}-efi
8d4efa5
%global grubefiname grubx64.efi
5d4d477
%global grubeficdname gcdx64.efi
95e479d
%endif
8c7f759
%ifarch aarch64
8c7f759
%global grubefiarch arm64-efi
8c7f759
%global grubefiname grubaa64.efi
8c7f759
%global grubeficdname gcdaa64.efi
8c7f759
%endif
95e479d
8d4efa5
%if 0%{?rhel}
8d4efa5
%global efidir redhat
8d4efa5
%endif
8d4efa5
%if 0%{?fedora}
8d4efa5
%global efidir fedora
8d4efa5
%endif
28678c2
8d4efa5
%endif
58d787e
481bf3b
%global tarversion 2.02~beta2
28678c2
%undefine _missing_build_ids_terminate_build
28678c2
0e50f1f
Name:           grub2
e98789b
Epoch:          1
481bf3b
Version:        2.02
4dcaf21
Release:        0.8%{?dist}
0e50f1f
Summary:        Bootloader with support for Linux, Multiboot and more
0e50f1f
0e50f1f
Group:          System Environment/Base
0e50f1f
License:        GPLv3+
0e50f1f
URL:            http://www.gnu.org/software/grub/
328405c
Obsoletes:	grub < 1:0.98
50b9a85
Source0:        ftp://alpha.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
481bf3b
#Source0:	ftp://ftp.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
f06903e
Source4:	http://unifoundry.com/unifont-5.1.20080820.pcf.gz
83183d5
Source5:	theme.tar.bz2
4dcaf21
Source6:	gitignore
78a3d7d
78a3d7d
Patch0001: 0001-fix-EFI-detection-on-Windows.patch
78a3d7d
Patch0002: 0002-grub-core-kern-arm-cache_armv6.S-Remove-.arch-direct.patch
3f2879c
Patch0003: 0003-INSTALL-Cross-compiling-the-GRUB-Fix-some-spelling-m.patch
3f2879c
Patch0004: 0004-NEWS-First-draft-of-2.02-entry.patch
011fe81
Patch0005: 0005-Merge-branch-master-of-git.sv.gnu.org-srv-git-grub.patch
011fe81
Patch0006: 0006-NEWS-The-cmosclean-command-in-fact-dates-back-to-1.9.patch
011fe81
Patch0007: 0007-remove-unused-error.h-from-kern-emu-misc.c.patch
011fe81
Patch0008: 0008-Don-t-abort-on-unavailable-coreboot-tables-if-not-ru.patch
011fe81
Patch0009: 0009-NEWS-Add-few-missing-entries.-Correct-existing-ones.patch
011fe81
Patch0010: 0010-strip-.eh_frame-section-from-arm64-efi-kernel.patch
011fe81
Patch0011: 0011-use-grub-boot-aa64.efi-for-boot-images-on-AArch64.patch
011fe81
Patch0012: 0012-fix-32-bit-compilation-on-MinGW-w64.patch
011fe81
Patch0013: 0013-Change-grub-mkrescue-to-use-bootaa64.efi-too.patch
011fe81
Patch0014: 0014-arm64-set-correct-length-of-device-path-end-entry.patch
011fe81
Patch0015: 0015-Makefile.util.def-grub-macbless-Change-mansection-to.patch
011fe81
Patch0016: 0016-add-part_apple-to-EFI-rescue-image-to-fix-missing-pr.patch
011fe81
Patch0017: 0017-freebsd-hostdisk.c-is-only-ever-compiled-on-FreeBSD.patch
011fe81
Patch0018: 0018-Prefer-more-portable-test-1-constructs.patch
011fe81
Patch0019: 0019-NEWS-Add-few-missing-entries.patch
011fe81
Patch0020: 0020-grub-core-kern-efi-efi.c-Ensure-that-the-result-star.patch
011fe81
Patch0021: 0021-util-grub-mount.c-Extend-GCC-warning-workaround-to-g.patch
011fe81
Patch0022: 0022-reintroduce-BUILD_LDFLAGS-for-the-cross-compile-case.patch
011fe81
Patch0023: 0023-grub-core-term-terminfo.c-Recognize-keys-F1-F12.patch
011fe81
Patch0024: 0024-Fix-ChangeLog-date.patch
011fe81
Patch0025: 0025-Use-_W64-to-detect-MinGW-W64-32-instead-of-_FILE_OFF.patch
011fe81
Patch0026: 0026-add-BUILD_EXEEXT-support-to-fix-make-clean-on-Window.patch
011fe81
Patch0027: 0027-fix-include-loop-on-MinGW-due-to-libintl.h-pulling-s.patch
011fe81
Patch0028: 0028-grub-core-commands-macbless.c-Rename-FILE-and-DIR-to.patch
011fe81
Patch0029: 0029-Makefile.util.def-Link-grub-ofpathname-with-zfs-libs.patch
011fe81
Patch0030: 0030-Makefile.am-default_payload.elf-Add-modules.patch
011fe81
Patch0031: 0031-fix-removal-of-cpu-machine-links-on-mingw-msys.patch
011fe81
Patch0032: 0032-grub-core-normal-main.c-read_config_file-Buffer-conf.patch
011fe81
Patch0033: 0033-util-grub-install.c-Fix-a-typo.patch
011fe81
Patch0034: 0034-use-MODULE_FILES-for-genemuinit-instead-of-MOD_FILES.patch
011fe81
Patch0035: 0035-Ignore-EPERM-when-modifying-kern.geom.debugflags.patch
011fe81
Patch0036: 0036-change-stop-condition-to-avoid-infinite-loops.patch
011fe81
Patch0037: 0037-increase-network-try-interval-gradually.patch
011fe81
Patch0038: 0038-look-for-DejaVu-also-in-usr-share-fonts-truetype.patch
011fe81
Patch0039: 0039-Show-detected-path-to-DejaVuSans-in-configure-summar.patch
011fe81
Patch0040: 0040-add-GRUB_WINDOWS_EXTRA_DIST-to-allow-shipping-runtim.patch
011fe81
Patch0041: 0041-util-grub-install.c-write_to_disk-Add-an-info-messag.patch
011fe81
Patch0042: 0042-util-grub-install.c-List-available-targets.patch
011fe81
Patch0043: 0043-Fix-several-translatable-strings.patch
011fe81
Patch0044: 0044-do-not-set-default-prefix-in-grub-mkimage.patch
011fe81
Patch0045: 0045-fix-Mingw-W64-32-cross-compile-failure-due-to-printf.patch
011fe81
Patch0046: 0046-grub-core-term-serial.c-grub_serial_register-Fix-inv.patch
011fe81
Patch0047: 0047-grub-install-support-for-partitioned-partx-loop-devi.patch
011fe81
Patch0048: 0048-grub-core-term-at_keyboard.c-Tolerate-missing-keyboa.patch
011fe81
Patch0049: 0049-.gitignore-add-missing-files-and-.exe-variants.patch
011fe81
Patch0050: 0050-util-grub-mkfont.c-Downgrade-warnings-about-unhandle.patch
011fe81
Patch0051: 0051-grub-core-disk-ahci.c-Do-not-enable-I-O-decoding-and.patch
011fe81
Patch0052: 0052-grub-core-disk-ahci.c-Allocate-and-clean-space-for-a.patch
011fe81
Patch0053: 0053-grub-core-disk-ahci.c-Add-safety-cleanups.patch
011fe81
Patch0054: 0054-grub-core-disk-ahci.c-Properly-handle-transactions-w.patch
011fe81
Patch0055: 0055-grub-core-disk-ahci.c-Increase-timeout.-Some-SSDs-ta.patch
011fe81
Patch0056: 0056-util-grub-mkfont.c-Build-fix-for-argp.h-with-older-g.patch
011fe81
Patch0057: 0057-util-grub-mkrescue.c-Build-fix-for-argp.h-with-older.patch
011fe81
Patch0058: 0058-add-grub_env_set_net_property-function.patch
011fe81
Patch0059: 0059-add-bootpath-parser-for-open-firmware.patch
011fe81
Patch0060: 0060-grub-core-disk-ahci.c-Ignore-NPORTS-field-and-rely-o.patch
011fe81
Patch0061: 0061-grub-core-kern-i386-coreboot-mmap.c-Filter-out-0xa00.patch
011fe81
Patch0062: 0062-grub-core-loader-i386-multiboot_mbi.c-grub_multiboot.patch
011fe81
Patch0063: 0063-grub-core-mmap-i386-uppermem.c-lower_hook-COREBOOT-I.patch
011fe81
Patch0064: 0064-grub-core-kern-i386-pc-mmap.c-Fallback-to-EISA-memor.patch
011fe81
Patch0065: 0065-include-grub-i386-openbsd_bootarg.h-Add-addr-and-fre.patch
011fe81
Patch0066: 0066-ieee1275-check-for-IBM-pseries-emulated-machine.patch
011fe81
Patch0067: 0067-grub-core-loader-arm64-linux.c-Remove-redundant-0x.patch
011fe81
Patch0068: 0068-grub-core-lib-relocator.c-Fix-the-case-when-end-of-l.patch
011fe81
Patch0069: 0069-Fix-grub-probe-0-option.patch
011fe81
Patch0070: 0070-Fix-partmap-cryptodisk-and-abstraction-handling-in-g.patch
011fe81
Patch0071: 0071-btrfs-fix-get_root-key-comparison-failures-due-to-en.patch
011fe81
Patch0072: 0072-grub-core-osdep-linux-getroot.c-grub_util_part_to_di.patch
011fe81
Patch0073: 0073-Replace-few-instances-of-memcmp-memcpy-in-the-code-t.patch
011fe81
Patch0074: 0074-include-grub-libgcc.h-Remove-ctzsi2-and-ctzdi2.-They.patch
011fe81
Patch0075: 0075-Add-missing-endif.patch
011fe81
Patch0076: 0076-grub-core-lib-syslinux_parse.c-Fix-timeout-quoting.patch
011fe81
Patch0077: 0077-Improve-LVM-logical_volumes-string-matching.patch
011fe81
Patch0078: 0078-Tolerate-devices-with-no-filesystem-UUID-returned-by.patch
011fe81
Patch0079: 0079-Allow-loading-old-kernels-by-placing-GDT-in-conventi.patch
011fe81
Patch0080: 0080-grub-core-kern-misc.c-__bzero-Don-t-compile-in-GRUB_.patch
011fe81
Patch0081: 0081-grub-core-commands-verify.c-grub_pubkey_open-Fix-mem.patch
011fe81
Patch0082: 0082-grub-core-commands-verify.c-grub_pubkey_open-Trust-p.patch
011fe81
Patch0083: 0083-util-grub-gen-asciih.c-add_glyph-Fix-uninitialised-v.patch
011fe81
Patch0084: 0084-grub-core-commands-efi-lsefisystab.c-grub_cmd_lsefis.patch
011fe81
Patch0085: 0085-grub-core-loader-i386-bsd.c-grub_netbsd_boot-Pass-po.patch
011fe81
Patch0086: 0086-util-grub-install.c-Fix-handling-of-disk-module.patch
011fe81
Patch0087: 0087-grub-core-commands-loadenv.c-check_blocklists-Fix-ov.patch
011fe81
Patch0088: 0088-NEWS-The-cmosclean-command-in-fact-dates-back-to-1.9.patch
011fe81
Patch0089: 0089-Migrate-PPC-from-Yaboot-to-Grub2.patch
011fe81
Patch0090: 0090-Add-fw_path-variable-revised.patch
011fe81
Patch0091: 0091-Add-support-for-linuxefi.patch
011fe81
Patch0092: 0092-Use-linuxefi-and-initrdefi-where-appropriate.patch
011fe81
Patch0093: 0093-Don-t-allow-insmod-when-secure-boot-is-enabled.patch
011fe81
Patch0094: 0094-Pass-x-hex-hex-straight-through-unmolested.patch
011fe81
Patch0095: 0095-Fix-crash-on-http.patch
011fe81
Patch0096: 0096-IBM-client-architecture-CAS-reboot-support.patch
011fe81
Patch0097: 0097-Add-vlan-tag-support.patch
011fe81
Patch0098: 0098-Add-X-option-to-printf-functions.patch
011fe81
Patch0099: 0099-DHCP-client-ID-and-UUID-options-added.patch
011fe81
Patch0100: 0100-Search-for-specific-config-file-for-netboot.patch
011fe81
Patch0101: 0101-blscfg-add-blscfg-module-to-parse-Boot-Loader-Specif.patch
011fe81
Patch0102: 0102-Move-bash-completion-script-922997.patch
011fe81
Patch0103: 0103-for-ppc-reset-console-display-attr-when-clear-screen.patch
011fe81
Patch0104: 0104-Don-t-write-messages-to-the-screen.patch
011fe81
Patch0105: 0105-Don-t-print-GNU-GRUB-header.patch
011fe81
Patch0106: 0106-Don-t-add-to-highlighted-row.patch
011fe81
Patch0107: 0107-Message-string-cleanups.patch
011fe81
Patch0108: 0108-Fix-border-spacing-now-that-we-aren-t-displaying-it.patch
011fe81
Patch0109: 0109-Use-the-correct-indentation-for-the-term-help-text.patch
011fe81
Patch0110: 0110-Indent-menu-entries.patch
011fe81
Patch0111: 0111-Fix-margins.patch
011fe81
Patch0112: 0112-Add-support-for-UEFI-operating-systems-returned-by-o.patch
011fe81
Patch0113: 0113-Disable-GRUB-video-support-for-IBM-power-machines.patch
011fe81
Patch0114: 0114-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
011fe81
Patch0115: 0115-Use-linux16-when-appropriate-880840.patch
011fe81
Patch0116: 0116-Enable-pager-by-default.-985860.patch
011fe81
Patch0117: 0117-F10-doesn-t-work-on-serial-so-don-t-tell-the-user-to.patch
011fe81
Patch0118: 0118-Don-t-say-GNU-Linux-in-generated-menus.patch
011fe81
Patch0119: 0119-Don-t-draw-a-border-around-the-menu.patch
011fe81
Patch0120: 0120-Use-the-standard-margin-for-the-timeout-string.patch
011fe81
Patch0121: 0121-Fix-grub_script_execute_sourcecode-usage-on-ppc.patch
011fe81
Patch0122: 0122-Add-.eh_frame-to-list-of-relocations-stripped.patch
011fe81
Patch0123: 0123-Make-10_linux-work-with-our-changes-for-linux16-and-.patch
011fe81
Patch0124: 0124-Don-t-print-during-fdt-loading-method.patch
011fe81
Patch0125: 0125-Honor-a-symlink-when-generating-configuration-by-gru.patch
f178927
Patch0126: 0126-Don-t-munge-raw-spaces-when-we-re-doing-our-cmdline-.patch
37b39b7
Patch0127: 0127-Don-t-require-a-password-to-boot-entries-generated-b.patch
37b39b7
Patch0128: 0128-Don-t-emit-Booting-.-message.patch
37b39b7
Patch0129: 0129-Make-CTRL-and-ALT-keys-work-as-expected-on-EFI-syste.patch
37b39b7
Patch0130: 0130-May-as-well-try-it.patch
37b39b7
Patch0131: 0131-use-fw_path-prefix-when-fallback-searching-for-grub-.patch
37b39b7
Patch0132: 0132-Try-mac-guid-etc-before-grub.cfg-on-tftp-config-file.patch
37b39b7
Patch0133: 0133-trim-arp-packets-with-abnormal-size.patch
37b39b7
Patch0134: 0134-Fix-convert-function-to-support-NVMe-devices.patch
37b39b7
Patch0135: 0135-Fix-bad-test-on-GRUB_DISABLE_SUBMENU.patch
37b39b7
Patch0136: 0136-Switch-to-use-APM-Mustang-device-tree-for-hardware-t.patch
37b39b7
Patch0137: 0137-Use-the-default-device-tree-from-the-grub-default-fi.patch
37b39b7
Patch0138: 0138-reopen-SNP-protocol-for-exclusive-use-by-grub.patch
37b39b7
Patch0139: 0139-Reduce-timer-event-frequency-by-10.patch
37b39b7
Patch0140: 0140-always-return-error-to-UEFI.patch
4dcaf21
Patch0141: 0141-Add-powerpc-little-endian-ppc64le-flags.patch
4dcaf21
Patch0142: 0142-Files-reorganization-and-include-some-libgcc-fuction.patch
4dcaf21
Patch0143: 0143-Suport-for-bi-endianess-in-elf-file.patch
9ccddf4
Patch0144: 0144-Add-grub_util_readlink.patch
9ccddf4
Patch0145: 0145-Make-editenv-chase-symlinks-including-those-across-d.patch
5206323
95e479d
BuildRequires:  flex bison binutils python
78a3d7d
BuildRequires:  ncurses-devel xz-devel bzip2-devel
5e0037e
BuildRequires:  freetype-devel libusb-devel
4dcaf21
%ifarch %{sparc} x86_64 aarch64 ppc64le
c95e580
# sparc builds need 64 bit glibc-devel - also for 32 bit userland
cd7223a
BuildRequires:  /usr/lib64/crt1.o glibc-static
cd7223a
%else
c95e580
# ppc64 builds need the ppc crt1.o
cd7223a
BuildRequires:  /usr/lib/crt1.o glibc-static
cd7223a
%endif
1fcd613
BuildRequires:  autoconf automake autogen device-mapper-devel
1fcd613
BuildRequires:	freetype-devel gettext-devel git
b87b26e
BuildRequires:	texinfo
171aabb
BuildRequires:	dejavu-sans-fonts
William Jon McCann 909ac68
BuildRequires:	help2man
David Cantrell d38088e
%ifarch %{efiarchs}
8c7f759
%ifnarch aarch64
66cba4f
BuildRequires:	pesign >= 0.99-8
David Cantrell d38088e
%endif
8c7f759
%endif
0e50f1f
fa0bb1c
Requires:	gettext os-prober which file
8273501
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
a736a84
Requires(pre):  dracut
a736a84
Requires(post): dracut
0e50f1f
47b7f15
ExcludeArch:	s390 s390x %{arm}
8fc7297
Obsoletes:	grub2 <= 1:2.00-20%{?dist}
0e50f1f
0e50f1f
%description
95e479d
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
95e479d
bootloader with modular architecture.  It support rich varietyof kernel formats,
9ef0c08
file systems, computer architectures and hardware devices.  This subpackage
9ef0c08
provides support for PC BIOS systems.
95e479d
420dddc
%ifarch %{efiarchs}
95e479d
%package efi
95e479d
Summary:	GRUB for EFI systems.
95e479d
Group:		System Environment/Base
efff1af
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
8fc7297
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
95e479d
95e479d
%description efi
95e479d
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
95e479d
bootloader with modular architecture.  It support rich varietyof kernel formats,
95e479d
file systems, computer architectures and hardware devices.  This subpackage
95e479d
provides support for EFI systems.
7d5b63a
7d5b63a
%package efi-modules
7d5b63a
Summary:	Modules used to build custom grub.efi images
7d5b63a
Group:		System Environment/Base
7d5b63a
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
7d5b63a
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
7d5b63a
7d5b63a
%description efi-modules
7d5b63a
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
7d5b63a
bootloader with modular architecture.  It support rich varietyof kernel formats,
7d5b63a
file systems, computer architectures and hardware devices.  This subpackage
7d5b63a
provides support for rebuilding your own grub.efi on EFI systems.
95e479d
%endif
0e50f1f
9ef0c08
%package tools
9ef0c08
Summary:	Support tools for GRUB.
9ef0c08
Group:		System Environment/Base
9ef0c08
Requires:	gettext os-prober which file system-logos
9ef0c08
9ef0c08
%description tools
9ef0c08
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
9ef0c08
bootloader with modular architecture.  It support rich varietyof kernel formats,
9ef0c08
file systems, computer architectures and hardware devices.  This subpackage
9ef0c08
provides tools for support of all platforms.
9ef0c08
fa0bb1c
%package starfield-theme
fa0bb1c
Summary:	An example theme for GRUB.
fa0bb1c
Group:		System Environment/Base
fa0bb1c
Requires:	system-logos
8fc7297
Obsoletes:	grub2 <= 1:2.00-20%{?dist}
8fc7297
Obsoletes:	grub2-efi <= 1:2.00-20%{?dist}
fa0bb1c
fa0bb1c
%description starfield-theme
fa0bb1c
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
fa0bb1c
bootloader with modular architecture.  It support rich varietyof kernel formats,
fa0bb1c
file systems, computer architectures and hardware devices.  This subpackage
fa0bb1c
provides an example theme for the grub screen.
fa0bb1c
0e50f1f
%prep
28678c2
%setup -T -c -n grub-%{tarversion}
420dddc
%ifarch %{efiarchs}
28678c2
%setup -D -q -T -a 0 -n grub-%{tarversion}
28678c2
cd grub-%{tarversion}
f06903e
# place unifont in the '.' from which configure is run
f06903e
cp %{SOURCE4} unifont.pcf.gz
4dcaf21
cp %{SOURCE6} .gitignore
1fcd613
git init
aec4448
git config user.email "grub2-owner@fedoraproject.org"
1fcd613
git config user.name "Fedora Ninjas"
1fcd613
git add .
28678c2
git commit -a -q -m "%{tarversion} baseline."
1fcd613
git am %{patches}
95e479d
cd ..
28678c2
mv grub-%{tarversion} grub-efi-%{tarversion}
95e479d
%endif
8c7f759
8c7f759
%ifarch %{efi_only}
8c7f759
ln -s grub-efi-%{tarversion} grub-%{tarversion}
8c7f759
%else
28678c2
%setup -D -q -T -a 0 -n grub-%{tarversion}
28678c2
cd grub-%{tarversion}
f06903e
# place unifont in the '.' from which configure is run
f06903e
cp %{SOURCE4} unifont.pcf.gz
4dcaf21
cp %{SOURCE6} .gitignore
95e479d
git init
aec4448
git config user.email "grub2-owner@fedoraproject.org"
95e479d
git config user.name "Fedora Ninjas"
95e479d
git add .
28678c2
git commit -a -q -m "%{tarversion} baseline."
95e479d
git am %{patches}
8c7f759
%endif
ca74990
0e50f1f
%build
420dddc
%ifarch %{efiarchs}
28678c2
cd grub-efi-%{tarversion}
95e479d
./autogen.sh
ee1d6da
%configure							\
ee1d6da
	CFLAGS="$(echo $RPM_OPT_FLAGS | sed			\
62a7c9b
		-e 's/-O.//g'					\
864f365
		-e 's/-fstack-protector[[:alpha:]-]\+//g'	\
ab37733
		-e 's/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]\+//g'	\
ee1d6da
		-e 's/--param=ssp-buffer-size=4//g'		\
d5f7428
		-e 's/-mregparm=3/-mregparm=4/g'		\
ee1d6da
		-e 's/-fexceptions//g'				\
95e3ce4
		-e 's/-fasynchronous-unwind-tables//g'		\
864f365
		-e 's/^/ -fno-strict-aliasing /' )"		\
ee1d6da
	TARGET_LDFLAGS=-static					\
ee1d6da
        --with-platform=efi					\
6092ed7
	--with-grubdir=%{name}					\
1d74d59
        --program-transform-name=s,grub,%{name},		\
31004e6
	--disable-grub-mount					\
f06903e
	--disable-werror
95e479d
make %{?_smp_mflags}
84fdd02
2ea29c3
GRUB_MODULES="	all_video boot btrfs cat chain configfile echo efifwsetup \
58a808c
		efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 \
9ccddf4
		jpeg loadenv lvm mdraid09 mdraid1x minicmd normal part_apple \
8c7f759
		part_msdos part_gpt password_pbkdf2 png reboot search \
34a92f2
		search_fs_uuid search_fs_file search_label sleep syslinuxcfg \
84fdd02
		test tftp video xfs"
8c7f759
%ifarch aarch64
8c7f759
GRUB_MODULES="${GRUB_MODULES} linux"
8c7f759
%else
8c7f759
GRUB_MODULES+="${GRUB_MODULES} linuxefi multiboot2 multiboot"
8c7f759
%endif
8c7f759
./grub-mkimage -O %{grubefiarch} -o %{grubefiname}.orig -p /EFI/%{efidir} \
8c7f759
		-d grub-core ${GRUB_MODULES}
8c7f759
%ifarch aarch64
8c7f759
mv %{grubefiname}.orig %{grubefiname}
8c7f759
%else
5d4d477
./grub-mkimage -O %{grubefiarch} -o %{grubeficdname}.orig -p /EFI/BOOT \
2ea29c3
		-d grub-core ${GRUB_MODULES}
31004e6
%pesign -s -i %{grubeficdname}.orig -o %{grubeficdname}
31004e6
%pesign -s -i %{grubefiname}.orig -o %{grubefiname}
8c7f759
%endif
95e479d
cd ..
95e479d
%endif
95e479d
28678c2
cd grub-%{tarversion}
8c7f759
%ifnarch %{efi_only}
95e479d
./autogen.sh
0e50f1f
# -static is needed so that autoconf script is able to link
0e50f1f
# test that looks for _start symbol on 64 bit platforms
4dcaf21
%ifarch %{sparc} ppc ppc64 ppc64le
28678c2
%define platform ieee1275
e046631
%else
28678c2
%define platform pc
e046631
%endif
ee1d6da
%configure							\
ee1d6da
	CFLAGS="$(echo $RPM_OPT_FLAGS | sed			\
645dc62
		-e 's/-O.//g'					\
864f365
		-e 's/-fstack-protector[[:alpha:]-]\+//g'	\
ab37733
		-e 's/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]\+//g'	\
ee1d6da
		-e 's/--param=ssp-buffer-size=4//g'		\
d5f7428
		-e 's/-mregparm=3/-mregparm=4/g'		\
ee1d6da
		-e 's/-fexceptions//g'				\
ee1d6da
		-e 's/-m64//g'					\
95e3ce4
		-e 's/-fasynchronous-unwind-tables//g'		\
95e3ce4
		-e 's/-mcpu=power7/-mcpu=power6/g'		\
864f365
		-e 's/^/ -fno-strict-aliasing /' )"		\
ee1d6da
	TARGET_LDFLAGS=-static					\
28678c2
        --with-platform=%{platform}				\
6092ed7
	--with-grubdir=%{name}					\
ee1d6da
        --program-transform-name=s,grub,%{name},		\
31004e6
	--disable-grub-mount					\
f06903e
	--disable-werror
0e50f1f
e046631
make %{?_smp_mflags}
8c7f759
%endif
0e50f1f
ee18b8d
sed -i -e 's,(grub),(%{name}),g' \
ee18b8d
	-e 's,grub.info,%{name}.info,g' \
ee18b8d
	-e 's,\* GRUB:,* GRUB2:,g' \
51c2ea7
	-e 's,/boot/grub/,/boot/%{name}/,g' \
0f31deb
	-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
ee18b8d
	docs/grub.info
ee18b8d
sed -i -e 's,grub-dev,%{name}-dev,g' docs/grub-dev.info
ee18b8d
0f31deb
/usr/bin/makeinfo --html --no-split -I docs -o grub-dev.html docs/grub-dev.texi
0f31deb
/usr/bin/makeinfo --html --no-split -I docs -o grub.html docs/grub.texi
0f31deb
sed -i	-e 's,/boot/grub/,/boot/%{name}/,g' \
0f31deb
	-e 's,\([^-]\)grub-\([a-z]\),\1%{name}-\2,g' \
0f31deb
	grub.html
0f31deb
0e50f1f
%install
0e50f1f
set -e
0e50f1f
rm -fr $RPM_BUILD_ROOT
95e479d
420dddc
%ifarch %{efiarchs}
28678c2
cd grub-efi-%{tarversion}
95e479d
make DESTDIR=$RPM_BUILD_ROOT install
c849461
find $RPM_BUILD_ROOT -iname "*.module" -exec chmod a-x {} \;
95e479d
95e479d
# Ghost config file
8d4efa5
install -m 755 -d $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
8d4efa5
touch $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/grub.cfg
8d4efa5
ln -s ../boot/efi/EFI/%{efidir}/grub.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-efi.cfg
95e479d
8d4efa5
install -m 755 %{grubefiname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubefiname}
8c7f759
%ifnarch aarch64
5d4d477
install -m 755 %{grubeficdname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubeficdname}
8c7f759
%endif
58a808c
install -D -m 644 unicode.pf2 $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/fonts/unicode.pf2
95e479d
cd ..
95e479d
%endif
95e479d
28678c2
cd grub-%{tarversion}
8c7f759
%ifnarch %{efi_only}
0e50f1f
make DESTDIR=$RPM_BUILD_ROOT install
0e50f1f
0e50f1f
# Ghost config file
0e50f1f
install -d $RPM_BUILD_ROOT/boot/%{name}
0e50f1f
touch $RPM_BUILD_ROOT/boot/%{name}/grub.cfg
0e50f1f
ln -s ../boot/%{name}/grub.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
8c7f759
%endif
0e50f1f
William Jon McCann 6c7b1ed
cp -a $RPM_BUILD_ROOT%{_datarootdir}/locale/en\@quot $RPM_BUILD_ROOT%{_datarootdir}/locale/en
William Jon McCann 6c7b1ed
6092ed7
mv $RPM_BUILD_ROOT%{_infodir}/grub.info $RPM_BUILD_ROOT%{_infodir}/%{name}.info
6092ed7
mv $RPM_BUILD_ROOT%{_infodir}/grub-dev.info $RPM_BUILD_ROOT%{_infodir}/%{name}-dev.info
1fcd613
rm $RPM_BUILD_ROOT%{_infodir}/dir
1fcd613
0e50f1f
# Defaults
8d4efa5
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/default
8d4efa5
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/default/grub
62a7c9b
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
62a7c9b
ln -sf %{_sysconfdir}/default/grub \
62a7c9b
	${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub
62a7c9b
72b5f59
cd ..
72b5f59
%find_lang grub
72b5f59
171aabb
# Fedora theme in /boot/grub2/themes/system/
83183d5
cd $RPM_BUILD_ROOT
83183d5
tar xjf %{SOURCE5}
171aabb
$RPM_BUILD_ROOT%{_bindir}/%{name}-mkfont -o boot/grub2/themes/system/DejaVuSans-10.pf2      -s 10 /usr/share/fonts/dejavu/DejaVuSans.ttf # "DejaVu Sans Regular 10"
171aabb
$RPM_BUILD_ROOT%{_bindir}/%{name}-mkfont -o boot/grub2/themes/system/DejaVuSans-12.pf2      -s 12 /usr/share/fonts/dejavu/DejaVuSans.ttf # "DejaVu Sans Regular 12"
171aabb
$RPM_BUILD_ROOT%{_bindir}/%{name}-mkfont -o boot/grub2/themes/system/DejaVuSans-Bold-14.pf2 -s 14 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf # "DejaVu Sans Bold 14"
83183d5
5d4d477
# Make selinux happy with exec stack binaries.
5d4d477
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/prelink.conf.d/
5d4d477
cat << EOF > ${RPM_BUILD_ROOT}%{_sysconfdir}/prelink.conf.d/grub2.conf
5d4d477
# these have execstack, and break under selinux
5d4d477
-b /usr/bin/grub2-script-check
5d4d477
-b /usr/bin/grub2-mkrelpath
5d4d477
-b /usr/bin/grub2-fstest
5d4d477
-b /usr/sbin/grub2-bios-setup
5d4d477
-b /usr/sbin/grub2-probe
5d4d477
-b /usr/sbin/grub2-sparc64-setup
5d4d477
EOF
5d4d477
9ccddf4
%ifarch %{efiarchs}
9ccddf4
mkdir -p boot/efi/EFI/%{efidir}/
9ccddf4
ln -s /boot/efi/EFI/%{efidir}/grubenv boot/grub2/grubenv
9ccddf4
%endif
9ccddf4
ee7733c
# Don't run debuginfo on all the grub modules and whatnot; it just
ee7733c
# rejects them, complains, and slows down extraction.
ee7733c
%global finddebugroot "%{_builddir}/%{?buildsubdir}/debug"
ee7733c
mkdir -p %{finddebugroot}/usr
ee7733c
cp -a ${RPM_BUILD_ROOT}/usr/bin %{finddebugroot}/usr/bin
ee7733c
cp -a ${RPM_BUILD_ROOT}/usr/sbin %{finddebugroot}/usr/sbin
ee7733c
ee7733c
%global dip RPM_BUILD_ROOT=%{finddebugroot} %{__debug_install_post}
ee7733c
%define __debug_install_post %{dip}					\
ee7733c
	install -m 0755 -d %{buildroot}/usr/lib/ %{buildroot}/usr/src/	\
ee7733c
	cp -al %{finddebugroot}/usr/lib/debug/				\\\
ee7733c
		%{buildroot}/usr/lib/debug/				\
ee7733c
	cp -al %{finddebugroot}/usr/src/debug/				\\\
ee7733c
		%{buildroot}/usr/src/debug/
ee7733c
0e50f1f
%clean    
0e50f1f
rm -rf $RPM_BUILD_ROOT
0e50f1f
0e50f1f
%post
1fcd613
if [ "$1" = 1 ]; then
6092ed7
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
6092ed7
	/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
1fcd613
fi
0e50f1f
e376009
%triggerun -- grub2 < 1:1.99-4
eb5089f
# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades
eb5089f
# from the affected grub2 packages, we first back up the files in triggerun and
eb5089f
# later restore them in triggerpostun.
eb5089f
# https://bugzilla.redhat.com/show_bug.cgi?id=735259
e376009
eb5089f
# Back up the files before uninstalling old grub2
eb5089f
mkdir -p /boot/grub2.tmp &&
1156d47
mv -f /boot/grub2/*.mod \
eb5089f
      /boot/grub2/*.img \
eb5089f
      /boot/grub2/*.lst \
eb5089f
      /boot/grub2/device.map \
eb5089f
      /boot/grub2.tmp/ || :
eb5089f
eb5089f
%triggerpostun -- grub2 < 1:1.99-4
eb5089f
# ... and restore the files.
eb5089f
test ! -f /boot/grub2/device.map &&
eb5089f
test -d /boot/grub2.tmp &&
eb5089f
mv -f /boot/grub2.tmp/*.mod \
eb5089f
      /boot/grub2.tmp/*.img \
eb5089f
      /boot/grub2.tmp/*.lst \
eb5089f
      /boot/grub2.tmp/device.map \
eb5089f
      /boot/grub2/ &&
eb5089f
rm -r /boot/grub2.tmp/ || :
eb5089f
0e50f1f
%preun
1fcd613
if [ "$1" = 0 ]; then
6092ed7
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz || :
6092ed7
	/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
1fcd613
fi
0e50f1f
8c7f759
%ifnarch %{efi_only}
72b5f59
%files -f grub.lang
0e50f1f
%defattr(-,root,root,-)
28678c2
%{_libdir}/grub/*-%{platform}/
21f0c0b
%config(noreplace) %{_sysconfdir}/%{name}.cfg
bf4e2d2
%ghost %config(noreplace) /boot/%{name}/grub.cfg
9ef0c08
%doc grub-%{tarversion}/COPYING
9ccddf4
%config(noreplace) %ghost /boot/grub2/grubenv
8c7f759
%endif
0e50f1f
420dddc
%ifarch %{efiarchs}
9ef0c08
%files efi
95e479d
%defattr(-,root,root,-)
9ef0c08
%config(noreplace) %{_sysconfdir}/%{name}-efi.cfg
8d4efa5
%attr(0755,root,root)/boot/efi/EFI/%{efidir}
58a808c
%attr(0755,root,root)/boot/efi/EFI/%{efidir}/fonts
8d4efa5
%ghost %config(noreplace) /boot/efi/EFI/%{efidir}/grub.cfg
9ef0c08
%doc grub-%{tarversion}/COPYING
9ccddf4
/boot/grub2/grubenv
9ccddf4
# I know 0700 seems strange, but it lives on FAT so that's what it'll
9ccddf4
# get no matter what we do.
9ccddf4
%config(noreplace) %ghost %attr(0700,root,root)/boot/efi/EFI/%{efidir}/grubenv
7d5b63a
7d5b63a
%files efi-modules
7d5b63a
%defattr(-,root,root,-)
7d5b63a
%{_libdir}/grub/%{grubefiarch}
9ef0c08
%endif
9ef0c08
9ef0c08
%files tools -f grub.lang
9ef0c08
%defattr(-,root,root,-)
9ef0c08
%dir %{_libdir}/grub/
3c1bb2b
%dir %{_datarootdir}/grub/
3c1bb2b
%dir %{_datarootdir}/grub/themes
fa0bb1c
%{_datarootdir}/grub/*
481bf3b
%{_sbindir}/%{name}-bios-setup
f06903e
%{_sbindir}/%{name}-install
481bf3b
%{_sbindir}/%{name}-macbless
481bf3b
%{_sbindir}/%{name}-mkconfig
481bf3b
%{_sbindir}/%{name}-ofpathname
f06903e
%{_sbindir}/%{name}-probe
f06903e
%{_sbindir}/%{name}-reboot
f06903e
%{_sbindir}/%{name}-set-default
f06903e
%{_sbindir}/%{name}-sparc64-setup
0e50f1f
%{_bindir}/%{name}-editenv
481bf3b
%{_bindir}/%{name}-file
a72f2be
%{_bindir}/%{name}-fstest
481bf3b
%{_bindir}/%{name}-glue-efi
1fcd613
%{_bindir}/%{name}-kbdcomp
1fcd613
%{_bindir}/%{name}-menulst2cfg
a72f2be
%{_bindir}/%{name}-mkfont
1fcd613
%{_bindir}/%{name}-mkimage
481bf3b
%{_bindir}/%{name}-mklayout
481bf3b
%{_bindir}/%{name}-mknetdir
692a778
%{_bindir}/%{name}-mkpasswd-pbkdf2
692a778
%{_bindir}/%{name}-mkrelpath
34399bb
%ifnarch %{sparc}
a72f2be
%{_bindir}/%{name}-mkrescue
34399bb
%endif
481bf3b
%{_bindir}/%{name}-mkstandalone
481bf3b
%{_bindir}/%{name}-render-label
1fcd613
%{_bindir}/%{name}-script-check
481bf3b
%{_bindir}/%{name}-syslinux2cfg
3801bfd
%{_datarootdir}/bash-completion/completions/grub
5d4d477
%{_sysconfdir}/prelink.conf.d/grub2.conf
afddf87
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
0e50f1f
%config %{_sysconfdir}/grub.d/??_*
0e50f1f
%{_sysconfdir}/grub.d/README
d9c0e66
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
62a7c9b
%{_sysconfdir}/sysconfig/grub
0e50f1f
%dir /boot/%{name}
ab71b4d
%dir /boot/%{name}/themes/
ab71b4d
%dir /boot/%{name}/themes/system
ab71b4d
%exclude /boot/%{name}/themes/system/*
ab71b4d
%exclude %{_datarootdir}/grub/themes/
9ef0c08
%{_infodir}/%{name}*
0e50f1f
%exclude %{_mandir}
28678c2
%doc grub-%{tarversion}/COPYING grub-%{tarversion}/INSTALL
28678c2
%doc grub-%{tarversion}/NEWS grub-%{tarversion}/README
28678c2
%doc grub-%{tarversion}/THANKS grub-%{tarversion}/TODO
0f31deb
%doc grub-%{tarversion}/grub.html
0f31deb
%doc grub-%{tarversion}/grub-dev.html grub-%{tarversion}/docs/font_char_metrics.png
171aabb
%doc grub-%{tarversion}/themes/starfield/COPYING.CC-BY-SA-3.0
95e479d
fa0bb1c
%files starfield-theme
ab71b4d
%dir /boot/%{name}/themes/
ab71b4d
%dir %{_datarootdir}/grub/themes
ab71b4d
%dir %{_datarootdir}/grub/themes/starfield
ab71b4d
/boot/%{name}/themes/
ab71b4d
%{_datarootdir}/grub/themes/
fa0bb1c
0e50f1f
%changelog
4dcaf21
* Tue Aug 19 2014 Peter Jones <pjones@redhat.com> - 2.02-0.8
4dcaf21
- Add ppc64le support.
4dcaf21
  Resolves: rhbz#1125540
4dcaf21
bcda470
* Thu Jul 24 2014 Peter Jones <pjones@redhat.com> - 2.02-0.7
bcda470
- Enabled syslinuxcfg module.
bcda470
37b39b7
* Wed Jul 02 2014 Peter Jones <pjones@redhat.com> - 2.02-0.6
37b39b7
- Re-merge RHEL 7 changes and ARM works in progress.
37b39b7
f178927
* Mon Jun 30 2014 Peter Jones <pjones@redhat.com> - 2.02-0.5
f178927
- Avoid munging raw spaces when we're escaping command line arguments.
f178927
  Resolves: rhbz#923374
f178927
011fe81
* Tue Jun 24 2014 Peter Jones <pjones@redhat.com> - 2.02-0.4
011fe81
- Update to latest upstream.
011fe81
78a3d7d
* Thu Mar 13 2014 Peter Jones <pjones@redhat.com> - 2.02-0.3
78a3d7d
- Merge in RHEL 7 changes and ARM works in progress.
78a3d7d
481bf3b
* Mon Jan 06 2014 Peter Jones <pjones@redhat.com> - 2.02-0.2
481bf3b
- Update to grub-2.02~beta2
481bf3b
39307a8
* Sat Aug 10 2013 Peter Jones <pjones@redhat.com> - 2.00-25
39307a8
- Last build failed because of a hardware error on the builder.
39307a8
739a291
* Mon Aug 05 2013 Peter Jones <pjones@redhat.com> - 2.00-24
739a291
- Fix compiler flags to deal with -fstack-protector-strong
739a291
54c6370
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.00-24
54c6370
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
54c6370
d0b05a7
* Tue Jul 02 2013 Dennis Gilmore <dennis@ausil.us> - 2.00-23
4a42f9b
- add epoch to obsoletes
4a42f9b
9546739
* Fri Jun 21 2013 Peter Jones <pjones@redhat.com> - 2.00-22
38f72d2
- Fix linewrapping in edit menu.
38f72d2
  Resolves: rhbz #976643
38f72d2
9c5e36d
* Thu Jun 20 2013 Peter Jones <pjones@redhat.com> - 2.00-21
9c5e36d
- Fix obsoletes to pull in -starfield-theme subpackage when it should.
9c5e36d
ab71b4d
* Fri Jun 14 2013 Peter Jones <pjones@redhat.com> - 2.00-20
ab71b4d
- Put the theme entirely ento the subpackage where it belongs (#974667)
ab71b4d
f74b50e
* Wed Jun 12 2013 Peter Jones <pjones@redhat.com> - 2.00-19
31004e6
- Rebase to upstream snapshot.
f74b50e
- Fix PPC build error (#967862)
f74b50e
- Fix crash on net_bootp command (#960624)
f74b50e
- Reset colors on ppc when appropriate (#908519)
f74b50e
- Left align "Loading..." messages (#908492)
f74b50e
- Fix probing of SAS disks on PPC (#953954)
f74b50e
- Add support for UEFI OSes returned by os-prober
f74b50e
- Disable "video" mode on PPC for now (#973205)
f74b50e
- Make grub fit better into the boot sequence, visually (#966719)
31004e6
fa0bb1c
* Fri May 10 2013 Matthias Clasen <mclasen@redhat.com> - 2.00-18
fa0bb1c
- Move the starfield theme to a subpackage (#962004)
ed8842a
- Don't allow SSE or MMX on UEFI builds (#949761)
fa0bb1c
a5bd9f6
* Wed Apr 24 2013 Peter Jones <pjones@redhat.com> - 2.00-17.pj0
a5bd9f6
- Rebase to upstream snapshot.
a5bd9f6
50b8f8e
* Thu Apr 04 2013 Peter Jones <pjones@redhat.com> - 2.00-17
3ad78fd
- Fix booting from drives with 4k sectors on UEFI.
50b8f8e
- Move bash completion to new location (#922997)
50b8f8e
- Include lvm support for /boot (#906203)
3ad78fd
56aa737
* Thu Feb 14 2013 Peter Jones <pjones@redhat.com> - 2.00-16
56aa737
- Allow the user to disable submenu generation
56aa737
- (partially) support BLS-style configuration stanzas.
56aa737
2ea29c3
* Tue Feb 12 2013 Peter Jones <pjones@redhat.com> - 2.00-15.pj0
2ea29c3
- Add various config file related changes.
2ea29c3
d86e0a2
* Thu Dec 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.00-15
d86e0a2
- bump nvr
d86e0a2
83401c6
* Mon Dec 17 2012 Karsten Hopp <karsten@redhat.com> 2.00-14
83401c6
- add bootpath device to the device list (pfsmorigo, #886685)
83401c6
5e0db24
* Tue Nov 27 2012 Peter Jones <pjones@redhat.com> - 2.00-13
5e0db24
- Add vlan tag support (pfsmorigo, #871563)
5e0db24
- Follow symlinks during PReP installation in grub2-install (pfsmorigo, #874234)
5e0db24
- Improve search paths for config files on network boot (pfsmorigo, #873406)
5e0db24
4788033
* Tue Oct 23 2012 Peter Jones <pjones@redhat.com> - 2.00-12
4788033
- Don't load modules when grub transitions to "normal" mode on UEFI.
4788033
5598b7f
* Mon Oct 22 2012 Peter Jones <pjones@redhat.com> - 2.00-11
66cba4f
- Rebuild with newer pesign so we'll get signed with the final signing keys.
66cba4f
f2e5630
* Thu Oct 18 2012 Peter Jones <pjones@redhat.com> - 2.00-10
f2e5630
- Various PPC fixes.
f2e5630
- Fix crash fetching from http (gustavold, #860834)
f2e5630
- Issue separate dns queries for ipv4 and ipv6 (gustavold, #860829)
f2e5630
- Support IBM CAS reboot (pfsmorigo, #859223)
f2e5630
- Include all modules in the core image on ppc (pfsmorigo, #866559)
f2e5630
c849461
* Mon Oct 01 2012 Peter Jones <pjones@redhat.com> - 1:2.00-9
c849461
- Work around bug with using "\x20" in linux command line.
c849461
  Related: rhbz#855849
c849461
9d78483
* Thu Sep 20 2012 Peter Jones <pjones@redhat.com> - 2.00-8
9d78483
- Don't error on insmod on UEFI/SB, but also don't do any insmodding.
9d78483
- Increase device path size for ieee1275
9d78483
  Resolves: rhbz#857936
9d78483
- Make network booting work on ieee1275 machines.
9d78483
  Resolves: rhbz#857936
9d78483
Matthew Garrett 62fd5b9
* Wed Sep 05 2012 Matthew Garrett <mjg@redhat.com> - 2.00-7
Matthew Garrett 62fd5b9
- Add Apple partition map support for EFI
Matthew Garrett 62fd5b9
David Cantrell d38088e
* Thu Aug 23 2012 David Cantrell <dcantrell@redhat.com> - 2.00-6
David Cantrell d38088e
- Only require pesign on EFI architectures (#851215)
David Cantrell d38088e
f742f42
* Tue Aug 14 2012 Peter Jones <pjones@redhat.com> - 2.00-5
c1a25d0
- Work around AHCI firmware bug in efidisk driver.
f742f42
- Move to newer pesign macros
f742f42
- Don't allow insmod if we're in secure-boot mode.
f742f42
5d4d477
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com>
5d4d477
- Split module lists for UEFI boot vs UEFI cd images.
5d4d477
- Add raid modules for UEFI image (related: #750794)
5d4d477
- Include a prelink whitelist for binaries that need execstack (#839813)
945dd81
- Include fix efi memory map fix from upstream (#839363)
5d4d477
711f8a0
* Wed Aug 08 2012 Peter Jones <pjones@redhat.com> - 2.00-4
711f8a0
- Correct grub-mkimage invocation to use efidir RPM macro (jwb)
711f8a0
- Sign with test keys on UEFI systems.
711f8a0
- PPC - Handle device paths with commas correctly.
711f8a0
  Related: rhbz#828740
Josh Boyer 2047240
58a808c
* Wed Jul 25 2012 Peter Jones <pjones@redhat.com> - 2.00-3
58a808c
- Add some more code to support Secure Boot, and temporarily disable
58a808c
  some other bits that don't work well enough yet.
58a808c
  Resolves: rhbz#836695
58a808c
58a808c
* Wed Jul 11 2012 Matthew Garrett <mjg@redhat.com> - 2.00-2
58a808c
- Set a prefix for the image - needed for installer work
58a808c
- Provide the font in the EFI directory for the same reason
58a808c
a37bbab
* Thu Jun 28 2012 Peter Jones <pjones@redhat.com> - 2.00-1
a37bbab
- Rebase to grub-2.00 release.
a37bbab
8205bed
* Mon Jun 18 2012 Peter Jones <pjones@redhat.com> - 2.0-0.37.beta6
8205bed
- Fix double-free in grub-probe.
8205bed
c4a749d
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.36.beta6
c4a749d
- Build with patch19 applied.
c4a749d
ad98057
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.35.beta6
ad98057
- More ppc fixes.
ad98057
fc6558c
* Wed Jun 06 2012 Peter Jones <pjones@redhat.com> - 2.0-0.34.beta6
fc6558c
- Add IBM PPC fixes.
fc6558c
37801c1
* Mon Jun 04 2012 Peter Jones <pjones@redhat.com> - 2.0-0.33.beta6
460f2c5
- Update to beta6.
460f2c5
- Various fixes from mads.
460f2c5
bd43daa
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.32.beta5
bd43daa
- Revert builddep change for crt1.o; it breaks ppc build.
bd43daa
f3c723c
* Fri May 25 2012 Peter Jones <pjones@redhat.com> - 2.0-0.31.beta5
f3c723c
- Add fwsetup command (pjones)
f3c723c
- More ppc fixes (IBM)
f3c723c
8273501
* Tue May 22 2012 Peter Jones <pjones@redhat.com> - 2.0-0.30.beta5
8273501
- Fix the /other/ grub2-tools require to include epoch.
8273501
c10845e
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.29.beta5
c10845e
- Get rid of efi_uga and efi_gop, favoring all_video instead.
c10845e
8d4efa5
* Mon May 21 2012 Peter Jones <pjones@redhat.com> - 2.0-0.28.beta5
8d4efa5
- Name grub.efi something that's arch-appropriate (kiilerix, pjones)
8d4efa5
- use EFI/$SOMETHING_DISTRO_BASED/ not always EFI/redhat/grub2-efi/ .
8d4efa5
- move common stuff to -tools (kiilerix)
8d4efa5
- spec file cleanups (kiilerix)
8d4efa5
ed858ec
* Mon May 14 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
ed858ec
- Fix module trampolining on ppc (benh)
ed858ec
9f9108b
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.27.beta5
f7d8706
- Fix license of theme (mizmo)
f7d8706
  Resolves: rhbz#820713
31ad4e0
- Fix some PPC bootloader detection IBM problem
31ad4e0
  Resolves: rhbz#820722
f7d8706
44de025
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 2.0-0.26.beta5
44de025
- Update to beta5.
44de025
- Update how efi building works (kiilerix)
4a93dba
- Fix theme support to bring in fonts correctly (kiilerix, pjones)
44de025
f45c3d8
* Wed May 09 2012 Peter Jones <pjones@redhat.com> - 2.0-0.25.beta4
f45c3d8
- Include theme support (mizmo)
f45c3d8
- Include locale support (kiilerix)
f45c3d8
- Include html docs (kiilerix)
f45c3d8
0e6e69f
* Thu Apr 26 2012 Peter Jones <pjones@redhat.com> - 2.0-0.24
3bcbea7
- Various fixes from Mads Kiilerich
3bcbea7
f06903e
* Thu Apr 19 2012 Peter Jones <pjones@redhat.com> - 2.0-0.23
f06903e
- Update to 2.00~beta4
f06903e
- Make fonts work so we can do graphics reasonably
f06903e
David W. Aquilina 81e64b5
* Thu Mar 29 2012 David Aquilina <dwa@redhat.com> - 2.0-0.22
David W. Aquilina 81e64b5
- Fix ieee1275 platform define for ppc
David W. Aquilina 81e64b5
c967306
* Thu Mar 29 2012 Peter Jones <pjones@redhat.com> - 2.0-0.21
c967306
- Remove ppc excludearch lines (dwa)
c967306
- Update ppc terminfo patch (hamzy)
c967306
6950aa5
* Wed Mar 28 2012 Peter Jones <pjones@redhat.com> - 2.0-0.20
6950aa5
- Fix ppc64 vs ppc exclude according to what dwa tells me they need
6950aa5
- Fix version number to better match policy.
6950aa5
f2a9f13
* Tue Mar 27 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.2
f2a9f13
- Add support for serial terminal consoles on PPC by Mark Hamzy
f2a9f13
e91c775
* Sun Mar 25 2012 Dan Horák <dan[at]danny.cz> - 1.99-19.1
e91c775
- Use Fix-tests-of-zeroed-partition patch by Mark Hamzy
e91c775
1baa278
* Thu Mar 15 2012 Peter Jones <pjones@redhat.com> - 1.99-19
1baa278
- Use --with-grubdir= on configure to make it behave like -17 did.
1baa278
28678c2
* Wed Mar 14 2012 Peter Jones <pjones@redhat.com> - 1.99-18
28678c2
- Rebase from 1.99 to 2.00~beta2
c7429be
645dc62
* Wed Mar 07 2012 Peter Jones <pjones@redhat.com> - 1.99-17
645dc62
- Update for newer autotools and gcc 4.7.0
645dc62
  Related: rhbz#782144
62a7c9b
- Add /etc/sysconfig/grub link to /etc/default/grub
62a7c9b
  Resolves: rhbz#800152
c07e9a4
- ExcludeArch s390*, which is not supported by this package.
c07e9a4
  Resolves: rhbz#758333
c07e9a4
62a7c9b
* Fri Feb 17 2012 Orion Poplawski <orion@cora.nwra.com> - 1:1.99-16
62a7c9b
- Build with -Os (bug 782144)
62a7c9b
62a7c9b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-15
62a7c9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
62a7c9b
62a7c9b
* Wed Dec 14 2011 Matthew Garrett <mjg@redhat.com> - 1.99-14
62a7c9b
- fix up various grub2-efi issues
62a7c9b
6c1e129
* Thu Dec 08 2011 Adam Williamson <awilliam@redhat.com> - 1.99-13
6c1e129
- fix hardwired call to grub-probe in 30_os-prober (rhbz#737203)
6c1e129
212d822
* Mon Nov 07 2011 Peter Jones <pjones@redhat.com> - 1.99-12
212d822
- Lots of .spec fixes from Mads Kiilerich:
212d822
  Remove comment about update-grub - it isn't run in any scriptlets
212d822
  patch info pages so they can be installed and removed correctly when renamed
212d822
  fix references to grub/grub2 renames in info pages (#743964)
212d822
  update README.Fedora (#734090)
212d822
  fix comments for the hack for upgrading from grub2 < 1.99-4
212d822
  fix sed syntax error preventing use of $RPM_OPT_FLAGS (#704820)
212d822
  make /etc/grub2*.cfg %config(noreplace)
212d822
  make grub.cfg %ghost - an empty file is of no use anyway
212d822
  create /etc/default/grub more like anaconda would create it (#678453)
212d822
  don't create rescue entries by default - grubby will not maintain them anyway
212d822
  set GRUB_SAVEDEFAULT=true so saved defaults works (rbhz#732058)
212d822
  grub2-efi should have its own bash completion
212d822
  don't set gfxpayload in efi mode - backport upstream r3402
212d822
- Handle dmraid better. Resolves: rhbz#742226
212d822
7cabf5f
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.99-11
7cabf5f
- Rebuilt for glibc bug#747377
7cabf5f
7c419b8
* Wed Oct 19 2011 Adam Williamson <awilliam@redhat.com> - 1.99-10
7c419b8
- /etc/default/grub is explicitly intended for user customization, so
7c419b8
  mark it as config(noreplace)
7c419b8
328405c
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-9
328405c
- grub has an epoch, so we need that expressed in the obsolete as well.
328405c
  Today isn't my day.
328405c
ba6990d
* Tue Oct 11 2011 Peter Jones <pjones@redhat.com> - 1.99-8
ba6990d
- Fix my bad obsoletes syntax.
ba6990d
5606a4e
* Thu Oct 06 2011 Peter Jones <pjones@redhat.com> - 1.99-7
5606a4e
- Obsolete grub
5606a4e
  Resolves: rhbz#743381
5606a4e
1156d47
* Wed Sep 14 2011 Peter Jones <pjones@redhat.com> - 1.99-6
1156d47
- Use mv not cp to try to avoid moving disk blocks around for -5 fix
1156d47
  Related: rhbz#735259
1156d47
- handle initramfs on xen better (patch from Marko Ristola)
1156d47
  Resolves: rhbz#728775
1156d47
eb5089f
* Sat Sep 03 2011 Kalev Lember <kalevlember@gmail.com> - 1.99-5
eb5089f
- Fix upgrades from grub2 < 1.99-4 (#735259)
eb5089f
6098d12
* Fri Sep 02 2011 Peter Jones <pjones@redhat.com> - 1.99-4
6098d12
- Don't do sysadminny things in %preun or %post ever. (#735259)
6098d12
- Actually include the changelog in this build (sorry about -3)
6098d12
62686d2
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-2
62686d2
- Require os-prober (#678456) (patch from Elad Alfassa)
62686d2
- Require which (#734959) (patch from Elad Alfassa)
62686d2
ee1d6da
* Thu Sep 01 2011 Peter Jones <pjones@redhat.com> - 1.99-1
ee1d6da
- Update to grub-1.99 final.
ee1d6da
- Fix crt1.o require on x86-64 (fix from Mads Kiilerich)
ee1d6da
- Various CFLAGS fixes (from Mads Kiilerich)
ee1d6da
  - -fexceptions and -m64
ee1d6da
- Temporarily ignore translations (from Mads Kiilerich)
ee1d6da
b35cdf3
* Thu Jul 21 2011 Peter Jones <pjones@redhat.com> - 1.99-0.3
b35cdf3
- Use /sbin not /usr/sbin .
b35cdf3
b577e7c
* Thu Jun 23 2011 Peter Lemenkov <lemenkov@gmail.com> - 1:1.99-0.2
b577e7c
- Fixes for ppc and ppc64
b577e7c
6233068
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.98-4
6233068
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild