Fix without_openssl always being set to 1

In Fedora systems, %{?rhel} is empty. In RHEL systems, %{?fedora} is
empty. Therefore, the original code always sets without_openssl to 1.
This commit is contained in:
Wu Weixin 2024-08-02 22:16:40 +08:00 committed by Damien Miller
parent c21c3a2419
commit 49f325fd47
No known key found for this signature in database

View File

@ -33,10 +33,10 @@
%global without_openssl 0
# build without openssl where 1.1.1 is not available
%if 0%{?fedora} <= 28
%if %{defined fedora} && 0%{?fedora} <= 28
%global without_openssl 1
%endif
%if 0%{?rhel} <= 7
%if %{defined rhel} && 0%{?rhel} <= 7
%global without_openssl 1
%endif