summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-09-21 08:30:12 +0200
committerRemi Collet <fedora@famillecollet.com>2013-09-21 08:30:12 +0200
commit8ec1ea7a6a0717343f101cd6173d36922cdc1cc3 (patch)
tree991971dbeca3c762a598c2f36f652d7e79fadd12
parent296e8fd1f955316566eae426a7959068965873b5 (diff)
Thunderbird need python 2.7
-rw-r--r--thunderbird.spec11
1 files changed, 11 insertions, 0 deletions
diff --git a/thunderbird.spec b/thunderbird.spec
index fc26af4..8d3d77b 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -154,6 +154,9 @@ BuildRequires: GConf2-devel
%if %{system_vpx}
BuildRequires: libvpx-devel >= %{libvpx_version}
%endif
+%if 0%{?rhel} == 6
+BuildRequires: python27
+%endif
Requires: mozilla-filesystem
%if %{?system_nss}
@@ -294,6 +297,10 @@ echo "ac_add_options --disable-webrtc" >> .mozconfig
#===============================================================================
%build
+%if 0%{?rhel} == 6
+. /opt/rh/python27/enable
+%endif
+
cd %{tarballdir}
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
@@ -342,6 +349,10 @@ make -C objdir buildsymbols
#===============================================================================
%install
+%if 0%{?rhel} == 6
+. /opt/rh/python27/enable
+%endif
+
cd %{tarballdir}/objdir
DESTDIR=$RPM_BUILD_ROOT make install