public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/clevis] rawhide: Disable TPM1 on RHEL
@ 2026-10-14 19:30 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-14 19:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/clevis
Branch : rawhide
Commit : aae8c0b1b33474349813c8f05899c7616cef9060
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-10-14T14:46:03-04:00
Stats : +11/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/clevis/c/aae8c0b1b33474349813c8f05899c7616cef9060?branch=rawhide
Log:
Disable TPM1 on RHEL
tpm-tools is unwanted in RHEL.
https://github.com/fedora-eln/eln/issues/645
---
diff --git a/clevis.spec b/clevis.spec
index abb2cbf..ecf388c 100644
--- a/clevis.spec
+++ b/clevis.spec
@@ -1,3 +1,8 @@
+# TPM1 requires tpm-tools, is unwanted in RHEL
+%ifnarch %{ix86}
+%bcond tpm1 %{undefined rhel}
+%endif
+
%global dracut_prio 50
Name: clevis
@@ -27,7 +32,7 @@ BuildRequires: libudisks2-devel
BuildRequires: openssl-devel
BuildRequires: tpm2-tools >= 4.0.0
-%ifnarch %{ix86}
+%if %{with tpm1}
BuildRequires: tpm-tools
%endif
BuildRequires: desktop-file-utils
@@ -127,7 +132,7 @@ Requires: openssl
%description pin-pkcs11
Automatically unlocks LUKS block devices through a PKCS#11 device.
-%ifnarch %{ix86}
+%if %{with tpm1}
%package pin-tpm1
Summary: TPM 1.2 pin for clevis
Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -144,10 +149,10 @@ Automated decryption using a TPM 1.2 device.
%build
%meson -Duser=clevis -Dgroup=clevis \
-%ifarch %{ix86}
- -Dtpm1=disabled
-%else
+%if %{with tpm1}
-Dtpm1=enabled
+%else
+ -Dtpm1=disabled
%endif
%meson_build
@@ -240,7 +245,7 @@ desktop-file-validate \
%{_prefix}/lib/dracut/modules.d/%{dracut_prio}%{name}-pin-pkcs11/%{name}-pkcs11-prehook.sh
%{_prefix}/lib/dracut/modules.d/%{dracut_prio}%{name}-pin-pkcs11/%{name}-pkcs11-hook.sh
-%ifnarch %{ix86}
+%if %{with tpm1}
%files pin-tpm1
%{_bindir}/%{name}-decrypt-tpm1
%{_bindir}/%{name}-encrypt-tpm1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-14 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 19:30 [rpms/clevis] rawhide: Disable TPM1 on RHEL Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox