public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Add an option for building with Sequoia crypto
Date: Mon, 23 Nov 2026 09:34:32 GMT	[thread overview]
Message-ID: <179542647230.1.12108925980262943499.rpms-rpm-2212faed6506@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 2212faed6506023747148d144d15ace5eb9dc09c
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2022-10-14T09:40:47+03:00
            Stats  : +16/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/2212faed6506023747148d144d15ace5eb9dc09c?branch=pmatilai-v6

            Log:
            Add an option for building with Sequoia crypto

In preparation of https://fedoraproject.org/wiki/Changes/RpmSequoia
but the default is still openssl for now.

---
diff --git a/rpm.spec b/rpm.spec
index b245e6e..f5cc179 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -25,12 +25,14 @@
 %bcond_without sqlite
 # build with bdb_ro support?
 %bcond_without bdb_ro
+# build with sequoia crypto?
+%bcond_with sequoia
 
 %define rpmhome /usr/lib/rpm
 
 %global rpmver 4.18.0
 #global snapver rc1
-%global baserelease 3
+%global baserelease 4
 %global sover 9
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -71,7 +73,6 @@ BuildRequires: gawk
 BuildRequires: elfutils-devel >= 0.112
 BuildRequires: elfutils-libelf-devel
 BuildRequires: readline-devel zlib-devel
-BuildRequires: openssl-devel
 # The popt version here just documents an older known-good version
 BuildRequires: popt-devel >= 1.10.2
 BuildRequires: file-devel
@@ -93,6 +94,15 @@ BuildRequires: libzstd-devel
 %if %{with sqlite}
 BuildRequires: sqlite-devel
 %endif
+
+%if %{with sequoia}
+%global crypto sequoia
+BuildRequires: rpm-sequoia-devel >= 1.0.0
+%else
+%global crypto openssl
+BuildRequires: openssl-devel
+%endif
+
 # Couple of patches change makefiles so, require for now...
 BuildRequires: automake libtool
 
@@ -366,7 +376,7 @@ done;
     %{?with_sqlite: --enable-sqlite} \
     %{?with_bdb_ro: --enable-bdb-ro} \
     --enable-python \
-    --with-crypto=openssl
+    --with-crypto=%{crypto}
 
 %make_build
 
@@ -609,6 +619,9 @@ fi
 %doc docs/librpm/html/*
 
 %changelog
+* Fri Oct 14 2022 Panu Matilainen <pmatilai@redhat.com> - 4.18.0-4
+- Add an option for building with Sequoia crypto
+
 * Wed Oct 05 2022 Panu Matilainen <pmatilai@redhat.com> - 4.18.0-3
 - Break ancient rpm <-> rpm-libs ordering loop
 

                 reply	other threads:[~2026-11-23  9:34 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=179542647230.1.12108925980262943499.rpms-rpm-2212faed6506@fedoraproject.org \
    --to=pmatilai@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