Fix building without OpenSSL ENGINEs

The %bcond_without macro adds a command line option to build without
openssl engine, but the default is always the opposite of what the macro
name suggests, i.e., using %bcond_without enables engines by default.

This was not what I had intended, and I also messed up and used
%bcond_without in both branches of the if.

Switch to the newer %bcond <option> <default>, which does not suffer
from the potential confusion.

(cherry picked from commit afc85f9971952832fee2e8b8935fc0b5d8be8752)

Resolves: RHEL-33749
Signed-off-by: Clemens Lang <cllang@redhat.com>
From-source-git-commit: 497113266bda485407d0f22563043c5171569f11
This commit is contained in:
Clemens Lang 2024-07-02 12:27:17 +02:00
parent b92f9796ed
commit 4b6b9847c1

View File

@ -8,9 +8,9 @@
%endif %endif
%if 0%{?rhel} >= 10 %if 0%{?rhel} >= 10
%bcond_without openssl_engine %bcond openssl_engine 0
%else %else
%bcond_without openssl_engine %bcond openssl_engine 1
%endif %endif
Summary: A TLS-encrypting socket wrapper Summary: A TLS-encrypting socket wrapper