summaryrefslogtreecommitdiff
path: root/freefilesync
diff options
context:
space:
mode:
Diffstat (limited to 'freefilesync')
-rw-r--r--freefilesync/freefilesync.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/freefilesync/freefilesync.spec b/freefilesync/freefilesync.spec
index ece8ac0..4355071 100644
--- a/freefilesync/freefilesync.spec
+++ b/freefilesync/freefilesync.spec
@@ -135,10 +135,11 @@ find . ! -type d \( -name '*.c' -o -name '*.cpp' -o -name '*.h' \) \
%patch20 -p1
%endif
# Determine if openssl < 3.0.0
-%define opensslver %( openssl version | awk '{if($2>=3){print "3"}else{print"1"}}' )
-%if 0%{opensslver} < 3
+opensslver="$( openssl version | awk '{if($2>=3){print "3"}else{print"1"}}' )"
+if test ${opensslver} -lt 3 ;
+then
%patch40 -p1
-%endif
+fi
# Determine if g++ < 12
g__version="$(
%if "%{?scl_env}" != ""
bgstack15