fwupd-efi/fwupd-efi.spec

91 lines
2.6 KiB
RPMSpec
Raw Normal View History

2024-08-20 06:45:04 +00:00
%global efi_vendor almalinux
%global efidir almalinux
%global efi_esp_dir /boot/efi/EFI/%{efidir}
2021-04-28 14:40:03 +00:00
%global debug_package %{nil}
Summary: Firmware update EFI binaries
Name: fwupd-efi
Version: 1.6
2024-08-20 06:45:04 +00:00
Release: 2%{dist}.alma.1
2023-02-22 09:36:23 +00:00
License: LGPL-2.1-or-later
2021-04-28 14:40:03 +00:00
URL: https://github.com/fwupd/fwupd-efi
Source0: https://github.com/fwupd/fwupd-efi/releases/download/%{version}/%{name}-%{version}.tar.xz
2021-04-28 14:40:03 +00:00
# these are the only architectures supporting UEFI UpdateCapsule
ExclusiveArch: x86_64 aarch64
BuildRequires: gcc
BuildRequires: meson
BuildRequires: gnu-efi-devel >= 3.0.18
BuildRequires: pesign >= 113-20
2023-01-27 09:45:28 +00:00
BuildRequires: python3-pefile
2021-04-28 14:40:03 +00:00
%description
fwupd is a project to allow updating device firmware, and this package provides
the EFI binary that is used for updating using UpdateCapsule.
%prep
%autosetup -p1
%build
%meson \
2024-08-20 06:45:04 +00:00
-Defi_sbat_distro_id="almalinux" \
-Defi_sbat_distro_summary="AlmaLinux" \
2021-04-28 14:40:03 +00:00
-Defi_sbat_distro_pkgname="%{name}" \
-Defi_sbat_distro_version="%{version}-%{release}" \
2024-08-20 06:45:04 +00:00
-Defi_sbat_distro_url="https://git.almalinux.org/rpms/%{name}"
2021-04-28 14:40:03 +00:00
%meson_build
%install
%meson_install
# sign fwupd.efi loader
%ifarch x86_64
%global efiarch x64
%endif
%ifarch aarch64
%global efiarch aa64
%endif
2021-04-28 14:40:03 +00:00
%global fwup_efi_fn $RPM_BUILD_ROOT%{_libexecdir}/fwupd/efi/fwupd%{efiarch}.efi
2024-08-20 06:45:04 +00:00
%pesign -s -i %{fwup_efi_fn} -o %{fwup_efi_fn}.tmp
2021-04-28 14:40:03 +00:00
%define __pesign_client_cert fwupd-signer
2024-08-20 06:45:04 +00:00
%pesign -s -i %{fwup_efi_fn}.tmp -o %{fwup_efi_fn}.signed
2021-04-28 14:40:03 +00:00
rm -vf %{fwup_efi_fn}.tmp
%files
%doc README.md AUTHORS
%license COPYING
%{_libexecdir}/fwupd/efi/*.efi
%{_libexecdir}/fwupd/efi/*.efi.signed
2023-01-27 09:45:28 +00:00
%{_libdir}/pkgconfig/fwupd-efi.pc
2021-04-28 14:40:03 +00:00
%changelog
2024-08-20 06:45:04 +00:00
* Tue Aug 20 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.6-2.alma.1
- AlmaLinux changes
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.6-2
- Bump release for June 2024 mass rebuild
* Mon Jun 03 2024 Richard Hughes <richard@hughsie.com> - 1.6-1
- Rebase to latest upstream version
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jun 29 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.4-3
- Fix build with latest gnu-efi
* Wed Feb 22 2023 Richard Hughes <richard@hughsie.com> - 1.4-2
- migrated to SPDX license
* Fri Jan 27 2023 Richard Hughes <richard@hughsie.com> - 1.4-1
- New upstream release
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild