summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu Weixin <wuweixin@gmail.com>2024-08-02 16:16:40 +0200
committerDamien Miller <djm@mindrot.org>2024-09-13 06:09:19 +0200
commit49f325fd47af4e53fcd7aafdbcc280e53f5aa5ce (patch)
tree8717236be8b77d8fba561179d88a38af4b25e32d
parentupstream: Relax absolute path requirement back to what it was prior to (diff)
downloadopenssh-49f325fd47af4e53fcd7aafdbcc280e53f5aa5ce.tar.xz
openssh-49f325fd47af4e53fcd7aafdbcc280e53f5aa5ce.zip
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.
-rw-r--r--contrib/redhat/openssh.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec
index 8893f3ad3..c053a80b9 100644
--- a/contrib/redhat/openssh.spec
+++ b/contrib/redhat/openssh.spec
@@ -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