summaryrefslogtreecommitdiff
path: root/freefilesync
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2022-06-08 08:24:30 -0400
committerB Stack <bgstack15@gmail.com>2022-06-08 08:24:30 -0400
commit03c1fe9e03a15d9892749d6fdd7f42db68ddb85c (patch)
tree83889a483f9c57eaf04520ee3366dd6ca784a8e9 /freefilesync
parentffs: add openssl to BR (diff)
downloadstackrpms-03c1fe9e03a15d9892749d6fdd7f42db68ddb85c.tar.gz
stackrpms-03c1fe9e03a15d9892749d6fdd7f42db68ddb85c.tar.bz2
stackrpms-03c1fe9e03a15d9892749d6fdd7f42db68ddb85c.zip
ffs: switch openssl check to sh instead of rpm macro
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