summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-05-16 09:41:47 +0200
committerRemi Collet <fedora@famillecollet.com>2013-05-16 09:41:47 +0200
commitf7d06efda859ef871f6f54e5c9766cf907719385 (patch)
tree271efbc4e904e63051a2e4b79b2cde325d438910
parent1edf7af07ece9425f3ce9654c805631723cd1654 (diff)
Xulrunner / Firefox : use python27 SCL for EL-6 build
-rw-r--r--firefox.spec16
1 files changed, 16 insertions, 0 deletions
diff --git a/firefox.spec b/firefox.spec
index 58809c4..76f4607 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -10,7 +10,11 @@
%define system_vpx 1
%endif
+%if 0%{?fedora} < 17 && 0%{?rhel} < 7
%define system_cairo 0
+%else
+%define system_cairo 1
+%endif
# Use system libpeg (and libjpeg-turbo) ?
%if 0%{?fedora} < 14 && 0%{?rhel} < 6
@@ -119,6 +123,9 @@ BuildRequires: system-bookmarks
BuildRequires: xulrunner-last-devel >= %{xulrunner_verrel}
# For WebM support
BuildRequires: yasm
+%if 0%{?rhel} == 6
+BuildRequires: python27
+%endif
Requires: xulrunner-last%{?_isa} >= %{xulrunner_verrel}
Requires: system-bookmarks
@@ -233,6 +240,10 @@ echo "ac_add_options --disable-jemalloc" >> .mozconfig
#---------------------------------------------------------------------
%build
+%if 0%{?rhel} == 6
+. /opt/rh/python27/enable
+%endif
+
cd %{tarballdir}
# Mozilla builds with -Wall with exception of a few warnings which show up
@@ -279,6 +290,10 @@ make buildsymbols
#---------------------------------------------------------------------
%install
+%if 0%{?rhel} == 6
+. /opt/rh/python27/enable
+%endif
+
cd %{tarballdir}
# set up our prefs and add it to the package manifest file, so it gets pulled in
@@ -506,6 +521,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Wed May 15 2013 Remi Collet <RPMS@FamilleCollet.com> - 21.0-1
- Update to 21.0
+- use python27 SCL for EL-6 build
* Wed May 15 2013 Martin Stransky <stransky@redhat.com> - 21.0-2
- Keep compatibility with old preference dir