public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] rawhide: Use openpgpverify for source verification
@ 2026-10-29 20:30 Jakub Jelen
  0 siblings, 0 replies; only message in thread
From: Jakub Jelen @ 2026-10-29 20:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : rawhide
            Commit : cf17c3e24bbbbd9dea5a832ed9c51e2d7cd8eff9
            Author : Jakub Jelen <jjelen@redhat.com>
            Date   : 2026-10-29T17:29:37-03:00
            Stats  : +24/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/cf17c3e24bbbbd9dea5a832ed9c51e2d7cd8eff9?branch=rawhide

            Log:
            Use openpgpverify for source verification

Switch to openpgpverify for signature verification on
supported distributions, while retaining the fallback to
gpgverify on RHEL 10 and older where openpgpverify is
unavailable.

Assisted-by: Gemini:Gemini 3.8 Flash
Signed-off-by: Jakub Jelen <jjelen@redhat.com>

---
diff --git a/llvm.spec b/llvm.spec
index c7b5b59..b1db39e 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -300,6 +300,13 @@ end
 %bcond_without multilib
 %endif
 
+# openpgpverify is not available on RHEL <= 10
+%if 0%{?rhel} && 0%{?rhel} <= 10
+%global use_openpgpverify 0
+%else
+%global use_openpgpverify 1
+%endif
+
 # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
 # https://bugzilla.redhat.com/show_bug.cgi?id=2158587
 %undefine _include_frame_pointers
@@ -715,8 +722,12 @@ BuildRequires:	python%{python3_pkgversion}-setuptools
 BuildRequires:	python%{python3_pkgversion}-rpm-macros
 %endif
 
-# For gpg source verification
+# For source verification
+%if %{use_openpgpverify}
+BuildRequires:	openpgpverify
+%else
 BuildRequires:	gnupg2
+%endif
 
 BuildRequires:	swig
 BuildRequires:	libxml2-devel
@@ -1438,15 +1449,27 @@ Mesa OpenCL support with RustiCL.
 %prep
 %if %{without snapshot_build}
 # llvm
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%else
 %{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%endif
 
 %if %{build_docs} == 0
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE43}' --data='%{SOURCE42}'
+%else
 %{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE43}' --data='%{SOURCE42}'
 %endif
 %endif
+%endif
 
 %if %{with bundle_compat_lib}
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3001}' --data='%{SOURCE3000}'
+%else
 %{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3001}' --data='%{SOURCE3000}'
+%endif
 %setup -T -q -b 3000 -n llvm-project-%{compat_ver}.src
 
 # Apply all patches with number < 500 (unconditionally)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-29 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 20:30 [rpms/llvm] rawhide: Use openpgpverify for source verification Jakub Jelen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox