Compare commits

..

2 Commits

Author SHA1 Message Date
db51ca8838 AlmaLinux change: Use AlmaLinux SB 2024-12-09 15:45:29 +03:00
327aaa8fb6 AlmaLinux changes 2024-08-20 09:45:04 +03:00
6 changed files with 8 additions and 10 deletions

BIN
almalinuxsecurebootca0.cer Normal file

Binary file not shown.

View File

@ -1,3 +1,6 @@
%global efi_vendor almalinux
%global efidir almalinux
%global efi_esp_dir /boot/efi/EFI/%{efidir}
%global debug_package %{nil}
Summary: Firmware update EFI binaries
@ -8,11 +11,6 @@ License: LGPL-2.1-or-later
URL: https://github.com/fwupd/fwupd-efi
Source0: https://github.com/fwupd/fwupd-efi/releases/download/%{version}/%{name}-%{version}.tar.xz
Source300: redhatsecurebootca3.cer
Source301: redhatsecureboot301.cer
Source500: redhatsecurebootca5.cer
Source503: redhatsecureboot503.cer
# these are the only architectures supporting UEFI UpdateCapsule
ExclusiveArch: x86_64 aarch64
@ -32,11 +30,11 @@ the EFI binary that is used for updating using UpdateCapsule.
%build
%meson \
-Defi_sbat_distro_id="fedora" \
-Defi_sbat_distro_summary="The Fedora Project" \
-Defi_sbat_distro_id="almalinux" \
-Defi_sbat_distro_summary="AlmaLinux" \
-Defi_sbat_distro_pkgname="%{name}" \
-Defi_sbat_distro_version="%{version}-%{release}" \
-Defi_sbat_distro_url="https://src.fedoraproject.org/rpms/%{name}"
-Defi_sbat_distro_url="https://git.almalinux.org/rpms/%{name}"
%meson_build
@ -51,9 +49,9 @@ the EFI binary that is used for updating using UpdateCapsule.
%global efiarch aa64
%endif
%global fwup_efi_fn $RPM_BUILD_ROOT%{_libexecdir}/fwupd/efi/fwupd%{efiarch}.efi
%pesign -s -i %{fwup_efi_fn} -o %{fwup_efi_fn}.tmp -a %{SOURCE300} -c %{SOURCE301} -n redhatsecureboot301
%pesign -s -i %{fwup_efi_fn} -o %{fwup_efi_fn}.tmp
%define __pesign_client_cert fwupd-signer
%pesign -s -i %{fwup_efi_fn}.tmp -o %{fwup_efi_fn}.signed -a %{SOURCE500} -c %{SOURCE503} -n redhatsecureboot503
%pesign -s -i %{fwup_efi_fn}.tmp -o %{fwup_efi_fn}.signed
rm -vf %{fwup_efi_fn}.tmp
%files