summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Horak <jhorak@redhat.com>2016-09-26 15:07:02 +0200
committerJan Horak <jhorak@redhat.com>2016-09-26 15:07:02 +0200
commitad0822a7eae32731bd151407390c61d2c0d9fbc1 (patch)
treeb0ea1ff1142cd0730a8e6eef2cfcb00b1e9e2613
parentUpdate to Firefox 49 (B4) (diff)
downloadlibrewolf-fedora-ff-ad0822a7eae32731bd151407390c61d2c0d9fbc1.tar.gz
librewolf-fedora-ff-ad0822a7eae32731bd151407390c61d2c0d9fbc1.tar.bz2
librewolf-fedora-ff-ad0822a7eae32731bd151407390c61d2c0d9fbc1.zip
Enabled rust where possible
-rw-r--r--firefox.spec19
1 files changed, 18 insertions, 1 deletions
diff --git a/firefox.spec b/firefox.spec
index aac0d14..095315f 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -41,6 +41,14 @@
%define run_tests 0
%endif
+%define build_with_rust 0
+
+%if 0%{?fedora} > 23
+%ifarch %{ix86} x86_64 armv7hl
+%define build_with_rust 1
+%endif
+%endif
+
# Build as a debug package?
%define debug_build 0
@@ -86,7 +94,7 @@
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 49.0
-Release: 2%{?pre_tag}%{?dist}
+Release: 3%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@@ -190,6 +198,9 @@ BuildRequires: pkgconfig(libffi)
%if %{?run_tests}
BuildRequires: xorg-x11-server-Xvfb
%endif
+%if %{?build_with_rust}
+BuildRequires: rust
+%endif
Obsoletes: mozilla <= 37:1.7.13
Provides: webclient
@@ -376,6 +387,9 @@ echo "ac_add_options --with-system-icu" >> .mozconfig
echo "ac_add_options --without-system-icu" >> .mozconfig
%endif
+%if %{?build_with_rust}
+echo "ac_add_options --enable-rust" >> .mozconfig
+%endif
#---------------------------------------------------------------------
%build
@@ -768,6 +782,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------
%changelog
+* Mon Sep 26 2016 Jan Horak <jhorak@redhat.com> - 49.0-3
+- Build with rust where possible
+
* Mon Sep 19 2016 Martin Stransky <stransky@redhat.com> - 49.0-2
- Update to Firefox 49 (B4)
bgstack15