Debrand for AlmaLinux
This commit is contained in:
parent
4b8025b88c
commit
9c8b63575c
10
grub.macros
10
grub.macros
@ -38,7 +38,7 @@
|
|||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
%global host_cflags_ %{expand:%%(echo %{build_cflags} %{?_hardening_cflags} | %{cflags_sed})} -fstack-protector-strong
|
%global host_cflags_ %{expand:%%(echo %{build_cflags} %{?_hardening_cflags} | %{cflags_sed})} -fstack-protector-strong
|
||||||
%ifarch x86_64
|
%ifarch %{x86_64}
|
||||||
%global host_cflags %{host_cflags_} -fcf-protection
|
%global host_cflags %{host_cflags_} -fcf-protection
|
||||||
%else
|
%else
|
||||||
%global host_cflags %{host_cflags_}
|
%global host_cflags %{host_cflags_}
|
||||||
@ -111,7 +111,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%global efi_only aarch64 %{arm} riscv64
|
%global efi_only aarch64 %{arm} riscv64
|
||||||
%global efi_arch x86_64 ia64 %{efi_only}
|
%global efi_arch %{x86_64} ia64 %{efi_only}
|
||||||
%ifarch %{efi_arch}
|
%ifarch %{efi_arch}
|
||||||
%global with_efi_arch 1
|
%global with_efi_arch 1
|
||||||
%else
|
%else
|
||||||
@ -131,7 +131,7 @@
|
|||||||
%global efi_modules " efi_netfs efifwsetup efinet lsefi lsefimmap connectefi "
|
%global efi_modules " efi_netfs efifwsetup efinet lsefi lsefimmap connectefi "
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64 %{ix86}
|
%ifarch %{x86_64} %{ix86}
|
||||||
%global platform_modules " backtrace chain tpm usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug keylayouts at_keyboard "
|
%global platform_modules " backtrace chain tpm usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug keylayouts at_keyboard "
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -158,7 +158,7 @@
|
|||||||
%global platform pc
|
%global platform pc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{x86_64}
|
||||||
%global efiarch x64
|
%global efiarch x64
|
||||||
%global target_cpu_name %{_arch}
|
%global target_cpu_name %{_arch}
|
||||||
%global grub_target_name %{_arch}-efi
|
%global grub_target_name %{_arch}-efi
|
||||||
@ -245,7 +245,7 @@
|
|||||||
|
|
||||||
%global evr %{epoch}:%{version}-%{release}
|
%global evr %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{x86_64}
|
||||||
%global with_efi_common 1
|
%global with_efi_common 1
|
||||||
%global with_legacy_modules 1
|
%global with_legacy_modules 1
|
||||||
%global with_legacy_common 1
|
%global with_legacy_common 1
|
||||||
|
34
grub2.spec
34
grub2.spec
@ -17,7 +17,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.12
|
Version: 2.12
|
||||||
Release: 12%{?dist}
|
Release: 12%{?dist}.alma.1
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
@ -38,25 +38,13 @@ Source12: sbat.csv.in
|
|||||||
|
|
||||||
%include %{SOURCE1}
|
%include %{SOURCE1}
|
||||||
|
|
||||||
%ifarch x86_64 aarch64 ppc64le
|
%ifarch %{x86_64} aarch64 ppc64le
|
||||||
%define sb_ca %{_datadir}/pki/sb-certs/secureboot-ca-%{_arch}.cer
|
%define sb_ca %{_datadir}/pki/sb-certs/secureboot-ca-%{_arch}.cer
|
||||||
%define sb_cer %{_datadir}/pki/sb-certs/secureboot-grub2-%{_arch}.cer
|
%define sb_cer %{_datadir}/pki/sb-certs/secureboot-grub2-%{_arch}.cer
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?centos}
|
%define sb_key almalinuxsecurebootca0
|
||||||
|
|
||||||
%ifarch x86_64 aarch64 ppc64le
|
|
||||||
%define sb_key centossecureboot202
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%ifarch x86_64 aarch64
|
|
||||||
%define sb_key redhatsecureboot502
|
|
||||||
%endif
|
|
||||||
%ifarch ppc64le
|
|
||||||
%define sb_key redhatsecureboot702
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%endif
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: binutils
|
BuildRequires: binutils
|
||||||
@ -108,6 +96,9 @@ variety of kernel formats, file systems, computer architectures and \
|
|||||||
hardware devices.\
|
hardware devices.\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
# AlmaLinux: keep upstream EVR for RHEL SBAT entry
|
||||||
|
%define rhel_version_release $(echo %{version}-%{release} | sed 's/\.alma.*//')
|
||||||
|
|
||||||
# generate with do-rebase
|
# generate with do-rebase
|
||||||
%include %{SOURCE11}
|
%include %{SOURCE11}
|
||||||
|
|
||||||
@ -139,7 +130,7 @@ Requires(pre): sed
|
|||||||
%{desc}
|
%{desc}
|
||||||
This subpackage provides tools for support of all platforms.
|
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.
|
||||||
Requires: gettext-runtime os-prober file
|
Requires: gettext-runtime os-prober file
|
||||||
@ -204,7 +195,7 @@ This subpackage provides the GRUB user-space emulation modules.
|
|||||||
mkdir grub-%{grubefiarch}-%{tarversion}
|
mkdir grub-%{grubefiarch}-%{tarversion}
|
||||||
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubefiarch}-%{tarversion}/.gitignore
|
grep -A100000 '# stuff "make" creates' .gitignore > grub-%{grubefiarch}-%{tarversion}/.gitignore
|
||||||
cp %{SOURCE4} grub-%{grubefiarch}-%{tarversion}/unifont.pcf.gz
|
cp %{SOURCE4} grub-%{grubefiarch}-%{tarversion}/unifont.pcf.gz
|
||||||
sed -e "s,@@VERSION@@,%{version},g" -e "s,@@VERSION_RELEASE@@,%{version}-%{release},g" \
|
sed -e "s,@@VERSION@@,%{version},g" -e "s,@@VERSION_RELEASE@@,%{version}-%{release},g" -e "s,@@RHEL_VERSION_RELEASE@@,%{rhel_version_release},g" \
|
||||||
%{SOURCE12} > grub-%{grubefiarch}-%{tarversion}/sbat.csv
|
%{SOURCE12} > grub-%{grubefiarch}-%{tarversion}/sbat.csv
|
||||||
git add grub-%{grubefiarch}-%{tarversion}
|
git add grub-%{grubefiarch}-%{tarversion}
|
||||||
%endif
|
%endif
|
||||||
@ -273,7 +264,7 @@ rm -fr $RPM_BUILD_ROOT
|
|||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
ln -s grub2-set-password ${RPM_BUILD_ROOT}/%{_sbindir}/grub2-setpassword
|
ln -s grub2-set-password ${RPM_BUILD_ROOT}/%{_sbindir}/grub2-setpassword
|
||||||
echo '.so man8/grub2-set-password.8' > ${RPM_BUILD_ROOT}/%{_datadir}/man/man8/grub2-setpassword.8
|
echo '.so man8/grub2-set-password.8' > ${RPM_BUILD_ROOT}/%{_datadir}/man/man8/grub2-setpassword.8
|
||||||
%ifnarch x86_64
|
%ifnarch %{x86_64}
|
||||||
rm -vf ${RPM_BUILD_ROOT}/%{_bindir}/grub2-render-label
|
rm -vf ${RPM_BUILD_ROOT}/%{_bindir}/grub2-render-label
|
||||||
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/grub2-bios-setup
|
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/grub2-bios-setup
|
||||||
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/grub2-macbless
|
rm -vf ${RPM_BUILD_ROOT}/%{_sbindir}/grub2-macbless
|
||||||
@ -451,7 +442,7 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
%{_datadir}/man/man1/grub2-editenv*
|
%{_datadir}/man/man1/grub2-editenv*
|
||||||
%{_datadir}/man/man1/grub2-mkpasswd-*
|
%{_datadir}/man/man1/grub2-mkpasswd-*
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{x86_64}
|
||||||
%files tools-efi
|
%files tools-efi
|
||||||
%{_bindir}/grub2-glue-efi
|
%{_bindir}/grub2-glue-efi
|
||||||
%{_bindir}/grub2-render-label
|
%{_bindir}/grub2-render-label
|
||||||
@ -512,7 +503,7 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
|
|
||||||
%if %{with_legacy_arch}
|
%if %{with_legacy_arch}
|
||||||
%{_sbindir}/grub2-install
|
%{_sbindir}/grub2-install
|
||||||
%ifarch x86_64
|
%ifarch %{x86_64}
|
||||||
%{_sbindir}/grub2-bios-setup
|
%{_sbindir}/grub2-bios-setup
|
||||||
%else
|
%else
|
||||||
%exclude %{_sbindir}/grub2-bios-setup
|
%exclude %{_sbindir}/grub2-bios-setup
|
||||||
@ -583,6 +574,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 27 2025 Eduard Abdullin <eabdullin@almalinux.org> - 1:2.12-12.alma.1
|
||||||
|
- Debrand for AlmaLinux
|
||||||
|
|
||||||
* Mon Mar 10 2025 Leo Sandoval <lsandova@redhat.com> 2.12-12
|
* Mon Mar 10 2025 Leo Sandoval <lsandova@redhat.com> 2.12-12
|
||||||
- Remove 'fs/ntfs: Implement attribute verification' patch
|
- Remove 'fs/ntfs: Implement attribute verification' patch
|
||||||
- Related: RHEL-80686
|
- Related: RHEL-80686
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
||||||
grub,3,Free Software Foundation,grub,@@VERSION@@,https//www.gnu.org/software/grub/
|
grub,3,Free Software Foundation,grub,@@VERSION@@,https//www.gnu.org/software/grub/
|
||||||
grub.rh,2,Red Hat,grub2,@@VERSION_RELEASE@@,mailto:secalert@redhat.com
|
grub.rh,2,Red Hat,grub2,@@RHEL_VERSION_RELEASE@@,mailto:secalert@redhat.com
|
||||||
|
grub.almalinux,2,AlmaLinux,grub2,@@VERSION_RELEASE@@,mailto:security@almalinux.org
|
||||||
|
Loading…
Reference in New Issue
Block a user