Wrap efivar-libs dependency in a "ifarch %efi"
This commit is contained in:
parent
53cec23924
commit
bee1262a8b
11
keylime.spec
11
keylime.spec
@ -1,17 +1,14 @@
|
||||
%global srcname keylime
|
||||
|
||||
# efivar-libs is only available on these arches.
|
||||
%ifarch x86_64 aarch64
|
||||
%global have_efivar 1
|
||||
%endif
|
||||
# Package is actually noarch, but it has an optional dependency that is
|
||||
# arch-specific.
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: keylime
|
||||
Version: 6.4.2
|
||||
Release: %autorelease
|
||||
Summary: Open source TPM software for Bootstrapping and Maintaining Trust
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
URL: https://github.com/keylime/keylime
|
||||
Source0: https://github.com/keylime/keylime/archive/refs/tags/v%{version}.tar.gz
|
||||
Source1: %{srcname}.sysusers
|
||||
@ -62,7 +59,7 @@ Requires: procps-ng
|
||||
Requires: tpm2-tss
|
||||
Requires: tpm2-tools
|
||||
|
||||
%if 0%{?have_efivar}
|
||||
%ifarch %efi
|
||||
Requires: efivar-libs
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user