summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freefilesync/freefilesync.spec7
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
)"
bgstack15