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