%ifnarch %{ix86} %{x8664}
%undefine with_pc
%endif
-%ifnarch %{ix86} %{x8664} ia64
+%ifnarch %{ix86} %{x8664}
%undefine with_efi
%endif
%endif
# the 'most natural' platform should go last
-%ifarch %{ix86} %{x8664} ia64
+%ifarch %{ix86} %{x8664}
%define platforms %{?with_efi:efi} %{?with_pc:pc}
%endif
-%ifarch ppc ppc64 sparc64
-%define platforms ieee1275
-%endif
-%ifarch mips
-%define platforms arc
-%endif
-%ifarch mipsel
-%define platforms loongson
-%endif
Summary: GRand Unified Bootloader
-Summary(de.UTF-8): GRUB2 - ein Bootloader für x86 und ppc
-Summary(hu.UTF-8): GRUB2 - rendszerbetöltő x86 és ppc gépekhez
-Summary(pl.UTF-8): GRUB2 - bootloader dla x86 i ppc
+Summary(de.UTF-8): GRUB2 - ein Bootloader für x86
+Summary(hu.UTF-8): GRUB2 - rendszerbetöltő x86 gépekhez
+Summary(pl.UTF-8): GRUB2 - bootloader dla x86
Summary(pt_BR.UTF-8): Gerenciador de inicialização GRUB2
+%define beta beta2
Name: grub2
-Version: 2.00
-Release: 6
+Version: 2.02
+Release: 0.%{beta}.3
License: GPL v2
Group: Base
-Source0: http://ftp.gnu.org/gnu/grub/grub-%{version}.tar.xz
-# Source0-md5: a1043102fbc7bcedbf53e7ee3d17ab91
+# 1. Download and unpack latest official beta snapshot from http://git.savannah.gnu.org/cgit/grub.git
+# 2. Run ./autogen.sh and ./linguas.sh
+# 3. Recompress and upload to DF
+Source0: grub-%{version}-%{beta}.tar.xz
+# Source0-md5: f262e61eba2e76a6f60b39a810814284
Source1: update-grub
Source2: update-grub.8
Source3: grub.sysconfig
Patch3: grub-lvmdevice.patch
Patch4: pld-mkconfigdir.patch
Patch5: grub-mkconfig-diagnostics.patch
-Patch6: ppc.patch
-Patch7: %{name}-awk.patch
-Patch8: posix.patch
-Patch9: %{name}-gets.patch
-Patch10: %{name}-fonts_path.patch
-Patch11: %{name}-tftp_fixes.patch
-Patch12: add-vlan-tag-support.patch
-Patch13: just-say-linux.patch
-Patch14: add-GRUB-DISABLE-SUBMENU-option.patch
-Patch15: add-X-option-to-printf-functions.patch
-Patch16: dhcp-client-id-and-uuid-options-added.patch
-Patch17: fix-http-crash.patch
-Patch18: Issue-separate-DNS-queries-for-ipv4-and-ipv6.patch
-Patch19: search-for-specific-config-file-for-netboot.patch
-Patch20: ignore-kernel-symlinks.patch
-Patch21: choose-preferred-initrd.patch
-Patch22: %{name}-cfg.patch
-Patch23: %{name}-freetype_include.patch
-Patch24: %{name}-efinet_fix.patch
-Patch25: %{name}-linuxefi.patch
-Patch26: %{name}-generated_files.patch
+Patch6: posix.patch
+Patch7: %{name}-fonts_path.patch
+Patch8: add-vlan-tag-support.patch
+Patch9: just-say-linux.patch
+Patch10: ignore-kernel-symlinks.patch
+Patch11: choose-preferred-initrd.patch
+Patch12: %{name}-cfg.patch
URL: http://www.gnu.org/software/grub/
BuildRequires: autoconf >= 2.53
-BuildRequires: autogen
BuildRequires: automake >= 1:1.11.1-1
BuildRequires: bison
BuildRequires: device-mapper-devel
BuildRequires: freetype-devel >= 2
BuildRequires: gawk
BuildRequires: gettext-devel
+BuildRequires: glibc-localedb-all
BuildRequires: glibc-static
BuildRequires: help2man
BuildRequires: libfuse-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
+BuildRequires: python
+BuildRequires: python-modules
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpmbuild(macros) >= 1.213
BuildRequires: sed >= 4.0
Suggests: os-prober
Provides: bootloader
Conflicts: grub
-ExclusiveArch: %{ix86} %{x8664} ia64 mips mipsel ppc ppc64 sparc64
+ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sbindir /sbin
Motyw starfield dla GRUB-a.
%prep
-%setup -q -n grub-%{version}
+%setup -q -n grub-%{version}-%{beta}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
-%patch12 -p1
-%patch13 -p1
-%patch14 -p1
-%patch15 -p1
-%patch16 -p1
-%patch17 -p1
-%patch18 -p1
-%patch19 -p1
-%patch20 -p1
-%patch21 -p1
-%patch22 -p0
-%patch23 -p1
-%patch24 -p1
-%patch25 -p1
-%patch26 -p1
+%patch12 -p0
+
+# we don't have C.utf-8 and need an UTF-8 locale for build
+sed -i -e 's/LC_ALL=C.UTF-8/LC_ALL=en_US.utf-8/g' po/Makefile* po/Rules*
%build
# if gold is used then grub doesn't even boot
ln -s /usr/bin/ld.bfd our-ld/ld
export PATH=$(pwd)/our-ld:$PATH
-cp -f /usr/share/automake/config.sub .
-%{__libtoolize}
+## not only the typicall autotools stuff
+#./autogen.sh
+
+%{__gettextize}
%{__aclocal} -I m4
-%{__autoheader}
-echo timestamp > stamp-h.in
%{__autoconf}
+%{__autoheader}
%{__automake}
for platform in %{platforms} ; do
$platform_opts \
TARGET_LDFLAGS=-static
+ %{__make} -j1 -C po update-gmo
%{__make}
cd ..
done
%ifnarch %{ix86} %{x8664}
%{__rm} $RPM_BUILD_ROOT{%{_sbindir}/grub-bios-setup,%{_mandir}/man8/grub-bios-setup.8}
%endif
-%ifnarch sparc64
%{__rm} $RPM_BUILD_ROOT{%{_sbindir}/grub-sparc64-setup,%{_mandir}/man8/grub-sparc64-setup.8}
-%endif
# core.img - bootable image generated by grub-mkimage(1) via grub-install(1)
touch $RPM_BUILD_ROOT%{_grubdir}/core.img
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/grub
%attr(755,root,root) %{_sbindir}/grub-editenv
%attr(755,root,root) %{_sbindir}/grub-fstest
+%attr(755,root,root) %{_sbindir}/grub-file
+%attr(755,root,root) %{_sbindir}/grub-glue-efi
%attr(755,root,root) %{_sbindir}/grub-kbdcomp
%attr(755,root,root) %{_sbindir}/grub-install
+%attr(755,root,root) %{_sbindir}/grub-macbless
%attr(755,root,root) %{_sbindir}/grub-menulst2cfg
%attr(755,root,root) %{_sbindir}/grub-mkconfig
%attr(755,root,root) %{_sbindir}/grub-mklayout
%attr(755,root,root) %{_sbindir}/grub-mount
%attr(755,root,root) %{_sbindir}/grub-ofpathname
%attr(755,root,root) %{_sbindir}/grub-reboot
+%attr(755,root,root) %{_sbindir}/grub-render-label
%attr(755,root,root) %{_sbindir}/grub-script-check
%attr(755,root,root) %{_sbindir}/grub-set-default
+%attr(755,root,root) %{_sbindir}/grub-syslinux2cfg
%attr(755,root,root) %{_sbindir}/update-grub
%ifarch %{ix86} %{x8664}
%attr(755,root,root) %{_sbindir}/grub-bios-setup
%attr(755,root,root) %{_sbindir}/grub-probe
%{_mandir}/man8/grub-probe.8*
%endif
-%ifarch sparc64
-%attr(755,root,root) %{_sbindir}/grub-sparc64-setup
-%{_mandir}/man8/grub-sparc64-setup.8*
-%endif
%{_mandir}/man1/grub-editenv.1*
+%{_mandir}/man1/grub-file.1*
%{_mandir}/man1/grub-fstest.1*
+%{_mandir}/man1/grub-glue-efi.1*
%{_mandir}/man1/grub-kbdcomp.1*
+%{_mandir}/man1/grub-macbless.1*
%{_mandir}/man1/grub-menulst2cfg.1*
%{_mandir}/man1/grub-mklayout.1*
+%{_mandir}/man1/grub-mknetdir.1*
%{_mandir}/man1/grub-mkpasswd-pbkdf2.1*
%{_mandir}/man1/grub-mkrelpath.1*
%{_mandir}/man1/grub-mkrescue.1*
%{_mandir}/man1/grub-mkstandalone.1*
%{_mandir}/man1/grub-mount.1*
+%{_mandir}/man1/grub-render-label.1*
%{_mandir}/man1/grub-script-check.1*
+%{_mandir}/man1/grub-syslinux2cfg.1*
%{_mandir}/man8/grub-install.8*
%{_mandir}/man8/grub-mkconfig.8*
-%{_mandir}/man8/grub-mknetdir.8*
%{_mandir}/man8/grub-ofpathname.8*
%{_mandir}/man8/grub-reboot.8*
%{_mandir}/man8/grub-set-default.8*
%attr(755,root,root) /lib/grub.d/30_os-prober
%attr(755,root,root) /lib/grub.d/41_custom
+# these are now installed only on matching hosts
+#%attr(755,root,root) /lib/grub.d/10_hurd
+#%attr(755,root,root) /lib/grub.d/10_illumos
+#%attr(755,root,root) /lib/grub.d/10_kfreebsd
+#%attr(755,root,root) /lib/grub.d/10_netbsd
+#%attr(755,root,root) /lib/grub.d/10_xnu
+
%ifarch %{ix86} %{x8664}
%attr(755,root,root) %{_sbindir}/grub-probe
%{_mandir}/man8/grub-probe.8*
%{_libexecdir}/*-pc/efiemu*.o
%endif
%{_libexecdir}/*-pc/kernel.img
-%ifarch %{ix86} %{x8664} sparc sparc64
-%{_libexecdir}/*-pc/boot.img
-%{_libexecdir}/*-pc/cdboot.img
-%{_libexecdir}/*-pc/diskboot.img
-%{_libexecdir}/*-pc/lnxboot.img
-%{_libexecdir}/*-pc/pxeboot.img
-%endif
%endif
%if %{with efi}