summaryrefslogtreecommitdiff
path: root/palemoon
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-04 23:17:14 -0400
committerB Stack <bgstack15@gmail.com>2018-09-04 23:17:14 -0400
commit4c429c4bd3e4915813b681dfcf5a060e88694f96 (patch)
treedd901aca4ad723e933cb3d88145a77c103c60b77 /palemoon
parentirfanview: use downloadable mirror for sources (diff)
downloadstackrpms-4c429c4bd3e4915813b681dfcf5a060e88694f96.tar.gz
stackrpms-4c429c4bd3e4915813b681dfcf5a060e88694f96.tar.bz2
stackrpms-4c429c4bd3e4915813b681dfcf5a060e88694f96.zip
test palemoon with devtoolset-7-toolchain
Diffstat (limited to 'palemoon')
-rw-r--r--palemoon/palemoon.spec36
1 files changed, 28 insertions, 8 deletions
diff --git a/palemoon/palemoon.spec b/palemoon/palemoon.spec
index df52b72..1a7f1f8 100644
--- a/palemoon/palemoon.spec
+++ b/palemoon/palemoon.spec
@@ -24,7 +24,9 @@ BuildRequires: dbus-glib-devel
BuildRequires: desktop-file-utils
BuildRequires: gcc
%if 0%{?el7}
-BuildRequires: gcc49
+#BuildRequires: gcc49
+# already includes the sclo and scl-rh repos?
+BuildRequires: devtoolset-7-toolchain
%endif
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
@@ -61,18 +63,32 @@ and themes to make the browser truly your own.
%build
%if 0%{?el7}
-source /usr/bin/gcc49
-%endif
-%if !%{dummy_package}
-./mach build
+ #source /usr/bin/gcc49
+ %if !%{dummy_package}
+ thispwd=$( pwd )
+ sci enable devtoolset-7 /bin/bash << EOF
+ pushd $thispwd
+ ./mach build
+ popd
+EOF
+ %endif
+%else
+ %if !%{dummy_package}
+ ./mach build
+ %endif
%endif
%install
-%if 0%{?el7}
-source /usr/bin/gcc49
-%endif
+#%if 0%{?el7}
+#source /usr/bin/gcc49
+#%endif
rm -rf %{buildroot}
+%if 0%{?el7}
+thispwd=$( pwd )
+scl enable devtoolset-7 /bin/bash << EOF
+pushd $thispwd
+%endif
%if !%{dummy_package}
make -f client.mk \
DESTDIR=%{buildroot} \
@@ -82,6 +98,10 @@ make -f client.mk \
sdkdir=%{_libdir}/%{name}-devel \
install
%endif
+%if 0%{?el7}
+EOF
+popd
+%endif
# cleanup
%{__rm} -rf %{buildroot}%{_datadir}/idl/%{pkgname} \
bgstack15