2019-09-30 10:52:04 -04:00
|
|
|
%undefine _hardened_build
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%global tarversion 2.04
|
2019-09-30 10:52:04 -04:00
|
|
|
%undefine _missing_build_ids_terminate_build
|
|
|
|
|
%global _configure_gnuconfig_hack 0
|
|
|
|
|
|
|
|
|
|
Name: grub2
|
|
|
|
|
Epoch: 1
|
2020-07-29 20:47:36 +08:00
|
|
|
Version: 2.04
|
2020-08-07 16:14:32 +08:00
|
|
|
Release: 3
|
2019-09-30 10:52:04 -04:00
|
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: http://www.gnu.org/software/grub/
|
2020-07-29 20:47:36 +08:00
|
|
|
Source0: https://ftp.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
|
|
|
|
|
Source1: grub.macros
|
2019-09-30 10:52:04 -04:00
|
|
|
Source2: grub.patches
|
|
|
|
|
Source4: http://unifoundry.com/unifont-5.1.20080820.pcf.gz
|
|
|
|
|
Source5: theme.tar.bz2
|
|
|
|
|
Source6: gitignore
|
2020-07-29 20:47:36 +08:00
|
|
|
Source7: 99-grub-mkconfig.install
|
|
|
|
|
Source9: strtoull_test.c
|
|
|
|
|
Source10: 20-grub.install
|
2019-09-30 10:52:04 -04:00
|
|
|
Source11: installkernel-bls
|
2020-07-29 20:47:36 +08:00
|
|
|
Source12: installkernel.in
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%include %{SOURCE1}
|
|
|
|
|
%include %{SOURCE2}
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
BuildRequires: gcc efi-srpm-macros flex bison binutils python3 ncurses-devel xz-devel
|
|
|
|
|
BuildRequires: freetype-devel libusb-devel bzip2-devel rpm-devel rpm-devel rpm-libs
|
|
|
|
|
BuildRequires: autoconf automake autogen device-mapper-devel freetype-devel git
|
|
|
|
|
BuildRequires: texinfo gettext-devel dejavu-sans-fonts help2man systemd
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%ifarch %{golang_arches}
|
|
|
|
|
BuildRequires: pesign >= 0.99-8
|
|
|
|
|
%endif
|
|
|
|
|
%if %{?_with_ccache: 1}%{?!_with_ccache: 0}
|
|
|
|
|
BuildRequires: ccache
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
Obsoletes: grub2 <= %{evr} grub < 1:0.98
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
Requires: %{name}-%{legacy_package_arch} = %{evr}
|
|
|
|
|
%else
|
|
|
|
|
Requires: %{name}-%{package_arch} = %{evr}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
%description
|
2020-07-29 20:47:36 +08:00
|
|
|
GNU GRUB is a Multiboot boot loader. It was derived from GRUB, the GRand
|
|
|
|
|
Unified Bootloader, which was originally designed and implemented by
|
2019-09-30 10:52:04 -04:00
|
|
|
Erich Stefan Boleyn.
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
Briefly, a boot loader is the first software program that runs when a
|
|
|
|
|
computer starts. It is responsible for loading and transferring control
|
|
|
|
|
to the operating system kernel software (such as the Hurd or Linux). The
|
2019-09-30 10:52:04 -04:00
|
|
|
kernel, in turn, initializes the rest of the operating system (e.g. GNU).
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%package common
|
2019-09-30 10:52:04 -04:00
|
|
|
Summary: common package for grub2
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Conflicts: grubby < 8.40-18
|
|
|
|
|
|
|
|
|
|
%description common
|
|
|
|
|
Common package for grub2.
|
|
|
|
|
|
|
|
|
|
%package tools
|
2020-07-29 20:47:36 +08:00
|
|
|
Summary: tools package for grub2
|
|
|
|
|
Requires: grub2-common = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: gettext os-prober which file
|
|
|
|
|
Requires(pre): dracut
|
|
|
|
|
Requires(post): dracut
|
2019-09-30 10:52:04 -04:00
|
|
|
Provides: grub2-tools-minimal grub2-tools-extra
|
|
|
|
|
Obsoletes: grub2-tools-minimal grub2-tools-extra
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
tools package for grub2.
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%package tools-efi
|
|
|
|
|
Summary: efi packages for grub2-tools
|
2020-07-29 20:47:36 +08:00
|
|
|
Requires: grub2-common = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: gettext os-prober which file
|
|
|
|
|
Obsoletes: grub2-tools < %{evr}
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%description tools-efi
|
|
|
|
|
Efi packages for grub2-tools.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%{expand:%define_efi_variant %%{package_arch} -o}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
%{expand:%define_efi_variant %%{alt_package_arch}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
%{expand:%define_legacy_variant %%{legacy_package_arch}}
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%if 0%{with_emu_arch}
|
|
|
|
|
%package emu
|
|
|
|
|
Summary: GRUB user-space emulation.
|
|
|
|
|
Requires: %{name}-tools-minimal = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description emu
|
|
|
|
|
This subpackage provides the GRUB user-space emulation support of all platforms.
|
|
|
|
|
|
|
|
|
|
%package emu-modules
|
|
|
|
|
Summary: GRUB user-space emulation modules.
|
|
|
|
|
Requires: %{name}-tools-minimal = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description emu-modules
|
|
|
|
|
This subpackage provides the GRUB user-space emulation modules.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package_help
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%do_common_setup
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
mkdir grub-%{grubefiarch}-%{tarversion}
|
|
|
|
|
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubefiarch}-%{tarversion}/.gitignore
|
|
|
|
|
cp %{SOURCE4} grub-%{grubefiarch}-%{tarversion}/unifont.pcf.gz
|
|
|
|
|
git add grub-%{grubefiarch}-%{tarversion}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
mkdir grub-%{grubaltefiarch}-%{tarversion}
|
|
|
|
|
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubaltefiarch}-%{tarversion}/.gitignore
|
|
|
|
|
cp %{SOURCE4} grub-%{grubaltefiarch}-%{tarversion}/unifont.pcf.gz
|
|
|
|
|
git add grub-%{grubaltefiarch}-%{tarversion}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
mkdir grub-%{grublegacyarch}-%{tarversion}
|
|
|
|
|
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grublegacyarch}-%{tarversion}/.gitignore
|
|
|
|
|
cp %{SOURCE4} grub-%{grublegacyarch}-%{tarversion}/unifont.pcf.gz
|
|
|
|
|
git add grub-%{grublegacyarch}-%{tarversion}
|
|
|
|
|
%endif
|
2020-07-29 20:47:36 +08:00
|
|
|
%if 0%{with_emu_arch}
|
|
|
|
|
mkdir grub-emu-%{tarversion}
|
|
|
|
|
grep -A100000 '# stuff "make" creates' .gitignore > grub-emu-%{tarversion}/.gitignore
|
|
|
|
|
cp %{SOURCE4} grub-emu-%{tarversion}/unifont.pcf.gz
|
|
|
|
|
git add grub-emu-%{tarversion}
|
|
|
|
|
%endif
|
2019-09-30 10:52:04 -04:00
|
|
|
git commit -m "After making subdirs"
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
%{expand:%do_alt_efi_build %%{grubaltefiarch} %%{grubaltefiname} %%{grubalteficdname} %%{_alt_target_platform} %%{alt_efi_target_cflags} %%{alt_efi_host_cflags}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
%{expand:%do_legacy_build %%{grublegacyarch}}
|
|
|
|
|
%endif
|
2020-07-29 20:47:36 +08:00
|
|
|
%if 0%{with_emu_arch}
|
|
|
|
|
%{expand:%do_emu_build}
|
|
|
|
|
%endif
|
2019-09-30 10:52:04 -04:00
|
|
|
makeinfo --info --no-split -I docs -o docs/grub-dev.info docs/grub-dev.texi
|
|
|
|
|
makeinfo --info --no-split -I docs -o docs/grub.info docs/grub.texi
|
|
|
|
|
makeinfo --html --no-split -I docs -o docs/grub-dev.html docs/grub-dev.texi
|
|
|
|
|
makeinfo --html --no-split -I docs -o docs/grub.html docs/grub.texi
|
|
|
|
|
|
2020-02-20 19:28:44 +08:00
|
|
|
%check
|
|
|
|
|
pushd %{_builddir}/%{?buildsubdir}/grub-%{grubefiarch}-%{tarversion}/grub-core
|
|
|
|
|
make check
|
|
|
|
|
popd
|
|
|
|
|
|
2019-09-30 10:52:04 -04:00
|
|
|
%install
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
%do_common_install
|
|
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%{expand:%do_efi_install %%{grubefiarch} %%{grubefiname} %%{grubeficdname}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
%{expand:%do_alt_efi_install %%{grubaltefiarch} %%{grubaltefiname} %%{grubalteficdname}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
%{expand:%do_legacy_install %%{grublegacyarch} %%{alt_grub_target_name} 0%{with_efi_arch}}
|
|
|
|
|
%endif
|
2020-07-29 20:47:36 +08:00
|
|
|
%if 0%{with_emu_arch}
|
|
|
|
|
%{expand:%do_emu_install %%{package_arch}}
|
|
|
|
|
%endif
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
|
ln -s %{name}-set-password ${RPM_BUILD_ROOT}/%{_sbindir}/%{name}-setpassword
|
|
|
|
|
echo '.so man8/%{name}-set-password.8' > ${RPM_BUILD_ROOT}/%{_datadir}/man/man8/%{name}-setpassword.8
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%ifnarch x86_64
|
2020-07-29 20:47:36 +08:00
|
|
|
rm -vf ${RPM_BUILD_ROOT}/%{_bindir}/%{name}-render-label
|
|
|
|
|
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/%{name}-bios-setup
|
|
|
|
|
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/%{name}-macbless
|
2019-09-30 10:52:04 -04:00
|
|
|
%endif
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%find_lang grub
|
|
|
|
|
|
2019-09-30 10:52:04 -04:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/prelink.conf.d/
|
|
|
|
|
|
|
|
|
|
pushd %{buildroot}%{_sysconfdir}/prelink.conf.d/
|
|
|
|
|
cat << EOF > grub2.conf
|
|
|
|
|
# these have execstack, and break under selinux
|
|
|
|
|
-b /usr/bin/grub2-script-check
|
|
|
|
|
-b /usr/bin/grub2-mkrelpath
|
|
|
|
|
-b /usr/bin/grub2-fstest
|
|
|
|
|
-b /usr/sbin/grub2-bios-setup
|
|
|
|
|
-b /usr/sbin/grub2-probe
|
|
|
|
|
-b /usr/sbin/grub2-sparc64-setup
|
|
|
|
|
EOF
|
|
|
|
|
popd
|
|
|
|
|
|
2019-12-13 15:26:39 +08:00
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/grub/themes
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
install -d -m 0755 %{buildroot}%{_prefix}/lib/kernel/install.d/
|
|
|
|
|
install -m 0755 %{SOURCE10} %{buildroot}%{_prefix}/lib/kernel/install.d
|
|
|
|
|
install -m 0755 %{SOURCE7} %{buildroot}%{_prefix}/lib/kernel/install.d
|
2019-09-30 10:52:04 -04:00
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/
|
2019-09-30 10:52:04 -04:00
|
|
|
install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/20-grubby.install
|
|
|
|
|
install -m 0644 /dev/null %{buildroot}%{_sysconfdir}/kernel/install.d/90-loaderentry.install
|
|
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_userunitdir}/timers.target.wants
|
|
|
|
|
install -m 0755 docs/grub-boot-success.timer %{buildroot}%{_userunitdir}
|
|
|
|
|
install -m 0755 docs/grub-boot-success.service %{buildroot}%{_userunitdir}
|
|
|
|
|
ln -s ../grub-boot-success.timer %{buildroot}%{_userunitdir}/timers.target.wants
|
|
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_unitdir}/system-update.target.wants
|
|
|
|
|
install -m 0755 docs/grub-boot-indeterminate.service %{buildroot}%{_unitdir}
|
|
|
|
|
ln -s ../grub-boot-indeterminate.service %{buildroot}%{_unitdir}/system-update.target.wants
|
|
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_libexecdir}/installkernel
|
|
|
|
|
cp -v %{SOURCE11} %{buildroot}%{_libexecdir}/installkernel
|
2020-07-29 20:47:36 +08:00
|
|
|
sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE12} > %{buildroot}%{_sbindir}/installkernel
|
2019-12-13 15:26:39 +08:00
|
|
|
|
2019-09-30 10:52:04 -04:00
|
|
|
%global finddebugroot "%{_builddir}/%{?buildsubdir}/debug"
|
|
|
|
|
|
|
|
|
|
%global dip RPM_BUILD_ROOT=%{finddebugroot} %{__debug_install_post}
|
2020-07-29 20:47:36 +08:00
|
|
|
%define __debug_install_post ( \
|
|
|
|
|
install -m 0755 -d %{finddebugroot}/usr \
|
|
|
|
|
mv %{buildroot}%{_bindir} %{finddebugroot}%{_bindir} \
|
|
|
|
|
mv %{buildroot}%{_sbindir} %{finddebugroot}%{_sbindir} \
|
|
|
|
|
%{dip} \
|
|
|
|
|
install -m 0755 -d %{buildroot}/usr/lib/ %{buildroot}/usr/src/ \
|
|
|
|
|
cp -al %{finddebugroot}/usr/lib/debug/ \\\
|
|
|
|
|
%{buildroot}/usr/lib/debug/ \
|
|
|
|
|
cp -al %{finddebugroot}/usr/src/debug/ \\\
|
|
|
|
|
%{buildroot}/usr/src/debug/ ) \
|
|
|
|
|
mv %{finddebugroot}%{_bindir} %{buildroot}%{_bindir} \
|
|
|
|
|
mv %{finddebugroot}%{_sbindir} %{buildroot}%{_sbindir} \
|
|
|
|
|
%{nil}
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
%undefine buildsubdir
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%pre tools
|
2019-09-30 10:52:04 -04:00
|
|
|
if [ -f /boot/grub2/user.cfg ]; then
|
|
|
|
|
if grep -q '^GRUB_PASSWORD=' /boot/grub2/user.cfg ; then
|
|
|
|
|
sed -i 's/^GRUB_PASSWORD=/GRUB2_PASSWORD=/' /boot/grub2/user.cfg
|
|
|
|
|
fi
|
|
|
|
|
elif [ -f %{efi_esp_dir}/user.cfg ]; then
|
|
|
|
|
if grep -q '^GRUB_PASSWORD=' %{efi_esp_dir}/user.cfg ; then
|
|
|
|
|
sed -i 's/^GRUB_PASSWORD=/GRUB2_PASSWORD=/' \
|
|
|
|
|
%{efi_esp_dir}/user.cfg
|
|
|
|
|
fi
|
|
|
|
|
elif [ -f /etc/grub.d/01_users ] && \
|
|
|
|
|
grep -q '^password_pbkdf2 root' /etc/grub.d/01_users ; then
|
|
|
|
|
if [ -f %{efi_esp_dir}/grub.cfg ]; then
|
|
|
|
|
# on EFI we don't get permissions on the file, but
|
|
|
|
|
# the directory is protected.
|
|
|
|
|
grep '^password_pbkdf2 root' /etc/grub.d/01_users | \
|
|
|
|
|
sed 's/^password_pbkdf2 root \(.*\)$/GRUB2_PASSWORD=\1/' \
|
|
|
|
|
> %{efi_esp_dir}/user.cfg
|
|
|
|
|
fi
|
|
|
|
|
if [ -f /boot/grub2/grub.cfg ]; then
|
|
|
|
|
install -m 0600 /dev/null /boot/grub2/user.cfg
|
|
|
|
|
chmod 0600 /boot/grub2/user.cfg
|
|
|
|
|
grep '^password_pbkdf2 root' /etc/grub.d/01_users | \
|
|
|
|
|
sed 's/^password_pbkdf2 root \(.*\)$/GRUB2_PASSWORD=\1/' \
|
|
|
|
|
> /boot/grub2/user.cfg
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%posttrans tools
|
|
|
|
|
|
|
|
|
|
if [ -f /etc/default/grub ]; then
|
|
|
|
|
! grep -q '^GRUB_ENABLE_BLSCFG=.*' /etc/default/grub && \
|
|
|
|
|
/sbin/grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
|
2019-09-30 10:52:04 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%triggerun -- grub2 < 1:1.99-4
|
|
|
|
|
mkdir -p /boot/grub2.tmp &&
|
|
|
|
|
mv -f /boot/grub2/*.mod \
|
|
|
|
|
/boot/grub2/*.img \
|
|
|
|
|
/boot/grub2/*.lst \
|
|
|
|
|
/boot/grub2/device.map \
|
|
|
|
|
/boot/grub2.tmp/ || :
|
|
|
|
|
|
|
|
|
|
%triggerpostun -- grub2 < 1:1.99-4
|
|
|
|
|
test ! -f /boot/grub2/device.map &&
|
|
|
|
|
test -d /boot/grub2.tmp &&
|
|
|
|
|
mv -f /boot/grub2.tmp/*.mod \
|
|
|
|
|
/boot/grub2.tmp/*.img \
|
|
|
|
|
/boot/grub2.tmp/*.lst \
|
|
|
|
|
/boot/grub2.tmp/device.map \
|
|
|
|
|
/boot/grub2/ &&
|
|
|
|
|
rm -r /boot/grub2.tmp/ || :
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%files common -f grub.lang
|
2019-09-30 10:52:04 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license COPYING
|
|
|
|
|
%dir /boot/grub2/themes/system
|
|
|
|
|
%attr(0755,root,root) %{_sbindir}/installkernel
|
|
|
|
|
%attr(0700,root,root) %dir /boot/grub2
|
|
|
|
|
%ghost %config(noreplace) /boot/grub2/grubenv
|
|
|
|
|
%exclude /boot/grub2/*
|
|
|
|
|
%dir %{_libdir}/grub/
|
2019-12-13 15:26:39 +08:00
|
|
|
%{_datarootdir}/grub/themes/
|
2019-09-30 10:52:04 -04:00
|
|
|
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
|
|
|
|
|
%{_prefix}/lib/kernel/install.d/20-grub.install
|
2020-07-29 20:47:36 +08:00
|
|
|
%{_prefix}/lib/kernel/install.d/99-grub-mkconfig.install
|
2019-09-30 10:52:04 -04:00
|
|
|
%{_sysconfdir}/kernel/install.d/*.install
|
|
|
|
|
%{_libexecdir}/installkernel/installkernel-bls
|
|
|
|
|
%dir %attr(0700,root,root) %{efi_esp_dir}
|
|
|
|
|
%{_datadir}/locale/*
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%files tools
|
2019-09-30 10:52:04 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_sbindir}/grub2-*
|
|
|
|
|
%exclude %{_sbindir}/grub2-set-bootflag
|
|
|
|
|
%attr(4755, root, root) %{_sbindir}/grub2-set-bootflag
|
|
|
|
|
%{_bindir}/grub2-*
|
2020-04-24 15:49:39 +08:00
|
|
|
%exclude %{_sbindir}/%{name}-macbless
|
|
|
|
|
%exclude %{_bindir}/%{name}-render-label
|
2019-09-30 10:52:04 -04:00
|
|
|
%config %{_sysconfdir}/grub.d/??_*
|
|
|
|
|
%exclude %{_sysconfdir}/grub.d/01_fallback_counting
|
|
|
|
|
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
|
|
|
|
|
%{_sysconfdir}/grub.d/README
|
|
|
|
|
%{_sysconfdir}/sysconfig/grub
|
|
|
|
|
%{_sysconfdir}/prelink.conf.d/grub2.conf
|
|
|
|
|
%{_userunitdir}/*
|
|
|
|
|
%{_unitdir}/*
|
|
|
|
|
%{_datarootdir}/grub/*
|
|
|
|
|
%{_datarootdir}/bash-completion/completions/grub
|
|
|
|
|
%exclude %{_datarootdir}/grub/themes
|
|
|
|
|
%exclude %{_datarootdir}/grub/*.h
|
|
|
|
|
%{_infodir}/%{name}*
|
|
|
|
|
|
|
|
|
|
%if %{with_legacy_arch}
|
|
|
|
|
%{_sbindir}/grub2-install
|
|
|
|
|
%ifarch %{sparc}
|
|
|
|
|
%{_sbindir}/grub2-sparc64-setup
|
|
|
|
|
%else
|
|
|
|
|
%exclude %{_sbindir}/grub2-sparc64-setup
|
|
|
|
|
%endif
|
|
|
|
|
%exclude %{_sbindir}/grub2-ofpathname
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ifnarch %{sparc}
|
|
|
|
|
%{_bindir}/grub2-mkrescue
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
2020-07-29 20:47:36 +08:00
|
|
|
%files tools-efi
|
2019-09-30 10:52:04 -04:00
|
|
|
%{_sbindir}/%{name}-macbless
|
|
|
|
|
%{_bindir}/%{name}-render-label
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
|
2019-09-30 10:52:04 -04:00
|
|
|
%if 0%{with_efi_arch}
|
|
|
|
|
%{expand:%define_efi_variant_files %%{package_arch} %%{grubefiname} %%{grubeficdname} %%{grubefiarch} %%{target_cpu_name} %%{grub_target_name}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_alt_efi_arch}
|
|
|
|
|
%{expand:%define_efi_variant_files %%{alt_package_arch} %%{grubaltefiname} %%{grubalteficdname} %%{grubaltefiarch} %%{alt_target_cpu_name} %%{alt_grub_target_name}}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with_legacy_arch}
|
|
|
|
|
%{expand:%define_legacy_variant_files %%{legacy_package_arch} %%{grublegacyarch}}
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-07-29 20:47:36 +08:00
|
|
|
%if 0%{with_emu_arch}
|
|
|
|
|
%files emu
|
|
|
|
|
%{_bindir}/%{name}-emu*
|
|
|
|
|
|
|
|
|
|
%files emu-modules
|
|
|
|
|
%{_libdir}/grub/%{emuarch}-emu/*
|
|
|
|
|
%exclude %{_libdir}/grub/%{emuarch}-emu/*.module
|
|
|
|
|
%endif
|
|
|
|
|
|
2019-09-30 10:52:04 -04:00
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc INSTALL NEWS README THANKS TODO docs/grub.html docs/grub-dev.html docs/font_char_metrics.png
|
|
|
|
|
%{_datadir}/man/man*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-08-07 16:14:32 +08:00
|
|
|
* Fri Aug 7 2020 hanzhijun <hanzhijun1@huawei.com> - 2.04-3
|
|
|
|
|
- Type:cves
|
|
|
|
|
- Id:CVE-2020-10713 CVE-2020-14308 CVE-2020-14309 CVE-2020-14310 CVE-2020-14311 CVE-2020-15705 CVE-2020-15706 CVE-2020-15707
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2020-10713 CVE-2020-14308 CVE-2020-14309 CVE-2020-14310 CVE-2020-14311 CVE-2020-15705 CVE-2020-15706 CVE-2020-15707
|
|
|
|
|
|
2020-08-03 10:57:27 +08:00
|
|
|
* Mon Aug 3 2020 hanzhijun <hanzhijun1@huawei.com> - 2.04-2
|
|
|
|
|
- add CPPFLAGS
|
|
|
|
|
|
2020-08-07 16:14:32 +08:00
|
|
|
* Sat Aug 1 2020 hanzhijun <hanzhijun1@huawei.com> - 2.04-1
|
2020-08-03 10:57:27 +08:00
|
|
|
- update to 2.0.4
|
|
|
|
|
|
2020-08-07 16:14:32 +08:00
|
|
|
* Fri Jul 17 2020 chenyaqiang <chenyaqiang@huawei.com> - 2.02-75
|
2020-08-03 10:57:27 +08:00
|
|
|
- remove repeated buildrequest packge “rpm-devel” in grub2.spec
|
|
|
|
|
|
|
|
|
|
* Fri Apr 24 2020 fengtao <fengtao40@huawei.com> - 2.02-74
|
|
|
|
|
- exclude two cmd in grub2-tools
|
|
|
|
|
|
|
|
|
|
* Wed Mar 3 2020 songnannan <songnannan2@huawei.com> - 2.02-73
|
|
|
|
|
- delete java-1.8.0-openjdk in buildrequires
|
|
|
|
|
|
|
|
|
|
* Thu Feb 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.02-72
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add make check function
|
|
|
|
|
|
|
|
|
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.02-71
|
|
|
|
|
- Type:cves
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add cve patches
|
|
|
|
|
|
|
|
|
|
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.02-70
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add the path for themes
|
|
|
|
|
|
|
|
|
|
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.02-69- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add config_for_secure file for gcc_secure
|
|
|
|
|
|
|
|
|
|
* Sat Sep 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.02-68
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:rename the 20-grub.install file to 20-grubby.install
|
|
|
|
|
|
|
|
|
|
* Wed Sep 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.02-67
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix grub2-setpassword error for openeuler
|
|
|
|
|
|
|
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.02-66
|
|
|
|
|
- Package init
|