summaryrefslogtreecommitdiff
path: root/palemoon
diff options
context:
space:
mode:
Diffstat (limited to 'palemoon')
-rw-r--r--palemoon/palemoon.spec23
1 files changed, 10 insertions, 13 deletions
diff --git a/palemoon/palemoon.spec b/palemoon/palemoon.spec
index 8c34bb0..40de2a4 100644
--- a/palemoon/palemoon.spec
+++ b/palemoon/palemoon.spec
@@ -62,20 +62,17 @@ and themes to make the browser truly your own.
%{__cp} %{SOURCE1} ./.mozconfig
%build
+thispwd=$( pwd )
+%if 0%{?el7}
+scl enable detoolset-7 /bin/bash << EOF
+pushd $thispwd
+%endif
+%if !%{dummy_package}
+./mach build
+%endif
%if 0%{?el7}
- #source /usr/bin/gcc49
- %if !%{dummy_package}
- thispwd=$( pwd )
- scl enable devtoolset-7 /bin/bash << EOF
- pushd $thispwd
- ./mach build
- popd
+popd || :
EOF
- %endif
-%else
- %if !%{dummy_package}
- ./mach build
- %endif
%endif
%install
@@ -99,8 +96,8 @@ make -f client.mk \
install
%endif
%if 0%{?el7}
+popd || :
EOF
-popd
%endif
# cleanup
bgstack15