0bcd21
%define system_nss              1
0bcd21
%global nspr_version            4.13.1
0bcd21
%global nss_version             3.28.4-11
0bcd21
%define system_sqlite           0
0bcd21
%define sqlite_version          3.8.4.2
0bcd21
%define system_ffi              1
0bcd21
%define ffi_version             3.0.9
0bcd21
%define use_bundled_yasm        1
0bcd21
%define use_bundled_python      0
0bcd21
%define python_version          2.7.8
0bcd21
%define use_bundled_gcc         0
0bcd21
%define gcc_version             4.8.2-16
0bcd21
%define cairo_version           1.10.2
0bcd21
%define freetype_version        2.1.9
0bcd21
%define system_jpeg             1
0bcd21
%define system_libatomic        0
0bcd21
%define with_intl_api           1
0bcd21
%define use_baselinejit         1
0bcd21
%define official_branding       1
0bcd21
%define use_gtk3                0
0bcd21
0bcd21
0bcd21
%define debug_build             0
0bcd21
# This is for local builds or builds in mock with --no-clean
0bcd21
# It skips building of gcc, binutils and yasm rpms when they exists, it just installs
0bcd21
# them and doesn't delete them to allow recycling them in next build.
0bcd21
# SHOULD ALWAYS BE 0 WHEN BUILDING IN BREW
0bcd21
%define do_not_clean_rpms       0
0bcd21
0bcd21
# Configure and override build options for various platforms and RHEL versions
0bcd21
# ============================================================================
0bcd21
0bcd21
# RHEL7
0bcd21
%if 0%{?rhel} == 7
0bcd21
%ifarch s390x
0bcd21
%define use_bundled_gcc         1
0bcd21
%endif
0bcd21
%endif
0bcd21
0bcd21
# RHEL6
0bcd21
%if 0%{?rhel} == 6
0bcd21
%define use_bundled_python      1
0bcd21
%define use_bundled_gcc         1
0bcd21
%define use_bundled_yasm        1
0bcd21
%define system_ffi              0
0bcd21
%define use_bundled_binutils    1
0bcd21
%endif
0bcd21
0bcd21
# Require libatomic for ppc
0bcd21
%ifarch ppc
0bcd21
%define system_libatomic        1
0bcd21
%endif
0bcd21
# Big endian platforms
0bcd21
%ifarch ppc ppc64 s390 s390x
0bcd21
# Javascript Intl API is not supported on big endian platforms right now:
0bcd21
# https://bugzilla.mozilla.org/show_bug.cgi?id=1322212
0bcd21
%define with_intl_api           1
0bcd21
%define big_endian              1
0bcd21
%endif
0bcd21
0bcd21
# ============================================================================
0bcd21
0bcd21
# Avoid patch failures
0bcd21
%define _default_patch_fuzz 2
0bcd21
0bcd21
0bcd21
%define default_bookmarks_file  %{_datadir}/bookmarks/default-bookmarks.html
0bcd21
%define firefox_app_id          \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
0bcd21
%define mozappdir               %{_libdir}/%{name}
0bcd21
%define build_langpacks         1
0bcd21
%define langpackdir             %{mozappdir}/langpacks
0bcd21
%if %{?system_sqlite}
0bcd21
# The actual sqlite version (see #480989):
0bcd21
%global sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo 65536)
0bcd21
%endif
0bcd21
0bcd21
Summary:        Mozilla Firefox Web browser
0bcd21
Name:           firefox
10ca36
Version:        52.8.0
0bcd21
Release:        1%{?dist}
0bcd21
URL:            http://www.mozilla.org/projects/firefox/
0bcd21
License:        MPLv1.1 or GPLv2+ or LGPLv2+
0bcd21
Group:          Applications/Internet
0bcd21
0bcd21
%define         ext_version             esr
0bcd21
%define         tarballdir              firefox-%{version}%{?ext_version}
0bcd21
0bcd21
# From ftp://archive.mozilla.org/pub/firefox/releases/%{version}%{?ext_version}/source
0bcd21
Source0:        firefox-%{version}%{?ext_version}.source.tar.xz
0bcd21
%if %{build_langpacks}
10ca36
Source1:        firefox-langpacks-%{version}%{?ext_version}-20180509.tar.xz
0bcd21
%endif
0bcd21
Source10:       firefox-mozconfig
0bcd21
Source12:       firefox-redhat-default-prefs.js
0bcd21
Source20:       firefox.desktop
0bcd21
Source600:      firefox.sh.in.rhel6
0bcd21
Source700:      firefox.sh.in.rhel7
0bcd21
Source23:       firefox.1
0bcd21
Source24:       mozilla-api-key
0bcd21
Source100:      find-external-requires
0bcd21
Source200:      https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
0bcd21
Source300:      gcc48-%{gcc_version}.el5.src.rpm
0bcd21
Source301:      yasm-1.2.0-3.el5.src.rpm
0bcd21
Source302:      devtoolset-2-binutils-2.23.52.0.1-10.el5.src.rpm
0bcd21
0bcd21
# Build patches
0bcd21
Patch0:         firefox-install-dir.patch
0bcd21
Patch5:         xulrunner-24.0-jemalloc-ppc.patch
0bcd21
Patch6:         webrtc-arch-cpu.patch
0bcd21
Patch8:         firefox-ppc64le.patch
0bcd21
#ALREADY Patch19:        mozilla-1319374-skia-endian.patch
0bcd21
Patch20:        build-s390-atomic.patch
0bcd21
Patch21:        build-icu-big-endian.patch
0bcd21
Patch22:        build-missing-getrandom.patch
0bcd21
Patch23:        build-nss-version.patch
0bcd21
Patch24:        build-nss-prbool.patch
0bcd21
Patch25:        build-s390-missing-include.patch
0bcd21
0bcd21
# RHEL patches
0bcd21
Patch101:       firefox-default.patch
0bcd21
# TODO code changed a lot, need to test it
0bcd21
Patch102:       firefox-enable-addons.patch
0bcd21
Patch103:       rhbz-966424.patch
0bcd21
Patch106:       firefox-enable-plugins.patch
0bcd21
Patch110:       mozilla-1170092-etc-conf.patch
0bcd21
Patch111:       rhbz-1173156.patch
0bcd21
Patch112:       mozilla-256180.patch
0bcd21
Patch114:       rhbz-1423012.patch
0bcd21
Patch116:       mozilla-1005640-accept-lang.patch
0bcd21
0bcd21
# Upstream patches
0bcd21
# Skia support for big endian platforms, since patch got review- I think we can delete that:
0bcd21
#Patch201:       mozilla-1005535.patch
0bcd21
# Kaie's patch, we'll most likely need this one
0bcd21
Patch202:       mozilla-1152515.patch
0bcd21
Patch203:       mozilla-1324096.patch
0bcd21
0bcd21
# RHEL7 patches
0bcd21
0bcd21
# RHEL6 patches
0bcd21
# HOPEFULY fixed Patch401:       build-el6-harfbuzz-old-glib.patch
0bcd21
0bcd21
# ---------------------------------------------------
0bcd21
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
0bcd21
0bcd21
BuildRequires:  desktop-file-utils
0bcd21
BuildRequires:  mesa-libGL-devel
0bcd21
BuildRequires:  zip
0bcd21
BuildRequires:  bzip2-devel
0bcd21
BuildRequires:  zlib-devel
0bcd21
BuildRequires:  libIDL-devel
0bcd21
%if %{?use_gtk3}
0bcd21
BuildRequires:  gtk3-devel
0bcd21
%else
0bcd21
BuildRequires:  gtk2-devel
0bcd21
%endif
0bcd21
BuildRequires:  gnome-vfs2-devel
0bcd21
BuildRequires:  libgnome-devel
0bcd21
BuildRequires:  libgnomeui-devel
0bcd21
BuildRequires:  krb5-devel
0bcd21
BuildRequires:  pango-devel
0bcd21
BuildRequires:  freetype-devel >= %{freetype_version}
0bcd21
BuildRequires:  libXt-devel
0bcd21
BuildRequires:  libXrender-devel
0bcd21
BuildRequires:  startup-notification-devel
0bcd21
BuildRequires:  alsa-lib-devel
0bcd21
BuildRequires:  libnotify-devel
0bcd21
BuildRequires:  autoconf213
0bcd21
BuildRequires:  mesa-libGL-devel
0bcd21
BuildRequires:  autoconf213
0bcd21
BuildRequires:  xz
0bcd21
%if ! %{use_bundled_yasm}0
0bcd21
BuildRequires:  yasm
0bcd21
%endif
0bcd21
%if %{?system_sqlite}
0bcd21
BuildRequires:  sqlite-devel >= %{sqlite_version}
0bcd21
Requires:       sqlite >= %{sqlite_build_version}
0bcd21
%endif
0bcd21
%if %{?system_nss}
0bcd21
BuildRequires:  nspr-devel >= %{nspr_version}
0bcd21
BuildRequires:  nss-devel >= %{nss_version}
0bcd21
Requires:       nspr >= %{nspr_version}
0bcd21
Requires:       nss >= %{nss_version}
0bcd21
%endif
0bcd21
%if %{?system_sqlite}
0bcd21
BuildRequires:  sqlite-devel >= %{sqlite_version}
0bcd21
Requires:       sqlite >= %{sqlite_build_version}
0bcd21
%endif
0bcd21
%if %{?system_ffi}
0bcd21
BuildRequires:  libffi-devel >= %{ffi_version}
0bcd21
Requires:       libffi >= %{ffi_version}
0bcd21
%endif
0bcd21
BuildRequires:  libpng-devel
0bcd21
BuildRequires:  libjpeg-devel
0bcd21
BuildRequires:  hunspell-devel
0bcd21
%if %{system_libatomic}
0bcd21
BuildRequires:  libatomic
0bcd21
Requires:       libatomic
0bcd21
%endif
0bcd21
0bcd21
# RHEL7 requires
0bcd21
%if 0%{?rhel} == 7
0bcd21
Requires:       redhat-indexhtml
0bcd21
BuildRequires:  pulseaudio-libs-devel
0bcd21
BuildRequires:  system-bookmarks
0bcd21
Requires:       mozilla-filesystem
0bcd21
Requires:       liberation-fonts-common
0bcd21
Requires:       liberation-sans-fonts
0bcd21
BuildRequires:  dbus-glib-devel >= 0.60 
0bcd21
%endif
0bcd21
0bcd21
# RHEL6 requires
0bcd21
%if 0%{?rhel} == 6
0bcd21
BuildRequires:  desktop-file-utils
0bcd21
BuildRequires:  system-bookmarks
0bcd21
Requires:       system-bookmarks
0bcd21
Requires:       redhat-indexhtml
0bcd21
Requires:       mozilla-filesystem
0bcd21
Requires:       gtk2 >= 2.24
0bcd21
BuildRequires:  pulseaudio-libs-devel
0bcd21
BuildRequires:  system-bookmarks
0bcd21
Requires:       mozilla-filesystem
0bcd21
Requires:       liberation-fonts-common
0bcd21
Requires:       liberation-sans-fonts
0bcd21
%endif
0bcd21
0bcd21
Obsoletes:      mozilla <= 37:1.7.13
0bcd21
Obsoletes:      firefox < 38.0
0bcd21
Conflicts:      firefox < 38.0
0bcd21
Provides:       webclient
0bcd21
0bcd21
%if %{use_bundled_python}
0bcd21
BuildRequires:  openssl-devel
0bcd21
%endif
0bcd21
# GCC 4.8 BuildRequires
0bcd21
# ==================================================================================
0bcd21
%if %{use_bundled_gcc}
0bcd21
0bcd21
%ifarch s390x
0bcd21
%global multilib_32_arch s390
0bcd21
%endif
0bcd21
%ifarch sparc64
0bcd21
%global multilib_32_arch sparcv9
0bcd21
%endif
0bcd21
%ifarch ppc64
0bcd21
%global multilib_32_arch ppc
0bcd21
%endif
0bcd21
%ifarch x86_64
0bcd21
%if 0%{?rhel} >= 6
0bcd21
%global multilib_32_arch i686
0bcd21
%else
0bcd21
%global multilib_32_arch i386
0bcd21
%endif
0bcd21
%endif
0bcd21
0bcd21
%global multilib_64_archs sparc64 ppc64 s390x x86_64
0bcd21
0bcd21
%if 0%{?rhel} >= 6
0bcd21
# Need binutils which support --build-id >= 2.17.50.0.17-3
0bcd21
# Need binutils which support %gnu_unique_object >= 2.19.51.0.14
0bcd21
# Need binutils which support .cfi_sections >= 2.19.51.0.14-33
0bcd21
BuildRequires: binutils >= 2.19.51.0.14-33
0bcd21
# While gcc doesn't include statically linked binaries, during testing
0bcd21
# -static is used several times.
0bcd21
BuildRequires: glibc-static
0bcd21
%else
0bcd21
# Don't have binutils which support --build-id >= 2.17.50.0.17-3
0bcd21
# Don't have binutils which support %gnu_unique_object >= 2.19.51.0.14
0bcd21
# Don't have binutils which  support .cfi_sections >= 2.19.51.0.14-33
0bcd21
BuildRequires: binutils >= 2.17.50.0.2-8
0bcd21
%endif
0bcd21
BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, texinfo, sharutils
0bcd21
BuildRequires: /usr/bin/pod2man
0bcd21
%if 0%{?rhel} >= 7
0bcd21
BuildRequires: texinfo-tex
0bcd21
%endif
0bcd21
#BuildRequires: systemtap-sdt-devel >= 1.3
0bcd21
# For VTA guality testing
0bcd21
BuildRequires: gdb
0bcd21
# Make sure pthread.h doesn't contain __thread tokens
0bcd21
# Make sure glibc supports stack protector
0bcd21
# Make sure glibc supports DT_GNU_HASH
0bcd21
BuildRequires: glibc-devel >= 2.4.90-13
0bcd21
%if 0%{?rhel} >= 6
0bcd21
BuildRequires: elfutils-devel >= 0.147
0bcd21
BuildRequires: elfutils-libelf-devel >= 0.147
0bcd21
%else
0bcd21
BuildRequires: elfutils-devel >= 0.72
0bcd21
%endif
0bcd21
%ifarch ppc ppc64 s390 s390x sparc sparcv9 alpha
0bcd21
# Make sure glibc supports TFmode long double
0bcd21
BuildRequires: glibc >= 2.3.90-35
0bcd21
%endif
0bcd21
%ifarch %{multilib_64_archs} sparcv9 ppc
0bcd21
# Ensure glibc{,-devel} is installed for both multilib arches
0bcd21
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
0bcd21
%endif
0bcd21
%ifarch ia64
0bcd21
BuildRequires: libunwind >= 0.98
0bcd21
%endif
0bcd21
# Need .eh_frame ld optimizations
0bcd21
# Need proper visibility support
0bcd21
# Need -pie support
0bcd21
# Need --as-needed/--no-as-needed support
0bcd21
# On ppc64, need omit dot symbols support and --non-overlapping-opd
0bcd21
# Need binutils that owns /usr/bin/c++filt
0bcd21
# Need binutils that support .weakref
0bcd21
# Need binutils that supports --hash-style=gnu
0bcd21
# Need binutils that support mffgpr/mftgpr
0bcd21
#%if 0%{?rhel} >= 6
0bcd21
## Need binutils which support --build-id >= 2.17.50.0.17-3
0bcd21
## Need binutils which support %gnu_unique_object >= 2.19.51.0.14
0bcd21
## Need binutils which support .cfi_sections >= 2.19.51.0.14-33
0bcd21
#Requires: binutils >= 2.19.51.0.14-33
0bcd21
#%else
0bcd21
## Don't have binutils which support --build-id >= 2.17.50.0.17-3
0bcd21
## Don't have binutils which support %gnu_unique_object >= 2.19.51.0.14
0bcd21
## Don't have binutils which  support .cfi_sections >= 2.19.51.0.14-33
0bcd21
#Requires: binutils >= 2.17.50.0.2-8
0bcd21
#%endif
0bcd21
## Make sure gdb will understand DW_FORM_strp
0bcd21
#Conflicts: gdb < 5.1-2
0bcd21
#Requires: glibc-devel >= 2.2.90-12
0bcd21
#%ifarch ppc ppc64 s390 s390x sparc sparcv9 alpha
0bcd21
## Make sure glibc supports TFmode long double
0bcd21
#Requires: glibc >= 2.3.90-35
0bcd21
#%endif
0bcd21
#Requires: libgcc >= 4.1.2-43
0bcd21
#Requires: libgomp >= 4.4.4-13
0bcd21
#%if 0%{?rhel} == 6
0bcd21
#Requires: libstdc++ >= 4.4.4-13
0bcd21
#%else
0bcd21
#Requires: libstdc++ = 4.1.2
0bcd21
#%endif
0bcd21
##FIXME gcc version
0bcd21
#Requires: libstdc++-devel = %{version}-%{release}
0bcd21
BuildRequires: gmp-devel >= 4.1.2-8
0bcd21
%if 0%{?rhel} >= 6
0bcd21
BuildRequires: mpfr-devel >= 2.2.1
0bcd21
%endif
0bcd21
%if 0%{?rhel} >= 7
0bcd21
BuildRequires: libmpc-devel >= 0.8.1
0bcd21
%endif
0bcd21
0bcd21
%endif # bundled gcc BuildRequires
0bcd21
# ==================================================================================
0bcd21
# Override internal dependency generator to avoid showing libraries provided by this package
0bcd21
# in dependencies:
0bcd21
AutoProv: 0
0bcd21
%define _use_internal_dependency_generator 0
0bcd21
%define __find_requires %{SOURCE100}
0bcd21
0bcd21
%description
0bcd21
Mozilla Firefox is an open-source web browser, designed for standards
0bcd21
compliance, performance and portability.
0bcd21
0bcd21
#---------------------------------------------------------------------
0bcd21
0bcd21
%prep
0bcd21
%setup -q -c
0bcd21
cd %{tarballdir}
0bcd21
0bcd21
# Build patches
0bcd21
# We have to keep original patch backup extension to go thru configure without problems with tests
0bcd21
%patch0 -p1 -b .orig
0bcd21
%patch5 -p1 -b .jemalloc-ppc.patch
0bcd21
%patch6 -p1 -b .webrtc-arch-cpu
0bcd21
%patch8 -p2 -b .ppc64le
0bcd21
#ALREADY %patch19 -p1 -b .skia-endian
0bcd21
%patch20 -p1 -b .s390-atomic
0bcd21
%patch22 -p1 -b .missing-getrandom
0bcd21
%patch23 -p1 -b .nss-version
0bcd21
%patch24 -p1 -b .nss-prbool
0bcd21
%patch25 -p1 -b .s390-missing-include
0bcd21
0bcd21
# RPM specific patches
0bcd21
%patch101 -p1 -b .default
0bcd21
%patch102 -p1 -b .addons
0bcd21
%patch103 -p1 -b .rhbz-966424
0bcd21
%patch106 -p2 -b .plugins
0bcd21
%patch110 -p1 -b .moz-1170092-etc-conf
0bcd21
%patch111 -p2 -b .rhbz-1173156
0bcd21
%patch112 -p1 -b .mozbz-256180
0bcd21
%patch114 -p1 -b .rhbz-1423012
0bcd21
%patch116 -p1 -b .mozbz-1005640-accept-lang
0bcd21
0bcd21
# Upstream patches
0bcd21
#%patch201 -p1 -b .mozbz-1005535 see Patch201 comment
0bcd21
%patch202 -p1 -b .mozbz-1152515
0bcd21
%patch203 -p1 -b .mozbz-1324096
0bcd21
0bcd21
# RHEL7 only patches
0bcd21
%if %{?rhel} == 7
0bcd21
%endif
0bcd21
0bcd21
#%if %{?rhel} == 6
0bcd21
#HOPEFULY FIXED %patch401 -p1 -b .harfbuzz-old-glib
0bcd21
#%endif
0bcd21
0bcd21
# Patch for big endian platforms only
0bcd21
%if 0%{?big_endian}
0bcd21
%patch21 -p1 -b .s390-atomic
0bcd21
%endif
0bcd21
0bcd21
%{__rm} -f .mozconfig
0bcd21
%{__cp} %{SOURCE10} .mozconfig
0bcd21
%{__cp} %{SOURCE24} mozilla-api-key
0bcd21
0bcd21
function add_to_mozconfig() {
0bcd21
  mozconfig_entry=$1
0bcd21
  echo "ac_add_options --$1" >> .mozconfig
0bcd21
}
0bcd21
0bcd21
# Modify mozconfig file
0bcd21
%if %{official_branding}
0bcd21
 add_to_mozconfig "enable-official-branding"
0bcd21
%endif
0bcd21
0bcd21
%if %{?use_gtk3}
0bcd21
 add_to_mozconfig "enable-default-toolkit=cairo-gtk3"
0bcd21
%else
0bcd21
 add_to_mozconfig "enable-default-toolkit=cairo-gtk2"
0bcd21
%endif
0bcd21
0bcd21
%if %{?system_sqlite}
0bcd21
 add_to_mozconfig "enable-system-sqlite"
0bcd21
%else
0bcd21
 add_to_mozconfig "disable-system-sqlite"
0bcd21
%endif
0bcd21
0bcd21
%if %{?system_nss}
0bcd21
 add_to_mozconfig "with-system-nspr"
0bcd21
 add_to_mozconfig "with-system-nss"
0bcd21
%else
0bcd21
 add_to_mozconfig "without-system-nspr"
0bcd21
 add_to_mozconfig "without-system-nss"
0bcd21
%endif
0bcd21
0bcd21
# RHEL 7 mozconfig changes:
0bcd21
%if 0%{rhel} >= 6
0bcd21
 add_to_mozconfig "enable-startup-notification"
0bcd21
 add_to_mozconfig "enable-jemalloc"
0bcd21
%endif
0bcd21
0bcd21
# RHEL 6
0bcd21
%if 0%{rhel} == 6
0bcd21
 # Disable dbus, because we're unable to build with its support in brew
0bcd21
 add_to_mozconfig "disable-dbus"
0bcd21
 # ctypes require system libffi for these platforms and RHEL6 does not have libffi >= 3.0.9 available
0bcd21
 %ifarch ppc64 ppc64le ppc s390 s390x
0bcd21
  add_to_mozconfig "disable-ctypes"
0bcd21
 %endif
0bcd21
%endif
0bcd21
0bcd21
%ifarch aarch64 ppc64 ppc64le ppc s390 s390x
0bcd21
 add_to_mozconfig "disable-ion"
0bcd21
%endif
0bcd21
0bcd21
%ifarch aarch64 ppc ppc64 s390 s390x
0bcd21
 add_to_mozconfig "disable-skia"
0bcd21
%endif
0bcd21
0bcd21
# Debug build flags
0bcd21
%if %{?debug_build}
0bcd21
 add_to_mozconfig "enable-debug"
0bcd21
 add_to_mozconfig "disable-optimize"
0bcd21
%else
0bcd21
 add_to_mozconfig "disable-debug"
0bcd21
 add_to_mozconfig "enable-optimize"
0bcd21
%endif
0bcd21
0bcd21
%if %{?with_intl_api}
0bcd21
 add_to_mozconfig "with-intl-api"
0bcd21
%else
0bcd21
 add_to_mozconfig "without-intl-api"
0bcd21
%endif
0bcd21
#TODO reconsider this, really needed for RHEL7 or even RHEL6? Disabling this 
0bcd21
#also require to disable-fmp4 and most likely disable-eme
0bcd21
#Disabled due to rhbz#1330898
0bcd21
#add_to_mozconfig "disable-ffmpeg"
0bcd21
0bcd21
#TODO what's this?
0bcd21
#FIXME RTTI?? RHEL5/6
0bcd21
# ac_add_options --enable-cpp-rtti
0bcd21
# RHEL7: ac_add_options --with-system-bz2
0bcd21
# RHEL5: never been there, but is it usable --enable-gnomeui ????
0bcd21
0bcd21
%if %{use_bundled_python}
0bcd21
 # Prepare Python 2.7 sources
0bcd21
 tar xf %{SOURCE200}
0bcd21
%endif
0bcd21
0bcd21
#---------------------------------------------------------------------
0bcd21
0bcd21
%build
0bcd21
0bcd21
function build_bundled_package() {
0bcd21
  PACKAGE_RPM=$1
0bcd21
  PACKAGE_FILES=$2
0bcd21
  PACKAGE_SOURCE=$3
0bcd21
  PACKAGE_DIR="%{_topdir}/RPMS"
0bcd21
0bcd21
  PACKAGE_ALREADY_BUILD=0
0bcd21
  %if %{do_not_clean_rpms}
0bcd21
    if ls $PACKAGE_DIR/$PACKAGE_RPM; then
0bcd21
      PACKAGE_ALREADY_BUILD=1
0bcd21
    fi
0bcd21
    if ls $PACKAGE_DIR/%{_arch}/$PACKAGE_RPM; then
0bcd21
      PACKAGE_ALREADY_BUILD=1
0bcd21
    fi
0bcd21
  %endif
0bcd21
  if [ $PACKAGE_ALREADY_BUILD == 0 ]; then
0bcd21
    echo "Rebuilding $PACKAGE_RPM from $PACKAGE_SOURCE"; echo "==============================="
0bcd21
    rpmbuild --nodeps --rebuild $PACKAGE_SOURCE
0bcd21
  fi
0bcd21
0bcd21
  if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
0bcd21
    # Hack for tps tests
0bcd21
    ARCH_STR=%{_arch}
0bcd21
    %ifarch i386 i686
0bcd21
    ARCH_STR="i?86"
0bcd21
    %endif
0bcd21
    PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
0bcd21
  fi
0bcd21
  pushd $PACKAGE_DIR
0bcd21
  echo "Installing $PACKAGE_DIR/$PACKAGE_RPM"; echo "==============================="
0bcd21
  rpm2cpio $PACKAGE_DIR/$PACKAGE_RPM | cpio -iduv
0bcd21
  # Clean rpms to avoid including them to package
0bcd21
  %if ! %{do_not_clean_rpms}0
0bcd21
    rm -f $PACKAGE_FILES
0bcd21
  %endif
0bcd21
0bcd21
  PATH=$PACKAGE_DIR/usr/bin:$PATH
0bcd21
  export PATH
0bcd21
  LD_LIBRARY_PATH=$PACKAGE_DIR/usr/%{_lib}
0bcd21
  export LD_LIBRARY_PATH
0bcd21
  popd
0bcd21
}
0bcd21
0bcd21
# Build and install local yasm if needed
0bcd21
# ======================================
0bcd21
%if %{use_bundled_yasm}
0bcd21
  build_bundled_package 'yasm-1*.rpm' 'yasm-*.rpm' '%{SOURCE301}'
0bcd21
%endif
0bcd21
0bcd21
# Install local binutils if needed
0bcd21
# ======================================
0bcd21
%if 0%{?use_bundled_binutils}
0bcd21
  build_bundled_package 'binutils-2*.rpm' 'binutils*.rpm' '%{SOURCE302}'
0bcd21
%endif
0bcd21
0bcd21
# Install local GCC if needed
0bcd21
# ======================================
0bcd21
%if %{use_bundled_gcc}
0bcd21
  build_bundled_package 'gcc48-%{gcc_version}*.rpm' 'gcc48-*.rpm' '%{SOURCE300}'
0bcd21
  export CXX=g++
0bcd21
%endif
0bcd21
0bcd21
0bcd21
# Install local Python if needed
0bcd21
# ======================================
0bcd21
%if %{use_bundled_python}
0bcd21
    echo "Rebuilding Python"; echo "==============================="
0bcd21
  pushd %{tarballdir}
0bcd21
0bcd21
  # Build Python 2.7 and set environment
0bcd21
  BUILD_DIR=`pwd`/python_build
0bcd21
  cd Python-%{python_version}
0bcd21
  ./configure --prefix=$BUILD_DIR --exec-prefix=$BUILD_DIR
0bcd21
  make
0bcd21
  make install
0bcd21
  cd -
0bcd21
0bcd21
  PATH=$BUILD_DIR/bin:$PATH
0bcd21
  export PATH
0bcd21
  popd
0bcd21
%endif # bundled Python
0bcd21
0bcd21
%if %{?system_sqlite}
0bcd21
  # Do not proceed with build if the sqlite require would be broken:
0bcd21
  # make sure the minimum requirement is non-empty, ...
0bcd21
  sqlite_version=$(expr "%{sqlite_version}" : '\([0-9]*\.\)[0-9]*\.') || exit 1
0bcd21
  # ... and that major number of the computed build-time version matches:
0bcd21
  case "%{sqlite_build_version}" in
0bcd21
    "$sqlite_version"*) ;;
0bcd21
    *) exit 1 ;;
0bcd21
  esac
0bcd21
%endif
0bcd21
0bcd21
echo "Building Firefox"; echo "==============================="
0bcd21
cd %{tarballdir}
0bcd21
0bcd21
# Hack for missing shell when building in brew on RHEL6 and RHEL5
0bcd21
%if 0%{?rhel} <= 6
0bcd21
export SHELL=/bin/sh
0bcd21
%endif
0bcd21
0bcd21
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
0bcd21
%if 0%{?big_endian}
0bcd21
  ./mach python intl/icu_sources_data.py .
0bcd21
  ls -l config/external/icu/data
0bcd21
  rm -f config/external/icu/data/icudt*l.dat
0bcd21
%endif
0bcd21
0bcd21
0bcd21
# 1. Mozilla builds with -Wall with exception of a few warnings which show up
0bcd21
#    everywhere in the code; so, don't override that.
0bcd21
# 2. -Werror=format-security causes build failures when -Wno-format is explicitly given
0bcd21
#    for some sources
0bcd21
MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive -Wformat-security -Wformat -Werror=format-security" | %{__sed} -e 's/-Wall//')
0bcd21
0bcd21
# TODO check if necessery
0bcd21
%ifarch s390
0bcd21
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
0bcd21
%endif
0bcd21
0bcd21
# Avoid failing builds because OOM killer on some arches
0bcd21
%ifarch s390 %{arm} ppc
0bcd21
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
0bcd21
%endif
0bcd21
0bcd21
%if %{rhel} == 6
0bcd21
  %if %{system_libatomic}
0bcd21
    MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -l:libatomic.so.1"
0bcd21
  %endif
0bcd21
%endif
0bcd21
0bcd21
%if %{?debug_build}
0bcd21
  MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
0bcd21
%endif
0bcd21
0bcd21
export CFLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-fpermissive//')
0bcd21
export CXXFLAGS=$MOZ_OPT_FLAGS
0bcd21
export LDFLAGS="-Wl,--verbose $MOZ_LINK_FLAGS"
0bcd21
0bcd21
export PREFIX='%{_prefix}'
0bcd21
export LIBDIR='%{_libdir}'
0bcd21
0bcd21
MOZ_SMP_FLAGS=-j1
0bcd21
[ -z "$RPM_BUILD_NCPUS" ] && \
0bcd21
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
0bcd21
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
0bcd21
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
0bcd21
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
0bcd21
0bcd21
MOZ_APP_DIR=%{_libdir}/%{name}
0bcd21
0bcd21
make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
0bcd21
0bcd21
#---------------------------------------------------------------------
0bcd21
0bcd21
%install
0bcd21
# Hack for missing shell when building in brew on RHEL6 and RHEL5
0bcd21
%if 0%{?rhel} <= 6
0bcd21
export SHELL=/bin/sh
0bcd21
%endif
0bcd21
0bcd21
cd %{tarballdir}
0bcd21
%{__rm} -rf $RPM_BUILD_ROOT
0bcd21
0bcd21
# set up our default bookmarks
0bcd21
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/defaults/profile/bookmarks.html
0bcd21
0bcd21
# Make sure locale works for langpacks
0bcd21
%{__cat} > objdir/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
0bcd21
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
0bcd21
EOF
0bcd21
0bcd21
0bcd21
DESTDIR=$RPM_BUILD_ROOT make -C objdir install
0bcd21
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications}
0bcd21
0bcd21
desktop-file-install \
0bcd21
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
0bcd21
  --add-category WebBrowser \
0bcd21
  --add-category Network \
0bcd21
  %{SOURCE20}
0bcd21
0bcd21
# Set up the firefox start script, unfortunatelly it is different for each RHEL
0bcd21
rm -rf $RPM_BUILD_ROOT%{_bindir}/firefox
0bcd21
FIREFOX_SH_SOURCE=%{SOURCE700}
0bcd21
%if %{rhel} == 6
0bcd21
  FIREFOX_SH_SOURCE=%{SOURCE600}
0bcd21
%endif
0bcd21
cp $FIREFOX_SH_SOURCE $RPM_BUILD_ROOT%{_bindir}/firefox
0bcd21
%{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/firefox
0bcd21
0bcd21
# Installing man page
0bcd21
%{__install} -p -D -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{_mandir}/man1/firefox.1
0bcd21
0bcd21
%{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/firefox-config
0bcd21
0bcd21
for s in 16 22 24 32 48 256; do
0bcd21
    %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps
0bcd21
    %{__cp} -p browser/branding/official/default${s}.png \
0bcd21
               $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
0bcd21
done
0bcd21
0bcd21
echo > ../%{name}.lang
0bcd21
%if %{build_langpacks}
0bcd21
# Extract langpacks, make any mods needed, repack the langpack, and install it.
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT%{langpackdir}
0bcd21
%{__xz} -dc %{SOURCE1} | %{__tar} xf -
0bcd21
for langpack in `ls firefox-langpacks/*.xpi`; do
0bcd21
  language=`basename $langpack .xpi`
0bcd21
  extensionID=langpack-$language@firefox.mozilla.org
0bcd21
  %{__mkdir_p} $extensionID
0bcd21
  unzip $langpack -d $extensionID
0bcd21
  find $extensionID -type f | xargs chmod 644
0bcd21
0bcd21
  cd $extensionID
0bcd21
  zip -r9mX ../${extensionID}.xpi *
0bcd21
  cd -
0bcd21
0bcd21
  %{__install} -m 644 ${extensionID}.xpi $RPM_BUILD_ROOT%{langpackdir}
0bcd21
  language=`echo $language | sed -e 's/-/_/g'`
0bcd21
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> ../%{name}.lang
0bcd21
done
0bcd21
%{__rm} -rf firefox-langpacks
0bcd21
0bcd21
# Install langpack workaround (see #707100, #821169)
0bcd21
function create_default_langpack() {
0bcd21
  language_long=$1
0bcd21
  language_short=$2
0bcd21
  cd $RPM_BUILD_ROOT%{langpackdir}
0bcd21
  ln -s langpack-$language_long@firefox.mozilla.org.xpi langpack-$language_short@firefox.mozilla.org.xpi
0bcd21
  cd -
0bcd21
  echo "%%lang($language_short) %{langpackdir}/langpack-$language_short@firefox.mozilla.org.xpi" >> ../%{name}.lang
0bcd21
}
0bcd21
0bcd21
# Table of fallbacks for each language
0bcd21
# please file a bug at bugzilla.redhat.com if the assignment is incorrect
0bcd21
create_default_langpack "bn-IN" "bn"
0bcd21
create_default_langpack "es-AR" "es"
0bcd21
create_default_langpack "fy-NL" "fy"
0bcd21
create_default_langpack "ga-IE" "ga"
0bcd21
create_default_langpack "gu-IN" "gu"
0bcd21
create_default_langpack "hi-IN" "hi"
0bcd21
create_default_langpack "hy-AM" "hy"
0bcd21
create_default_langpack "nb-NO" "nb"
0bcd21
create_default_langpack "nn-NO" "nn"
0bcd21
create_default_langpack "pa-IN" "pa"
0bcd21
create_default_langpack "pt-PT" "pt"
0bcd21
create_default_langpack "sv-SE" "sv"
0bcd21
create_default_langpack "zh-TW" "zh"
0bcd21
%endif # build_langpacks
0bcd21
0bcd21
# Keep compatibility with the old preference location.
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT/%{mozappdir}/defaults/preferences
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults
0bcd21
ln -s %{mozappdir}/defaults/preferences $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults/preferences
0bcd21
0bcd21
# Install default ones
0bcd21
%{__cp} %{SOURCE12} ${RPM_BUILD_ROOT}%{mozappdir}/defaults/preferences/all-redhat.js
0bcd21
# Modify preset preferences
0bcd21
%if %{use_baselinejit}
0bcd21
  echo 'pref("javascript.options.baselinejit",      true);'  >> ${RPM_BUILD_ROOT}%{mozappdir}/defaults/preferences/all-redhat.js
0bcd21
%else
0bcd21
  echo '/* Workaround for rhbz#1134876 */'                   >> ${RPM_BUILD_ROOT}%{mozappdir}/defaults/preferences/all-redhat.js
0bcd21
  echo 'pref("javascript.options.baselinejit",      false);' >> ${RPM_BUILD_ROOT}%{mozappdir}/defaults/preferences/all-redhat.js
0bcd21
%endif
0bcd21
0bcd21
# System config dir
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/pref
0bcd21
0bcd21
# System extensions
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{firefox_app_id}
0bcd21
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_app_id}
0bcd21
0bcd21
# Copy over the LICENSE
0bcd21
%{__install} -p -c -m 644 LICENSE $RPM_BUILD_ROOT/%{mozappdir}
0bcd21
0bcd21
# Use the system dictionaries for system hunspell
0bcd21
%{__rm} -rf ${RPM_BUILD_ROOT}%{mozappdir}/dictionaries
0bcd21
ln -s %{_datadir}/myspell ${RPM_BUILD_ROOT}%{mozappdir}/dictionaries
0bcd21
0bcd21
# Clean firefox-devel debuginfo
0bcd21
rm -rf %{_prefix}/lib/debug/lib/%{name}-devel-*
0bcd21
rm -rf %{_prefix}/lib/debug/lib64/%{name}-devel-*
0bcd21
0bcd21
#---------------------------------------------------------------------
0bcd21
0bcd21
%clean
0bcd21
%{__rm} -rf $RPM_BUILD_ROOT
0bcd21
0bcd21
#---------------------------------------------------------------------
0bcd21
0bcd21
%post
0bcd21
update-desktop-database &> /dev/null || :
0bcd21
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
0bcd21
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
0bcd21
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
0bcd21
fi
0bcd21
0bcd21
%postun
0bcd21
if [ $1 -eq 0 ] ; then
0bcd21
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
0bcd21
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
0bcd21
fi
0bcd21
update-desktop-database &> /dev/null || :
0bcd21
0bcd21
%preun
0bcd21
# is it a final removal?
0bcd21
if [ $1 -eq 0 ]; then
0bcd21
  %{__rm} -rf %{mozappdir}/components
0bcd21
  %{__rm} -rf %{mozappdir}/extensions
0bcd21
  %{__rm} -rf %{mozappdir}/plugins
0bcd21
fi
0bcd21
0bcd21
%posttrans
0bcd21
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
0bcd21
0bcd21
%files -f %{name}.lang
0bcd21
%defattr(-,root,root,-)
0bcd21
%{_bindir}/firefox
0bcd21
%doc %{_mandir}/man1/*
0bcd21
%dir %{_sysconfdir}/%{name}/*
0bcd21
%dir %{_datadir}/mozilla/extensions/%{firefox_app_id}
0bcd21
%dir %{_libdir}/mozilla/extensions/%{firefox_app_id}
0bcd21
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
0bcd21
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
0bcd21
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
0bcd21
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
0bcd21
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
0bcd21
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
0bcd21
%{_datadir}/applications/%{name}.desktop
0bcd21
%dir %{mozappdir}
0bcd21
%doc %{mozappdir}/LICENSE
0bcd21
%{mozappdir}/browser/chrome
0bcd21
%{mozappdir}/browser/chrome.manifest
0bcd21
%{mozappdir}/browser/features/aushelper@mozilla.org.xpi
0bcd21
%{mozappdir}/browser/features/e10srollout@mozilla.org.xpi
0bcd21
%{mozappdir}/browser/features/firefox@getpocket.com.xpi
0bcd21
%{mozappdir}/browser/features/webcompat@mozilla.org.xpi
0bcd21
#gone %{mozappdir}/browser/features/disableSHA1rollout@mozilla.org.xpi
0bcd21
#gone %dir %{mozappdir}/browser/components
0bcd21
#gone %{mozappdir}/browser/components/*.so
0bcd21
#gone %{mozappdir}/browser/components/*.manifest
0bcd21
%attr(644, root, root) %{mozappdir}/browser/blocklist.xml
0bcd21
%dir %{mozappdir}/browser/extensions
0bcd21
%{mozappdir}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
0bcd21
# gone %{mozappdir}/browser/features/loop@mozilla.org.xpi
0bcd21
%dir %{mozappdir}/langpacks
0bcd21
%{mozappdir}/browser/icons
0bcd21
%{mozappdir}/browser/omni.ja
0bcd21
%{mozappdir}/firefox
0bcd21
%{mozappdir}/firefox-bin
0bcd21
%{mozappdir}/run-mozilla.sh
0bcd21
%{mozappdir}/application.ini
0bcd21
%{mozappdir}/defaults/preferences/*
0bcd21
%{mozappdir}/browser/defaults/preferences
0bcd21
%exclude %{mozappdir}/removed-files
0bcd21
# gone %{mozappdir}/webapprt-stub
0bcd21
# gone %dir %{mozappdir}/webapprt
0bcd21
# g %{mozappdir}/webapprt/omni.ja
0bcd21
# g %{mozappdir}/webapprt/webapprt.ini
0bcd21
%{mozappdir}/dictionaries
0bcd21
%{mozappdir}/*.so
0bcd21
%{mozappdir}/omni.ja
0bcd21
%{mozappdir}/platform.ini
0bcd21
%{mozappdir}/plugin-container
0bcd21
%{mozappdir}/dependentlibs.list
0bcd21
%{mozappdir}/chrome.manifest
0bcd21
%{mozappdir}/fonts/EmojiOneMozilla.ttf
0bcd21
%{mozappdir}/gmp-clearkey
0bcd21
%if %{?use_gtk3}
0bcd21
%{mozappdir}/gtk2/*.so
0bcd21
%endif
0bcd21
%if %{?with_intl_api}
0bcd21
%if 0%{?big_endian}
0bcd21
%{mozappdir}/icudt58b.dat
0bcd21
%else
0bcd21
%{mozappdir}/icudt58l.dat
0bcd21
%endif
0bcd21
%endif
0bcd21
%exclude %{mozappdir}/defaults/pref/channel-prefs.js
0bcd21
%if !%{?system_nss}
0bcd21
%{mozappdir}/*.chk
0bcd21
%endif
0bcd21
%exclude %{_datadir}/idl/*
0bcd21
%exclude %{_includedir}/*
0bcd21
%exclude %{_libdir}/%{name}-devel-*/*
0bcd21
0bcd21
#---------------------------------------------------------------------
0bcd21
0bcd21
%changelog
10ca36
* Wed May  9 2018 Jan Horak <jhorak@redhat.com> - 52.8.0-1
10ca36
- Update to 52.8.0 ESR
797cfb
314a46
* Wed Mar 28 2018 Jan Horak <jhorak@redhat.com> - 52.7.3-1
314a46
- Update to 52.7.3 ESR
95cbe1
dbf9aa
* Fri Mar 16 2018 Jan Horak <jhorak@redhat.com> - 52.7.2-1
dbf9aa
- Update to 52.7.2 ESR
18755a
0df897
* Thu Mar  8 2018 Jan Horak <jhorak@redhat.com> - 52.7.0-1
0df897
- Update to 52.7.0 ESR
6ecfad
0df897
* Thu Jan 18 2018 Martin Stransky <stransky@redhat.com> - 52.6.1-2
a87608
- Update to 52.6.0 ESR
d6dbc3
096b00
* Wed Nov 29 2017 Jan Horak <jhorak@redhat.com> - 52.5.1-1
096b00
- Update to 52.5.1 ESR
d059fa
0bcd21
* Thu Nov  9 2017 Jan Horak <jhorak@redhat.com> - 52.5.0-1
0bcd21
- Update to 52.5.0 ESR
0bcd21
0bcd21
* Mon Sep 25 2017 Jan Horak <jhorak@redhat.com> - 52.4.0-1
0bcd21
- Update to 52.4.0 ESR
0bcd21
0bcd21
* Thu Aug  3 2017 Jan Horak <jhorak@redhat.com> - 52.3.0-3
0bcd21
- Update to 52.3.0 ESR (b2)
0bcd21
- Require correct nss version
0bcd21
0bcd21
* Tue Jun 13 2017 Jan Horak <jhorak@redhat.com> - 52.2.0-1
0bcd21
- Update to 52.2.0 ESR
0bcd21
0bcd21
* Wed May 24 2017 Jan Horak <jhorak@redhat.com> - 52.1.2-1
0bcd21
- Update to 52.1.2 ESR
0bcd21
0bcd21
* Wed May 24 2017 Jan Horak <jhorak@redhat.com> - 52.0-7
0bcd21
- Added fix for accept language (rhbz#1454322)
0bcd21
0bcd21
* Wed Mar 22 2017 Jan Horak <jhorak@redhat.com> - 52.0-6
0bcd21
- Removing patch required for older NSS from RHEL 7.3
0bcd21
- Added patch for rhbz#1414564
0bcd21
0bcd21
* Fri Mar 17 2017 Martin Stransky <stransky@redhat.com> - 52.0-5
0bcd21
- Added fix for mozbz#1348168/CVE-2017-5428
0bcd21
0bcd21
* Mon Mar  6 2017 Jan Horak <jhorak@redhat.com> - 52.0-4
0bcd21
- Update to 52.0 ESR (b4)
0bcd21
0bcd21
* Thu Mar 2 2017 Martin Stransky <stransky@redhat.com> - 52.0-3
0bcd21
- Added fix for rhbz#1423012 - ppc64 gfx crashes
0bcd21
0bcd21
* Wed Mar  1 2017 Jan Horak <jhorak@redhat.com> - 52.0-2
0bcd21
- Enable system nss
0bcd21
0bcd21
* Tue Feb 28 2017 Martin Stransky <stransky@redhat.com> - 52.0-1
0bcd21
- Update to 52.0ESR (B1)
0bcd21
- Build RHEL7 package for Gtk3
0bcd21
0bcd21
* Mon Feb 27 2017 Martin Stransky <stransky@redhat.com> - 52.0-0.13
0bcd21
- Added fix for rhbz#1414535
0bcd21
0bcd21
* Tue Feb 21 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.12
0bcd21
- Update to 52.0b8
0bcd21
0bcd21
* Tue Feb  7 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.11
0bcd21
- Readded addons patch
0bcd21
0bcd21
* Mon Feb  6 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.10
0bcd21
- Update to 52.0b3
0bcd21
0bcd21
* Tue Jan 31 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.9
0bcd21
- Update to 52.0b2
0bcd21
0bcd21
* Fri Jan 27 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.8
0bcd21
- Update to 52.0b1
0bcd21
0bcd21
* Thu Dec  8 2016 Jan Horak <jhorak@redhat.com> - 52.0-0.5
0bcd21
- Firefox Aurora 52 testing build
0bcd21
0bcd21
* Tue Nov  8 2016 Jan Horak <jhorak@redhat.com> - 45.5.0-1
0bcd21
- Update to 45.5.0 ESR
0bcd21
0bcd21
* Mon Oct 31 2016 Jan Horak <jhorak@redhat.com> - 45.4.0-3
0bcd21
- Added upcoming upstream patches mozbz#1018486
0bcd21
0bcd21
* Mon Sep 26 2016 Jan Horak <jhorak@redhat.com> - 45.4.0-2
0bcd21
- Added Laszlo Ersek patch for aarch64 crashes
0bcd21
0bcd21
* Wed Sep  7 2016 Jan Horak <jhorak@redhat.com> - 45.4.0-1
0bcd21
- Update to 45.4.0 ESR
0bcd21
0bcd21
* Wed Jul 27 2016 Jan Horak <jhorak@redhat.com> - 45.3.0-1
0bcd21
- Update to 45.3.0 ESR
0bcd21
0bcd21
* Mon Jul 11 2016 Martin Stransky <stransky@redhat.com> - 45.2.0-3
0bcd21
- Added fix for mozbz#256180
0bcd21
0bcd21
* Mon Jun 20 2016 Martin Stransky <stransky@redhat.com> - 45.2.0-2
0bcd21
- Added fix for mozbz#975832, rhbz#1343202
0bcd21
0bcd21
* Fri Jun  3 2016 Jan Horak <jhorak@redhat.com> - 45.2.0-1
0bcd21
- Update to 45.2.0 ESR
0bcd21
0bcd21
* Tue May 10 2016 Martin Stransky <stransky@redhat.com> - 45.1.1-2
0bcd21
- Added fix for mozbz#1270046 - new Samba auth response
0bcd21
0bcd21
* Wed May  4 2016 Jan Horak <jhorak@redhat.com> - 45.1.1-1
0bcd21
- Update to 45.1.1 ESR
0bcd21
0bcd21
* Tue May 3 2016 Martin Stransky <stransky@redhat.com> - 45.1.0-3
0bcd21
- Disabled ffmpeg (rhbz#1330898)
0bcd21
0bcd21
* Fri Apr 29 2016 Jan Horak <jhorak@redhat.com> - 45.1.0-1
0bcd21
- Fixed some regressions introduced by rebase
0bcd21
0bcd21
* Thu Apr 21 2016 Jan Horak <jhorak@redhat.com> - 45.1.0-1
0bcd21
- Update to 45.1.0 ESR
0bcd21
0bcd21
* Tue Apr 12 2016 Jan Horak <jhorak@redhat.com> - 45.0.2-1
0bcd21
- Update to 45.0.2 ESR
0bcd21
0bcd21
* Wed Apr  6 2016 Jan Horak <jhorak@redhat.com> - 45.0.1-1
0bcd21
- Update to 45.0.1 ESR
0bcd21
0bcd21
* Mon Apr  4 2016 Martin Stransky <stransky@redhat.com> - 45.0-5
0bcd21
- Fixed crashed after start (rhbz#1323744, rhbz#1323738)
0bcd21
0bcd21
* Mon Apr  4 2016 Jan Horak <jhorak@redhat.com> - 45.0-4
0bcd21
- Added system-level location for configuring Firefox (rhbz#1206239)
0bcd21
0bcd21
* Mon Mar  7 2016 Jan Horak <jhorak@redhat.com> - 45.0-3
0bcd21
- Update to 45.0 ESR
0bcd21
0bcd21
* Fri Dec 11 2015 Jan Horak <jhorak@redhat.com> - 38.5.0-3
0bcd21
- Update to 38.5.0 ESR
0bcd21
0bcd21
* Thu Oct 29 2015 Jan Horak <jhorak@redhat.com> - 38.4.0-1
0bcd21
- Update to 38.4.0 ESR
0bcd21
0bcd21
* Tue Sep 15 2015 Jan Horak <jhorak@redhat.com> - 38.3.0-2
0bcd21
- Update to 38.3.0 ESR
0bcd21
0bcd21
* Wed Aug 26 2015 Martin Stransky <stransky@redhat.com> - 38.2.1-1
0bcd21
- Update to 38.2.1 ESR
0bcd21
0bcd21
* Fri Aug  7 2015 Jan Horak <jhorak@redhat.com> - 38.2.0-4
0bcd21
- Update to 38.2.0 ESR
0bcd21
0bcd21
* Thu Aug  6 2015 Jan Horak <jhorak@redhat.com> - 38.1.1-1
0bcd21
- Update to 38.1.1 ESR
0bcd21
0bcd21
* Thu Jun 25 2015 Jan Horak <jhorak@redhat.com> - 38.1.0-1
0bcd21
- Update to 38.1.0 ESR
0bcd21
0bcd21
* Thu May 21 2015 Jan Horak <jhorak@redhat.com> - 38.0.1-2
0bcd21
- Fixed rhbz#1222807 by removing preun section
0bcd21
0bcd21
* Fri May 15 2015 Martin Stransky <stransky@redhat.com> - 38.0.1-1
0bcd21
- Update to 38.0.1 ESR
0bcd21
0bcd21
* Thu May 14 2015 Martin Stransky <stransky@redhat.com> - 38.0-4
0bcd21
- Fixed rhbz#1221286 - After update to Firefox 38 ESR
0bcd21
  all RH preferences are gone
0bcd21
0bcd21
* Thu May  7 2015 Martin Stransky <stransky@redhat.com> - 38.0-3
0bcd21
- Enabled system nss
0bcd21
- Removed unused patches
0bcd21
0bcd21
* Mon May  4 2015 Jan Horak - 38.0-2
0bcd21
- Update to 38.0 ESR
0bcd21
0bcd21
* Mon Apr 27 2015 Martin Stransky <stransky@redhat.com> - 38.0b8-0.11
0bcd21
- Update to 38.0 Beta 8
0bcd21
0bcd21
* Wed Apr 22 2015 Martin Stransky <stransky@redhat.com> - 38.0b6-0.10
0bcd21
- Added patch for mozbz#1152515
0bcd21
0bcd21
* Tue Apr 21 2015 Martin Stransky <stransky@redhat.com> - 38.0b6-0.9
0bcd21
- Update to 38.0 Beta 6
0bcd21
0bcd21
* Mon Apr 20 2015 Martin Stransky <stransky@redhat.com> - 38.0b5-0.8
0bcd21
- Update to 38.0 Beta 5
0bcd21
0bcd21
* Fri Apr 10 2015 Martin Stransky <stransky@redhat.com> - 38.0b3-0.7
0bcd21
- Update to 38.0 Beta 3
0bcd21
0bcd21
* Fri Apr 10 2015 Martin Stransky <stransky@redhat.com> - 38.0b1-0.6
0bcd21
- Added patch for mozbz#1152391
0bcd21
0bcd21
* Thu Apr  9 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 38.0b1-0.5
0bcd21
- Fix build on AArch64 (based on upstream skia changes)
0bcd21
0bcd21
* Tue Apr 7 2015 Martin Stransky <stransky@redhat.com> - 38.0b1-0.4
0bcd21
- Enabled debug build
0bcd21
0bcd21
* Wed Apr  1 2015 Jan Horak <jhorak@redhat.com> - 38.0b1-1
0bcd21
- Update to 38.0b1
0bcd21
0bcd21
* Wed Feb 18 2015 Martin Stransky <stransky@redhat.com> - 31.5.0-2
0bcd21
- Update to 31.5.0 ESR Build 2
0bcd21
0bcd21
* Tue Jan  6 2015 Jan Horak <jhorak@redhat.com> - 31.4.0-1
0bcd21
- Update to 31.4.0 ESR
0bcd21
0bcd21
* Mon Jan 5 2015 Martin Stransky <stransky@redhat.com> - 31.3.0-6
0bcd21
- Fixed Bug 1140385 - [HP HPS 7.1 bug] assertion
0bcd21
  "sys_page_size == 0" when starting firefox
0bcd21
0bcd21
* Fri Dec 19 2014 Martin Stransky <stransky@redhat.com> - 31.3.0-5
0bcd21
- Fixed problems with dictionary (mozbz#1097550)
0bcd21
- JS JIT fixes for ppc64le
0bcd21
0bcd21
* Sat Nov 29 2014 Martin Stransky <stransky@redhat.com> - 31.3.0-3
0bcd21
- Fixed geolocation key location
0bcd21
0bcd21
* Fri Nov 28 2014 Martin Stransky <stransky@redhat.com> - 31.3.0-2
0bcd21
- Disable exact rooting for JS
0bcd21
0bcd21
* Wed Nov 26 2014 Martin Stransky <stransky@redhat.com> - 31.3.0-1
0bcd21
- Update to 31.3.0 ESR Build 2
0bcd21
- Fix for geolocation API (rhbz#1063739)
0bcd21
0bcd21
* Thu Nov 6 2014 Martin Stransky <stransky@redhat.com> - 31.2.0-5
0bcd21
- Enabled gstreamer-1 support (rhbz#1161077)
0bcd21
0bcd21
* Mon Oct 27 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 31.2.0-4
0bcd21
- Fix webRTC for aarch64, ppc64le (rhbz#1148622)
0bcd21
0bcd21
* Tue Oct  7 2014 Jan Horak <jhorak@redhat.com> - 31.2.0-3
0bcd21
- Update to 31.2.0 ESR
0bcd21
- Fix for mozbz#1042889
0bcd21
0bcd21
* Wed Oct 1 2014 Martin Stransky <stransky@redhat.com> - 31.1.0-7
0bcd21
- Enable WebM on all arches
0bcd21
0bcd21
* Thu Sep 11 2014 Martin Stransky <stransky@redhat.com> - 31.1.0-6
0bcd21
- Enable all NPAPI plugins by default to keep compatibility
0bcd21
  with the FF24 line
0bcd21
0bcd21
* Wed Sep 10 2014 Martin Stransky <stransky@redhat.com> - 31.1.0-5
0bcd21
- Added workaround for rhbz#1134876
0bcd21
0bcd21
* Mon Sep 8 2014 Martin Stransky <stransky@redhat.com> - 31.1.0-3
0bcd21
- Disable mozilla::pkix (mozbz#1063315)
0bcd21
- Enable image cache
0bcd21
0bcd21
* Mon Sep 8 2014 Martin Stransky <stransky@redhat.com> - 31.1.0-2
0bcd21
- A workaround for rhbz#1110291
0bcd21
0bcd21
* Thu Aug 28 2014 Martin Stransky <stransky@redhat.com> - 31.1.0-1
0bcd21
- Update to 31.1.0 ESR
0bcd21
0bcd21
* Tue Aug 5 2014 Martin Stransky <stransky@redhat.com> - 31.0-3
0bcd21
- Built with system libvpx/WebM
0bcd21
0bcd21
* Mon Aug 4 2014 Martin Stransky <stransky@redhat.com> - 31.0-2
0bcd21
- Built with system nss/nspr
0bcd21
0bcd21
* Mon Jul 28 2014 Martin Stransky <stransky@redhat.com> - 31.0-1
0bcd21
- Update to 31.0 ESR
0bcd21
0bcd21
* Wed Jun  4 2014 Jan Horak <jhorak@redhat.com> - 24.6.0-1
0bcd21
- Update to 24.6.0 ESR
0bcd21
0bcd21
* Wed Apr 23 2014 Martin Stransky <stransky@redhat.com> - 24.5.0-2
0bcd21
- Removed unused patches
0bcd21
0bcd21
* Tue Apr 22 2014 Martin Stransky <stransky@redhat.com> - 24.5.0-1
0bcd21
- Update to 24.5.0 ESR
0bcd21
0bcd21
* Tue Apr 15 2014 Martin Stransky <stransky@redhat.com> - 24.4.0-3
0bcd21
- Added a workaround for Bug 1054242 - RHEVM: Extremely high memory
0bcd21
  usage in Firefox 24 ESR on RHEL 6.5
0bcd21
0bcd21
* Wed Mar 26 2014 Martin Stransky <stransky@redhat.com> - 24.4.0-2
0bcd21
- fixed rhbz#1067343 - Broken languagepack configuration 
0bcd21
  after firefox update
0bcd21
0bcd21
* Tue Mar 18 2014 Jan Horak <jhorak@redhat.com> - 24.4.0-1
0bcd21
- Update to 24.4.0 ESR
0bcd21
0bcd21
* Thu Feb 27 2014 Martin Stransky <stransky@redhat.com> - 24.3.0-3
0bcd21
- fixed rhbz#1054832 - Firefox does not support Camellia cipher
0bcd21
0bcd21
* Mon Feb  3 2014 Jan Horak <jhorak@redhat.com> - 24.3.0-1
0bcd21
- Update to 24.3.0 ESR
0bcd21
0bcd21
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 24.2.0-3
0bcd21
- Mass rebuild 2014-01-24
0bcd21
0bcd21
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 24.2.0-2
0bcd21
- Mass rebuild 2013-12-27
0bcd21
0bcd21
* Mon Dec 9 2013 Martin Stransky <stransky@redhat.com> - 24.2.0-1
0bcd21
- Update to 24.2.0 ESR
0bcd21
0bcd21
* Mon Dec 2 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-5
0bcd21
- Fixed mozbz#938730 - avoid mix of memory allocators (crashes)
0bcd21
  when using system sqlite
0bcd21
0bcd21
* Tue Nov 26 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-4
0bcd21
- Fixed rhbz#1034541 - No translation being picked up 
0bcd21
  from langpacks for firefox
0bcd21
0bcd21
* Fri Nov 8 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-3
0bcd21
- Conflicts with old, xulrunner based firefox
0bcd21
0bcd21
* Thu Nov 7 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-2
0bcd21
- Ship dependentlibs.list (rhbz#1027782)
0bcd21
- Nss/nspr dependency update
0bcd21
0bcd21
* Wed Nov 6 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-1
0bcd21
- Update to 24.1.0 ESR
0bcd21
0bcd21
* Wed Nov 6 2013 Martin Stransky <stransky@redhat.com> - 24.0-2
0bcd21
- Build as stand alone browser, without xulrunner
0bcd21
0bcd21
* Thu Oct 31 2013 Martin Stransky <stransky@redhat.com> - 24.0-1
0bcd21
- Update to 24.0 ESR
0bcd21
0bcd21
* Thu Sep 12 2013 Jan Horak <jhorak@redhat.com> - 17.0.9-1
0bcd21
- Update to 17.0.9 ESR
0bcd21
0bcd21
* Thu Aug 29 2013 Martin Stransky <stransky@redhat.com> - 17.0.8-2
0bcd21
- Desktop file update
0bcd21
- Spec file tweaks
0bcd21
0bcd21
* Thu Aug 1 2013 Martin Stransky <stransky@redhat.com> - 17.0.8-1
0bcd21
- Update to 17.0.8 ESR
0bcd21
0bcd21
* Wed Jul 31 2013 Jan Horak <jhorak@redhat.com> - 17.0.7-2
0bcd21
- Updated manual page
0bcd21
0bcd21
* Thu Jun 20 2013 Jan Horak <jhorak@redhat.com> - 17.0.7-1
0bcd21
- Update to 17.0.7 ESR
0bcd21
0bcd21
* Fri May 17 2013 Jan Horak <jhorak@redhat.com> - 17.0.6-1
0bcd21
- Update to 17.0.6 ESR
0bcd21
0bcd21
* Fri May 17 2013 Martin Stransky <stransky@redhat.com> - 17.0.5-3
0bcd21
- Removed mozilla prefix from desktop file (rhbz#826960)
0bcd21
0bcd21
* Thu Apr 18 2013 Martin Stransky <stransky@redhat.com> - 17.0.5-2
0bcd21
- Updated XulRunner SDK check
0bcd21
0bcd21
* Fri Mar 29 2013 Jan Horak <jhorak@redhat.com> - 17.0.5-1
0bcd21
- Update to 17.0.5 ESR
0bcd21
0bcd21
* Thu Mar 14 2013 Martin Stransky <stransky@redhat.com> - 17.0.4-2
0bcd21
- Fixed rhbz#837606 - firefox has no x-scheme-handler/http mime
0bcd21
0bcd21
* Wed Mar 13 2013 Martin Stransky <stransky@redhat.com> - 17.0.4-1
0bcd21
- Update to 17.0.4 ESR
0bcd21
- Added fix for mozbz#239254 - [Linux] Support disk cache on a local path
0bcd21
0bcd21
* Tue Jan 15 2013 Martin Stransky <stransky@redhat.com> - 17.0.2-3
0bcd21
- Added NM preferences
0bcd21
0bcd21
* Fri Jan 11 2013 Martin Stransky <stransky@redhat.com> - 17.0.2-2
0bcd21
- Updated preferences (NFS, nspluginwrapper)
0bcd21
0bcd21
* Thu Jan 10 2013 Jan Horak <jhorak@redhat.com> - 17.0.2-1
0bcd21
- Update to 17.0.2 ESR
0bcd21
0bcd21
* Thu Dec 20 2012 Jan Horak <jhorak@redhat.com> - 17.0.1-1
0bcd21
- Update to 17.0.1 ESR
0bcd21
0bcd21
* Mon Oct  8 2012 Jan Horak <jhorak@redhat.com> - 10.0.8-2
0bcd21
- Update to 10.0.8 ESR
0bcd21
0bcd21
* Sat Aug 25 2012 Jan Horak <jhorak@redhat.com> - 10.0.7-1
0bcd21
- Update to 10.0.7 ESR
0bcd21
0bcd21
* Mon Jul 16 2012 Martin Stransky <stransky@redhat.com> - 10.0.6-1
0bcd21
- Update to 10.0.6 ESR
0bcd21
0bcd21
* Mon Jun 25 2012 Martin Stransky <stransky@redhat.com> - 10.0.5-4
0bcd21
- Enabled WebM
0bcd21
0bcd21
* Mon Jun 25 2012 Martin Stransky <stransky@redhat.com> - 10.0.5-2
0bcd21
- Added fix for mozbz#703633, rhbz#818341
0bcd21
0bcd21
* Fri Jun 1 2012 Martin Stransky <stransky@redhat.com> - 10.0.5-1
0bcd21
- Update to 10.0.5 ESR
0bcd21
0bcd21
* Sun Apr 22 2012 Martin Stransky <stransky@redhat.com> - 10.0.4-1
0bcd21
- Update to 10.0.4 ESR
0bcd21
0bcd21
* Tue Mar 6 2012 Martin Stransky <stransky@redhat.com> - 10.0.3-1
0bcd21
- Update to 10.0.3 ESR
0bcd21
0bcd21
* Thu Feb  9 2012 Jan Horak <jhorak@redhat.com> - 10.0.1-1
0bcd21
- Update to 10.0.1 ESR
0bcd21
0bcd21
* Tue Feb 7 2012 Martin Stransky <stransky@redhat.com> - 10.0-3
0bcd21
- Update to 10.0 ESR
0bcd21
0bcd21
* Mon Jan 30 2012 Martin Stransky <stransky@redhat.com> - 10.0-1
0bcd21
- Update to 10.0
0bcd21
0bcd21
* Mon Sep 26 2011 Martin Stransky <stransky@redhat.com> - 7.0-5
0bcd21
- Update to 7.0
0bcd21
0bcd21
* Tue Sep 20 2011 Jan Horak <jhorak@redhat.com> - 7.0-4
0bcd21
- Update to 7.0 Beta 6
0bcd21
0bcd21
* Tue Sep 13 2011 Martin Stransky <stransky@redhat.com> - 7.0-2
0bcd21
- Update to 7.0 Beta 4
0bcd21
0bcd21
* Mon Jul 11 2011 Martin Stransky <stransky@redhat.com> - 5.0-1
0bcd21
- Update to 5.0
0bcd21
0bcd21
* Mon Jun 13 2011 Jan Horak <jhorak@redhat.com> - 3.6.18-1
0bcd21
- Fixed #698313 - "background-repeat" css property isn't rendered well
0bcd21
- Update to 3.6.18
0bcd21
0bcd21
* Mon Apr 18 2011 Jan Horak <jhorak@redhat.com> - 3.6.17-1
0bcd21
- Update to 3.6.17
0bcd21
0bcd21
* Tue Mar  8 2011 Jan Horak <jhorak@redhat.com> - 3.6.15-1
0bcd21
- Update to 3.6.15
0bcd21
0bcd21
* Mon Feb 21 2011 Jan Horak <jhorak@redhat.com> - 3.6.14-4
0bcd21
- Update to build3
0bcd21
0bcd21
* Tue Feb  8 2011 Jan Horak <jhorak@redhat.com> - 3.6.14-3
0bcd21
- Update to build2
0bcd21
0bcd21
* Wed Jan 26 2011 Jan Horak <jhorak@redhat.com> - 3.6.14-2
0bcd21
- Update to 3.6.14