public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/clevis] rawhide: Disable TPM1 on RHEL
Date: Wed, 14 Oct 2026 19:30:45 GMT [thread overview]
Message-ID: <179200624528.1.1939306449521259984.rpms-clevis-aae8c0b1b334@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-14 19:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179200624528.1.1939306449521259984.rpms-clevis-aae8c0b1b334@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox