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
420dddc
%global efiarchs %{ix86} x86_64 ia64
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
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
4ce656b
%global tarversion 2.00
28678c2
%undefine _missing_build_ids_terminate_build
28678c2
0e50f1f
Name:           grub2
e98789b
Epoch:          1
4ce656b
Version:        2.00
176f649
Release:        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
ca74990
Source3:        README.Fedora
f06903e
Source4:	http://unifoundry.com/unifont-5.1.20080820.pcf.gz
83183d5
Source5:	theme.tar.bz2
58a808c
#Source6:	grub-cd.cfg
ee1d6da
Patch2:		grub-1.99-just-say-linux.patch
f06903e
Patch5:		grub-1.99-ppc-terminfo.patch
176f649
Patch10:	grub-2.00-add-fw_path-search_v2.patch
aa709fb
Patch11:	grub-2.00-Add-fwsetup.patch
fe507e9
Patch13:	grub-2.00-Dont-set-boot-on-ppc.patch
9bf0fc0
Patch18:	grub-2.00-ignore-gnulib-gets-stupidity.patch
58a808c
#Patch19:	grub-2.00-who-trusts-you-and-who-do-you-trust.patch
58a808c
Patch20:	grub2-linuxefi.patch
58a808c
Patch21:	grub2-cdpath.patch
58a808c
Patch22:	grub2-use-linuxefi.patch
945dd81
Patch23:	grub-2.00-dont-decrease-mmap-size.patch
f742f42
Patch24:	grub-2.00-no-insmod-on-sb.patch
c1a25d0
Patch25:	grub-2.00-efidisk-ahci-workaround.patch
176f649
Patch26:	grub-2.00-increase-the-ieee1275-device-path-buffer-size.patch
0e50f1f
0e50f1f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0e50f1f
95e479d
BuildRequires:  flex bison binutils python
95e479d
BuildRequires:  ncurses-devel xz-devel
5e0037e
BuildRequires:  freetype-devel libusb-devel
cd7223a
%ifarch %{sparc} x86_64
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
David Cantrell d263f34
%ifarch %{efiarchs}
f742f42
BuildRequires:	pesign >= 0.10-3
David Cantrell d263f34
%endif
0e50f1f
83183d5
Requires:	gettext os-prober which file system-logos
8273501
Requires:	%{name}-tools = %{epoch}:%{version}-%{release}
a736a84
Requires(pre):  dracut
a736a84
Requires(post): dracut
0e50f1f
47b7f15
ExcludeArch:	s390 s390x %{arm}
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}
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.
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
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}
95e479d
cp %{SOURCE3} .
f06903e
# place unifont in the '.' from which configure is run
f06903e
cp %{SOURCE4} unifont.pcf.gz
1fcd613
git init
97c60be
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
28678c2
%setup -D -q -T -a 0 -n grub-%{tarversion}
28678c2
cd grub-%{tarversion}
ca74990
cp %{SOURCE3} .
f06903e
# place unifont in the '.' from which configure is run
f06903e
cp %{SOURCE4} unifont.pcf.gz
95e479d
git init
97c60be
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}
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'					\
ee1d6da
		-e 's/-fstack-protector//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/-fasynchronous-unwind-tables//g' )"	\
ee1d6da
	TARGET_LDFLAGS=-static					\
ee1d6da
        --with-platform=efi					\
6092ed7
	--with-grubdir=%{name}					\
1d74d59
        --program-transform-name=s,grub,%{name},		\
f06903e
	--disable-werror
95e479d
make %{?_smp_mflags}
5d4d477
CD_MODULES="	all_video boot btrfs cat chain configfile echo efifwsetup \
58a808c
		efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 \
Matthew Garrett 260e8fb
		jpeg linuxefi minicmd normal part_apple part_msdos part_gpt \
58a808c
		password_pbkdf2 png reboot search search_fs_uuid \
58a808c
		search_fs_file search_label test video"
5d4d477
./grub-mkimage -O %{grubefiarch} -o %{grubeficdname}.orig -p /EFI/BOOT \
5d4d477
		-d grub-core ${CD_MODULES}
f742f42
%pesign -s -i %{grubeficdname}.orig -o %{grubeficdname}
5d4d477
GRUB_MODULES="${CD_MODULES} mdraid09 mdraid1x"
711f8a0
./grub-mkimage -O %{grubefiarch} -o %{grubefiname}.orig -p /EFI/%{efidir} \
711f8a0
		-d grub-core ${GRUB_MODULES}
f742f42
%pesign -s -i %{grubefiname}.orig -o %{grubefiname}
95e479d
cd ..
95e479d
%endif
95e479d
28678c2
cd grub-%{tarversion}
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
David W. Aquilina 81e64b5
%ifarch %{sparc} ppc ppc64
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'					\
ee1d6da
		-e 's/-fstack-protector//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'					\
ee1d6da
		-e 's/-fasynchronous-unwind-tables//g' )"	\
ee1d6da
	TARGET_LDFLAGS=-static					\
28678c2
        --with-platform=%{platform}				\
6092ed7
	--with-grubdir=%{name}					\
ee1d6da
        --program-transform-name=s,grub,%{name},		\
f06903e
	--disable-werror
0e50f1f
e046631
make %{?_smp_mflags}
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
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
95e479d
# Install ELF files modules and images were created from into
95e479d
# the shadow root, where debuginfo generator will grab them from
95e479d
find $RPM_BUILD_ROOT -name '*.mod' -o -name '*.img' |
95e479d
while read MODULE
95e479d
do
95e479d
        BASE=$(echo $MODULE |sed -r "s,.*/([^/]*)\.(mod|img),\1,")
95e479d
        # Symbols from .img files are in .exec files, while .mod
95e479d
        # modules store symbols in .elf. This is just because we
95e479d
        # have both boot.img and boot.mod ...
95e479d
        EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec')
95e479d
        TGT=$(echo $MODULE |sed "s,$RPM_BUILD_ROOT,.debugroot,")
95e479d
#        install -m 755 -D $BASE$EXT $TGT
95e479d
done
8d4efa5
install -m 755 %{grubefiname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubefiname}
5d4d477
install -m 755 %{grubeficdname} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/%{grubeficdname}
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}
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
0e50f1f
0e50f1f
# Install ELF files modules and images were created from into
0e50f1f
# the shadow root, where debuginfo generator will grab them from
0e50f1f
find $RPM_BUILD_ROOT -name '*.mod' -o -name '*.img' |
0e50f1f
while read MODULE
0e50f1f
do
0e50f1f
        BASE=$(echo $MODULE |sed -r "s,.*/([^/]*)\.(mod|img),\1,")
0e50f1f
        # Symbols from .img files are in .exec files, while .mod
0e50f1f
        # modules store symbols in .elf. This is just because we
0e50f1f
        # have both boot.img and boot.mod ...
0e50f1f
        EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec')
0e50f1f
        TGT=$(echo $MODULE |sed "s,$RPM_BUILD_ROOT,.debugroot,")
e046631
#        install -m 755 -D $BASE$EXT $TGT
0e50f1f
done
0e50f1f
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
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
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
0e50f1f
420dddc
%ifarch %{efiarchs}
9ef0c08
%files efi
95e479d
%defattr(-,root,root,-)
1d74d59
%{_libdir}/grub/%{grubefiarch}
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
9ef0c08
%endif
9ef0c08
9ef0c08
%files tools -f grub.lang
9ef0c08
%defattr(-,root,root,-)
9ef0c08
%dir %{_libdir}/grub/
caaeb9f
%{_datarootdir}/grub/
f06903e
%{_sbindir}/%{name}-mkconfig
f06903e
%{_sbindir}/%{name}-mknetdir
f06903e
%{_sbindir}/%{name}-install
f06903e
%{_sbindir}/%{name}-probe
f06903e
%{_sbindir}/%{name}-reboot
f06903e
%{_sbindir}/%{name}-set-default
f06903e
%{_sbindir}/%{name}-bios-setup
f06903e
%{_sbindir}/%{name}-ofpathname
f06903e
%{_sbindir}/%{name}-sparc64-setup
28678c2
%{_bindir}/%{name}-mkstandalone
0e50f1f
%{_bindir}/%{name}-editenv
a72f2be
%{_bindir}/%{name}-fstest
1fcd613
%{_bindir}/%{name}-kbdcomp
1fcd613
%{_bindir}/%{name}-menulst2cfg
a72f2be
%{_bindir}/%{name}-mkfont
1fcd613
%{_bindir}/%{name}-mklayout
1fcd613
%{_bindir}/%{name}-mkimage
692a778
%{_bindir}/%{name}-mkpasswd-pbkdf2
692a778
%{_bindir}/%{name}-mkrelpath
34399bb
%ifnarch %{sparc}
a72f2be
%{_bindir}/%{name}-mkrescue
34399bb
%endif
1fcd613
%{_bindir}/%{name}-script-check
9ef0c08
%{_sysconfdir}/bash_completion.d/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}
9ef0c08
/boot/%{name}/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
28678c2
%doc grub-%{tarversion}/ChangeLog grub-%{tarversion}/README.Fedora
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
0e50f1f
%changelog
176f649
* Thu Sep 20 2012 Peter Jones <pjones@redhat.com> - 2.00-8
176f649
- Don't error on insmod on UEFI/SB, but also don't do any insmodding.
176f649
- Increase device path size for ieee1275
176f649
  Resolves: rhbz#857936
176f649
- Make network booting work on ieee1275 machines.
176f649
  Resolves: rhbz#857936
176f649
Matthew Garrett 260e8fb
* Wed Sep 05 2012 Matthew Garrett <mjg@redhat.com> - 2.00-7
Matthew Garrett 260e8fb
- Add Apple partition map support for EFI
Matthew Garrett 260e8fb
David Cantrell d263f34
* Thu Aug 23 2012 David Cantrell <dcantrell@redhat.com> - 2.00-6
David Cantrell d263f34
- Only require pesign on EFI architectures (#851215)
David Cantrell d263f34
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
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
6233068
7eb1bde
* Sat Jul 17 2010 Dennis Gilmore <dennis@ausil.us> - 1:1.98-3
7eb1bde
- correctly generate a grub.cfg on kernel update
7eb1bde
692a778
* Fri May 28 2010 Dennis Gilmore <dennis@ausil.us> - 1:1.98-2
692a778
- add patch so grub2-probe works with lvm to detect devices correctly
692a778
692a778
* Wed Apr 21 2010 Dennis Gilmore <dennis@ausil.us> - 1:1.98-1
692a778
- update to 1.98
692a778
7c607f1
* Fri Feb 12 2010 Dennis Gilmore <dennis@ausil.us> - 1:1.97.2-1
7c607f1
- update to 1.97.2
7c607f1
a736a84
* Wed Jan 20 2010 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-5
a736a84
- drop requires on mkinitrd
a736a84
ce2cd08
* Tue Dec 01 2009 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-4
ce2cd08
- add patch so that grub2 finds fedora's initramfs
ce2cd08
34399bb
* Tue Nov 10 2009 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-3
34399bb
- no mkrescue on sparc arches
34399bb
- ofpathname on sparc arches
34399bb
- Requires dracut, not sure if we should just drop mkinitrd for dracut
34399bb
a72f2be
* Tue Nov 10 2009 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-2
a72f2be
- update filelists
a72f2be
e98789b
* Tue Nov 10 2009 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-1
e98789b
- update to 1.97.1 release
e98789b
- introduce epoch for upgrades
e98789b
5e0037e
* Tue Nov 10 2009 Dennis Gilmore <dennis@ausil.us> - 1.98-0.7.20090911svn
5e0037e
- fix BR
5e0037e
5e0037e
* Fri Sep 11 2009 Dennis Gilmore <dennis@ausil.us> - 1.98-0.6.20090911svn
e046631
- update to new svn snapshot
e046631
- add sparc support
e046631
b08b867
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.98-0.6.20080827svn
b08b867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b08b867
b95f802
* Sun Mar 01 2009 Lubomir Rintel <lkundrak@v3.sk> - 1.98-0.4.20080827svn
b95f802
- Add missing BR
b95f802
0ad9c2a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.98-0.4.20080827svn
0ad9c2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0ad9c2a
ca74990
* Wed Aug 27 2008 Lubomir Rintel <lkundrak@v3.sk> - 1.98-0.3.20080827svn
ca74990
- Updated SVN snapshot
ca74990
- Added huge fat warnings
ca74990
0e50f1f
* Fri Aug 08 2008 Lubomir Rintel <lkundrak@v3.sk> - 1.98-0.2.20080807svn
0e50f1f
- Correct scriptlet dependencies, trigger on kernel-PAE (thanks to Till Maas)
0e50f1f
- Fix build on x86_64 (thanks to Marek Mahut)
0e50f1f
0e50f1f
* Thu Aug 07 2008 Lubomir Rintel <lkundrak@v3.sk> 1.98-0.1.20080807svn
0e50f1f
- Another snapshot
0e50f1f
- And much more!
0e50f1f
0e50f1f
* Mon May 12 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.97-0.1.20080512cvs
0e50f1f
- CVS snapshot
0e50f1f
- buildid patch upstreamed
0e50f1f
0e50f1f
* Sat Apr 12 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.96-2
0e50f1f
- Pull in 32 bit glibc
0e50f1f
- Fix builds on 64 bit
0e50f1f
0e50f1f
* Sun Mar 16 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.96-1
0e50f1f
- New upstream release
0e50f1f
- More transformation fixes
0e50f1f
- Generate -debuginfo from modules again. This time for real.
0e50f1f
- grubby stub
0e50f1f
- Make it possible to do configuration changes directly in grub.cfg
0e50f1f
- grub.cfg symlink in /etc
0e50f1f
0e50f1f
* Thu Feb 14 2008 Lubomir Kundrak <lkundrak@redhat.com> 1.95.cvs20080214-3
0e50f1f
- Update to latest trunk
0e50f1f
- Manual pages
0e50f1f
- Add pci.c to DISTLIST
0e50f1f
0e50f1f
* Mon Nov 26 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.95.cvs20071119-2
0e50f1f
- Fix program name transformation in utils
0e50f1f
- Moved the modules to /lib
0e50f1f
- Generate -debuginfo from modules again
0e50f1f
0e50f1f
* Sun Nov 18 2007 Lubomir Kundrak <lkundrak@redhat.com> 1.95.cvs20071119-1
0e50f1f
- Synchronized with CVS, major specfile cleanup
0e50f1f
0e50f1f
* Mon Jan 30 2007 Lubomir Kundrak <lkundrak@skosi.org> 1.95-lkundrak1
0e50f1f
- Removed redundant filelist entries
0e50f1f
0e50f1f
* Mon Jan 29 2007 Lubomir Kundrak <lkundrak@skosi.org> 1.95-lkundrak0
0e50f1f
- Program name transformation
0e50f1f
- Bump to 1.95
0e50f1f
- grub-probefs -> grub-probe
0e50f1f
- Add modules to -debuginfo
0e50f1f
0e50f1f
* Tue Sep 12 2006 Lubomir Kundrak <lkundrak@skosi.org> 1.94-lkundrak0
0e50f1f
- built the package