875d0c0
# Use system nspr/nss?
Martin Stransky ab207c8
%define system_nss        1
Martin Stransky ab207c8
875d0c0
# Use system sqlite?
40a69b7
%if 0%{?fedora} > 25
875d0c0
%define system_sqlite     1
e4cd083
%else
e4cd083
%define system_sqlite     0
e4cd083
%endif
875d0c0
%define system_ffi        1
875d0c0
875d0c0
# Use system cairo?
863f53f
%define system_cairo      0
875d0c0
de1fb9d
# Use system libvpx?
Martin Stransky bb0698c
%if 0%{?fedora} > 23
de1fb9d
%define system_libvpx      1
de1fb9d
%else
de1fb9d
%define system_libvpx      0
de1fb9d
%endif
de1fb9d
26b0429
# Use system libicu?
30f1757
%if 0%{?fedora} > 27
26b0429
%define system_libicu      1
26b0429
%else
26b0429
%define system_libicu      0
26b0429
%endif
26b0429
beb0cf3
# Big endian platforms
beb0cf3
%ifarch ppc64
beb0cf3
# Javascript Intl API is not supported on big endian platforms right now:
beb0cf3
# https://bugzilla.mozilla.org/show_bug.cgi?id=1322212
beb0cf3
%define big_endian              1
beb0cf3
%endif
beb0cf3
d9a1f10
# Hardened build?
18ff96b
%if 0%{?fedora} > 20
d9a1f10
%define hardened_build    1
d9a1f10
%else
d9a1f10
%define hardened_build    0
d9a1f10
%endif
d9a1f10
e0dccae
%define system_jpeg       1
e0dccae
c3e1bae
%ifarch %{ix86} x86_64
1c41bbe
%define run_tests         0
c3e1bae
%else
c3e1bae
%define run_tests         0
c3e1bae
%endif
c3e1bae
ad0822a
%define build_with_rust   0
ad0822a
ad0822a
%if 0%{?fedora} > 23
02759c2
%ifarch x86_64
ad0822a
%define build_with_rust   1
ad0822a
%endif
ad0822a
%endif
ad0822a
Martin Stransky ab8ce9b
# Build as a debug package?
Martin Stransky ab8ce9b
%define debug_build       0
Martin Stransky ab8ce9b
Martin Stransky 360e0d9
%define default_bookmarks_file  %{_datadir}/bookmarks/default-bookmarks.html
Martin Stransky 349fbd0
%define firefox_app_id  \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
875d0c0
# Minimal required versions
Martin Stransky 48d8fda
%global cairo_version 1.13.1
875d0c0
%global freetype_version 2.1.9
875d0c0
%global libnotify_version 0.7.0
de1fb9d
%if %{?system_libvpx}
de1fb9d
%global libvpx_version 1.4.0
de1fb9d
%endif
875d0c0
875d0c0
%if %{?system_nss}
Martin Stransky b35672b
%global nspr_version 4.10.10
875d0c0
%global nspr_build_version %(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536)
8fe75ba
%global nss_version 3.28.3
875d0c0
%global nss_build_version %(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536)
875d0c0
%endif
08ceb32
875d0c0
%if %{?system_sqlite}
Martin Stransky cad034f
%global sqlite_version 3.8.4.2
875d0c0
# The actual sqlite version (see #480989):
875d0c0
%global sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo 65536)
875d0c0
%endif
875d0c0
d2cc793
%global mozappdir     %{_libdir}/%{name}
0a58c3e
%global mozappdirdev  %{_libdir}/%{name}-devel-%{version}
Christopher Aillon 8cc5a04
%global langpackdir   %{mozappdir}/langpacks
f80b8f8
%global tarballdir    %{name}-%{version}
e1fa01e
Martin Stransky ceafcaf
%define official_branding       1
da055d6
%define build_langpacks         1
Martin Stransky fa428ed
Martin Stransky fa428ed
%if !%{debug_build}
4225333
%ifarch %{ix86} x86_64
11af448
%define enable_mozilla_crashreporter       1
11af448
%else
Martin Stransky 34727c1
%define enable_mozilla_crashreporter       0
4225333
%endif
Christopher Aillon 59e26d3
%endif
Martin Stransky bb61945
3f0fba2
Summary:        Mozilla Firefox Web browser
cvsdist cac9c1c
Name:           firefox
20d7a16
Version:        52.0
20d7a16
Release:        1%{?pre_tag}%{?dist}
Martin Stransky dc35dec
URL:            https://www.mozilla.org/firefox/
31f0244
License:        MPLv1.1 or GPLv2+ or LGPLv2+
cvsdist cac9c1c
Group:          Applications/Internet
Martin Stransky 960b5cb
Source0:        https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
5fe54d7
%if %{build_langpacks}
20d7a16
Source1:        firefox-langpacks-%{version}%{?pre_version}-20170303.tar.xz
5fe54d7
%endif
fa0cf49
Source10:       firefox-mozconfig
97f1826
Source12:       firefox-redhat-default-prefs.js
2ca6e87
Source20:       firefox.desktop
2ca6e87
Source21:       firefox.sh.in
1fb0c4e
Source23:       firefox.1
df0172c
Source24:       mozilla-api-key
06c81c9
Source25:       firefox-symbolic.svg
3f0fba2
87559eb
# Build patches
d2cc793
Patch0:         firefox-install-dir.patch
875d0c0
Patch3:         mozilla-build-arm.patch
875d0c0
# https://bugzilla.redhat.com/show_bug.cgi?id=814879#c3
875d0c0
Patch18:        xulrunner-24.0-jemalloc-ppc.patch
875d0c0
# workaround linking issue on s390 (JSContext::updateMallocCounter(size_t) not found)
875d0c0
Patch19:        xulrunner-24.0-s390-inlines.patch
0979a72
Patch20:        firefox-build-prbool.patch
Martin Stransky a7c8bd8
Patch24:        firefox-debug.patch
Martin Stransky 013dc85
Patch25:        rhbz-1219542-s390-build.patch
beb0cf3
Patch26:        build-icu-big-endian.patch
875d0c0
875d0c0
# Fedora specific patches
875d0c0
# Unable to install addons from https pages
875d0c0
Patch204:        rhbz-966424.patch
2fb05a0
Patch215:        firefox-enable-addons.patch
Martin Stransky 537c1d3
Patch219:        rhbz-1173156.patch
1c8e85a
Patch221:        firefox-fedora-ua.patch
Martin Stransky 4bed479
Patch224:        mozilla-1170092.patch
111fd75
Patch225:        mozilla-1005640-accept-lang.patch
402aa35
#ARM run-time patch
402aa35
Patch226:        rhbz-1354671.patch
Kai Engert 23da238
Kai Engert 23da238
%if 0%{?fedora} > 25
Kai Engert 23da238
# Fix depends on p11-kit-trust 0.23.4 and enhanced ca-certificates.rpm
Kai Engert 23da238
Patch227:        rhbz-1400293-fix-mozilla-1324096.patch
Kai Engert 23da238
%else
Kai Engert 23da238
Patch227:        rhbz-1400293-workaround.patch
Kai Engert 23da238
%endif
4c3c3e6
5fe54d7
# Upstream patches
73b9476
Patch304:        mozilla-1253216.patch
6a499c9
Patch402:        mozilla-1196777.patch
77766f8
Patch406:        mozilla-256180.patch
29e45f7
# Rebase Gtk3 widget code to latest trunk to
29e45f7
# fix various rendering problems
2af955e
Patch407:        widget-rebase.patch
a5b09ea
Martin Stransky 4bed479
# Debian patches
eb05c0d
Patch500:        mozilla-440908.patch
Martin Stransky a7a53b8
875d0c0
%if %{?system_nss}
4012bb8
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
4012bb8
BuildRequires:  pkgconfig(nss) >= %{nss_version}
875d0c0
BuildRequires:  nss-static >= %{nss_version}
875d0c0
%endif
875d0c0
%if %{?system_cairo}
4012bb8
BuildRequires:  pkgconfig(cairo) >= %{cairo_version}
875d0c0
%endif
4012bb8
BuildRequires:  pkgconfig(libpng)
Martin Stransky 916aeae
%if %{?system_jpeg}
875d0c0
BuildRequires:  libjpeg-devel
Martin Stransky 916aeae
%endif
875d0c0
BuildRequires:  zip
875d0c0
BuildRequires:  bzip2-devel
4012bb8
BuildRequires:  pkgconfig(zlib)
4012bb8
BuildRequires:  pkgconfig(libIDL-2.0)
4012bb8
BuildRequires:  pkgconfig(gtk+-3.0)
4012bb8
BuildRequires:  pkgconfig(gtk+-2.0)
4012bb8
BuildRequires:  pkgconfig(krb5)
4012bb8
BuildRequires:  pkgconfig(pango)
4012bb8
BuildRequires:  pkgconfig(freetype2) >= %{freetype_version}
4012bb8
BuildRequires:  pkgconfig(xt)
4012bb8
BuildRequires:  pkgconfig(xrender)
4012bb8
BuildRequires:  pkgconfig(hunspell)
4012bb8
BuildRequires:  pkgconfig(libstartup-notification-1.0)
4012bb8
BuildRequires:  pkgconfig(alsa)
4012bb8
BuildRequires:  pkgconfig(libnotify) >= %{libnotify_version}
4012bb8
BuildRequires:  pkgconfig(dri)
4012bb8
BuildRequires:  pkgconfig(libcurl)
f036746
BuildRequires:  dbus-glib-devel
de1fb9d
%if %{?system_libvpx}
83f478f
BuildRequires:  libvpx-devel >= %{libvpx_version}
de1fb9d
%endif
875d0c0
BuildRequires:  autoconf213
4012bb8
BuildRequires:  pkgconfig(libpulse)
4012bb8
BuildRequires:  pkgconfig(icu-i18n)
4012bb8
BuildRequires:  pkgconfig(gconf-2.0)
e0dccae
BuildRequires:  yasm
875d0c0
875d0c0
Requires:       mozilla-filesystem
875d0c0
%if %{?system_nss}
875d0c0
Requires:       nspr >= %{nspr_build_version}
875d0c0
Requires:       nss >= %{nss_build_version}
875d0c0
%endif
cfafdae
Kai Engert 23da238
%if 0%{?fedora} > 25
Kai Engert 23da238
# For early testing of rhbz#1400293 mozbz#1324096 on F26 and Rawhide,
Kai Engert 23da238
# temporarily require the specific NSS build with the backports.
Kai Engert 23da238
# Can be removed after firefox is changed to require NSS 3.30.
Kai Engert 23da238
BuildRequires:  nss-devel >= 3.29.1-2.1
Kai Engert 23da238
Requires:       nss >= 3.29.1-2.1
Kai Engert 23da238
%endif
Kai Engert 23da238
cvsdist cac9c1c
BuildRequires:  desktop-file-utils
91b8714
BuildRequires:  system-bookmarks
875d0c0
%if %{?system_sqlite}
4012bb8
BuildRequires:  pkgconfig(sqlite3) >= %{sqlite_version}
875d0c0
Requires:       sqlite >= %{sqlite_build_version}
875d0c0
%endif
875d0c0
875d0c0
%if %{?system_ffi}
4012bb8
BuildRequires:  pkgconfig(libffi)
875d0c0
%endif
2c1570e
c3e1bae
%if %{?run_tests}
c3e1bae
BuildRequires:  xorg-x11-server-Xvfb
c3e1bae
%endif
ad0822a
%if %{?build_with_rust}
ad0822a
BuildRequires:  rust
8165b81
BuildRequires:  cargo
ad0822a
%endif
c3e1bae
565a364
Obsoletes:      mozilla <= 37:1.7.13
cvsdist cac9c1c
Provides:       webclient
cvsdist cac9c1c
cvsdist cac9c1c
%description
cvsdist cac9c1c
Mozilla Firefox is an open-source web browser, designed for standards
cvsdist cac9c1c
compliance, performance and portability.
c3e1bae
875d0c0
%if %{enable_mozilla_crashreporter}
875d0c0
%global moz_debug_prefix %{_prefix}/lib/debug
875d0c0
%global moz_debug_dir %{moz_debug_prefix}%{mozappdir}
875d0c0
%global uname_m %(uname -m)
875d0c0
%global symbols_file_name %{name}-%{version}.en-US.%{_os}-%{uname_m}.crashreporter-symbols.zip
875d0c0
%global symbols_file_path %{moz_debug_dir}/%{symbols_file_name}
875d0c0
%global _find_debuginfo_opts -p %{symbols_file_path} -o debugcrashreporter.list
875d0c0
%global crashreporter_pkg_name mozilla-crashreporter-%{name}-debuginfo
875d0c0
%package -n %{crashreporter_pkg_name}
875d0c0
Summary: Debugging symbols used by Mozilla's crash reporter servers
875d0c0
Group: Development/Debug
875d0c0
%description -n %{crashreporter_pkg_name}
c3e1bae
This package provides debug information for Firefox, for use by
875d0c0
Mozilla's crash reporter servers.  If you are trying to locally
875d0c0
debug %{name}, you want to install %{name}-debuginfo instead.
875d0c0
%files -n %{crashreporter_pkg_name} -f debugcrashreporter.list
875d0c0
%defattr(-,root,root)
875d0c0
%endif
cvsdist cac9c1c
c3e1bae
%if %{run_tests}
c3e1bae
%global testsuite_pkg_name mozilla-%{name}-testresults
c3e1bae
%package -n %{testsuite_pkg_name}
c3e1bae
Summary: Results of testsuite
c3e1bae
Group: Development/Debug
c3e1bae
%description -n %{testsuite_pkg_name}
c3e1bae
This package contains results of tests executed during build.
c3e1bae
%files -n %{testsuite_pkg_name}
c3e1bae
/test_results
c3e1bae
%defattr(-,root,root)
c3e1bae
%endif
c3e1bae
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
cvsdist cac9c1c
%prep
164cb59
%setup -q -c
aa0879f
cd %{tarballdir}
fa0cf49
51460be
# Build patches, can't change backup suffix from default because during build
6ffc9e1
# there is a compare of config and js/config directories and .orig suffix is
51460be
# ignored during this compare.
2f2c47f
%patch0  -p1
77ec8e7
06549fe
%patch18 -p1 -b .jemalloc-ppc
875d0c0
%patch19 -p2 -b .s390-inlines
0979a72
%patch20 -p1 -b .prbool
Martin Stransky b35672b
%patch24 -p1 -b .debug
Martin Stransky ebc5262
%ifarch s390
Martin Stransky 013dc85
%patch25 -p1 -b .rhbz-1219542-s390
Martin Stransky ebc5262
%endif
875d0c0
dba86ea
%patch3  -p1 -b .arm
Martin Stransky 5da2a1e
e27e6fe
# For branding specific patches.
e27e6fe
4c3c3e6
# Fedora patches
Martin Stransky a212ee7
%patch204 -p2 -b .966424
e96738d
%patch215 -p1 -b .addons
Martin Stransky 537c1d3
%patch219 -p2 -b .rhbz-1173156
1c8e85a
%patch221 -p2 -b .fedora-ua
b33c1cc
%patch224 -p1 -b .1170092
111fd75
%patch225 -p1 -b .1005640-accept-lang
402aa35
#ARM run-time patch
402aa35
%ifarch aarch64
402aa35
%patch226 -p1 -b .1354671
402aa35
%endif
Kai Engert 23da238
%patch227 -p1 -b .rh1400293
402aa35
caf2f58
%patch304 -p1 -b .1253216
6a499c9
%patch402 -p1 -b .1196777
77766f8
%patch406 -p1 -b .256180
29e45f7
# Rebase Gtk3 widget code to latest trunk to
29e45f7
# fix various rendering problems
2af955e
%patch407 -p1 -b .widget-rebase
0474703
Martin Stransky bfde9d0
# Debian extension patch
eb05c0d
%patch500 -p1 -b .440908
Martin Stransky bfde9d0
beb0cf3
# Patch for big endian platforms only
beb0cf3
%if 0%{?big_endian}
beb0cf3
%patch26 -p1 -b .icu
beb0cf3
%endif
beb0cf3
cvsdist cac9c1c
%{__rm} -f .mozconfig
2ca6e87
%{__cp} %{SOURCE10} .mozconfig
fa0cf49
%if %{official_branding}
Martin Stransky fa428ed
echo "ac_add_options --enable-official-branding" >> .mozconfig
fa0cf49
%endif
df0172c
%{__cp} %{SOURCE24} mozilla-api-key
df0172c
875d0c0
%if %{?system_nss}
875d0c0
echo "ac_add_options --with-system-nspr" >> .mozconfig
875d0c0
echo "ac_add_options --with-system-nss" >> .mozconfig
875d0c0
%else
875d0c0
echo "ac_add_options --without-system-nspr" >> .mozconfig
875d0c0
echo "ac_add_options --without-system-nss" >> .mozconfig
875d0c0
%endif
0da741f
875d0c0
%if %{?system_sqlite}
875d0c0
echo "ac_add_options --enable-system-sqlite" >> .mozconfig
875d0c0
%else
875d0c0
echo "ac_add_options --disable-system-sqlite" >> .mozconfig
875d0c0
%endif
875d0c0
875d0c0
%if %{?system_cairo}
875d0c0
echo "ac_add_options --enable-system-cairo" >> .mozconfig
875d0c0
%else
875d0c0
echo "ac_add_options --disable-system-cairo" >> .mozconfig
875d0c0
%endif
875d0c0
875d0c0
%if %{?system_ffi}
875d0c0
echo "ac_add_options --enable-system-ffi" >> .mozconfig
875d0c0
%endif
cvsdist cac9c1c
5c40b1e
%ifarch %{arm}
5c40b1e
echo "ac_add_options --disable-elf-hack" >> .mozconfig
5c40b1e
%endif
5c40b1e
Martin Stransky ab8ce9b
%if %{?debug_build}
Martin Stransky ab8ce9b
echo "ac_add_options --enable-debug" >> .mozconfig
Martin Stransky ab8ce9b
echo "ac_add_options --disable-optimize" >> .mozconfig
875d0c0
echo "ac_add_options --enable-dtrace" >> .mozconfig
Martin Stransky ab8ce9b
%else
8f71944
%define optimize_flags "none"
2967f73
# Fedora 26 (gcc7) needs to disable default build flags (mozbz#1342344)
0eb6042
%if 0%{?fedora} > 25
2967f73
%ifnarch s390 s390x
2967f73
%define optimize_flags "-g -O2"
9a470d9
%endif
Martin Stransky ab8ce9b
%endif
2967f73
%ifarch armv7hl
2967f73
# ARMv7 need that (rhbz#1426850)
2967f73
%define optimize_flags "-g -O2 -fno-schedule-insns"
Martin Stransky 62a95da
%endif
2967f73
%ifarch ppc64le aarch64
2967f73
%define optimize_flags "-g -O2"
2967f73
%endif
8f71944
%if %{optimize_flags} != "none"
2967f73
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
2967f73
%else
2967f73
echo 'ac_add_options --enable-optimize' >> .mozconfig
2967f73
%endif
2967f73
echo "ac_add_options --disable-debug" >> .mozconfig
0eb6042
%endif
Martin Stransky ab8ce9b
Martin Stransky ceafcaf
# s390(x) fails to start with jemalloc enabled
Martin Stransky ceafcaf
%ifarch s390 s390x
Martin Stransky ceafcaf
echo "ac_add_options --disable-jemalloc" >> .mozconfig
Martin Stransky ceafcaf
%endif
Martin Stransky ceafcaf
Martin Stransky 439f52a
%ifnarch %{ix86} x86_64
875d0c0
echo "ac_add_options --disable-webrtc" >> .mozconfig
875d0c0
%endif
875d0c0
58dcc79
%if !%{enable_mozilla_crashreporter}
58dcc79
echo "ac_add_options --disable-crashreporter" >> .mozconfig
58dcc79
%endif
58dcc79
c3e1bae
%if %{?run_tests}
c3e1bae
echo "ac_add_options --enable-tests" >> .mozconfig
c3e1bae
%endif
c3e1bae
e0dccae
%if !%{?system_jpeg}
793ab22
echo "ac_add_options --without-system-jpeg" >> .mozconfig
793ab22
%else
793ab22
echo "ac_add_options --with-system-jpeg" >> .mozconfig
793ab22
%endif
793ab22
de1fb9d
%if %{?system_libvpx}
de1fb9d
echo "ac_add_options --with-system-libvpx" >> .mozconfig
de1fb9d
%else
de1fb9d
echo "ac_add_options --without-system-libvpx" >> .mozconfig
de1fb9d
%endif
de1fb9d
26b0429
%if %{?system_libicu}
26b0429
echo "ac_add_options --with-system-icu" >> .mozconfig
26b0429
%else
26b0429
echo "ac_add_options --without-system-icu" >> .mozconfig
26b0429
%endif
26b0429
ad0822a
%if %{?build_with_rust}
ad0822a
echo "ac_add_options --enable-rust" >> .mozconfig
7587293
%endif
7587293
7587293
%ifarch aarch64 ppc64 s390x
7587293
echo "ac_add_options --disable-skia" >> .mozconfig
ad0822a
%endif
99499f4
#---------------------------------------------------------------------
99499f4
99499f4
%build
875d0c0
%if %{?system_sqlite}
875d0c0
# Do not proceed with build if the sqlite require would be broken:
875d0c0
# make sure the minimum requirement is non-empty, ...
875d0c0
sqlite_version=$(expr "%{sqlite_version}" : '\([0-9]*\.\)[0-9]*\.') || exit 1
875d0c0
# ... and that major number of the computed build-time version matches:
875d0c0
case "%{sqlite_build_version}" in
875d0c0
  "$sqlite_version"*) ;;
875d0c0
  *) exit 1 ;;
875d0c0
esac
875d0c0
%endif
875d0c0
aa0879f
cd %{tarballdir}
99499f4
beb0cf3
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
beb0cf3
%if 0%{?big_endian}
beb0cf3
  ./mach python intl/icu_sources_data.py .
beb0cf3
  ls -l config/external/icu/data
beb0cf3
  rm -f config/external/icu/data/icudt*l.dat
beb0cf3
%endif
beb0cf3
ebf3d95
# Update the various config.guess to upstream release for aarch64 support
ebf3d95
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
ebf3d95
875d0c0
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
1dd9301
#
1edc49d
# Mozilla builds with -Wall with exception of a few warnings which show up
1edc49d
# everywhere in the code; so, don't override that.
Christopher Aillon ed92d80
#
Christopher Aillon ed92d80
# Disable C++ exceptions since Mozilla code is not exception-safe
Christopher Aillon ed92d80
#
875d0c0
MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | %{__sed} -e 's/-Wall//')
Martin Stransky d6ac14f
#rhbz#1037063
Martin Stransky 2b16776
# -Werror=format-security causes build failures when -Wno-format is explicitly given
Martin Stransky 2b16776
# for some sources
ded1820
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
ded1820
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
Martin Stransky 5ed9337
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
df98bed
%if 0%{?fedora} > 23
df98bed
# Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045)
df98bed
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fno-delete-null-pointer-checks"
df98bed
%endif
Martin Stransky 5ed9337
# Use hardened build?
d9a1f10
%if %{?hardened_build}
ce65d65
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
Martin Stransky 5ed9337
%endif
Martin Stransky ab8ce9b
%if %{?debug_build}
Martin Stransky ab8ce9b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
Martin Stransky ab8ce9b
%endif
Martin Stransky ceafcaf
%ifarch s390
Martin Stransky ceafcaf
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
62bcf95
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
62bcf95
# overrides the -g1 from line above and breaks building on s390
62bcf95
# (OOM when linking, rhbz#1238225)
62bcf95
export MOZ_DEBUG_FLAGS=" "
Martin Stransky ceafcaf
%endif
ebf3d95
%ifarch s390 %{arm} ppc aarch64
Martin Stransky ceafcaf
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
Martin Stransky ceafcaf
%endif
1edc49d
export CFLAGS=$MOZ_OPT_FLAGS
1edc49d
export CXXFLAGS=$MOZ_OPT_FLAGS
875d0c0
export LDFLAGS=$MOZ_LINK_FLAGS
bfb255e
84ea30d
export PREFIX='%{_prefix}'
1f91419
export LIBDIR='%{_libdir}'
2b6df96
e3ec569
MOZ_SMP_FLAGS=-j1
Christopher Aillon 3c6d6f9
# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
Christopher Aillon 3c6d6f9
# however builds tend to fail on other arches when building in parallel.
ebf3d95
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le aarch64
e3ec569
[ -z "$RPM_BUILD_NCPUS" ] && \
e3ec569
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
Christopher Aillon 3c6d6f9
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
Christopher Aillon 3c6d6f9
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
875d0c0
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
2b6df96
%endif
2b6df96
875d0c0
make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS" MOZ_SERVICES_SYNC="1"
875d0c0
875d0c0
# create debuginfo for crash-stats.mozilla.com
875d0c0
%if %{enable_mozilla_crashreporter}
875d0c0
#cd %{moz_objdir}
875d0c0
make -C objdir buildsymbols
875d0c0
%endif
cvsdist cac9c1c
c3e1bae
%if %{?run_tests}
c3e1bae
%if %{?system_nss}
c3e1bae
ln -s /usr/bin/certutil objdir/dist/bin/certutil
c3e1bae
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
c3e1bae
c3e1bae
%endif
c3e1bae
mkdir test_results
c3e1bae
./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey || true
1c41bbe
./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey-2nd-run || true
c3e1bae
./mach --log-no-times cppunittest &> test_results/cppunittest || true
c3e1bae
xvfb-run ./mach --log-no-times crashtest &> test_results/crashtest || true
c3e1bae
./mach --log-no-times gtest &> test_results/gtest || true
c3e1bae
xvfb-run ./mach --log-no-times jetpack-test &> test_results/jetpack-test || true
1c41bbe
# not working right now ./mach marionette-test &> test_results/marionette-test || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-a11y &> test_results/mochitest-a11y || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-browser &> test_results/mochitest-browser || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-chrome &> test_results/mochitest-chrome || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-devtools &> test_results/mochitest-devtools || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-plain &> test_results/mochitest-plain || true
c3e1bae
xvfb-run ./mach --log-no-times reftest &> test_results/reftest || true
1c41bbe
xvfb-run ./mach --log-no-times webapprt-test-chrome &> test_results/webapprt-test-chrome || true
1c41bbe
xvfb-run ./mach --log-no-times webapprt-test-content &> test_results/webapprt-test-content || true
c3e1bae
./mach --log-no-times webidl-parser-test &> test_results/webidl-parser-test || true
c3e1bae
xvfb-run ./mach --log-no-times xpcshell-test &> test_results/xpcshell-test || true
c3e1bae
%if %{?system_nss}
c3e1bae
rm -f  objdir/dist/bin/certutil
1c41bbe
rm -f  objdir/dist/bin/pk12util
c3e1bae
%endif
c3e1bae
c3e1bae
%endif
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
cvsdist cac9c1c
%install
aa0879f
cd %{tarballdir}
cvsdist cac9c1c
Christopher Aillon 0b79269
# set up our default bookmarks
b345c18
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/en-US/locale/browser/bookmarks.html
Christopher Aillon 0b79269
Christopher Aillon 0b79269
# Make sure locale works for langpacks
a5dfe3a
%{__cat} > objdir/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
Christopher Aillon 0b79269
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
Christopher Aillon 0b79269
EOF
Christopher Aillon 0b79269
a5dfe3a
DESTDIR=$RPM_BUILD_ROOT make -C objdir install
cvsdist cac9c1c
8fa89a4
%{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications}
cvsdist cac9c1c
2660809
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE20}
c75ced4
2c1f724
# set up the firefox start script
bede30d
%{__rm} -rf $RPM_BUILD_ROOT%{_bindir}/firefox
58dcc79
%{__cat} %{SOURCE21} > $RPM_BUILD_ROOT%{_bindir}/firefox
cvsdist cac9c1c
%{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/firefox
cvsdist cac9c1c
5266156
%{__install} -p -D -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{_mandir}/man1/firefox.1
cvsdist cac9c1c
bede30d
%{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/firefox-config
Martin Stransky 01638d6
%{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/update-settings.ini
cvsdist cac9c1c
Christopher Aillon 37171ee
for s in 16 22 24 32 48 256; do
Christopher Aillon 37171ee
    %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps
360a075
    %{__cp} -p browser/branding/official/default${s}.png \
Christopher Aillon b7c3ec4
               $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
Christopher Aillon 37171ee
done
2c1570e
06c81c9
# Install hight contrast icon
06c81c9
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/symbolic/apps
06c81c9
%{__cp} -p %{SOURCE25} \
06c81c9
           $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/symbolic/apps
06c81c9
Richard Hughes fbebd2d
# Register as an application to be visible in the software center
Richard Hughes fbebd2d
#
Richard Hughes fbebd2d
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes fbebd2d
# project, translated and installed into the right place during `make install`.
Richard Hughes fbebd2d
#
Richard Hughes fbebd2d
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes fbebd2d
#
Richard Hughes fbebd2d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes fbebd2d
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes fbebd2d
Richard Hughes fbebd2d
Richard Hughes fbebd2d
Richard Hughes fbebd2d
BugReportURL: https://bugzilla.mozilla.org/show_bug.cgi?id=1071061
Richard Hughes fbebd2d
SentUpstream: 2014-09-22
Richard Hughes fbebd2d
-->
Richard Hughes fbebd2d
<application>
Richard Hughes fbebd2d
  <id type="desktop">firefox.desktop</id>
Richard Hughes fbebd2d
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes fbebd2d
  <description>
Richard Hughes fbebd2d
    

Richard Hughes fbebd2d
      Bringing together all kinds of awesomeness to make browsing better for you.
Richard Hughes fbebd2d
      Get to your favorite sites quickly – even if you don’t remember the URLs.
Richard Hughes fbebd2d
      Type your term into the location bar (aka the Awesome Bar) and the autocomplete
Richard Hughes fbebd2d
      function will include possible matches from your browsing history, bookmarked
Richard Hughes fbebd2d
      sites and open tabs.
Richard Hughes fbebd2d
    

Richard Hughes fbebd2d
    
Richard Hughes fbebd2d
  </description>
Richard Hughes fbebd2d
  <url type="homepage">http://www.mozilla.org/en-US/</url>
Richard Hughes fbebd2d
  <screenshots>
Richard Hughes fbebd2d
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/a.png</screenshot>
Richard Hughes fbebd2d
    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/b.png</screenshot>
Richard Hughes fbebd2d
    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/c.png</screenshot>
Richard Hughes fbebd2d
  </screenshots>
Richard Hughes fbebd2d
  
Richard Hughes fbebd2d
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
Richard Hughes fbebd2d
   -->
Richard Hughes fbebd2d
</application>
Richard Hughes fbebd2d
EOF
Richard Hughes fbebd2d
5fe54d7
echo > ../%{name}.lang
884f977
%if %{build_langpacks}
Christopher Aillon 49840ed
# Extract langpacks, make any mods needed, repack the langpack, and install it.
Christopher Aillon 8cc5a04
%{__mkdir_p} $RPM_BUILD_ROOT%{langpackdir}
Christopher Aillon c0f195a
%{__tar} xf %{SOURCE1}
0e00b2a
for langpack in `ls firefox-langpacks/*.xpi`; do
0e00b2a
  language=`basename $langpack .xpi`
Christopher Aillon 49840ed
  extensionID=langpack-$language@firefox.mozilla.org
Christopher Aillon 49840ed
  %{__mkdir_p} $extensionID
Martin Stransky c4c0150
  unzip -qq $langpack -d $extensionID
Christopher Aillon 49840ed
  find $extensionID -type f | xargs chmod 644
0e00b2a
Christopher Aillon 49840ed
  cd $extensionID
Martin Stransky c4c0150
  zip -qq -r9mX ../${extensionID}.xpi *
Christopher Aillon 49840ed
  cd -
Christopher Aillon 49840ed
Christopher Aillon 49840ed
  %{__install} -m 644 ${extensionID}.xpi $RPM_BUILD_ROOT%{langpackdir}
fa79345
  language=`echo $language | sed -e 's/-/_/g'`
Christopher Aillon 49840ed
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> ../%{name}.lang
0e00b2a
done
0e00b2a
%{__rm} -rf firefox-langpacks
0e00b2a
Martin Stransky a62de3b
# Install langpack workaround (see #707100, #821169)
Martin Stransky a62de3b
function create_default_langpack() {
Martin Stransky a62de3b
language_long=$1
Martin Stransky a62de3b
language_short=$2
Martin Stransky a62de3b
cd $RPM_BUILD_ROOT%{langpackdir}
Martin Stransky a62de3b
ln -s langpack-$language_long@firefox.mozilla.org.xpi langpack-$language_short@firefox.mozilla.org.xpi
Martin Stransky a62de3b
cd -
Martin Stransky 499035c
echo "%%lang($language_short) %{langpackdir}/langpack-$language_short@firefox.mozilla.org.xpi" >> ../%{name}.lang
Martin Stransky a62de3b
}
Martin Stransky a62de3b
Martin Stransky 499035c
# Table of fallbacks for each language
Martin Stransky fcde0fe
# please file a bug at bugzilla.redhat.com if the assignment is incorrect
Martin Stransky 499035c
create_default_langpack "bn-IN" "bn"
Martin Stransky 499035c
create_default_langpack "es-AR" "es"
Martin Stransky 499035c
create_default_langpack "fy-NL" "fy"
Martin Stransky 499035c
create_default_langpack "ga-IE" "ga"
Martin Stransky 499035c
create_default_langpack "gu-IN" "gu"
Martin Stransky 499035c
create_default_langpack "hi-IN" "hi"
Martin Stransky 499035c
create_default_langpack "hy-AM" "hy"
Martin Stransky 499035c
create_default_langpack "nb-NO" "nb"
Martin Stransky 499035c
create_default_langpack "nn-NO" "nn"
Martin Stransky 499035c
create_default_langpack "pa-IN" "pa"
Martin Stransky 499035c
create_default_langpack "pt-PT" "pt"
Martin Stransky 499035c
create_default_langpack "sv-SE" "sv"
Martin Stransky 499035c
create_default_langpack "zh-TW" "zh"
58dcc79
%endif # build_langpacks
Martin Stransky a62de3b
c75ced4
Martin Stransky ff14fd5
%{__mkdir_p} $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults/preferences
Martin Stransky ff14fd5
4c1ef45
# System config dir
32c9b2b
%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/pref
4c1ef45
884f977
# System extensions
884f977
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{firefox_app_id}
884f977
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_app_id}
ab0f13f
ab0f13f
# Copy over the LICENSE
5fe54d7
%{__install} -p -c -m 644 LICENSE $RPM_BUILD_ROOT/%{mozappdir}
2405ef3
875d0c0
# Use the system hunspell dictionaries
875d0c0
%{__rm} -rf ${RPM_BUILD_ROOT}%{mozappdir}/dictionaries
875d0c0
ln -s %{_datadir}/myspell ${RPM_BUILD_ROOT}%{mozappdir}/dictionaries
875d0c0
341ecd0
# Enable crash reporter for Firefox application
4225333
%if %{enable_mozilla_crashreporter}
341ecd0
sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" $RPM_BUILD_ROOT/%{mozappdir}/application.ini
56dc4a6
# Add debuginfo for crash-stats.mozilla.com
56dc4a6
%{__mkdir_p} $RPM_BUILD_ROOT/%{moz_debug_dir}
56dc4a6
%{__cp} objdir/dist/%{symbols_file_name} $RPM_BUILD_ROOT/%{moz_debug_dir}
341ecd0
%endif
341ecd0
c3e1bae
%if %{run_tests}
c3e1bae
# Add debuginfo for crash-stats.mozilla.com
c3e1bae
%{__mkdir_p} $RPM_BUILD_ROOT/test_results
c3e1bae
%{__cp} test_results/* $RPM_BUILD_ROOT/test_results
c3e1bae
%endif
c3e1bae
6ffc9e1
# Default
0a58c3e
%{__cp} %{SOURCE12} ${RPM_BUILD_ROOT}%{mozappdir}/browser/defaults/preferences
0a58c3e
0a58c3e
# Remove copied libraries to speed up build
6ffc9e1
rm -f ${RPM_BUILD_ROOT}%{mozappdirdev}/sdk/lib/libmozjs.so
0a58c3e
rm -f ${RPM_BUILD_ROOT}%{mozappdirdev}/sdk/lib/libmozalloc.so
0a58c3e
rm -f ${RPM_BUILD_ROOT}%{mozappdirdev}/sdk/lib/libxul.so
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
c75ced4
# Moves defaults/preferences to browser/defaults/preferences
f14e989
%pretrans -p <lua>
cb23180
require 'posix'
cb23180
require 'os'
cb23180
if (posix.stat("%{mozappdir}/browser/defaults/preferences", "type") == "link") then
cb23180
  posix.unlink("%{mozappdir}/browser/defaults/preferences")
cb23180
  posix.mkdir("%{mozappdir}/browser/defaults/preferences")
cb23180
  if (posix.stat("%{mozappdir}/defaults/preferences", "type") == "directory") then
6ffc9e1
    for i,filename in pairs(posix.dir("%{mozappdir}/defaults/preferences")) do
cb23180
      os.rename("%{mozappdir}/defaults/preferences/"..filename, "%{mozappdir}/browser/defaults/preferences/"..filename)
cb23180
    end
cb23180
    f = io.open("%{mozappdir}/defaults/preferences/README","w")
cb23180
    if f then
cb23180
      f:write("Content of this directory has been moved to %{mozappdir}/browser/defaults/preferences.")
cb23180
      f:close()
cb23180
    end
cb23180
  end
cb23180
end
c75ced4
ec429e9
Christopher Aillon 5f70bce
%preun
Christopher Aillon 5f70bce
# is it a final removal?
Christopher Aillon 5f70bce
if [ $1 -eq 0 ]; then
Christopher Aillon 5f70bce
  %{__rm} -rf %{mozappdir}/components
Christopher Aillon 5f70bce
  %{__rm} -rf %{mozappdir}/extensions
Christopher Aillon 5f70bce
  %{__rm} -rf %{mozappdir}/plugins
Christopher Aillon 5f70bce
  %{__rm} -rf %{langpackdir}
Christopher Aillon 5f70bce
fi
Christopher Aillon 5f70bce
cvsdist cac9c1c
%post
5732aa4
update-desktop-database &> /dev/null || :
8f828a9
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
19c0cec
cvsdist cac9c1c
%postun
Christopher Aillon a52b725
update-desktop-database &> /dev/null || :
8f828a9
if [ $1 -eq 0 ] ; then
8f828a9
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
8f828a9
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
b7c5c4d
fi
cvsdist cac9c1c
8f828a9
%posttrans
8f828a9
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c6d9eb1
fa79345
%files -f %{name}.lang
cvsdist cac9c1c
%defattr(-,root,root,-)
cvsdist cac9c1c
%{_bindir}/firefox
73632af
%{mozappdir}/firefox
Martin Stransky c0ab6d6
%{mozappdir}/firefox-bin
5fe54d7
%doc %{_mandir}/man1/*
32c9b2b
%dir %{_sysconfdir}/%{name}/*
Martin Stransky 349fbd0
%dir %{_datadir}/mozilla/extensions/*
Martin Stransky 349fbd0
%dir %{_libdir}/mozilla/extensions/*
Richard Hughes fbebd2d
%{_datadir}/appdata/*.appdata.xml
2660809
%{_datadir}/applications/*.desktop
1fb0c4e
%dir %{mozappdir}
f7521ed
%doc %{mozappdir}/LICENSE
Martin Stransky ff14fd5
%{mozappdir}/browser/chrome
Martin Stransky ff14fd5
%{mozappdir}/browser/chrome.manifest
0a58c3e
%{mozappdir}/browser/defaults/preferences/firefox-redhat-default-prefs.js
609162a
%{mozappdir}/browser/features/e10srollout@mozilla.org.xpi
609162a
%{mozappdir}/browser/features/firefox@getpocket.com.xpi
358c2b4
%{mozappdir}/browser/features/webcompat@mozilla.org.xpi
450594e
# That's Windows only
450594e
%ghost %{mozappdir}/browser/features/aushelper@mozilla.org.xpi
Martin Stransky ff14fd5
%attr(644, root, root) %{mozappdir}/browser/blocklist.xml
Martin Stransky ff14fd5
%dir %{mozappdir}/browser/extensions
Martin Stransky 349fbd0
%{mozappdir}/browser/extensions/*
0a804ca
%if %{build_langpacks}
Christopher Aillon 8cc5a04
%dir %{langpackdir}
0a804ca
%endif
Martin Stransky ff14fd5
%{mozappdir}/browser/omni.ja
Martin Stransky ff14fd5
%{mozappdir}/browser/icons
c197919
%{mozappdir}/chrome.manifest
1fb0c4e
%{mozappdir}/run-mozilla.sh
bede30d
%{mozappdir}/application.ini
5fe54d7
%exclude %{mozappdir}/removed-files
8fa89a4
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
06c81c9
%{_datadir}/icons/hicolor/symbolic/apps/firefox-symbolic.svg
4225333
%if %{enable_mozilla_crashreporter}
875d0c0
%{mozappdir}/crashreporter
875d0c0
%{mozappdir}/crashreporter.ini
c197919
%{mozappdir}/minidump-analyzer
875d0c0
%{mozappdir}/Throbber-small.gif
68cb185
%{mozappdir}/browser/crashreporter-override.ini
341ecd0
%endif
875d0c0
%{mozappdir}/*.so
f80b8f8
%{mozappdir}/gtk2/*.so
0a58c3e
%{mozappdir}/defaults/pref/channel-prefs.js
875d0c0
%{mozappdir}/dependentlibs.list
875d0c0
%{mozappdir}/dictionaries
875d0c0
%{mozappdir}/omni.ja
875d0c0
%{mozappdir}/platform.ini
875d0c0
%{mozappdir}/plugin-container
8a0ee5a
%{mozappdir}/gmp-clearkey
450594e
%{mozappdir}/fonts/EmojiOneMozilla.ttf
0e42fa0
%if !%{?system_libicu}
c197919
%{mozappdir}/icudt*.dat
0e42fa0
%endif
875d0c0
%exclude %{_includedir}
875d0c0
%exclude %{_libdir}/firefox-devel-%{version}
875d0c0
%exclude %{_datadir}/idl
Martin Stransky 48d8fda
%if !%{?system_nss}
Martin Stransky 924133a
%{mozappdir}/libfreeblpriv3.chk
Martin Stransky 48d8fda
%{mozappdir}/libnssdbm3.chk
Martin Stransky 48d8fda
%{mozappdir}/libsoftokn3.chk
Martin Stransky 48d8fda
%endif
341ecd0
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
cvsdist cac9c1c
%changelog
beb0cf3
* Tue Mar  7 2017 Jan Horak <jhorak@redhat.com> - 52.0-2
beb0cf3
- Added fix for libicu on big endian platforms
beb0cf3
20d7a16
* Fri Mar 3 2017 Martin Stransky <stransky@redhat.com> - 52.0-1
20d7a16
- Update to 52.0 (B2)
20d7a16
Kai Engert 23da238
* Thu Mar 02 2017 Kai Engert <kaie@redhat.com> - 51.0.1-11
Kai Engert 23da238
- Enable upstream fix for rhbz#1400293 mozbz#1324096 on F26 and Rawhide.
Kai Engert 23da238
  Keep the old workaround on F24/F25, required base packages aren't
Kai Engert 23da238
  available yet.
Kai Engert 23da238
2967f73
* Thu Mar 2 2017 Martin Stransky <stransky@redhat.com> - 51.0.1-10
2967f73
- Test another ARMv7 build setup (rhbz#1426850)
2967f73
e9e814a
* Mon Feb 27 2017 Martin Stransky <stransky@redhat.com> - 51.0.1-9
e9e814a
- Disabled ARMv7 due to build failures (rhbz#1426850)
e9e814a
2754a84
* Mon Feb 27 2017 Martin Stransky <stransky@redhat.com> - 51.0.1-8
2754a84
- Enabled ARMv7 (rhbz#1426850)
2754a84
31c2c8c
* Mon Feb 27 2017 Martin Stransky <stransky@redhat.com> - 51.0.1-7
31c2c8c
- Added fix for rhbz#1414535
31c2c8c
16a08c4
* Thu Feb 23 2017 Martin Stransky <stransky@redhat.com> - 51.0.1-6
16a08c4
- Added fix for mozbz#1321579
16a08c4
0eb6042
* Thu Feb 23 2017 Martin Stransky <stransky@redhat.com> - 51.0.1-5
0eb6042
- Disabled -O3 optimization on rawhide to make FF usable (rhbz#1422532)
0eb6042
c6359b6
* Wed Feb 15 2017 Jan Horak <jhorak@redhat.com> - 51.0.1-4
c6359b6
- Fixed bug 1421334 - translations for "New window"
c6359b6
29a0efc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 51.0.1-3
29a0efc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
29a0efc
048a03c
* Wed Jan 25 2017 Jan Horak <jhorak@redhat.com> - 51.0.1-2
420c9c9
- Update to 51.0.1
420c9c9
402aa35
* Tue Jan 24 2017 Martin Stransky <stransky@redhat.com> - 51.0-3
402aa35
- Added fix for aarch64 crashes (rhbz#1354671)
402aa35
88060de
* Thu Jan 19 2017 Martin Stransky <stransky@redhat.com> - 51.0-2
88060de
- Update to 51.0 (B2)
88060de
a25c5d4
* Wed Jan 18 2017 Martin Stransky <stransky@redhat.com> - 51.0-1
a25c5d4
- Update to 51.0 (B1)
a25c5d4
b2b845f
* Tue Jan 17 2017 Jan Horak <jhorak@redhat.com> - 50.1.0-4
b2b845f
- Enable telemetry (rhbz#1412971)
b2b845f
77fff82
* Mon Jan 16 2017 Martin Stransky <stransky@redhat.com> - 50.1.0-3
77fff82
- Added patch for nss 3.28.1 (mozbz#1290037)
77fff82
11af448
* Wed Dec 21 2016 Martin Stransky <stransky@redhat.com> - 50.1.0-2
11af448
- Enabled Mozilla crash reporter
11af448
a1fc3a5
* Tue Dec 13 2016 Martin Stransky <stransky@redhat.com> - 50.1.0-1
a1fc3a5
- Updated to 50.1.0
a1fc3a5
5f61986
* Wed Nov 30 2016 Martin Stransky <stransky@redhat.com> - 50.0.2-2
5f61986
- Added fix for "ABORT: X_ShmAttach: BadAccess" crashes
5f61986
  (mozbz#1271100)
5f61986
5f61986
* Wed Nov 30 2016 Martin Stransky <stransky@redhat.com> - 50.0.2-1
0578c15
- Update to latest upstream (50.0.2)
0578c15
73bc9ae
* Mon Nov 28 2016 Martin Stransky <stransky@redhat.com> - 50.0.1-1
73bc9ae
- Update to latest upstream (50.0.1)
73bc9ae
29e45f7
* Thu Nov 24 2016 Martin Stransky <stransky@redhat.com> - 50.0-2
29e45f7
- Rebase Gtk3 widget code to latest trunk to fix
29e45f7
  various rendering problems (rhbz#1397290)
29e45f7
450594e
* Thu Nov 10 2016 Martin Stransky <stransky@redhat.com> - 50.0-1
450594e
- Update to 50.0
450594e
4e02c73
* Mon Oct 31 2016 Jan Horak <jhorak@redhat.com> - 49.0.2-1
4e02c73
- Update to 49.0.2
4e02c73
ad0822a
* Mon Sep 26 2016 Jan Horak <jhorak@redhat.com> - 49.0-3
ad0822a
- Build with rust where possible
111fd75
- Added fix for wrong accept-language headers when running with non-english locales
ad0822a
b95b121
* Mon Sep 19 2016 Martin Stransky <stransky@redhat.com> - 49.0-2
b95b121
- Update to Firefox 49 (B4)
b95b121
358c2b4
* Tue Sep 6 2016 Martin Stransky <stransky@redhat.com> - 49.0-1
358c2b4
- Update to Firefox 49
358c2b4
277347d
* Mon Aug 22 2016 Jan Horak <jhorak@redhat.com> - 48.0.1-2
277347d
- Added translations for .desktop file actions
277347d
Martin Stransky 924133a
* Fri Aug 19 2016 Martin Stransky <stransky@redhat.com> - 48.0.1-1
Martin Stransky 924133a
- Update to 48.0.1
Martin Stransky 924133a
- Added fix for mozbz#1291700 - Since latest release NTLM/SPNEGO
Martin Stransky 924133a
  no longer works
Martin Stransky 924133a
f701ef9
* Wed Aug 17 2016 Martin Stransky <stransky@redhat.com> - 48.0-6
f701ef9
- Added patch for mozbz#1225044 - gtk3 rendering glitches
f701ef9
a5b8d3c
* Fri Jul 29 2016 Martin Stransky <stransky@redhat.com> - 48.0-5
a5b8d3c
- Added fix for mozbz#1250704 - tooltips text color
0e42fa0
- Disable system sqlite on F23
0e42fa0
- Package in-tree icu file
a5b8d3c
3665223
* Thu Jul 28 2016 Martin Stransky <stransky@redhat.com> - 48.0-4
3665223
- Enable dark themes by pref in about:config (Bug 1272332)
c196393
- Backported gtk3.20 upstream fixes
3665223
eb56d8c
* Wed Jul 27 2016 Martin Stransky <stransky@redhat.com> - 48.0-3
eb56d8c
- Updated to 48.0 (B2)
eb56d8c
23a8cff
* Wed Jul 27 2016 Jan Horak <jhorak@redhat.com> - 48.0-2
23a8cff
- Negotiate authentication is made off the main thread again (mozbz#890908)
23a8cff
- Fixed default prerefences (rhbz#1349489)
23a8cff
06549fe
* Tue Jul 26 2016 Martin Stransky <stransky@redhat.com> - 48.0-1
06549fe
- Updated to 48.0
06549fe
6b5f8b9
* Fri Jul 22 2016 Tom Callaway <spot@fedoraproject.org> - 47.0.1-3
6b5f8b9
- rebuild for libvpx 1.6.0
6b5f8b9
77766f8
* Mon Jul 11 2016 Martin Stransky <stransky@redhat.com> - 47.0.1-2
77766f8
- Added fix for mozbz#256180 - gmail paste issues
77766f8
6599a39
* Mon Jul 11 2016 Martin Stransky <stransky@redhat.com> - 47.0.1-1
6599a39
- Updated to 47.0.1
6599a39
0c16a47
* Wed Jun 22 2016 Martin Stransky <stransky@redhat.com> - 47.0-6
Martin Stransky 84204c2
- Updated tooltip patch for 3.20
Martin Stransky 84204c2
Martin Stransky 2fc79a3
* Mon Jun  6 2016 Martin Stransky <stransky@redhat.com> - 47.0-4
Martin Stransky 2fc79a3
- Updated to 47.0 (B3)
Martin Stransky 2fc79a3
- Should fix rhbz#1338010 (rebuilt against new astronomy-bookmarks)
Martin Stransky 2fc79a3
d7b8273
* Fri Jun  3 2016 Martin Stransky <stransky@redhat.com> - 47.0-3
d7b8273
- Updated to 47.0 (B2)
d7b8273
a5f55de
* Thu Jun  2 2016 Martin Stransky <stransky@redhat.com> - 47.0-2
e82a774
- Updated to 47.0
a5f55de
- Backout of negotiate authentication patch
e82a774
2b344f2
* Thu May 26 2016 Jan Horak <jhorak@redhat.com> - 46.0.1-9
2b344f2
- Negotiate authentication is made off the main thread (mozbz#890908)
2b344f2
b345c18
* Mon May 23 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-8
Martin Stransky af0917f
- Rebuilt for new bookmarks (rhbz#1338010)
Martin Stransky af0917f
- Fixed build issue in Gtk3.20 patch
Martin Stransky af0917f
9b41f11
* Fri May 20 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-6
9b41f11
- Updated Gtk3.20 patch - fixed tooltips
9b41f11
c27e5b3
* Thu May 19 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-5
c27e5b3
- Added a fix for mozbz#1245783 - gcc6.1 crashes in JIT
c27e5b3
63d497b
* Thu May 12 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-4
63d497b
- Added fix for rhbz#1332821 - Crash on "Select" in "Open with" dialog
63d497b
ae58f17
* Tue May 10 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-3
ae58f17
- Added patch for rhbz#1332875 - new Samba auth reponse
ae58f17
4d24fce
* Thu May 5 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-2
4d24fce
- Disable dark theme until we support it correctly (mozbz#1216658)
4d24fce
Martin Stransky 346e3aa
* Tue May 3 2016 Martin Stransky <stransky@redhat.com> - 46.0.1-1
Martin Stransky 346e3aa
- Updated to 46.0.1
Martin Stransky 346e3aa
Martin Stransky 75087ae
* Mon May 2 2016 Martin Stransky <stransky@redhat.com> - 46.0-6
Martin Stransky 75087ae
- Removed gstreamer config as it's no longer used.
Martin Stransky 75087ae
  See rhbz#1331496 for details.
Martin Stransky dc35dec
- Updated Firefox project URL (rhbz#1329014)
Martin Stransky 75087ae
6a499c9
* Thu Apr 28 2016 Martin Stransky <stransky@redhat.com> - 46.0-5
6a499c9
- Added fix for rhbz#1322626 - wrong focused window
6a499c9
Martin Stransky 62a95da
* Wed Apr 27 2016 Martin Stransky <stransky@redhat.com> - 46.0-4
Martin Stransky 62a95da
- Added fix for rhbz#1315225 - ppc64le/aarch64 build fixes
Martin Stransky 62a95da
Martin Stransky 2a616e8
* Wed Apr 27 2016 Martin Stransky <stransky@redhat.com> - 46.0-3
Martin Stransky 2a616e8
- Fixed missing langpacks
Martin Stransky 2a616e8
26b0429
* Tue Apr 26 2016 Martin Stransky <stransky@redhat.com> - 46.0-2
26b0429
- Disabled system libicu on Fedora 22/23
26b0429
dba86ea
* Mon Apr 25 2016 Martin Stransky <stransky@redhat.com> - 46.0-1
dba86ea
- Updated to 46.0 (B5)
dba86ea
ac79dd9
* Thu Apr 21 2016 Martin Stransky <stransky@redhat.com> - 45.0.2-5
ac79dd9
- Added patch for mozbz#1263145
ac79dd9
e303a08
* Wed Apr 20 2016 Martin Stransky <stransky@redhat.com> - 45.0.2-4
2a0ed4e
- Updated scrollbar code for Gtk 3.20
2a0ed4e
df98bed
* Mon Apr 18 2016 Martin Stransky <stransky@redhat.com> - 45.0.2-2
df98bed
- Disabled gcc6 null this optimization (rhbz#1328045)
df98bed
Martin Stransky 2a09eea
* Mon Apr 11 2016 Martin Stransky <stransky@redhat.com> - 45.0.2-1
Martin Stransky 2a09eea
- New upstream (45.0.2)
Martin Stransky 2a09eea
d81339d
* Tue Apr 5 2016 Martin Stransky <stransky@redhat.com> - 45.0.1-6
d81339d
- Fixed rhbz#1322669 - Flash widgets are not displayed
d81339d
0474703
* Tue Apr 5 2016 Martin Stransky <stransky@redhat.com> - 45.0.1-5
0474703
- Polished gcc6 patches
0474703
d948c59
* Tue Mar 22 2016 Martin Stransky <stransky@redhat.com> - 45.0.1-4
9fc6d9d
- Fixed rhbz#1321355 - broken flash plugin
32c9b2b
- Added /etc/firefox/pref dir for easy configuration
32c9b2b
b33c1cc
* Mon Mar 21 2016 Martin Stransky <stransky@redhat.com> - 45.0.1-3
b33c1cc
- Provide system wide config dir (mozbz#1170092)
b33c1cc
- Allow lock preferences from .js files (mozbz#440908)
b33c1cc
Martin Stransky bfde9d0
* Mon Mar 21 2016 Martin Stransky <stransky@redhat.com> - 45.0.1-2
Martin Stransky bfde9d0
- Fixed rhbz#1293874 - use a Debian patch for disabled extension
Martin Stransky bfde9d0
  signing
Martin Stransky bfde9d0
Martin Stransky d1c4b3b
* Wed Mar 16 2016 Martin Stransky <stransky@redhat.com> - 45.0.1-1
Martin Stransky d1c4b3b
- Update to 45.0.1
Martin Stransky d1c4b3b
efb95e0
* Tue Mar 15 2016 Martin Stransky <stransky@redhat.com> - 45.0-5
efb95e0
- Updated gtk3.20 patch
efb95e0
e916309
* Fri Mar 4 2016 Martin Stransky <stransky@redhat.com> - 45.0-4
e916309
- Update to 45.0 (B2)
e916309
13b418f
* Thu Mar 3 2016 Martin Stransky <stransky@redhat.com> - 45.0-3
13b418f
- Added run-time fix for JIT (mozbz#1253216)
13b418f
de1fb9d
* Wed Mar 2 2016 Martin Stransky <stransky@redhat.com> - 45.0-2
de1fb9d
- Disabled system libvpx on Fedora 22 where is 1.3.0
de1fb9d
2f2c47f
* Wed Mar 2 2016 Martin Stransky <stransky@redhat.com> - 45.0-1
2f2c47f
- Update to 45.0
2f2c47f
Martin Stransky 93db231
* Thu Feb 11 2016 Martin Stransky <stransky@redhat.com> - 44.0.2-3
Martin Stransky 93db231
- Added patch for mozbz#1205199
Martin Stransky 93db231
Martin Stransky bc5e1e5
* Thu Feb 11 2016 Martin Stransky <stransky@redhat.com> - 44.0.2-2
Martin Stransky bc5e1e5
- Update to 44.0.2 (B3)
Martin Stransky bc5e1e5
Martin Stransky cf4dbd1
* Wed Feb 10 2016 Martin Stransky <stransky@redhat.com> - 44.0.2-1
Martin Stransky cf4dbd1
- Update to 44.0.2 (B2)
Martin Stransky cf4dbd1
Martin Stransky 4a0e045
* Mon Feb 8 2016 Martin Stransky <stransky@redhat.com> - 44.0.1-2
Martin Stransky 4a0e045
- Update to 44.0.1 (B2)
Martin Stransky 4a0e045
Martin Stransky ccd5116
* Fri Feb 5 2016 Martin Stransky <stransky@redhat.com> - 44.0.1-1
Martin Stransky ccd5116
- Update to 44.0.1
Martin Stransky ccd5116
40d46e4
* Thu Feb  4 2016 Jan Horak <jhorak@redhat.com> - 44.0-6
40d46e4
- Workaround for crash when closing application chooser and Fedora 23
40d46e4
  (rhbz#1291190)
40d46e4
Martin Stransky f8c8f79
* Tue Feb 2 2016 Martin Stransky <stransky@redhat.com> - 44.0-5
Martin Stransky 34727c1
- GCC 6.0 build patch
Martin Stransky 34727c1
- Disabled mozilla crashreporter to catch Gtk3 crashes
Martin Stransky 34727c1
Martin Stransky 7306cb7
* Mon Feb 1 2016 Martin Stransky <stransky@redhat.com> - 44.0-4
Martin Stransky 7306cb7
- Removed pulseaudio hard dependency (rhbz#1303620)
Martin Stransky 7306cb7
Martin Stransky d506f78
* Tue Jan 26 2016 Ralph Giles <giles@mozilla.com> - 44.0-3
Martin Stransky 960b5cb
- Medadata update, require pulseaudio
Martin Stransky 960b5cb
Martin Stransky fcbde70
* Mon Jan 25 2016 Martin Stransky <stransky@redhat.com> - 44.0-2
Martin Stransky fcbde70
- Update to 44.0 B3
Martin Stransky fcbde70
92eddbe
* Thu Jan 21 2016 Jan Horak <jhorak@redhat.com> - 44.0-1
92eddbe
- Update to 44.0
92eddbe
d9b8abd
* Thu Jan 14 2016 Martin Stransky <stransky@redhat.com> - 43.0.4-2
d9b8abd
- Fixed the progress bar rendering
d9b8abd
d9b8abd
* Thu Jan 14 2016 Martin Stransky <stransky@redhat.com> - 43.0.4-1
1f05759
- Update to 43.0.4
1f05759
Martin Stransky e904933
* Wed Jan 13 2016 Martin Stransky <stransky@redhat.com> - 43.0.3-5
Martin Stransky e904933
- Updated progress bars rendering for Gtk 3.20
Martin Stransky e904933
9638b52
* Thu Jan 7 2016 Martin Stransky <stransky@redhat.com> - 43.0.3-4
9638b52
- Added fix for mozbz#1234026 - crashes on XWayland
9638b52
Marcin Juszkiewicz b39173f
* Tue Jan 05 2016 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 43.0.3-3
Marcin Juszkiewicz b39173f
- Fix build on AArch64.
Marcin Juszkiewicz b39173f
Martin Stransky 6fa6641
* Mon Jan 4 2016 Martin Stransky <stransky@redhat.com> - 43.0.3-2
Martin Stransky 6fa6641
- Enabled Skia (rhbz#1282134)
Martin Stransky 6fa6641