diff options
author | B Stack <bgstack15@gmail.com> | 2022-06-08 08:24:30 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2022-06-08 08:24:30 -0400 |
commit | 03c1fe9e03a15d9892749d6fdd7f42db68ddb85c (patch) | |
tree | 83889a483f9c57eaf04520ee3366dd6ca784a8e9 /freefilesync/freefilesync.spec | |
parent | ffs: add openssl to BR (diff) | |
download | stackrpms-03c1fe9e03a15d9892749d6fdd7f42db68ddb85c.tar.gz stackrpms-03c1fe9e03a15d9892749d6fdd7f42db68ddb85c.tar.bz2 stackrpms-03c1fe9e03a15d9892749d6fdd7f42db68ddb85c.zip |
ffs: switch openssl check to sh instead of rpm macro
Diffstat (limited to 'freefilesync/freefilesync.spec')
-rw-r--r-- | freefilesync/freefilesync.spec | 7 |
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}" != "" |