diff options
author | B Stack <bgstack15@gmail.com> | 2022-06-07 17:16:35 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2022-06-07 17:16:35 -0400 |
commit | 5dd2803c5b290bf1eadbc931255f84982769f7e9 (patch) | |
tree | e7f8a5fd63db67a0c2e999c6767e1768d861070e /freefilesync/freefilesync.spec | |
parent | ffs: major rewrite of spec for el8 and fc (diff) | |
download | stackrpms-5dd2803c5b290bf1eadbc931255f84982769f7e9.tar.gz stackrpms-5dd2803c5b290bf1eadbc931255f84982769f7e9.tar.bz2 stackrpms-5dd2803c5b290bf1eadbc931255f84982769f7e9.zip |
fix scl variable quoting
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 8fa7e2e..b23c605 100644 --- a/freefilesync/freefilesync.spec +++ b/freefilesync/freefilesync.spec @@ -138,11 +138,12 @@ find . ! -type d \( -name '*.c' -o -name '*.cpp' -o -name '*.h' \) \ %patch40 -p1 %endif # Determine if g++ < 12 +g__version="$( %if "%{?scl_env}" != "" - g__version="$( scl enable %{scl_env} /bin/bash <<'EOFSCL' | awk 'NR==1{if($2>=12){print "12"}else{print"11"}}' - %endif + scl enable %{scl_env} /bin/bash <<'EOFSCL' | awk 'NR==1{if($2>=12){print "12"}else{print"11"}}' +%endif g++ --version - %if "%{?scl_env}" != "" +%if "%{?scl_env}" != "" EOFSCL %endif )" |