spec: Build systemd-boot EFI tools

Resolves: #2140646
This commit is contained in:
Jan Macku 2022-11-24 13:11:39 +01:00
parent 56f1ee916b
commit 9875c7e5b4

View File

@ -21,7 +21,7 @@
Name: systemd
Url: https://www.freedesktop.org/wiki/Software/systemd
Version: 250
Release: 11%{?dist}
Release: 12%{?dist}
# For a breakdown of the licensing, see README
License: LGPLv2+ and MIT and GPLv2+
Summary: System and Service Manager
@ -418,6 +418,10 @@ Patch0337: 0337-udev-net_id-add-rhel-9.1-naming-scheme.patch
# Downstream-only patches (90009999)
%ifarch %{ix86} x86_64 aarch64
%global have_gnu_efi 1
%endif
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: coreutils
@ -473,6 +477,9 @@ BuildRequires: pkgconfig(tss2-rc)
BuildRequires: pkgconfig(tss2-mu)
BuildRequires: perl
BuildRequires: perl(IPC::SysV)
%if 0%{?have_gnu_efi}
BuildRequires: gnu-efi gnu-efi-devel
%endif
Requires(post): coreutils
Requires(post): sed
@ -747,7 +754,8 @@ CONFIGURE_OPTS=(
-Dlibiptc=false
-Dlibcurl=true
-Dlibfido2=false
-Dgnu-efi=false
-Defi=true
-Dgnu-efi=%[%{?have_gnu_efi}?"true":"false"]
-Dtpm=true
-Dtpm2=true
-Dhwdb=true
@ -1073,7 +1081,7 @@ fi
%{?ldconfig:%postun libs -p %ldconfig}
%global udev_services systemd-udev{d,-settle,-trigger}.service systemd-udevd-{control,kernel}.socket
%global udev_services systemd-udev{d,-settle,-trigger}.service systemd-udevd-{control,kernel}.socket %{?have_gnu_efi:systemd-boot-update.service}
%post udev
# Move old stuff around in /var/lib