2010-02-18 15:10:48 +01:00
|
|
|
|
#
|
2011-05-09 10:48:37 +02:00
|
|
|
|
# spec file for package grub2
|
2010-02-18 15:10:48 +01:00
|
|
|
|
#
|
2013-01-08 03:50:55 +01:00
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-02-18 15:10:48 +01:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2013-02-15 17:18:37 +01:00
|
|
|
|
|
2013-02-07 11:46:30 +01:00
|
|
|
|
# needssslcertforbuild
|
2012-03-22 12:32:34 +01:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
Name: grub2
|
2011-08-02 16:45:10 +02:00
|
|
|
|
%ifarch x86_64 ppc64
|
2011-12-25 17:34:30 +01:00
|
|
|
|
BuildRequires: gcc-32bit
|
|
|
|
|
BuildRequires: glibc-32bit
|
|
|
|
|
BuildRequires: glibc-devel-32bit
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%else
|
2011-12-25 17:34:30 +01:00
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: glibc-devel
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%endif
|
2011-12-25 17:34:30 +01:00
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: bison
|
|
|
|
|
BuildRequires: device-mapper-devel
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: flex
|
2012-11-13 09:53:25 +01:00
|
|
|
|
BuildRequires: freetype2-devel
|
2012-06-29 06:59:42 +02:00
|
|
|
|
BuildRequires: fuse-devel
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-03-22 12:32:34 +01:00
|
|
|
|
BuildRequires: gnu-unifont
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: xz
|
|
|
|
|
%if 0%{?suse_version} >= 1210
|
2012-07-23 10:00:52 +02:00
|
|
|
|
BuildRequires: makeinfo
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%else
|
|
|
|
|
BuildRequires: texinfo
|
|
|
|
|
%endif
|
2012-05-08 11:14:39 +02:00
|
|
|
|
BuildRequires: python
|
2012-06-29 06:59:42 +02:00
|
|
|
|
BuildRequires: xz-devel
|
2013-02-07 11:46:30 +01:00
|
|
|
|
%ifarch x86_64
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1230 || 0%{?sles_version} >= 11
|
2013-02-07 11:46:30 +01:00
|
|
|
|
BuildRequires: pesign-obs-integration
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2013-02-19 17:44:15 +01:00
|
|
|
|
# Modules code is dynamically loaded and collected from a _fixed_ path.
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%define _libdir %{_exec_prefix}/lib
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2011-08-02 16:45:10 +02:00
|
|
|
|
%ifarch ppc ppc64
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%define grubcpu powerpc
|
2011-08-02 16:45:10 +02:00
|
|
|
|
%define platform ieee1275
|
|
|
|
|
%endif
|
2012-10-26 17:06:09 +02:00
|
|
|
|
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
%define grubcpu i386
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%define platform pc
|
2012-10-26 17:06:09 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%define grubarch %{grubcpu}-%{platform}
|
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
|
# build efi bootloader on some platforms only:
|
|
|
|
|
%if ! 0%{?efi}
|
|
|
|
|
%global efi %{ix86} x86_64 ia64
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%ifarch %{efi}
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
|
%define grubefiarch i386-efi
|
|
|
|
|
%else
|
|
|
|
|
%define grubefiarch %{_target_cpu}-efi
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} == 1110 || 0%{?sles_version} == 11
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%define only_efi %{nil}
|
|
|
|
|
%define only_x86_64 %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-06-29 06:59:42 +02:00
|
|
|
|
Version: 2.00
|
2011-12-25 17:34:30 +01:00
|
|
|
|
Release: 0
|
2010-02-18 15:10:48 +01:00
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2011-12-25 17:34:30 +01:00
|
|
|
|
License: GPL-3.0+
|
2012-03-22 12:32:34 +01:00
|
|
|
|
Group: System/Boot
|
2010-02-18 15:10:48 +01:00
|
|
|
|
Url: http://www.gnu.org/software/grub/
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%define rev 20120622
|
|
|
|
|
Source0: grub-%{version}.tar.xz
|
2010-02-18 15:10:48 +01:00
|
|
|
|
Source1: 90_persistent
|
|
|
|
|
Source2: grub.default
|
|
|
|
|
Source3: README.openSUSE
|
2010-03-15 00:45:00 +01:00
|
|
|
|
Source4: grub2.rpmlintrc
|
2011-05-09 10:48:37 +02:00
|
|
|
|
# rsync -Lrtvz translationproject.org::tp/latest/grub/ po
|
2012-06-29 06:59:42 +02:00
|
|
|
|
Source5: translations-20120622.tar.xz
|
2012-08-31 09:28:14 +02:00
|
|
|
|
Source6: grub2-once
|
2012-09-23 21:04:15 +02:00
|
|
|
|
Source7: 20_memtest86+
|
2012-11-13 09:53:25 +01:00
|
|
|
|
Source8: Makefile.util.am
|
|
|
|
|
Source9: Makefile.core.am
|
2012-08-31 09:28:14 +02:00
|
|
|
|
Source1000: PATCH_POLICY
|
2012-06-29 06:59:42 +02:00
|
|
|
|
Patch0: grub2-correct-font-path.patch
|
|
|
|
|
Patch1: rename-grub-info-file-to-grub2.patch
|
2010-02-18 15:10:48 +01:00
|
|
|
|
Patch2: grub2-linux.patch
|
2012-06-29 06:59:42 +02:00
|
|
|
|
Patch3: use-grub2-as-a-package-name.patch
|
2012-03-22 12:32:34 +01:00
|
|
|
|
Patch6: grub2-iterate-and-hook-for-extended-partition.patch
|
|
|
|
|
Patch7: grub2-install-opt-skip-fs-probe.patch
|
2012-06-29 14:19:02 +02:00
|
|
|
|
Patch8: grub2-ppc-terminfo.patch
|
2012-07-09 07:58:49 +02:00
|
|
|
|
Patch9: grub2-GRUB_CMDLINE_LINUX_RECOVERY-for-recovery-mode.patch
|
2012-07-23 10:00:52 +02:00
|
|
|
|
Patch10: grub2-fix-error-terminal-gfxterm-isn-t-found.patch
|
|
|
|
|
Patch11: grub2-fix-mo-not-copied-to-grubdir-locale.patch
|
|
|
|
|
Patch12: grub2-fix-menu-in-xen-host-server.patch
|
2012-07-30 20:27:32 +02:00
|
|
|
|
Patch13: grub2-enable-theme-for-terminal-window.patch
|
|
|
|
|
Patch14: grub2-stdio.in.patch
|
2012-08-31 09:28:14 +02:00
|
|
|
|
Patch15: not-display-menu-when-boot-once.patch
|
|
|
|
|
Patch16: grub2-fix-Grub2-with-SUSE-Xen-package-install.patch
|
|
|
|
|
Patch17: grub2-pass-corret-root-for-nfsroot.patch
|
2012-09-25 09:46:38 +02:00
|
|
|
|
Patch18: grub2-fix-locale-en.mo.gz-not-found-error-message.patch
|
2012-10-26 17:06:09 +02:00
|
|
|
|
Patch19: grub2-fix-build-error-on-flex-2.5.37.patch
|
2012-11-20 13:07:42 +01:00
|
|
|
|
Patch20: grub2-quote-messages-in-grub.cfg.patch
|
2012-11-28 10:34:03 +01:00
|
|
|
|
Patch21: grub2-secureboot-add-linuxefi.patch
|
|
|
|
|
Patch22: grub2-secureboot-use-linuxefi-on-uefi.patch
|
|
|
|
|
Patch23: grub2-secureboot-no-insmod-on-sb.patch
|
|
|
|
|
Patch24: grub2-secureboot-provide-linuxefi-config.patch
|
2013-01-07 15:17:20 +01:00
|
|
|
|
Patch25: 30_os-prober_UEFI_support.patch
|
2013-01-08 03:50:55 +01:00
|
|
|
|
Patch26: grub2-fix-enumeration-of-extended-partition.patch
|
2013-01-08 08:46:22 +01:00
|
|
|
|
Patch27: grub2-add-device-to-os_prober-linux-menuentry.patch
|
2013-01-08 12:50:14 +01:00
|
|
|
|
Patch28: grub2-fix-unquoted-string-in-class.patch
|
2013-01-18 09:24:02 +01:00
|
|
|
|
Patch29: grub2-secureboot-chainloader.patch
|
2013-01-31 09:53:45 +01:00
|
|
|
|
Patch30: grub2-cdpath.patch
|
2013-02-15 17:18:37 +01:00
|
|
|
|
Patch31: efidisk-ahci-workaround
|
2010-02-18 15:10:48 +01:00
|
|
|
|
PreReq: perl-Bootloader
|
2010-09-13 18:50:45 +02:00
|
|
|
|
Requires: gettext-runtime
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-04-02 11:23:31 +02:00
|
|
|
|
Requires: os-prober
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%endif
|
2011-05-09 10:48:37 +02:00
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
|
Requires(preun):/sbin/install-info
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if ! 0%{?only_efi:1}
|
|
|
|
|
Requires: grub2-%{grubarch} = %{version}-%{release}
|
|
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if 0%{?only_x86_64:1}
|
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
%else
|
2011-08-02 16:45:10 +02:00
|
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc ppc64
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%endif
|
2011-08-02 16:45:10 +02:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%description
|
2013-02-15 17:18:37 +01:00
|
|
|
|
This is the second version of the GRUB (Grand Unified Bootloader), a
|
|
|
|
|
highly configurable and customizable bootloader with modular
|
|
|
|
|
architecture. It support rich scale of kernel formats, file systems,
|
2010-02-18 15:10:48 +01:00
|
|
|
|
computer architectures and hardware devices.
|
|
|
|
|
|
2013-02-15 17:18:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Gordon Matzigkeit
|
|
|
|
|
Yoshinori K. Okuji
|
|
|
|
|
Colin Watson
|
|
|
|
|
Colin D. Bennett
|
|
|
|
|
Vesa J<EFBFBD><EFBFBD>skel<EFBFBD>inen
|
|
|
|
|
Robert Millan
|
|
|
|
|
Carles Pina
|
2010-02-18 15:10:48 +01:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%package %{grubarch}
|
|
|
|
|
|
2013-02-15 17:18:37 +01:00
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2012-11-28 10:34:03 +01:00
|
|
|
|
Group: System/Boot
|
|
|
|
|
|
|
|
|
|
%description %{grubarch}
|
|
|
|
|
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
|
|
|
|
bootloader with modular architecture. It supports rich variety of kernel formats,
|
|
|
|
|
file systems, computer architectures and hardware devices. This subpackage
|
|
|
|
|
provides support for %{platform} systems.
|
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%ifarch %{efi}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} == 1220 || 0%{?suse_version} == 1230
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%package efi
|
2011-08-26 10:01:51 +02:00
|
|
|
|
|
2013-02-15 17:18:37 +01:00
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2012-11-28 10:34:03 +01:00
|
|
|
|
Group: System/Boot
|
|
|
|
|
PreReq: %{name} = %{version}-%{release}
|
|
|
|
|
PreReq: %{name}-%{grubefiarch} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description efi
|
2013-02-15 17:18:37 +01:00
|
|
|
|
This is the second version of the GRUB (Grand Unified Bootloader), a
|
|
|
|
|
highly configurable and customizable bootloader with modular
|
|
|
|
|
architecture. It support rich scale of kernel formats, file systems,
|
|
|
|
|
computer architectures and hardware devices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Gordon Matzigkeit
|
|
|
|
|
Yoshinori K. Okuji
|
|
|
|
|
Colin Watson
|
|
|
|
|
Colin D. Bennett
|
|
|
|
|
Vesa J<EFBFBD><EFBFBD>skel<EFBFBD>inen
|
|
|
|
|
Robert Millan
|
|
|
|
|
Carles Pina
|
|
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
|
|
%package %{grubefiarch}
|
|
|
|
|
|
2013-02-15 17:18:37 +01:00
|
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
2012-03-22 12:32:34 +01:00
|
|
|
|
Group: System/Boot
|
2011-10-27 13:49:04 +02:00
|
|
|
|
%ifarch ia64 x86_64
|
|
|
|
|
#Package is available on ia64 and x86_64 only and not necessarily needed
|
2011-10-25 16:00:45 +02:00
|
|
|
|
Requires: efibootmgr
|
2011-10-27 13:49:04 +02:00
|
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%description %{grubefiarch}
|
2011-08-26 10:01:42 +02:00
|
|
|
|
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
2012-02-23 15:32:40 +01:00
|
|
|
|
bootloader with modular architecture. It supports rich variety of kernel formats,
|
2011-08-26 10:01:42 +02:00
|
|
|
|
file systems, computer architectures and hardware devices. This subpackage
|
|
|
|
|
provides support for EFI systems.
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%prep
|
2012-06-29 06:59:42 +02:00
|
|
|
|
# We create (if we build for efi) two copies of the sources in the Builddir
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%setup -q -n grub-%{version} -a 5
|
2012-06-29 06:59:42 +02:00
|
|
|
|
(cd po && ls *.po | cut -d. -f1 | xargs) >po/LINGUAS
|
2011-05-09 10:48:37 +02:00
|
|
|
|
%patch0 -p1
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%patch1 -p1
|
2012-11-13 09:53:25 +01:00
|
|
|
|
# Workaround SLE11's patch utility did not rename the file for us
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} == 1110 || 0%{?sles_version} == 11
|
2012-11-13 09:53:25 +01:00
|
|
|
|
mv docs/grub.texi docs/grub2.texi
|
|
|
|
|
%endif
|
2012-03-22 12:32:34 +01:00
|
|
|
|
%patch2 -p1
|
2011-05-09 10:48:37 +02:00
|
|
|
|
%patch3 -p1
|
2012-03-22 12:32:34 +01:00
|
|
|
|
%patch6 -p1
|
|
|
|
|
%patch7 -p1
|
2012-06-29 14:19:02 +02:00
|
|
|
|
%patch8 -p1
|
2012-07-09 07:58:49 +02:00
|
|
|
|
%patch9 -p1
|
2012-07-23 10:00:52 +02:00
|
|
|
|
%patch10 -p1
|
|
|
|
|
%patch11 -p1
|
|
|
|
|
%patch12 -p1
|
2012-08-31 09:28:14 +02:00
|
|
|
|
# disable and back to use black colored terminal window (bnc#776244)
|
|
|
|
|
# we could enable it when
|
|
|
|
|
# 1 we have background with better contrast to the font's color
|
|
|
|
|
# 2 we confirm it's eligible to set the terminal background this way
|
|
|
|
|
#%patch13 -p1
|
2012-07-30 20:27:32 +02:00
|
|
|
|
%patch14 -p2
|
2012-08-31 09:28:14 +02:00
|
|
|
|
%patch15 -p1
|
|
|
|
|
%patch16 -p1
|
|
|
|
|
%patch17 -p1
|
2012-09-25 09:46:38 +02:00
|
|
|
|
%patch18 -p1
|
2012-10-26 17:06:09 +02:00
|
|
|
|
%patch19 -p1
|
2012-11-20 13:07:42 +01:00
|
|
|
|
%patch20 -p1
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%patch21 -p1
|
|
|
|
|
%patch22 -p1
|
|
|
|
|
%patch23 -p1
|
|
|
|
|
%patch24 -p1
|
2013-01-07 15:17:20 +01:00
|
|
|
|
%patch25 -p1
|
2013-01-08 03:50:55 +01:00
|
|
|
|
%patch26 -p1
|
2013-01-08 08:46:22 +01:00
|
|
|
|
%patch27 -p1
|
2013-01-08 12:50:14 +01:00
|
|
|
|
%patch28 -p1
|
2013-01-18 09:24:02 +01:00
|
|
|
|
%patch29 -p1
|
2013-01-31 09:53:45 +01:00
|
|
|
|
%patch30 -p1
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%patch31 -p1
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
# README.openSUSE
|
2013-02-15 17:18:37 +01:00
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
cp %{SOURCE8} .
|
|
|
|
|
cp %{SOURCE9} grub-core/.
|
|
|
|
|
mkdir build
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%ifarch %{efi}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
mkdir build-efi
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%endif
|
2010-02-18 15:10:48 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2012-11-13 09:53:25 +01:00
|
|
|
|
autoreconf -vi
|
2013-02-15 17:18:37 +01:00
|
|
|
|
# Not yet:
|
|
|
|
|
%define common_conf_options TARGET_LDFLAGS=-static --program-transform-name=s,grub,%{name},
|
|
|
|
|
# This does NOT work on SLE11:
|
|
|
|
|
%define _configure ../configure
|
|
|
|
|
|
|
|
|
|
# We don't want to let rpm override *FLAGS with default a.k.a bogus values.
|
2012-11-13 09:53:25 +01:00
|
|
|
|
CFLAGS="-fno-strict-aliasing -fno-inline-functions-called-once "
|
2011-08-26 10:01:42 +02:00
|
|
|
|
CXXFLAGS=" "
|
|
|
|
|
FFLAGS=" "
|
|
|
|
|
export CFLAGS CXXFLAGS FFLAGS
|
2013-02-15 17:18:37 +01:00
|
|
|
|
|
|
|
|
|
%ifarch %{efi}
|
|
|
|
|
cd build-efi
|
|
|
|
|
../configure \
|
2011-08-26 10:01:42 +02:00
|
|
|
|
TARGET_LDFLAGS=-static \
|
2013-02-15 17:18:37 +01:00
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2011-12-30 08:45:41 +01:00
|
|
|
|
--target=%{_target_platform} \
|
2013-02-19 17:44:15 +01:00
|
|
|
|
--libdir=%{_libdir} \
|
2011-08-26 10:01:42 +02:00
|
|
|
|
--with-platform=efi \
|
2012-10-26 17:06:09 +02:00
|
|
|
|
--program-transform-name=s,grub,%{name},
|
2012-07-04 22:12:58 +02:00
|
|
|
|
make %{?_smp_mflags}
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
|
|
#TODO: add efifwsetup module
|
|
|
|
|
|
2013-01-31 09:53:45 +01:00
|
|
|
|
FS_MODULES="ext2 btrfs ext2 xfs jfs reiserfs"
|
2012-11-28 10:34:03 +01:00
|
|
|
|
CD_MODULES=" all_video boot cat chain configfile echo \
|
2013-02-15 17:18:37 +01:00
|
|
|
|
efinet font gfxmenu gfxterm gzio halt iso9660 \
|
2012-11-28 10:34:03 +01:00
|
|
|
|
jpeg minicmd normal part_apple part_msdos part_gpt \
|
|
|
|
|
password_pbkdf2 png reboot search search_fs_uuid \
|
2013-02-15 17:18:37 +01:00
|
|
|
|
search_fs_file search_label sleep test video fat"
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
CD_MODULES="${CD_MODULES} linuxefi"
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%else
|
2012-11-28 10:34:03 +01:00
|
|
|
|
CD_MODULES="${CD_MODULES} linux"
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
|
|
GRUB_MODULES="${CD_MODULES} ${FS_MODULES} mdraid09 mdraid1x"
|
2013-01-31 09:53:45 +01:00
|
|
|
|
./grub-mkimage -O %{grubefiarch} -o grub.efi --prefix= \
|
2012-11-28 10:34:03 +01:00
|
|
|
|
-d grub-core ${GRUB_MODULES}
|
|
|
|
|
#./grub-mkimage -O %{grubefiarch} -o grub.efi -d grub-core part_gpt hfsplus fat \
|
|
|
|
|
# ext2 btrfs normal chain boot configfile linux appleldr minicmd \
|
|
|
|
|
# loadbios reboot halt search font gfxterm
|
2011-08-26 10:01:42 +02:00
|
|
|
|
cd ..
|
|
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if ! 0%{?only_efi:1}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
cd build
|
2011-05-09 10:48:37 +02:00
|
|
|
|
|
2011-12-30 08:45:41 +01:00
|
|
|
|
# 64-bit x86-64 machines use 32-bit boot loader
|
|
|
|
|
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-06-29 14:19:02 +02:00
|
|
|
|
%ifnarch ppc ppc64
|
|
|
|
|
%define extraconfigure --enable-grub-emu-usb
|
|
|
|
|
%endif
|
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
# -static is needed so that autoconf script is able to link
|
|
|
|
|
# test that looks for _start symbol on 64 bit platforms
|
2013-02-15 17:18:37 +01:00
|
|
|
|
../configure TARGET_LDFLAGS=-static \
|
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2011-12-30 08:45:41 +01:00
|
|
|
|
--target=%{_target_platform} \
|
2011-08-02 16:45:10 +02:00
|
|
|
|
--with-platform=%{platform} \
|
2012-06-29 14:19:02 +02:00
|
|
|
|
%{extraconfigure} \
|
2010-02-18 15:10:48 +01:00
|
|
|
|
--program-transform-name=s,grub,%{name},
|
2011-05-09 10:48:37 +02:00
|
|
|
|
make %{?_smp_mflags}
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%endif
|
2010-02-18 15:10:48 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%ifarch %{efi}
|
2013-02-07 11:46:30 +01:00
|
|
|
|
%ifarch x86_64
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1230 || 0%{?sles_version} >= 11
|
2013-02-19 17:44:15 +01:00
|
|
|
|
export BRP_PESIGN_FILES="%{_libdir}/%{name}/%{grubefiarch}/grub.efi"
|
2013-02-07 11:46:30 +01:00
|
|
|
|
%endif
|
2013-01-31 09:53:45 +01:00
|
|
|
|
%endif
|
2013-02-15 17:18:37 +01:00
|
|
|
|
cd build-efi
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2011-08-26 10:01:42 +02:00
|
|
|
|
|
2013-02-19 17:44:15 +01:00
|
|
|
|
install -m 644 grub.efi $RPM_BUILD_ROOT%{_libdir}/%{name}/%{grubefiarch}/.
|
|
|
|
|
|
|
|
|
|
# Create grub.efi link to system efi directory
|
|
|
|
|
# This is for tools like kiwi not fiddling with the path
|
|
|
|
|
%if "%{grubefiarch}" == "x86_64-efi"
|
|
|
|
|
%define sysefidir %{_exec_prefix}/lib64/efi
|
|
|
|
|
%else
|
|
|
|
|
%define sysefidir %{_libdir}/efi
|
|
|
|
|
%endif
|
|
|
|
|
install -d $RPM_BUILD_ROOT%{sysefidir}
|
|
|
|
|
ln -sf ../../../%{_libdir}/%{name}/%{grubefiarch}/grub.efi $RPM_BUILD_ROOT%{sysefidir}/grub.efi
|
|
|
|
|
|
2011-08-26 10:01:42 +02:00
|
|
|
|
cd ..
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if ! 0%{?only_efi:1}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
cd build
|
2010-02-18 15:10:48 +01:00
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%else
|
2013-02-15 17:18:37 +01:00
|
|
|
|
cd build-efi
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
# Script that makes part of grub.cfg persist across updates
|
|
|
|
|
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/grub.d/
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2012-09-23 21:04:15 +02:00
|
|
|
|
# Script to generate memtest86+ menu entry
|
|
|
|
|
install -m 755 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/grub.d/
|
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
# Ghost config file
|
|
|
|
|
install -d $RPM_BUILD_ROOT/boot/%{name}
|
|
|
|
|
touch $RPM_BUILD_ROOT/boot/%{name}/grub.cfg
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
|
|
|
|
# Remove devel files
|
|
|
|
|
rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*/*.h
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-03-22 12:32:34 +01:00
|
|
|
|
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.h
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%endif
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
2012-10-26 17:06:09 +02:00
|
|
|
|
%ifarch %{efi}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} == 1220 || 0%{?suse_version} == 1230
|
2012-10-26 17:06:09 +02:00
|
|
|
|
# grub2-efi compatibility links until other packages are fixed
|
|
|
|
|
ln -sf %{name}-editenv $RPM_BUILD_ROOT%{_bindir}/%{name}-efi-editenv
|
|
|
|
|
ln -sf %{name}-set-default $RPM_BUILD_ROOT%{_sbindir}/%{name}-efi-set-default
|
|
|
|
|
ln -sf %{name}-mkconfig $RPM_BUILD_ROOT%{_sbindir}/%{name}-efi-mkconfig
|
|
|
|
|
ln -sf %{name}-install $RPM_BUILD_ROOT%{_sbindir}/%{name}-efi-install
|
|
|
|
|
ln -sf %{name} $RPM_BUILD_ROOT/boot/%{name}-efi
|
|
|
|
|
%endif
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%endif
|
2012-10-26 17:06:09 +02:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
# Defaults
|
|
|
|
|
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub
|
2012-08-31 09:28:14 +02:00
|
|
|
|
install -m 755 -D %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/grub2-once
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%find_lang %{name}
|
2011-11-28 12:53:25 +01:00
|
|
|
|
%fdupes %buildroot%{_bindir}
|
2010-03-15 00:45:00 +01:00
|
|
|
|
|
|
|
|
|
%post
|
2011-05-09 10:48:37 +02:00
|
|
|
|
/sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if ! 0%{?only_efi:1}
|
2012-09-23 21:04:15 +02:00
|
|
|
|
# To check by current loader settings
|
|
|
|
|
if [ -f %{_sysconfdir}/sysconfig/bootloader ]; then
|
|
|
|
|
. %{_sysconfdir}/sysconfig/bootloader
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# If the grub is the current loader, we'll handle the grub2 testing entry
|
|
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub" ]; then
|
|
|
|
|
|
|
|
|
|
exec >/dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
# check if entry for grub2's core.img exists in the config
|
|
|
|
|
# if yes, we will correct obsoleted path and update grub2 stuff and config to make it work
|
|
|
|
|
# if no, do nothing
|
|
|
|
|
if [ -f /boot/grub/menu.lst ]; then
|
|
|
|
|
|
|
|
|
|
# If grub config contains obsolete core.img path, remove and use the new one
|
|
|
|
|
if /usr/bin/grep -l "^\s*kernel\s*.*/boot/%{name}/core.img" /boot/grub/menu.lst; then
|
|
|
|
|
/sbin/update-bootloader --remove --image /boot/%{name}/core.img || true
|
|
|
|
|
/sbin/update-bootloader --add --image /boot/%{name}/i386-pc/core.img --name "GNU GRUB 2" || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Install grub2 stuff and config to make the grub2 testing entry to work with updated version
|
|
|
|
|
if /usr/bin/grep -l "^\s*kernel\s*.*/boot/%{name}/i386-pc/core.img" /boot/grub/menu.lst; then
|
|
|
|
|
# Determine the partition with /boot
|
|
|
|
|
BOOT_PARTITION=$(df -h /boot |(read; awk '{print $1; exit}'))
|
|
|
|
|
# Generate core.img, but don't let it be installed in boot sector
|
|
|
|
|
%{name}-install --grub-setup=/bin/true $BOOT_PARTITION || true
|
|
|
|
|
# Create a working grub2 config, otherwise that entry is un-bootable
|
|
|
|
|
/usr/sbin/grub2-mkconfig -o /boot/%{name}/grub.cfg
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
elif [ "x${LOADER_TYPE}" = "xgrub2" ]; then
|
|
|
|
|
|
|
|
|
|
# It's enought to call update-bootloader --refesh to install grub2 and update it's config
|
|
|
|
|
/sbin/update-bootloader --refresh || true
|
|
|
|
|
fi
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
2011-11-28 12:53:25 +01:00
|
|
|
|
%ifarch %{efi}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%if 0%{?suse_version} == 1220 || 0%{?suse_version} == 1230
|
2011-11-28 12:53:25 +01:00
|
|
|
|
|
2012-10-26 17:06:09 +02:00
|
|
|
|
%triggerpostun -- %{name}-efi
|
|
|
|
|
|
|
|
|
|
# It is needed on update only
|
|
|
|
|
if [ $2 -gt 0 ]; then
|
|
|
|
|
|
|
|
|
|
# Workaround for lost /boot/grub2/grub.cfg and possibly /boot/grub2-efi
|
|
|
|
|
# after old grub2-efi deinstallation
|
|
|
|
|
if [ -f /boot/%{name}/grub.cfg.migrated ]; then
|
|
|
|
|
mv /boot/%{name}/grub.cfg.migrated /boot/%{name}/grub.cfg
|
|
|
|
|
fi
|
|
|
|
|
[ -h /boot/%{name}-efi ] || ln -sf %{name} /boot/%{name}-efi
|
2012-09-23 21:04:15 +02:00
|
|
|
|
|
|
|
|
|
fi
|
2012-10-26 17:06:09 +02:00
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%post efi
|
|
|
|
|
|
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
|
|
|
|
|
|
# If this is new install, just create compatibility link
|
|
|
|
|
ln -sf grub2 /boot/grub2-efi
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
# Always create compatibility link even if current loader is not grub2-efi
|
|
|
|
|
if [ -h /boot/%{name}-efi ]; then
|
|
|
|
|
migrate_grub2_efi=
|
|
|
|
|
else
|
|
|
|
|
migrate_grub2_efi=yes
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# To check by current loader settings
|
|
|
|
|
if [ -f %{_sysconfdir}/sysconfig/bootloader ]; then
|
|
|
|
|
. %{_sysconfdir}/sysconfig/bootloader
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub2-efi" ]; then
|
|
|
|
|
|
|
|
|
|
if [ "$migrate_grub2_efi" ]; then
|
|
|
|
|
# Migrate settings to standard prefix /boot/grub2
|
|
|
|
|
for i in custom.cfg device.map grub.cfg grubenv; do
|
|
|
|
|
[ -f /boot/%{name}-efi/$i ] && cp -a /boot/%{name}-efi/$i /boot/%{name} || :
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$migrate_grub2_efi" ]; then
|
|
|
|
|
mv /boot/%{name}-efi /boot/%{name}-efi.rpmsave
|
|
|
|
|
ln -sf %{name} /boot/%{name}-efi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub2-efi" ]; then
|
|
|
|
|
# It's enough to call update-bootloader --refesh to install grub2 and update it's config
|
|
|
|
|
/sbin/update-bootloader --refresh || true
|
|
|
|
|
|
|
|
|
|
# Uninstallation of previous grub2-efi versions will remove
|
|
|
|
|
# /boot/grub2-efi/grub.cfg and possibly /boot/grub2-efi itself.
|
|
|
|
|
# Preserve grub2.cfg and use it as migration flag in postun trigger
|
|
|
|
|
[ "$migrate_grub2_efi" ] && mv /boot/%{name}/grub.cfg /boot/%{name}/grub.cfg.migrated
|
|
|
|
|
fi
|
2012-09-23 21:04:15 +02:00
|
|
|
|
|
|
|
|
|
fi
|
2012-10-26 17:06:09 +02:00
|
|
|
|
exit 0
|
2011-11-28 12:53:25 +01:00
|
|
|
|
%endif
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%preun
|
2011-05-09 10:48:37 +02:00
|
|
|
|
if [ $1 = 0 ]; then
|
2012-09-23 21:04:15 +02:00
|
|
|
|
/sbin/install-info --delete %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if ! 0%{?only_efi:1}
|
2012-09-23 21:04:15 +02:00
|
|
|
|
# To check by current loader settings
|
|
|
|
|
if [ -f %{_sysconfdir}/sysconfig/bootloader ]; then
|
|
|
|
|
. %{_sysconfdir}/sysconfig/bootloader
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "x${LOADER_TYPE}" = "xgrub" ]; then
|
|
|
|
|
|
|
|
|
|
exec >/dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
if [ -f /boot/grub/menu.lst ]; then
|
|
|
|
|
|
|
|
|
|
# Remove grub2 testing entry in menu.lst if has any
|
|
|
|
|
for i in /boot/%{name}/core.img /boot/%{name}/i386-pc/core.img; do
|
|
|
|
|
if /usr/bin/grep -l "^\s*kernel\s*.*$i" /boot/grub/menu.lst; then
|
|
|
|
|
/sbin/update-bootloader --remove --image "$i" || true
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Cleanup config, to not confuse some tools determining bootloader in use
|
|
|
|
|
rm -f /boot/%{name}/grub.cfg
|
|
|
|
|
|
|
|
|
|
# Cleanup installed files
|
|
|
|
|
# Unless grub2 provides grub2-uninstall, we don't remove any file because
|
|
|
|
|
# we have no idea what's been installed. (And a blind remove is dangerous
|
|
|
|
|
# to remove user's or other package's file accidently ..)
|
|
|
|
|
fi
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%endif
|
2011-05-09 10:48:37 +02:00
|
|
|
|
fi
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if 0%{?only_efi:1}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%define source_dir build-efi
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%else
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%define source_dir build
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%endif
|
2011-05-09 10:48:37 +02:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%files -f %{source_dir}/%{name}.lang
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%defattr(-,root,root,-)
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%doc COPYING NEWS README
|
|
|
|
|
%doc THANKS TODO ChangeLog
|
|
|
|
|
%doc README.openSUSE
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%dir /boot/%{name}
|
|
|
|
|
%ghost /boot/%{name}/grub.cfg
|
2011-05-09 10:48:37 +02:00
|
|
|
|
%{_sysconfdir}/bash_completion.d/grub
|
2012-03-29 13:57:50 +02:00
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/grub
|
2010-02-18 15:10:48 +01:00
|
|
|
|
%dir %{_sysconfdir}/grub.d
|
|
|
|
|
%{_sysconfdir}/grub.d/README
|
2011-05-09 10:48:37 +02:00
|
|
|
|
%config %{_sysconfdir}/grub.d/??_*
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%{_sbindir}/%{name}-bios-setup
|
|
|
|
|
%{_sbindir}/%{name}-install
|
|
|
|
|
%{_sbindir}/%{name}-mkconfig
|
|
|
|
|
%{_sbindir}/%{name}-mknetdir
|
2012-08-31 09:28:14 +02:00
|
|
|
|
%{_sbindir}/%{name}-once
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%{_sbindir}/%{name}-ofpathname
|
|
|
|
|
%{_sbindir}/%{name}-probe
|
|
|
|
|
%{_sbindir}/%{name}-reboot
|
|
|
|
|
%{_sbindir}/%{name}-set-default
|
|
|
|
|
%{_sbindir}/%{name}-sparc64-setup
|
|
|
|
|
%{_bindir}/%{name}-editenv
|
|
|
|
|
%{_bindir}/%{name}-fstest
|
|
|
|
|
%{_bindir}/%{name}-kbdcomp
|
|
|
|
|
%{_bindir}/%{name}-menulst2cfg
|
|
|
|
|
%{_bindir}/%{name}-mkfont
|
|
|
|
|
%{_bindir}/%{name}-mkimage
|
|
|
|
|
%{_bindir}/%{name}-mklayout
|
|
|
|
|
%{_bindir}/%{name}-mkpasswd-pbkdf2
|
|
|
|
|
%{_bindir}/%{name}-mkrelpath
|
|
|
|
|
%{_bindir}/%{name}-mkrescue
|
|
|
|
|
%{_bindir}/%{name}-mkstandalone
|
|
|
|
|
%{_bindir}/%{name}-mount
|
|
|
|
|
%{_bindir}/%{name}-script-check
|
2013-02-19 17:44:15 +01:00
|
|
|
|
%dir %{_libdir}/%{name}
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%dir %{_datadir}/%{name}
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%{_datadir}/%{name}/*.pf2
|
2012-11-13 09:53:25 +01:00
|
|
|
|
%endif
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%{_datadir}/%{name}/grub-mkconfig_lib
|
2011-05-09 10:48:37 +02:00
|
|
|
|
%{_infodir}/grub-dev.info*
|
|
|
|
|
%{_infodir}/%{name}.info*
|
2010-02-18 15:10:48 +01:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%if ! 0%{?only_efi:1}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%files %{grubarch}
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%dir %{_libdir}/%{name}/%{grubarch}
|
|
|
|
|
%ifnarch ppc ppc64
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/*.image
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/*.img
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/*.lst
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/*.mod
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/*.module
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/efiemu*.o
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/gdb_grub2
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/gmodule.pl
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/kernel.exec
|
|
|
|
|
%{_libdir}/%{name}/%{grubarch}/modinfo.sh
|
|
|
|
|
%endif
|
2011-08-26 10:01:42 +02:00
|
|
|
|
|
2012-11-28 10:34:03 +01:00
|
|
|
|
%ifarch %{efi}
|
2013-02-15 17:18:37 +01:00
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} == 1220 || 0%{?suse_version} == 1230
|
2012-10-26 17:06:09 +02:00
|
|
|
|
%files efi
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%defattr(-,root,root,-)
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%doc README
|
2012-10-26 17:06:09 +02:00
|
|
|
|
%ghost /boot/grub2-efi
|
2012-06-29 06:59:42 +02:00
|
|
|
|
%{_sbindir}/grub2-efi-install
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%{_sbindir}/grub2-efi-mkconfig
|
|
|
|
|
%{_sbindir}/grub2-efi-set-default
|
|
|
|
|
%{_bindir}/grub2-efi-editenv
|
2013-02-15 17:18:37 +01:00
|
|
|
|
%endif
|
2012-11-28 10:34:03 +01:00
|
|
|
|
|
|
|
|
|
%files %{grubefiarch}
|
|
|
|
|
%defattr(-,root,root,-)
|
2013-02-19 17:44:15 +01:00
|
|
|
|
%dir %{_libdir}/%{name}/%{grubefiarch}
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/grub.efi
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/*.img
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/*.lst
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/*.mod
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/*.module
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/gdb_grub2
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/gmodule.pl
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/kernel.exec
|
|
|
|
|
%{_libdir}/%{name}/%{grubefiarch}/modinfo.sh
|
|
|
|
|
%dir %{sysefidir}
|
|
|
|
|
%{sysefidir}/grub.efi
|
2011-08-26 10:01:42 +02:00
|
|
|
|
%endif
|
2013-01-08 03:50:55 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|