|
@@ -13,9 +13,9 @@
|
|
|
|
|
|
Name: grub2
|
|
Name: grub2
|
|
Version: 2.04
|
|
Version: 2.04
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 4%{?_dist_release}%{?with_systemd:.systemd}
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
Summary: Bootloader with support for Linux, Multiboot and more
|
|
-Group: System Environment/Base
|
|
+Group: system
|
|
License: GPLv3+
|
|
License: GPLv3+
|
|
URL: https://www.gnu.org/software/grub/
|
|
URL: https://www.gnu.org/software/grub/
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -87,18 +87,20 @@ hardware devices.\
|
|
%description
|
|
%description
|
|
%{desc}
|
|
%{desc}
|
|
|
|
|
|
|
|
+
|
|
%package common
|
|
%package common
|
|
Summary: grub2 common layout
|
|
Summary: grub2 common layout
|
|
-Group: System Environment/Base
|
|
+Group: system
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
%description common
|
|
%description common
|
|
This package provides some directories which are required by various grub2
|
|
This package provides some directories which are required by various grub2
|
|
subpackages.
|
|
subpackages.
|
|
|
|
|
|
|
|
+
|
|
%package tools
|
|
%package tools
|
|
Summary: Support tools for GRUB.
|
|
Summary: Support tools for GRUB.
|
|
-Group: System Environment/Base
|
|
+Group: admin-tools
|
|
Obsoletes: %{name}-tools < %{evr}
|
|
Obsoletes: %{name}-tools < %{evr}
|
|
Requires: %{name}-common = %{evr}
|
|
Requires: %{name}-common = %{evr}
|
|
Requires: gettext os-prober which file
|
|
Requires: gettext os-prober which file
|
|
@@ -112,7 +114,7 @@ This subpackage provides tools for support of all platforms.
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
%package tools-efi
|
|
%package tools-efi
|
|
Summary: Support tools for GRUB.
|
|
Summary: Support tools for GRUB.
|
|
-Group: System Environment/Base
|
|
+Group: admin-tools
|
|
Requires: gettext os-prober which file
|
|
Requires: gettext os-prober which file
|
|
Requires: %{name}-common = %{evr}
|
|
Requires: %{name}-common = %{evr}
|
|
Obsoletes: %{name}-tools < %{evr}
|
|
Obsoletes: %{name}-tools < %{evr}
|
|
@@ -124,7 +126,7 @@ This subpackage provides tools for support of EFI platforms.
|
|
|
|
|
|
%package tools-minimal
|
|
%package tools-minimal
|
|
Summary: Support tools for GRUB.
|
|
Summary: Support tools for GRUB.
|
|
-Group: System Environment/Base
|
|
+Group: admin-tools
|
|
Requires: gettext
|
|
Requires: gettext
|
|
Requires: %{name}-common = %{evr}
|
|
Requires: %{name}-common = %{evr}
|
|
Obsoletes: %{name}-tools < %{evr}
|
|
Obsoletes: %{name}-tools < %{evr}
|
|
@@ -135,7 +137,7 @@ This subpackage provides tools for support of all platforms.
|
|
|
|
|
|
%package tools-extra
|
|
%package tools-extra
|
|
Summary: Support tools for GRUB.
|
|
Summary: Support tools for GRUB.
|
|
-Group: System Environment/Base
|
|
+Group: admin-tools
|
|
Requires: gettext os-prober which file console-setup
|
|
Requires: gettext os-prober which file console-setup
|
|
Requires: %{name}-tools-minimal = %{evr}
|
|
Requires: %{name}-tools-minimal = %{evr}
|
|
Requires: %{name}-common = %{evr}
|
|
Requires: %{name}-common = %{evr}
|
|
@@ -145,6 +147,7 @@ Obsoletes: %{name}-tools < %{evr}
|
|
%{desc}
|
|
%{desc}
|
|
This subpackage provides tools for support of all platforms.
|
|
This subpackage provides tools for support of all platforms.
|
|
|
|
|
|
|
|
+
|
|
%if 0%{with_efi_arch}
|
|
%if 0%{with_efi_arch}
|
|
%{expand:%define_efi_variant %%{package_arch} -o}
|
|
%{expand:%define_efi_variant %%{package_arch} -o}
|
|
%endif
|
|
%endif
|
|
@@ -155,17 +158,21 @@ This subpackage provides tools for support of all platforms.
|
|
%{expand:%define_legacy_variant %%{legacy_package_arch}}
|
|
%{expand:%define_legacy_variant %%{legacy_package_arch}}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%if 0%{with_emu_arch}
|
|
%if 0%{with_emu_arch}
|
|
%package emu
|
|
%package emu
|
|
Summary: GRUB user-space emulation.
|
|
Summary: GRUB user-space emulation.
|
|
|
|
+Group: system
|
|
Requires: %{name}-tools-minimal = %{evr}
|
|
Requires: %{name}-tools-minimal = %{evr}
|
|
|
|
|
|
%description emu
|
|
%description emu
|
|
%{desc}
|
|
%{desc}
|
|
This subpackage provides the GRUB user-space emulation support of all platforms.
|
|
This subpackage provides the GRUB user-space emulation support of all platforms.
|
|
|
|
|
|
|
|
+
|
|
%package emu-modules
|
|
%package emu-modules
|
|
Summary: GRUB user-space emulation modules.
|
|
Summary: GRUB user-space emulation modules.
|
|
|
|
+Group: system
|
|
Requires: %{name}-tools-minimal = %{evr}
|
|
Requires: %{name}-tools-minimal = %{evr}
|
|
|
|
|
|
%description emu-modules
|
|
%description emu-modules
|
|
@@ -173,18 +180,20 @@ Requires: %{name}-tools-minimal = %{evr}
|
|
This subpackage provides the GRUB user-space emulation modules.
|
|
This subpackage provides the GRUB user-space emulation modules.
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%package theme-starfield
|
|
%package theme-starfield
|
|
Summary: Starfield theme for GRUB2
|
|
Summary: Starfield theme for GRUB2
|
|
-Group: System Environment/Base
|
|
+Group: system
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
|
|
%description theme-starfield
|
|
%description theme-starfield
|
|
%{desc}
|
|
%{desc}
|
|
This subpackage provides Starfield theme.
|
|
This subpackage provides Starfield theme.
|
|
|
|
|
|
|
|
+
|
|
%package theme-vine
|
|
%package theme-vine
|
|
Summary: Vine Linux theme for GRUB2
|
|
Summary: Vine Linux theme for GRUB2
|
|
-Group: System Environment/Base
|
|
+Group: system
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
|
|
%description theme-vine
|
|
%description theme-vine
|
|
@@ -192,6 +201,9 @@ Requires: %{name}-common = %{version}-%{release}
|
|
This package provides Vine Linux theme.
|
|
This package provides Vine Linux theme.
|
|
|
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%do_common_setup
|
|
%do_common_setup
|
|
|
|
|
|
@@ -226,6 +238,7 @@ git add grub-emu-%{tarversion}
|
|
%endif
|
|
%endif
|
|
git commit -m "After making subdirs"
|
|
git commit -m "After making subdirs"
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
sed -i \
|
|
sed -i \
|
|
-e 's,-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ,,g' \
|
|
-e 's,-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ,,g' \
|
|
@@ -234,6 +247,10 @@ sed -i \
|
|
grub-core/lib/gnulib/Makefile.in \
|
|
grub-core/lib/gnulib/Makefile.in \
|
|
grub-core/lib/gnulib/Makefile.am
|
|
grub-core/lib/gnulib/Makefile.am
|
|
|
|
|
|
|
|
+sed -i \
|
|
|
|
+ -e 's|systemdunitdir = .*$|systemdunitdir = %{_unitdir}|' \
|
|
|
|
+ conf/Makefile.common
|
|
|
|
+
|
|
%if 0%{with_efi_arch}
|
|
%if 0%{with_efi_arch}
|
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
|
%endif
|
|
%endif
|
|
@@ -255,6 +272,7 @@ makeinfo --html --no-split -I docs -o docs/grub-dev.html \
|
|
makeinfo --html --no-split -I docs -o docs/grub.html \
|
|
makeinfo --html --no-split -I docs -o docs/grub.html \
|
|
docs/grub.texi
|
|
docs/grub.texi
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
set -e
|
|
set -e
|
|
rm -fr $RPM_BUILD_ROOT
|
|
rm -fr $RPM_BUILD_ROOT
|
|
@@ -301,8 +319,8 @@ install -d -m 0755 %{buildroot}%{_prefix}/lib/kernel/install.d/
|
|
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE10}
|
|
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE10}
|
|
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE3}
|
|
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE3}
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/kernel/install.d/
|
|
-# Install systemd user service to set the boot_success flag
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
|
|
+# Install systemd user service to set the boot_success flag
|
|
install -D -m 0755 -t %{buildroot}%{_userunitdir} \
|
|
install -D -m 0755 -t %{buildroot}%{_userunitdir} \
|
|
docs/grub-boot-success.{timer,service}
|
|
docs/grub-boot-success.{timer,service}
|
|
install -d -m 0755 %{buildroot}%{_userunitdir}/timers.target.wants
|
|
install -d -m 0755 %{buildroot}%{_userunitdir}/timers.target.wants
|
|
@@ -311,8 +329,14 @@ ln -s ../grub-boot-success.timer \
|
|
# Install systemd system-update unit to set boot_indeterminate for offline-upd
|
|
# Install systemd system-update unit to set boot_indeterminate for offline-upd
|
|
install -D -m 0755 -t %{buildroot}%{_unitdir} docs/grub-boot-indeterminate.service
|
|
install -D -m 0755 -t %{buildroot}%{_unitdir} docs/grub-boot-indeterminate.service
|
|
install -d -m 0755 %{buildroot}%{_unitdir}/system-update.target.wants
|
|
install -d -m 0755 %{buildroot}%{_unitdir}/system-update.target.wants
|
|
|
|
+install -d -m 0755 %{buildroot}%{_unitdir}/reboot.target.wants
|
|
ln -s ../grub-boot-indeterminate.service \
|
|
ln -s ../grub-boot-indeterminate.service \
|
|
%{buildroot}%{_unitdir}/system-update.target.wants
|
|
%{buildroot}%{_unitdir}/system-update.target.wants
|
|
|
|
+ln -s ../grub2-systemd-integration.service \
|
|
|
|
+ %{buildroot}%{_unitdir}/reboot.target.wants
|
|
|
|
+%else
|
|
|
|
+rm -rf %{buildroot}%{_unitdir}
|
|
|
|
+rm -rf %{buildroot}%{_libexecdir}/grub2
|
|
%endif
|
|
%endif
|
|
|
|
|
|
# Don't run debuginfo on all the grub modules and whatnot; it just
|
|
# Don't run debuginfo on all the grub modules and whatnot; it just
|
|
@@ -361,6 +385,7 @@ popd
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+
|
|
%pre tools
|
|
%pre tools
|
|
if [ -f /boot/grub2/user.cfg ]; then
|
|
if [ -f /boot/grub2/user.cfg ]; then
|
|
if grep -q '^GRUB_PASSWORD=' /boot/grub2/user.cfg ; then
|
|
if grep -q '^GRUB_PASSWORD=' /boot/grub2/user.cfg ; then
|
|
@@ -418,7 +443,9 @@ fi
|
|
%dir /boot/%{name}/themes/
|
|
%dir /boot/%{name}/themes/
|
|
%dir /boot/%{name}/themes/system
|
|
%dir /boot/%{name}/themes/system
|
|
%dir %attr(0700,root,root) %{efi_esp_dir}
|
|
%dir %attr(0700,root,root) %{efi_esp_dir}
|
|
|
|
+%ifnarch %{ix86}
|
|
%exclude %{efi_esp_dir}/*
|
|
%exclude %{efi_esp_dir}/*
|
|
|
|
+%endif
|
|
%license COPYING
|
|
%license COPYING
|
|
%ghost %config(noreplace) /boot/grub2/grubenv
|
|
%ghost %config(noreplace) /boot/grub2/grubenv
|
|
%doc INSTALL
|
|
%doc INSTALL
|
|
@@ -458,11 +485,6 @@ fi
|
|
%files tools
|
|
%files tools
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/default/grub
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/default/grub
|
|
%config %{_sysconfdir}/grub.d/??_*
|
|
%config %{_sysconfdir}/grub.d/??_*
|
|
-%ifarch ppc64 ppc64le
|
|
|
|
-%exclude %{_sysconfdir}/grub.d/10_linux
|
|
|
|
-%else
|
|
|
|
-%exclude %{_sysconfdir}/grub.d/10_linux_bls
|
|
|
|
-%endif
|
|
|
|
%{_sysconfdir}/grub.d/README
|
|
%{_sysconfdir}/grub.d/README
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%{_userunitdir}/grub-boot-success.timer
|
|
%{_userunitdir}/grub-boot-success.timer
|
|
@@ -470,6 +492,11 @@ fi
|
|
%{_userunitdir}/timers.target.wants
|
|
%{_userunitdir}/timers.target.wants
|
|
%{_unitdir}/grub-boot-indeterminate.service
|
|
%{_unitdir}/grub-boot-indeterminate.service
|
|
%{_unitdir}/system-update.target.wants
|
|
%{_unitdir}/system-update.target.wants
|
|
|
|
+%{_unitdir}/grub2-systemd-integration.service
|
|
|
|
+%{_unitdir}/reboot.target.wants
|
|
|
|
+%{_unitdir}/systemd-logind.service.d
|
|
|
|
+%dir %{_libexecdir}/grub2
|
|
|
|
+%{_libexecdir}/grub2/systemd-integration.sh
|
|
%endif
|
|
%endif
|
|
%{_infodir}/%{name}*
|
|
%{_infodir}/%{name}*
|
|
%{_datarootdir}/grub/*
|
|
%{_datarootdir}/grub/*
|
|
@@ -514,7 +541,6 @@ fi
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
%{_sbindir}/%{name}-bios-setup
|
|
%{_sbindir}/%{name}-bios-setup
|
|
%else
|
|
%else
|
|
-%exclude %{_sbindir}/%{name}-bios-setup
|
|
|
|
%exclude %{_datadir}/man/man8/%{name}-bios-setup*
|
|
%exclude %{_datadir}/man/man8/%{name}-bios-setup*
|
|
%endif
|
|
%endif
|
|
%ifarch %{sparc}
|
|
%ifarch %{sparc}
|
|
@@ -588,7 +614,9 @@ fi
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_datarootdir}/grub/themes/vine
|
|
%{_datarootdir}/grub/themes/vine
|
|
|
|
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Sep 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.04-4
|
|
* Tue Jul 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.04-3
|
|
* Tue Jul 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.04-3
|
|
- imported Patch206-222 from rawhide.
|
|
- imported Patch206-222 from rawhide.
|
|
- updated ja.po.
|
|
- updated ja.po.
|