b26a6b
%global disable_toolsets  0
481763
# Produce a build suitable for release, i.e. use PGO/LTO. You can turn it off
481763
# when building locally to reduce build time.
481763
%global release_build     1
b26a6b
481763
# Run Mozilla test suite as a part of compile rpm section. Turn off when
481763
# building locally and don't want to spend 24 hours waiting for results.
481763
%global run_firefox_tests 0
481763
%ifarch x86_64 %{ix86}
481763
%global run_firefox_tests 0
c82edc
%endif
e98f2c
481763
# Don't create debuginfo rpm packages. It reduces build time as
481763
# exctracting debuginfo takes long time.
481763
%global create_debuginfo  1
481763
1a0d85
%{lua:
1a0d85
function dist_to_rhel_minor(str, start)
1a0d85
  match = string.match(str, ".module%+el8.%d+")
1a0d85
  if match then
1a0d85
     return string.sub(match, 13)
1a0d85
  end
1a0d85
  match = string.match(str, ".el8_%d+")
1a0d85
  if match then
1a0d85
     return string.sub(match, 6)
1a0d85
  end
2ebcee
  match = string.match(str, ".el8")
2ebcee
  if match then
92cce7
     return 7
2ebcee
  end
1a0d85
  return -1
1a0d85
end}
1a0d85
1a0d85
%global rhel_minor_version %{lua:print(dist_to_rhel_minor(rpm.expand("%dist")))}
481763
481763
# Produce debug (non-optimized) package build. Suitable for debugging only
481763
# as the build is *very* slow.
481763
%global debug_build       0
e98f2c
d417c4
%global system_nss        1
e98f2c
%global bundle_nss        0
e98f2c
e98f2c
%if 0%{?rhel} == 8
481763
  %if %{rhel_minor_version} <= 4
488d12
    %global bundle_nss        1
488d12
    %global system_nss        1
e98f2c
  %endif
c82edc
%endif
e98f2c
481763
%global build_with_asan   0
e98f2c
488d12
%global use_llvmts        0
488d12
%global use_nodejsts      0
488d12
%if 0%{?rhel} < 8
488d12
%global use_llvmts        1
488d12
%global use_nodejsts      1
4c7c17
%endif
481763
%if %{run_firefox_tests} 
481763
%global test_on_wayland   1
481763
%endif
481763
4c7c17
488d12
%global nodejs_rb         nodejs
488d12
%global llvm_version      7.0
481763
%if "%{toolchain}" == "clang"
481763
%global build_with_clang 1
481763
%else
481763
%global build_with_clang 0
c82edc
%endif
d417c4
481763
%ifarch armv7hl
481763
%global create_debuginfo  0
481763
%endif
488d12
%if 0%{?rhel} == 7
488d12
  %global use_dts         1
488d12
  %global nodejs_rb       rh-nodejs10-nodejs
488d12
  %global llvm_version    11.0
4cf60e
%endif
eb1fd3
481763
# Temporary disabled due to
481763
# https://bugzilla.redhat.com/show_bug.cgi?id=1951606
481763
%global enable_mozilla_crashreporter 0
481763
481763
%global system_ffi        1
481763
%ifarch armv7hl
481763
%global system_libvpx     1
481763
%else
481763
%global system_libvpx     0
481763
%endif
481763
%global hardened_build    1
481763
%global system_jpeg       1
481763
%global disable_elfhack   1
481763
%global use_bundled_cbindgen  1
481763
%if %{debug_build}
481763
%global release_build     0
481763
%endif
481763
# Build PGO+LTO on x86_64 only due to build issues
481763
# on other arches.
481763
%global build_with_pgo    0
481763
%ifarch x86_64
481763
%if %{release_build}
481763
%global build_with_pgo    0
481763
%endif
481763
%endif
d417c4
%global use_rustts        1
481763
%global dts_version       10
481763
%global rust_version      1.62
481763
%if 0%{?rhel} >= 8
488d12
  %global use_rustts      0
332c93
%endif
481763
%if 0%{?flatpak}
481763
%global build_with_pgo    0
481763
%endif
488d12
b26a6b
%if 0%{?disable_toolsets}
b26a6b
%global use_rustts        0
b26a6b
%global use_dts           0
b26a6b
%global use_llvmts        0
481763
%global use_nodejsts      0
481763
%global nodejs_rb         nodejs
b26a6b
%endif
b26a6b
f9af33
# Big endian platforms
d417c4
%ifarch ppc64 s390x
d417c4
%global big_endian        1
f9af33
%endif
29a772
481763
%if 0%{?build_with_pgo}
481763
%global use_xvfb          1
481763
%global build_tests       1
481763
%endif
4cf60e
481763
%if 0%{?run_firefox_tests}
481763
%global use_xvfb          1
481763
%global build_tests       1
d417c4
%endif
d417c4
481763
%global launch_wayland_compositor 0
481763
%if %{build_with_pgo} && 0%{?test_on_wayland}
481763
%global launch_wayland_compositor 1
481763
%endif
481763
%if %{run_firefox_tests} && 0%{?test_on_wayland}
481763
%global launch_wayland_compositor 1
481763
%endif
d417c4
488d12
# We need to use full path because of flatpak where datadir is /app/share
62f5ec
%global default_bookmarks_file  /usr/share/bookmarks/default-bookmarks.html
d417c4
%global firefox_app_id  \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
d417c4
# Minimal required versions
481763
%global cairo_version 1.13.1
481763
%global freetype_version 2.1.9
481763
%global libnotify_version 0.7.0
481763
%if %{?system_libvpx}
481763
%global libvpx_version 1.8.2
481763
%endif
d417c4
481763
%if %{?system_nss}
481763
%global nspr_version 4.34
d417c4
%global nspr_build_version %{nspr_version}
481763
%global nss_version 3.79
d417c4
%global nss_build_version %{nss_version}
d417c4
%endif
4cf60e
481763
%global mozappdir     %{_libdir}/firefox
481763
%global mozappdirdev  %{_libdir}/firefox-devel-%{version}
481763
%global langpackdir   %{mozappdir}/browser/extensions
481763
%global tarballdir    firefox-%{version}
e98f2c
488d12
%define bundled_install_path %{mozappdir}/bundled
481763
%global official_branding       1
d417c4
d417c4
# We could use %%include, but in %%files, %%post and other sections, but in these
d417c4
# sections it could lead to syntax errors about unclosed %%if. Work around it by
d417c4
# using the following macro
d417c4
%define include_file() %{expand:%(cat '%1')}
d417c4
481763
%bcond_without langpacks
d417c4
481763
%global pre_version   esr
481763
%if !%{release_build}
481763
%global pre_tag .npgo
481763
%endif
481763
%if %{build_with_clang}
481763
%global pre_tag .clang
481763
%endif
481763
%if %{build_with_asan}
481763
%global pre_tag .asan
481763
%global build_with_pgo    0
481763
%endif
481763
%if !%{system_nss}
481763
%global nss_tag .nss
481763
%endif
481763
%if %{debug_build}
481763
%global pre_tag .debug
481763
%endif
d417c4
481763
# Exclude private libraries from autogenerated provides and requires
481763
%global __provides_exclude_from ^%{mozappdir}
481763
%global __requires_exclude ^(%%(find %{buildroot}%{mozappdir} -name '*.so' | xargs -n1 basename | sort -u | paste -s -d '|' -))
d10ee9
29a772
Summary:        Mozilla Firefox Web browser
29a772
Name:           firefox
52f53c
Version:        102.5.0
ab05ff
Release:        1%{?dist}
d417c4
URL:            https://www.mozilla.org/firefox/
29a772
License:        MPLv1.1 or GPLv2+ or LGPLv2+
481763
488d12
%if 0%{?rhel} == 9
488d12
ExcludeArch:    %{ix86}
488d12
%endif
488d12
%if 0%{?rhel} == 8
a9b9fb
  %if %{rhel_minor_version} == 1
a9b9fb
ExcludeArch:    %{ix86} aarch64 s390x
a9b9fb
  %else
488d12
ExcludeArch:    %{ix86}
a9b9fb
  %endif
488d12
%endif
d417c4
%if 0%{?rhel} == 7
52f53c
ExcludeArch:    aarch64 s390 ppc
d417c4
%endif
488d12
# We can't use the official tarball as it contains some test files that use
488d12
# licenses that are rejected by Red Hat Legal.
488d12
# The official tarball has to be always processed by the process-official-tarball
481763
# script
481763
# Link to original tarball: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
481763
Source0:        firefox-%{version}%{?pre_version}.processed-source.tar.xz
481763
%if %{with langpacks}
52f53c
Source1:        firefox-langpacks-%{version}%{?pre_version}-20221109.tar.xz
29a772
%endif
488d12
Source2:        cbindgen-vendor.tar.xz
488d12
Source3:        process-official-tarball
29a772
Source10:       firefox-mozconfig
f5d0dc
Source12:       firefox-redhat-default-prefs.js
29a772
Source20:       firefox.desktop
d417c4
Source21:       firefox.sh.in
29a772
Source23:       firefox.1
8c50df
Source24:       mozilla-api-key
d417c4
Source25:       firefox-symbolic.svg
d417c4
Source26:       distribution.ini
d417c4
Source27:       google-api-key
481763
Source32:       node-stdout-nonblocking-wrapper
481763
Source33:       firefox.appdata.xml.in
481763
Source34:       firefox-search-provider.ini
481763
Source35:       google-loc-api-key
481763
Source37:       mochitest-python.tar.gz
481763
Source38:       print_results
481763
Source39:       print-errors
481763
Source40:       run-tests-x11
481763
Source41:       run-tests-wayland
481763
Source42:       psummary
481763
Source43:       print_failures
481763
Source44:       print-error-reftest
481763
Source45:       run-wayland-compositor
481763
Source403:      nss-3.79.0-6.el8_1.src.rpm
e98f2c
Source401:      nss-setup-flags-env.inc
481763
Source402:      nspr-4.34.0-3.el8_1.src.rpm
488d12
29a772
# Build patches
481763
Patch3:         mozilla-build-arm.patch
481763
Patch25:        rhbz-1219542-s390-build.patch
481763
# Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x)
481763
Patch40:        build-aarch64-skia.patch
481763
Patch41:        build-disable-elfhack.patch
481763
Patch44:        build-arm-libopus.patch
481763
Patch47:        fedora-shebang-build.patch
481763
Patch49:        build-arm-libaom.patch
481763
Patch53:        firefox-gcc-build.patch
481763
Patch54:        mozilla-1669639.patch
481763
Patch71:        0001-GLIBCXX-fix-for-GCC-12.patch
481763
Patch72:        build-remove-dav1d-from-wayland-dep.patch
481763
Patch73:        build-ascii-decode-fail-rhel7.patch
481763
Patch75:        build-big-endian-errors.patch
481763
Patch76:        firefox-nss-version.patch
481763
Patch77:        mozilla-1775202.patch
ab05ff
Patch78:        build-rhel7-lower-node-min-version.patch
481763
481763
481763
# Test patches
481763
# Generate without context by
481763
# GENDIFF_DIFF_ARGS=-U0 gendiff firefox-xxxx .firefox-tests-xpcshell
481763
# GENDIFF_DIFF_ARGS=-U0 gendiff firefox-xxxx .firefox-tests-reftest
481763
Patch102:       firefox-tests-xpcshell-freeze.patch
481763
481763
# Fedora specific patches
d417c4
Patch215:        firefox-enable-addons.patch
d417c4
Patch219:        rhbz-1173156.patch
d417c4
Patch224:        mozilla-1170092.patch
481763
#ARM run-time patch
481763
Patch226:        rhbz-1354671.patch
481763
Patch228:        disable-openh264-download.patch
481763
Patch229:        firefox-nss-addon-hack.patch
481763
Patch230:        D110204-fscreen.diff
5b16e6
Patch231:        webrtc-nss-fix.patch
7e5e97
7e5e97
# Upstream patches
481763
Patch415:        mozilla-1670333.patch
481763
Patch416:        mozilla-bmo1005535.patch
481763
Patch417:        mozilla-bmo1504834-part1.patch
481763
Patch418:        mozilla-bmo1504834-part3.patch
481763
Patch419:        mozilla-bmo849632.patch
481763
Patch420:        mozilla-bmo998749.patch
481763
Patch421:        mozilla-s390x-skia-gradient.patch
481763
Patch422:        one_swizzle_to_rule_them_all.patch
481763
Patch423:        svg-rendering.patch
5b16e6
Patch424:        D158770.diff
481763
481763
# PGO/LTO patches
481763
Patch600:        pgo.patch
481763
Patch602:        mozilla-1516803.patch
481763
481763
# Backported WebRTC changes for PipeWire/Wayland screen sharing support
481763
Patch1008:      build-rhel7-nasm-dwarf.patch
9996a1
d417c4
%if %{?system_nss}
e98f2c
%if !0%{?bundle_nss}
d417c4
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
d417c4
BuildRequires:  pkgconfig(nss) >= %{nss_version}
d417c4
BuildRequires:  nss-static >= %{nss_version}
d417c4
%endif
e98f2c
%endif
d417c4
BuildRequires:  pkgconfig(libpng)
481763
%if %{?system_jpeg}
d417c4
BuildRequires:  libjpeg-devel
481763
%endif
4cf60e
BuildRequires:  zip
4cf60e
BuildRequires:  bzip2-devel
d417c4
BuildRequires:  pkgconfig(zlib)
481763
BuildRequires:  pkgconfig(gtk+-3.0)
d417c4
BuildRequires:  pkgconfig(gtk+-2.0)
481763
BuildRequires:  pkgconfig(krb5)
d417c4
BuildRequires:  pkgconfig(pango)
481763
BuildRequires:  pkgconfig(freetype2) >= %{freetype_version}
d417c4
BuildRequires:  pkgconfig(xt)
481763
BuildRequires:  pkgconfig(xtst)
d417c4
BuildRequires:  pkgconfig(xrender)
d417c4
BuildRequires:  pkgconfig(libstartup-notification-1.0)
481763
BuildRequires:  pkgconfig(libnotify) >= %{libnotify_version}
d417c4
BuildRequires:  pkgconfig(dri)
d417c4
BuildRequires:  pkgconfig(libcurl)
481763
BuildRequires:  pkgconfig(alsa)
481763
BuildRequires:  libstdc++-devel
481763
BuildRequires:  libstdc++-static
d417c4
BuildRequires:  dbus-glib-devel
481763
%if %{?system_libvpx}
481763
BuildRequires:  libvpx-devel >= %{libvpx_version}
481763
%endif
488d12
BuildRequires:  m4
d417c4
BuildRequires:  pkgconfig(libpulse)
d417c4
d417c4
%if 0%{?use_dts}
d417c4
BuildRequires:  devtoolset-%{dts_version}-gcc-c++
d417c4
BuildRequires:  devtoolset-%{dts_version}-gcc
d417c4
BuildRequires:  devtoolset-%{dts_version}-libatomic-devel
4cf60e
%endif
488d12
%if 0%{?rhel} == 9
488d12
BuildRequires:  gcc
488d12
BuildRequires:  gcc-c++
488d12
BuildRequires:  cargo
488d12
BuildRequires:  rust
488d12
BuildRequires:  clang clang-libs llvm
29a772
%endif
481763
BuildRequires:  %{nodejs_rb} >= 10.21
481763
%if 0%{?rhel} == 7
c82edc
BuildRequires:  scl-utils
e98f2c
BuildRequires:  findutils
481763
%endif
7468b5
%if 0%{?rhel} == 8
7468b5
BuildRequires:  cargo
c82edc
BuildRequires:  rust >= %{rust_version}
7468b5
BuildRequires:  llvm >= %{llvm_version}
7468b5
BuildRequires:  llvm-devel >= %{llvm_version}
7468b5
BuildRequires:  clang >= %{llvm_version}
edb57c
BuildRequires:  clang-devel >= %{llvm_version}
edb57c
BuildRequires:  rustfmt >= %{rust_version}
481763
%endif
481763
d417c4
%if 0%{?use_rustts}
488d12
BuildRequires:  rust-toolset-%{rust_version}
e98f2c
%endif
481763
b26a6b
%if 0%{?use_llvmts}
332c93
BuildRequires:  llvm-toolset-%{llvm_version}
332c93
BuildRequires:  llvm-toolset-%{llvm_version}-llvm-devel
488d12
BuildRequires:  llvm-toolset-%{llvm_version}-clang
488d12
BuildRequires:  llvm-toolset-%{llvm_version}-clang-devel
29a772
%endif
7468b5
d417c4
481763
%if 0%{?rhel} > 7
7468b5
BuildRequires:  pipewire-devel
7468b5
%endif
7468b5
481763
%if !0%{?use_bundled_cbindgen}
481763
BuildRequires:  cbindgen
481763
%endif
481763
BuildRequires:  nasm >= 1.13
481763
BuildRequires:  libappstream-glib
4cf60e
481763
%if 0%{?big_endian}
481763
BuildRequires:  icu
481763
%endif
e98f2c
# Bundled nss/nspr requirement
e98f2c
%if 0%{?bundle_nss}
e98f2c
BuildRequires:    nss-softokn
e98f2c
BuildRequires:    sqlite-devel
e98f2c
BuildRequires:    zlib-devel
e98f2c
BuildRequires:    pkgconfig
e98f2c
BuildRequires:    gawk
e98f2c
BuildRequires:    psmisc
e98f2c
BuildRequires:    perl-interpreter
e98f2c
BuildRequires:    gcc-c++
e98f2c
BuildRequires:    xmlto
e98f2c
%endif
e98f2c
4cf60e
Requires:       mozilla-filesystem
481763
#not known or rhel7
481763
#Recommends:     mozilla-openh264 >= 2.1.1
481763
#Recommends:     libva
d417c4
Requires:       p11-kit-trust
481763
Requires:       pciutils-libs
d417c4
%if %{?system_nss}
e98f2c
%if !0%{?bundle_nss}
d417c4
Requires:       nspr >= %{nspr_build_version}
d417c4
Requires:       nss >= %{nss_build_version}
d417c4
%endif
e98f2c
%endif
481763
BuildRequires:  python3-devel
481763
BuildRequires:  python3-setuptools
d417c4
4cf60e
BuildRequires:  desktop-file-utils
4cf60e
Requires:       redhat-indexhtml
29a772
481763
%if !0%{?flatpak}
481763
#TODO
481763
BuildRequires:  system-bookmarks
4cf60e
%endif
481763
%if %{?system_ffi}
d417c4
BuildRequires:  pkgconfig(libffi)
481763
%endif
e98f2c
481763
%if 0%{?use_xvfb}
481763
BuildRequires:  xorg-x11-server-Xvfb
62f5ec
%endif
481763
%if %{build_with_asan}
481763
BuildRequires:  libasan
481763
BuildRequires:  libasan-static
481763
%endif
481763
BuildRequires:  perl-interpreter
481763
#BuildRequires:  fdk-aac-free-devel not on rhel8
481763
%if 0%{?test_on_wayland}
481763
BuildRequires:  mutter
481763
BuildRequires:  gsettings-desktop-schemas
481763
BuildRequires:  gnome-settings-daemon
481763
BuildRequires:  mesa-dri-drivers
481763
BuildRequires:  xorg-x11-server-Xwayland
481763
BuildRequires:  dbus-x11
481763
BuildRequires:  gnome-keyring
481763
%endif
481763
%if 0%{?run_firefox_tests}
481763
BuildRequires:  procps-ng
481763
BuildRequires:  nss-tools
481763
BuildRequires:  dejavu-sans-mono-fonts
481763
BuildRequires:  dejavu-sans-fonts
481763
BuildRequires:  dejavu-serif-fonts
481763
BuildRequires:  dbus-x11
481763
BuildRequires:  gnome-keyring
481763
BuildRequires:  mesa-dri-drivers
481763
# ----------------------------------------
481763
BuildRequires:  liberation-fonts-common
481763
BuildRequires:  liberation-mono-fonts
481763
BuildRequires:  liberation-sans-fonts
481763
BuildRequires:  liberation-serif-fonts
481763
# ----------------------------------
481763
# Missing on f32
481763
%if 0%{?fedora} > 33
481763
BuildRequires:  google-carlito-fonts
481763
%endif
481763
BuildRequires:  google-droid-sans-fonts
481763
BuildRequires:  google-noto-fonts-common
481763
BuildRequires:  google-noto-cjk-fonts-common
481763
BuildRequires:  google-noto-sans-cjk-ttc-fonts
481763
BuildRequires:  google-noto-sans-gurmukhi-fonts
481763
BuildRequires:  google-noto-sans-fonts
481763
BuildRequires:  google-noto-emoji-color-fonts
481763
BuildRequires:  google-noto-sans-sinhala-vf-fonts
481763
# -----------------------------------
481763
BuildRequires:  thai-scalable-fonts-common
481763
BuildRequires:  thai-scalable-waree-fonts
481763
BuildRequires:  khmeros-base-fonts
481763
BuildRequires:  jomolhari-fonts
481763
# ----------------------------------
481763
BuildRequires:  lohit-tamil-fonts
481763
BuildRequires:  lohit-telugu-fonts
481763
# ----------------------------------
481763
BuildRequires:  paktype-naskh-basic-fonts
481763
# faild to build in Koji / f32
481763
%if 0%{?fedora} > 33
481763
BuildRequires:  pt-sans-fonts
481763
%endif
481763
BuildRequires:  smc-meera-fonts
481763
BuildRequires:  stix-fonts
481763
BuildRequires:  abattis-cantarell-fonts
481763
BuildRequires:  xorg-x11-fonts-ISO8859-1-100dpi
481763
BuildRequires:  xorg-x11-fonts-misc
481763
%endif
481763
BuildRequires:  make
481763
BuildRequires:  pciutils-libs
62f5ec
d417c4
Obsoletes:      mozilla <= 37:1.7.13
d417c4
Provides:       webclient
481763
%if 0%{?rhel} == 8 && %{rhel_minor_version} < 6
481763
%ifarch aarch64
481763
BuildRequires: gcc-toolset-12-annobin-plugin-gcc
481763
%endif
481763
%endif
29a772
488d12
# Bundled libraries
488d12
Provides: bundled(angle)
5b16e6
Provides: bundled(audioipc-2)
5b16e6
Provides: bundled(brotli)
488d12
Provides: bundled(cairo)
5b16e6
Provides: bundled(cfworker)
5b16e6
Provides: bundled(d3.js)
5b16e6
Provides: bundled(double-conversion)
5b16e6
Provides: bundled(expat)
5b16e6
Provides: bundled(fdlibm)
5b16e6
Provides: bundled(ffvpx)
5b16e6
Provides: bundled(freetype2)
488d12
Provides: bundled(graphite2)
488d12
Provides: bundled(harfbuzz)
5b16e6
Provides: bundled(highway)
5b16e6
Provides: bundled(intgemm)
488d12
Provides: bundled(kissfft)
488d12
Provides: bundled(libaom)
488d12
Provides: bundled(libcubeb)
488d12
Provides: bundled(libdav1d)
488d12
Provides: bundled(libjpeg)
5b16e6
Provides: bundled(libjxl)
5b16e6
Provides: bundled(libjxl)
5b16e6
Provides: bundled(libmar)
488d12
Provides: bundled(libmkv)
488d12
Provides: bundled(libnestegg)
488d12
Provides: bundled(libogg)
488d12
Provides: bundled(libopus)
488d12
Provides: bundled(libpng)
5b16e6
Provides: bundled(libprio)
488d12
Provides: bundled(libsoundtouch)
488d12
Provides: bundled(libspeex_resampler)
5b16e6
Provides: bundled(libsrtp)
488d12
Provides: bundled(libtheora)
488d12
Provides: bundled(libtremor)
488d12
Provides: bundled(libvorbis)
488d12
Provides: bundled(libvpx)
488d12
Provides: bundled(libwebp)
5b16e6
Provides: bundled(libwebrtc)
488d12
Provides: bundled(libyuv)
488d12
Provides: bundled(mp4parse-rust)
5b16e6
Provides: bundled(mp4parse-rust)
5b16e6
Provides: bundled(msgpack-c)
5b16e6
Provides: bundled(msgpack-c)
488d12
Provides: bundled(mtransport)
488d12
Provides: bundled(openmax_dl)
5b16e6
Provides: bundled(openmax_il)
5b16e6
Provides: bundled(openmax_il)
5b16e6
Provides: bundled(ots)
5b16e6
Provides: bundled(qcms)
5b16e6
Provides: bundled(rlbox_sandboxing_api)
5b16e6
Provides: bundled(sfntly)
5b16e6
Provides: bundled(sipcc)
5b16e6
Provides: bundled(skia)
5b16e6
Provides: bundled(sqlite3)
5b16e6
Provides: bundled(thebes)
5b16e6
Provides: bundled(wasm2c)
5b16e6
Provides: bundled(WebRender)
488d12
Provides: bundled(woff2)
488d12
Provides: bundled(xz-embedded)
5b16e6
Provides: bundled(ycbcr)
488d12
Provides: bundled(zlib)
488d12
488d12
%if 0%{?bundle_nss}
481763
Provides: bundled(nss) = 3.79.0
481763
Provides: bundled(nspr) = 4.34.0
488d12
%endif
488d12
29a772
%description
29a772
Mozilla Firefox is an open-source web browser, designed for standards
29a772
compliance, performance and portability.
29a772
481763
%if 0%{?run_firefox_tests}
481763
%global testsuite_pkg_name %{name}-testresults
d417c4
%package -n %{testsuite_pkg_name}
d417c4
Summary: Results of testsuite
d417c4
%description -n %{testsuite_pkg_name}
d417c4
This package contains results of tests executed during build.
d417c4
%files -n %{testsuite_pkg_name}
481763
/%{version}-%{release}/test_results
481763
/%{version}-%{release}/test_summary.txt
481763
/%{version}-%{release}/failures-*
d417c4
%endif
d417c4
29a772
#---------------------------------------------------------------------
481763
29a772
%prep
e98f2c
echo "Build environment"
e98f2c
echo "dist                  %{?dist}"
481763
echo "RHEL 8 minor version: %{?rhel_minor_version}"
e98f2c
echo "use_bundled_ffi       %{?use_bundled_ffi}"
e98f2c
echo "bundle_nss            %{?bundle_nss}"
e98f2c
echo "system_nss            %{?system_nss}"
e98f2c
echo "use_rustts            %{?use_rustts}"
e98f2c
d417c4
%setup -q -n %{tarballdir}
481763
d417c4
# Build patches, can't change backup suffix from default because during build
d417c4
# there is a compare of config and js/config directories and .orig suffix is
d417c4
# ignored during this compare.
29a772
481763
%ifarch s390
481763
%patch25 -p1 -b .rhbz-1219542-s390
481763
%endif
481763
%patch40 -p1 -b .aarch64-skia
481763
%if 0%{?disable_elfhack}
481763
%patch41 -p1 -b .disable-elfhack
481763
%endif
481763
%patch3  -p1 -b .arm
481763
%patch44 -p1 -b .build-arm-libopus
481763
%patch47 -p1 -b .fedora-shebang
481763
%patch49 -p1 -b .build-arm-libaom
481763
%patch53 -p1 -b .firefox-gcc-build
481763
%patch54 -p1 -b .1669639
481763
%patch71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12
481763
%patch72 -p1 -b .build-remove-dav1d-from-wayland-dep
481763
481763
%patch75 -p1 -b .build-big-endian-errors
481763
%patch76 -p1 -b .firefox-nss-version
481763
#ppc64le build failure because of webrtc
481763
%patch77 -p1 -b .mozilla-1775202
481763
481763
%patch73 -p1 -b .build-ascii-decode-fail-rhel7
ab05ff
%if 0%{?rhel} == 7
ab05ff
%patch78 -p1 -b .build-rhel7-lower-node-min-version
ab05ff
%endif
481763
481763
# Test patches
481763
%patch102 -p1 -b .firefox-tests-xpcshell-freeze
d417c4
d417c4
# Fedora patches
d417c4
%patch215 -p1 -b .addons
7468b5
%patch219 -p1 -b .rhbz-1173156
727eab
%patch224 -p1 -b .1170092
481763
#ARM run-time patch
481763
%ifarch aarch64
481763
%patch226 -p1 -b .1354671
481763
%endif
481763
%patch228 -p1 -b .disable-openh264-download
481763
%patch229 -p1 -b .firefox-nss-addon-hack
481763
%patch230 -p1 -b .D110204-fscreen.diff
5b16e6
%patch231 -p1 -b .webrtc-nss-fix
481763
481763
%patch415 -p1 -b .1670333
481763
%patch416 -p1 -b .mozilla-bmo1005535
481763
%patch417 -p1 -b .mozilla-bmo1504834-part1
481763
%patch418 -p1 -b .mozilla-bmo1504834-part3
481763
%patch419 -p1 -b .mozilla-bmo849632
481763
%patch420 -p1 -b .mozilla-bmo998749
481763
%patch421 -p1 -b .mozilla-s390x-skia-gradient
481763
%patch422 -p1 -b .one_swizzle_to_rule_them_all
481763
%patch423 -p1 -b .svg-rendering
5b16e6
%patch424 -p1 -b .D158770.diff
481763
481763
# PGO patches
481763
%if %{build_with_pgo}
481763
%if !%{build_with_clang}
481763
%patch600 -p1 -b .pgo
481763
%patch602 -p1 -b .1516803
391ea6
%endif
29a772
%endif
29a772
488d12
%if 0%{?rhel} == 7
488d12
  %ifarch %{ix86}
488d12
# -F dwarf not available in RHEL7's nasm
488d12
%patch1008 -p1 -b .build-rhel7-nasm-dwarf
488d12
  %endif
daca4a
%endif
daca4a
481763
9996a1
29a772
%{__rm} -f .mozconfig
29a772
%{__cp} %{SOURCE10} .mozconfig
481763
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-wayland" >> .mozconfig
d417c4
%if %{official_branding}
d417c4
echo "ac_add_options --enable-official-branding" >> .mozconfig
d417c4
%endif
4cf60e
%{__cp} %{SOURCE24} mozilla-api-key
d417c4
%{__cp} %{SOURCE27} google-api-key
481763
%{__cp} %{SOURCE35} google-loc-api-key
481763
481763
echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig
481763
echo "ac_add_options --libdir=\"%{_libdir}\"" >> .mozconfig
4cf60e
d417c4
%if %{?system_nss}
d417c4
echo "ac_add_options --with-system-nspr" >> .mozconfig
d417c4
echo "ac_add_options --with-system-nss" >> .mozconfig
d417c4
%else
d417c4
echo "ac_add_options --without-system-nspr" >> .mozconfig
d417c4
echo "ac_add_options --without-system-nss" >> .mozconfig
d417c4
%endif
4cf60e
481763
%if %{?system_ffi}
481763
echo "ac_add_options --enable-system-ffi" >> .mozconfig
481763
%endif
481763
481763
%ifarch %{arm}
d417c4
echo "ac_add_options --disable-elf-hack" >> .mozconfig
d417c4
%endif
d417c4
d417c4
%if %{?debug_build}
d417c4
echo "ac_add_options --enable-debug" >> .mozconfig
d417c4
echo "ac_add_options --disable-optimize" >> .mozconfig
d417c4
%else
481763
%global optimize_flags "none"
488d12
%ifarch s390x
5bf1f5
%global optimize_flags "-g -O1"
d417c4
%endif
d417c4
%ifarch ppc64le aarch64
d417c4
%global optimize_flags "-g -O2"
d417c4
%endif
d417c4
%if %{optimize_flags} != "none"
d417c4
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
29a772
%else
d417c4
echo 'ac_add_options --enable-optimize' >> .mozconfig
d417c4
%endif
d417c4
echo "ac_add_options --disable-debug" >> .mozconfig
29a772
%endif
29a772
d417c4
# Second arches fail to start with jemalloc enabled
d417c4
%ifnarch %{ix86} x86_64
d417c4
echo "ac_add_options --disable-jemalloc" >> .mozconfig
4cf60e
%endif
4cf60e
481763
%if 0%{?build_tests}
481763
echo "ac_add_options --enable-tests" >> .mozconfig
481763
%else
481763
echo "ac_add_options --disable-tests" >> .mozconfig
4cf60e
%endif
4cf60e
481763
%if !%{?system_jpeg}
481763
echo "ac_add_options --without-system-jpeg" >> .mozconfig
481763
%else
481763
echo "ac_add_options --with-system-jpeg" >> .mozconfig
4cf60e
%endif
29a772
481763
%if %{?system_libvpx}
481763
echo "ac_add_options --with-system-libvpx" >> .mozconfig
481763
%else
481763
echo "ac_add_options --without-system-libvpx" >> .mozconfig
481763
%endif
481763
481763
%ifarch s390 s390x
e98f2c
echo "ac_add_options --disable-jit" >> .mozconfig
e98f2c
%endif
e98f2c
481763
%if %{build_with_asan}
481763
echo "ac_add_options --enable-address-sanitizer" >> .mozconfig
481763
echo "ac_add_options --disable-jemalloc" >> .mozconfig
e98f2c
%endif
481763
481763
%if !%{enable_mozilla_crashreporter}
481763
echo "ac_add_options --disable-crashreporter" >> .mozconfig
d417c4
%endif
4cf60e
488d12
# AV1 requires newer nasm that was rebased in 8.4
488d12
%if 0%{?rhel} == 7 || (0%{?rhel} == 8 && %{rhel_minor_version} < 4)
488d12
echo "ac_add_options --disable-av1" >> .mozconfig
488d12
%endif
488d12
481763
# api keys full path
481763
echo "ac_add_options --with-mozilla-api-keyfile=`pwd`/mozilla-api-key" >> .mozconfig
481763
# It seems that the api key we have is for the safe browsing only
481763
echo "ac_add_options --with-google-location-service-api-keyfile=`pwd`/google-loc-api-key" >> .mozconfig
481763
echo "ac_add_options --with-google-safebrowsing-api-keyfile=`pwd`/google-api-key" >> .mozconfig
481763
c82edc
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
6ca8db
d417c4
# Remove executable bit to make brp-mangle-shebangs happy.
d417c4
chmod -x third_party/rust/itertools/src/lib.rs
e98f2c
chmod a-x third_party/rust/ash/src/extensions/ext/*.rs
e98f2c
chmod a-x third_party/rust/ash/src/extensions/khr/*.rs
e98f2c
chmod a-x third_party/rust/ash/src/extensions/nv/*.rs
d417c4
29a772
#---------------------------------------------------------------------
29a772
29a772
%build
488d12
# Disable LTO to work around rhbz#1883904
488d12
%define _lto_cflags %{nil}
d417c4
export PATH="%{_buildrootdir}/bin:$PATH"
481763
# Cleanup buildroot for existing rpms from bundled nss/nspr and other packages
481763
rm -rf %{_buildrootdir}/*
d417c4
d417c4
function install_rpms_to_current_dir() {
d417c4
    PACKAGE_RPM=$(eval echo $1)
d417c4
    PACKAGE_DIR=%{_rpmdir}
d417c4
d417c4
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
d417c4
        # Hack for tps tests
d417c4
        ARCH_STR=%{_arch}
488d12
        %ifarch %{ix86}
d417c4
            ARCH_STR="i?86"
d417c4
        %endif
488d12
        PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
d417c4
     fi
d417c4
d417c4
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
d417c4
     do
d417c4
         echo "$package"
d417c4
         rpm2cpio "$package" | cpio -idu
d417c4
     done
d417c4
}
e98f2c
%if 0%{?bundle_nss}
488d12
  rpm -ivh %{SOURCE402}
488d12
  #rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nspr.spec
488d12
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nspr.spec
488d12
  pushd %{_buildrootdir}
488d12
  install_rpms_to_current_dir nspr-4*.rpm
488d12
  install_rpms_to_current_dir nspr-devel*.rpm
488d12
  popd
488d12
  echo "Setting nspr flags"
488d12
  # nss-setup-flags-env.inc
488d12
  sed -i 's@%{bundled_install_path}@%{_buildrootdir}%{bundled_install_path}@g' %{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig/nspr*.pc
481763
  cat %{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig/nspr*.pc
e98f2c
488d12
  export LDFLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
488d12
  export LDFLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $LDFLAGS"
488d12
  export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
488d12
  export PKG_CONFIG_PATH=%{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig
481763
  pkg-config --libs-only-L nspr
481763
  pkg-config --libs nspr
481763
  export PATH="%{_buildrootdir}%{bundled_install_path}/bin:$PATH"
488d12
488d12
  export PATH=%{_buildrootdir}/%{bundled_install_path}/bin:$PATH
488d12
  echo $PKG_CONFIG_PATH
488d12
488d12
  rpm -ivh %{SOURCE403}
c88246
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nss.spec
488d12
  pushd %{_buildrootdir}
488d12
  #cleanup
488d12
  install_rpms_to_current_dir nss-3*.rpm
488d12
  install_rpms_to_current_dir nss-devel*.rpm
488d12
  install_rpms_to_current_dir nss-pkcs11-devel*.rpm
488d12
  install_rpms_to_current_dir nss-softokn-3*.rpm
488d12
  install_rpms_to_current_dir nss-softokn-devel*.rpm
488d12
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
488d12
  install_rpms_to_current_dir nss-softokn-freebl-devel*.rpm
488d12
  install_rpms_to_current_dir nss-util-3*.rpm
488d12
  install_rpms_to_current_dir nss-util-devel*.rpm
488d12
  popd
488d12
  %filter_provides_in %{bundled_install_path}/%{_lib}
488d12
  %filter_requires_in %{bundled_install_path}/%{_lib}
2d7a08
  %filter_from_requires /libnss3.so.*/d
2d7a08
  %filter_from_requires /libsmime3.so.*/d
2d7a08
  %filter_from_requires /libssl3.so.*/d
2d7a08
  %filter_from_requires /libnssutil3.so.*/d
2d7a08
  %filter_from_requires /libnspr4.so.*/d
488d12
  find %{_buildrootdir}
e98f2c
%endif
e98f2c
c82edc
set +e
481763
%if 0%{?rhel} == 8 && %{rhel_minor_version} < 6
481763
%ifarch aarch64
481763
source scl_source enable gcc-toolset-12
481763
%endif
481763
%endif
c82edc
%if 0%{?use_dts}
c82edc
source scl_source enable devtoolset-%{dts_version}
c82edc
%endif
c82edc
%if 0%{?use_rustts}
488d12
source scl_source enable rust-toolset-%{rust_version}
488d12
%endif
488d12
%if 0%{?use_nodejsts}
488d12
source scl_source enable rh-nodejs10
c82edc
%endif
481763
%if 0%{?use_llvmts}
481763
source scl_source enable llvm-toolset-%{llvm_version}
481763
%endif
c82edc
481763
set -e
e98f2c
env
e98f2c
which gcc
e98f2c
which c++
e98f2c
which g++
e98f2c
which ld
488d12
which nasm
481763
which node
481763
%if 0%{?use_bundled_cbindgen}
c82edc
mkdir -p my_rust_vendor
c82edc
cd my_rust_vendor
c82edc
%{__tar} xf %{SOURCE2}
c82edc
mkdir -p .cargo
c82edc
cat > .cargo/config <
c82edc
[source.crates-io]
c82edc
replace-with = "vendored-sources"
c82edc
c82edc
[source.vendored-sources]
481763
directory = "`pwd`"
c82edc
EOL
c82edc
481763
%ifarch aarch64
481763
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
481763
%endif
c82edc
481763
env CARGO_HOME=.cargo cargo install cbindgen
481763
export PATH=`pwd`/.cargo/bin:$PATH
481763
cd -
481763
%endif
e98f2c
c82edc
mkdir %{_buildrootdir}/bin || :
481763
cp %{SOURCE32} %{_buildrootdir}/bin || :
c82edc
d417c4
# Update the various config.guess to upstream release for aarch64 support
481763
# Do not update config.guess in the ./third_party/rust because that would break checksums
481763
find ./ -path ./third_party/rust -prune -o -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
481763
d417c4
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
d417c4
#rhbz#1037063
d417c4
# -Werror=format-security causes build failures when -Wno-format is explicitly given
d417c4
# for some sources
d417c4
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
d417c4
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
481763
%if 0%{?fedora} < 30
d417c4
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
481763
%else
481763
# Workaround for mozbz#1531309
481763
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//')
481763
%endif
481763
%if 0%{?fedora} > 30
481763
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fpermissive"
481763
%endif
d417c4
%if %{?hardened_build}
481763
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
481763
%endif
d417c4
%if %{?debug_build}
481763
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
481763
%endif
481763
%ifarch s390
481763
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
481763
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
481763
# overrides the -g1 from line above and breaks building on s390/arm
481763
# (OOM when linking, rhbz#1238225)
481763
export MOZ_DEBUG_FLAGS=" "
481763
%endif
481763
%ifarch %{arm} %{ix86}
481763
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g0/')
481763
export MOZ_DEBUG_FLAGS=" "
29a772
%endif
488d12
%if !%{build_with_clang}
481763
%ifarch s390x ppc aarch64 %{ix86}
481763
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
481763
%endif
481763
%ifarch %{arm}
481763
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--strip-debug"
481763
echo "ac_add_options --enable-linker=gold" >> .mozconfig
481763
%endif
481763
%endif
481763
%if 0%{?flatpak}
481763
# Make sure the linker can find libraries in /app/lib64 as we don't use
481763
# __global_ldflags that normally sets this.
481763
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}"
481763
%endif
481763
%ifarch %{arm} %{ix86} %{s390x}
481763
export RUSTFLAGS="-Cdebuginfo=0"
481763
echo 'export RUSTFLAGS="-Cdebuginfo=0"' >> .mozconfig
481763
%endif
481763
#%ifarch aarch64
481763
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
481763
#echo 'export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"' >> .mozconfig
481763
#%endif
481763
%if %{build_with_asan}
481763
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address -Dxmalloc=myxmalloc"
481763
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -fsanitize=address -ldl"
4cf60e
%endif
488d12
488d12
%if 0%{?bundle_nss}
488d12
  mkdir -p %{_buildrootdir}%{bundled_install_path}/%{_lib}
488d12
  MOZ_LINK_FLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
488d12
  MOZ_LINK_FLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
488d12
  MOZ_LINK_FLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
29a772
%endif
e98f2c
481763
# We don't wantfirefox to use CK_GCM_PARAMS_V3 in nss
481763
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT"
29a772
488d12
echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
488d12
echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
488d12
echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig
488d12
488d12
%if %{build_with_clang}
481763
echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig
481763
echo "export AR=\"llvm-ar\"" >> .mozconfig
481763
echo "export NM=\"llvm-nm\"" >> .mozconfig
481763
echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig
481763
echo "ac_add_options --enable-linker=lld" >> .mozconfig
488d12
%else
481763
echo "export CC=gcc" >> .mozconfig
481763
echo "export CXX=g++" >> .mozconfig
481763
echo "export AR=\"gcc-ar\"" >> .mozconfig
481763
echo "export NM=\"gcc-nm\"" >> .mozconfig
481763
echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
481763
%endif
481763
%if 0%{?build_with_pgo}
481763
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
481763
# PGO build doesn't work with ccache
481763
export CCACHE_DISABLE=1
488d12
%endif
29a772
29a772
MOZ_SMP_FLAGS=-j1
481763
# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
481763
# however builds tend to fail on other arches when building in parallel.
481763
#%ifarch %{ix86} s390x %{arm} aarch64 ppc64le
481763
#[ -z "$RPM_BUILD_NCPUS" ] && \
481763
#     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
481763
#[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
481763
#%endif
481763
#%ifarch x86_64 ppc ppc64 ppc64le
481763
[ -z "$RPM_BUILD_NCPUS" ] && \
488d12
       RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
481763
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
481763
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
481763
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
481763
[ "$RPM_BUILD_NCPUS" -ge 16 ] && MOZ_SMP_FLAGS=-j16
481763
#%endif
d417c4
481763
echo "mk_add_options MOZ_MAKE_FLAGS=\"$MOZ_SMP_FLAGS\"" >> .mozconfig
481763
echo "mk_add_options MOZ_SERVICES_SYNC=1" >> .mozconfig
481763
echo "export STRIP=/bin/true" >> .mozconfig
481763
#export MACH_USE_SYSTEM_PYTHON=1
e98f2c
481763
%if %{launch_wayland_compositor}
481763
cp %{SOURCE45} .
481763
. ./run-wayland-compositor
d417c4
%endif
d417c4
e98f2c
%if 0%{?bundle_nss}
488d12
  echo "Setting nss flags"
488d12
  # nss-setup-flags-env.inc
488d12
  %include_file %{SOURCE401}
488d12
  export PATH=%{_buildrootdir}/%{bundled_install_path}/bin:$PATH
488d12
  echo $PKG_CONFIG_PATH
e98f2c
%endif
e98f2c
481763
%if %{build_with_pgo}
481763
%if 0%{?test_on_wayland}
481763
env | grep "WAYLAND"
481763
MOZ_ENABLE_WAYLAND=1 ./mach build -v 2>&1 || exit 1
481763
%else
481763
xvfb-run ./mach build -v 2>&1 || exit 1
e98f2c
%endif
e98f2c
%else
481763
./mach build -v 2>&1 || exit 1
d417c4
%endif
29a772
29a772
#---------------------------------------------------------------------
29a772
%install
488d12
export MACH_USE_SYSTEM_PYTHON=1
d417c4
function install_rpms_to_current_dir() {
d417c4
    PACKAGE_RPM=$(eval echo $1)
d417c4
    PACKAGE_DIR=%{_rpmdir}
d417c4
d417c4
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
d417c4
        # Hack for tps tests
d417c4
        ARCH_STR=%{_arch}
488d12
        %ifarch %{ix86}
d417c4
            ARCH_STR="i?86"
d417c4
        %endif
488d12
        PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
d417c4
     fi
d417c4
d417c4
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
d417c4
     do
d417c4
         echo "$package"
d417c4
         rpm2cpio "$package" | cpio -idu
d417c4
     done
d417c4
}
d417c4
e98f2c
%if 0%{?bundle_nss}
e98f2c
  pushd %{buildroot}
e98f2c
  #install_rpms_to_current_dir nss-*.rpm
e98f2c
  install_rpms_to_current_dir nspr-4*.rpm
e98f2c
  install_rpms_to_current_dir nss-3*.rpm
e98f2c
  install_rpms_to_current_dir nss-softokn-3*.rpm
e98f2c
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
e98f2c
  install_rpms_to_current_dir nss-util-3*.rpm
488d12
e98f2c
  # cleanup unecessary nss files
488d12
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/bin
488d12
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/include
488d12
  rm -rf %{buildroot}/%{bundled_install_path}/lib/dracut
488d12
  rm -rf %{buildroot}/%{bundled_install_path}/%{_lib}/nss
488d12
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/%{_lib}/pkgconfig
488d12
  rm -rf %{buildroot}/%{bundled_install_path}/%{_lib}/share
488d12
  rm -rf %{buildroot}/%{bundled_install_path}/share
e98f2c
  rm -rf %{buildroot}/etc/pki
e98f2c
  rm -rf %{buildroot}/usr/lib/.build-id
e98f2c
  rm -rf %{buildroot}/etc/crypto-policies
e98f2c
  popd
e98f2c
%endif
e98f2c
481763
# run Firefox test suite
481763
%if %{launch_wayland_compositor}
481763
cp %{SOURCE45} .
481763
. ./run-wayland-compositor
481763
%endif
481763
481763
%if 0%{?run_firefox_tests}
481763
mkdir -p objdir/_virtualenvs/init_py3
481763
%{__cat} > objdir/_virtualenvs/init_py3/pip.conf << EOF
481763
[global]
481763
find-links=`pwd`/mochitest-python
481763
no-index=true
481763
EOF
481763
tar xf %{SOURCE37}
481763
cp %{SOURCE40} %{SOURCE41} %{SOURCE42} %{SOURCE38} %{SOURCE39} %{SOURCE43} %{SOURCE44} .
481763
mkdir -p test_results
481763
%if %{?test_on_wayland}
481763
./run-tests-wayland || true
481763
%else
481763
./run-tests-x11 || true
481763
%endif
481763
./print_results > test_summary.txt 2>&1 || true
481763
./print_failures || true
d417c4
%endif
29a772
29a772
# set up our default bookmarks
481763
%if !0%{?flatpak}
481763
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/browser/content/browser/default-bookmarks.html
481763
%endif
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
d417c4
DESTDIR=%{buildroot} make -C objdir install
4cf60e
d417c4
%{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
29a772
d417c4
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
29a772
d417c4
# set up the firefox start script
d417c4
%{__rm} -rf %{buildroot}%{_bindir}/firefox
481763
%{__sed} -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE21} > %{buildroot}%{_bindir}/firefox
d417c4
%{__chmod} 755 %{buildroot}%{_bindir}/firefox
29a772
481763
%if 0%{?flatpak}
481763
sed -i -e 's|%FLATPAK_ENV_VARS%|export TMPDIR="$XDG_CACHE_HOME/tmp"|' %{buildroot}%{_bindir}/firefox
481763
%else
481763
sed -i -e 's|%FLATPAK_ENV_VARS%||' %{buildroot}%{_bindir}/firefox
481763
%endif
481763
481763
# Run firefox under wayland only on RHEL9 and newer
481763
%if 0%{?rhel} < 9
481763
sed -i -e 's|%DISABLE_WAYLAND_PLACEHOLDER%|export MOZ_DISABLE_WAYLAND=1|' %{buildroot}%{_bindir}/firefox
481763
%else
481763
sed -i -e 's|%DISABLE_WAYLAND_PLACEHOLDER%||' %{buildroot}%{_bindir}/firefox
481763
%endif
481763
d417c4
%{__install} -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/firefox.1
29a772
d417c4
%{__rm} -f %{buildroot}/%{mozappdir}/firefox-config
d417c4
%{__rm} -f %{buildroot}/%{mozappdir}/update-settings.ini
29a772
29a772
for s in 16 22 24 32 48 256; do
d417c4
    %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
29a772
    %{__cp} -p browser/branding/official/default${s}.png \
d417c4
               %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
29a772
done
29a772
d417c4
# Install hight contrast icon
d417c4
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
d417c4
%{__cp} -p %{SOURCE25} \
d417c4
           %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
d417c4
d417c4
echo > %{name}.lang
481763
%if %{with langpacks}
29a772
# Extract langpacks, make any mods needed, repack the langpack, and install it.
d417c4
%{__mkdir_p} %{buildroot}%{langpackdir}
d417c4
%{__tar} xf %{SOURCE1}
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
d417c4
  unzip -qq $langpack -d $extensionID
29a772
  find $extensionID -type f | xargs chmod 644
29a772
29a772
  cd $extensionID
d417c4
  zip -qq -r9mX ../${extensionID}.xpi *
29a772
  cd -
29a772
d417c4
  %{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
29a772
  language=`echo $language | sed -e 's/-/_/g'`
481763
%if 0%{?flatpak}
481763
  echo "%{langpackdir}/${extensionID}.xpi" >> %{name}.lang
481763
%else
d417c4
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
481763
%endif
29a772
done
29a772
%{__rm} -rf firefox-langpacks
690287
690287
# Install langpack workaround (see #707100, #821169)
690287
function create_default_langpack() {
d417c4
language_long=$1
d417c4
language_short=$2
d417c4
cd %{buildroot}%{langpackdir}
d417c4
ln -s langpack-$language_long@firefox.mozilla.org.xpi langpack-$language_short@firefox.mozilla.org.xpi
d417c4
cd -
d417c4
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
481763
#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"
727eab
%endif
29a772
29a772
# Keep compatibility with the old preference location.
d417c4
%{__mkdir_p} %{buildroot}%{mozappdir}/defaults/preferences
d417c4
%{__mkdir_p} %{buildroot}%{mozappdir}/browser/defaults
29a772
ln -s %{mozappdir}/defaults/preferences $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults/preferences
d417c4
# Default preferences
d417c4
%{__cp} %{SOURCE12} %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
62df9b
sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
488d12
# Enable modern crypto for the key export on the RHEL9 only (rhbz#1764205)
488d12
%if 0%{?rhel} == 9
488d12
  echo 'pref("security.pki.use_modern_crypto_with_pkcs12", true);' >> %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
488d12
%endif
488d12
481763
%ifarch s390x
488d12
  echo 'pref("gfx.webrender.force-disabled", true);' >> %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
488d12
%endif
488d12
481763
%ifarch s390x ppc64
481763
  echo 'pref("gfx.webrender.force-disabled", true);' >> %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
481763
%endif
4cf60e
4cf60e
# System config dir
d417c4
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/%{name}/pref
690287
29a772
# System extensions
d417c4
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_app_id}
d417c4
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_app_id}
29a772
29a772
# Copy over the LICENSE
d417c4
%{__install} -p -c -m 644 LICENSE %{buildroot}/%{mozappdir}
d417c4
d417c4
# Use the system hunspell dictionaries
d417c4
%{__rm} -rf %{buildroot}%{mozappdir}/dictionaries
d417c4
ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries
d417c4
481763
%if 0%{?run_firefox_tests}
481763
%{__mkdir_p} %{buildroot}/%{version}-%{release}/test_results
481763
%{__cp} test_results/* %{buildroot}/%{version}-%{release}/test_results
481763
%{__cp} test_summary.txt %{buildroot}/%{version}-%{release}/
481763
%{__cp} failures-* %{buildroot}/%{version}-%{release}/ || true
d417c4
%endif
4cf60e
d417c4
# Copy over run-mozilla.sh
d417c4
%{__cp} build/unix/run-mozilla.sh %{buildroot}%{mozappdir}
29a772
d417c4
# Add distribution.ini
d417c4
%{__mkdir_p} %{buildroot}%{mozappdir}/distribution
d417c4
%{__cp} %{SOURCE26} %{buildroot}%{mozappdir}/distribution
29a772
481763
# Install appdata file
481763
mkdir -p %{buildroot}%{_datadir}/metainfo
481763
%{__sed} -e "s/__VERSION__/%{version}/" \
481763
         -e "s/__DATE__/$(date '+%Y-%m-%d')/" \
481763
         %{SOURCE33} > %{buildroot}%{_datadir}/metainfo/firefox.appdata.xml
481763
481763
# Install Gnome search provider files
481763
mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers
481763
%{__cp} %{SOURCE34} %{buildroot}%{_datadir}/gnome-shell/search-providers
481763
481763
# Remove gtk2 support as flash plugin is no longer supported
481763
rm -rf %{buildroot}%{mozappdir}/gtk2/
f5d0dc
d417c4
# Remove copied libraries to speed up build
d417c4
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
d417c4
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozalloc.so
d417c4
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libxul.so
481763
481763
# Create a symlink to replace libnssckbi.so with p11-kit-client.so
481763
# instead of p11-kit-trust.so, so that Firefox can see the system
481763
# trust store on the host through the p11-kit RPC protocol.  A symlink
481763
# to libnss3.so is also needed, because Firefox tries to load
481763
# libnssckbi.so from the same directory where libnss3.so is loaded (as
481763
# of Firefox 89).
481763
%if 0%{?flatpak}
481763
ln -sf /usr/lib64/libnss3.so %{buildroot}%{_libdir}/libnss3.so
481763
ln -sf /usr/lib64/pkcs11/p11-kit-client.so %{buildroot}%{_libdir}/libnssckbi.so
481763
%endif
29a772
#---------------------------------------------------------------------
29a772
481763
%check
481763
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
481763
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
d417c4
%clean
d417c4
rm -rf %{_srcrpmdir}/libffi*.src.rpm
d417c4
find %{_rpmdir} -name "libffi*.rpm" -delete
83e1c4
rm -rf %{_srcrpmdir}/openssl*.src.rpm
83e1c4
find %{_rpmdir} -name "openssl*.rpm" -delete
e98f2c
rm -rf %{_srcrpmdir}/nss*.src.rpm
e98f2c
find %{_rpmdir} -name "nss*.rpm" -delete
e98f2c
rm -rf %{_srcrpmdir}/nspr*.src.rpm
e98f2c
find %{_rpmdir} -name "nspr*.rpm" -delete
d417c4
d417c4
%post
d417c4
update-desktop-database &> /dev/null || :
d417c4
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
d417c4
d417c4
%postun
d417c4
update-desktop-database &> /dev/null || :
d417c4
if [ $1 -eq 0 ] ; then
d417c4
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
d417c4
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
481763
    %{__rm} -rf %{langpackdir}
d417c4
fi
d417c4
29a772
%posttrans
29a772
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
29a772
29a772
%files -f %{name}.lang
29a772
%{_bindir}/firefox
d417c4
%{mozappdir}/firefox
d417c4
%{mozappdir}/firefox-bin
29a772
%doc %{_mandir}/man1/*
d417c4
%dir %{_sysconfdir}/%{name}
4cf60e
%dir %{_sysconfdir}/%{name}/*
d417c4
%dir %{_datadir}/mozilla/extensions/*
d417c4
%dir %{_libdir}/mozilla/extensions/*
481763
%{_datadir}/applications/%{name}.desktop
481763
%{_datadir}/metainfo/*.appdata.xml
481763
%{_datadir}/gnome-shell/search-providers/*.ini
29a772
%dir %{mozappdir}
481763
%license %{mozappdir}/LICENSE
29a772
%{mozappdir}/browser/chrome
d417c4
%{mozappdir}/defaults/preferences/*
d417c4
%{mozappdir}/browser/defaults/preferences
d417c4
%{mozappdir}/browser/features/*.xpi
d417c4
%{mozappdir}/distribution/distribution.ini
481763
# That's Windows only
481763
%ghost %{mozappdir}/browser/features/aushelper@mozilla.org.xpi
481763
%if %{with langpacks}
d417c4
%dir %{langpackdir}
d417c4
%endif
29a772
%{mozappdir}/browser/omni.ja
29a772
%{mozappdir}/run-mozilla.sh
29a772
%{mozappdir}/application.ini
d417c4
%{mozappdir}/pingsender
29a772
%exclude %{mozappdir}/removed-files
481763
%if 0%{?flatpak}
481763
%{_libdir}/libnss3.so
481763
%{_libdir}/libnssckbi.so
481763
%endif
d417c4
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
d417c4
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
d417c4
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
d417c4
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
d417c4
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
d417c4
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
d417c4
%{_datadir}/icons/hicolor/symbolic/apps/firefox-symbolic.svg
481763
%if %{enable_mozilla_crashreporter}
481763
%{mozappdir}/crashreporter
481763
%{mozappdir}/crashreporter.ini
481763
%{mozappdir}/minidump-analyzer
481763
%{mozappdir}/Throbber-small.gif
481763
%{mozappdir}/browser/crashreporter-override.ini
481763
%endif
29a772
%{mozappdir}/*.so
d417c4
%{mozappdir}/defaults/pref/channel-prefs.js
d417c4
%{mozappdir}/dependentlibs.list
d417c4
%{mozappdir}/dictionaries
29a772
%{mozappdir}/omni.ja
29a772
%{mozappdir}/platform.ini
29a772
%{mozappdir}/plugin-container
f9af33
%{mozappdir}/gmp-clearkey
481763
%{mozappdir}/fonts/TwemojiMozilla.ttf
d417c4
%if !%{?system_nss}
d417c4
%exclude %{mozappdir}/libnssckbi.so
f9af33
%endif
481763
%if %{build_with_asan}
481763
%{mozappdir}/llvm-symbolizer
f9af33
%endif
d417c4
e98f2c
%if 0%{?bundle_nss}
e98f2c
%{mozappdir}/bundled/%{_lib}/libfreebl*
e98f2c
%{mozappdir}/bundled/%{_lib}/libnss3*
e98f2c
%{mozappdir}/bundled/%{_lib}/libnssdbm3*
e98f2c
%{mozappdir}/bundled/%{_lib}/libnssutil3*
e98f2c
%{mozappdir}/bundled/%{_lib}/libsmime3*
e98f2c
%{mozappdir}/bundled/%{_lib}/libsoftokn*
e98f2c
%{mozappdir}/bundled/%{_lib}/libssl3*
e98f2c
%{mozappdir}/bundled/%{_lib}/libnspr4.so
e98f2c
%{mozappdir}/bundled/%{_lib}/libplc4.so
e98f2c
%{mozappdir}/bundled/%{_lib}/libplds4.so
e98f2c
%endif
e98f2c
29a772
#---------------------------------------------------------------------
29a772
29a772
%changelog
52f53c
* Wed Nov 09 2022 Eike Rathke <erack@redhat.com> - 102.5.0-1
52f53c
- Update to 102.5.0 build1
52f53c
ab05ff
* Wed Oct 12 2022 Eike Rathke <erack@redhat.com> - 102.4.0-1
ab05ff
- Update to 102.4.0 build1
ab05ff
5b16e6
* Tue Oct 11 2022 Jan Horak <jhorak@redhat.com> - 102.3.0-7
5b16e6
- Fix for expat CVE-2022-40674 and non functional webrtc
5b16e6
481763
* Tue Sep 13 2022 Jan Horak <jhorak@redhat.com> - 102.3.0-6
481763
- Update to 102.3.0 build1
200a0a
2f536f
* Thu Jul 21 2022 Eike Rathke <erack@redhat.com> - 91.12.0-1
2f536f
- Update to 91.12.0 build1
2f536f
9e2646
* Thu Jun 23 2022 Eike Rathke <erack@redhat.com> - 91.11.0-2
9e2646
- Update to 91.11.0 build2
9e2646
9e2646
* Tue Jun 21 2022 Eike Rathke <erack@redhat.com> - 91.11.0-1
9e2646
- Update to 91.11.0 build1
9e2646
0ef921
* Tue May 24 2022 Eike Rathke <erack@redhat.com> - 91.10.0-1
0ef921
- Update to 91.10.0 build1
0ef921
d10ee9
* Fri May 20 2022 Jan Horak <jhorak@redhat.com> - 91.9.1-1
d10ee9
- Update to 91.9.1 build1
d10ee9
92cce7
* Tue Apr 26 2022 Eike Rathke <erack@redhat.com> - 91.9.0-1
92cce7
- Update to 91.9.0
92cce7
9b33a3
* Tue Apr 05 2022 Eike Rathke <erack@redhat.com> - 91.8.0-1
9b33a3
- Update to 91.8.0
9b33a3
c88246
* Mon Mar 07 2022 Eike Rathke <erack@redhat.com> - 91.7.0-3
c88246
- Update to 91.7.0 build3
c88246
c88246
* Wed Mar 02 2022 Jan Horak <jhorak@redhat.com> - 91.7.0-2
c88246
- Added expat backports of CVE-2022-25235, CVE-2022-25236 and CVE-2022-25315
c88246
c88246
* Tue Mar 01 2022 Eike Rathke <erack@redhat.com> - 91.7.0-1
c88246
- Update to 91.7.0 build2
c88246
c88246
* Fri Feb 25 2022 Jan Horak <jhorak@redhat.com> - 91.6.0-2
c88246
- Install langpacks to the browser/extensions to make them available in UI:
c88246
  rhbz#2030190
c88246
391ea6
* Wed Feb 02 2022 Eike Rathke <erack@redhat.com> - 91.6.0-1
391ea6
- Update to 91.6.0 build1
391ea6
391ea6
* Wed Feb 02 2022 Jan Horak <jhorak@redhat.com> - 91.5.0-2
391ea6
- Use default update channel to fix non working enterprise policies:
391ea6
  rhbz#2044667
391ea6
a9b9fb
* Thu Jan 06 2022 Eike Rathke <erack@redhat.com> - 91.5.0-1
a9b9fb
- Update to 91.5.0 build1
a9b9fb
391ea6
* Mon Dec 13 2021 Jan Horak <jhorak@redhat.com> - 91.4.0-2
391ea6
- Added fix for failing addons signatures.
391ea6
170e37
* Wed Dec 01 2021 Eike Rathke <erack@redhat.com> - 91.4.0-1
170e37
- Update to 91.4.0 build1
170e37
c5a455
* Mon Nov 01 2021 Eike Rathke <erack@redhat.com> - 91.3.0-1
c5a455
- Update to 91.3.0 build1
c5a455
04327a
* Thu Oct 21 2021 Jan Horak <jhorak@redhat.com> - 91.2.0-5
04327a
- Fixed crashes when FIPS is enabled.
04327a
488d12
* Mon Oct 04 2021 Jan Horak <jhorak@redhat.com> - 91.2.0-4
488d12
- Disable webrender on the s390x due to wrong colors: rhbz#2009503
488d12
488d12
* Wed Sep 29 2021 Jan Horak <jhorak@redhat.com> - 91.2.0-3
488d12
- Update to 91.2.0 build1
488d12
488d12
* Wed Sep 15 2021 Jan Horak <jhorak@redhat.com> - 91.1.0-1
488d12
- Update to 91.1.0 build1
488d12
488d12
* Tue Aug 17 2021 Jan Horak <jhorak@redhat.com>
488d12
- Update to 91.0.1 build1
113162
488d12
* Tue Aug 10 2021 Jan Horak <jhorak@redhat.com> - 91.0-1
488d12
- Update to 91.0 ESR
2ebcee
488d12
* Thu Jul 29 2021 Jan Horak <jhorak@redhat.com> - 91.0-1
488d12
- Update to 91.0b8
2ebcee
2ebcee
* Fri Jul 16 2021 Jan Horak <jhorak@redhat.com> - 78.12.0-2
2ebcee
- Rebuild to pickup older nss
2ebcee
1a0d85
* Wed Jul 07 2021 Eike Rathke <erack@redhat.com> - 78.12.0-1
1a0d85
- Update to 78.12.0 build1
1a0d85
28122c
* Mon May 31 2021 Eike Rathke <erack@redhat.com> - 78.11.0-3
28122c
- Update to 78.11.0 build2 (release)
28122c
28122c
* Thu May 27 2021 Eike Rathke <erack@redhat.com> - 78.11.0-2
28122c
- Fix rhel_minor_version for dist .el8_4 and .el8
28122c
28122c
* Tue May 25 2021 Eike Rathke <erack@redhat.com> - 78.11.0-1
28122c
- Update to 78.11.0 build1
28122c
58cb8d
* Tue Apr 20 2021 Eike Rathke <erack@redhat.com> - 78.10.0-1
58cb8d
- Update to 78.10.0
58cb8d
bbd8ff
* Wed Mar 17 2021 Eike Rathke <erack@redhat.com> - 78.9.0-1
bbd8ff
- Update to 78.9.0 build1
bbd8ff
62df9b
* Wed Feb 17 2021 Eike Rathke <erack@redhat.com> - 78.8.0-1
62df9b
- Update to 78.8.0 build2
62df9b
62df9b
* Tue Feb 09 2021 Eike Rathke <erack@redhat.com> - 78.7.1-1
62df9b
- Update to 78.7.1
62df9b
62df9b
* Tue Feb 09 2021 Jan Horak <jhorak@redhat.com> - 78.7.0-3
62df9b
- Fixing install prefix for the homepage
62df9b
2329c5
* Fri Jan 22 2021 Eike Rathke <erack@redhat.com> - 78.7.0-2
2329c5
- Update to 78.7.0 build2
2329c5
2329c5
* Wed Jan 20 2021 Eike Rathke <erack@redhat.com> - 78.7.0-1
2329c5
- Update to 78.7.0 build1
2329c5
844667
* Wed Jan  6 2021 Eike Rathke <erack@redhat.com> - 78.6.1-1
844667
- Update to 78.6.1 build1
844667
62f5ec
* Thu Dec 10 2020 Jan Horak <jhorak@redhat.com> - 78.6.0-1
62f5ec
- Update to 78.6.0 build1
62f5ec
e0a0b4
* Wed Nov 18 2020 Jan Horak <jhorak@redhat.com> - 78.5.0-1
e0a0b4
- Update to 78.5.0 build1
e0a0b4
2d7a08
* Tue Nov 10 2020 erack@redhat.com - 78.4.1-1
2d7a08
- Update to 78.4.1
2d7a08
2d7a08
* Tue Nov 10 2020 Jan Horak <jhorak@redhat.com> - 78.4.0-3
2d7a08
- Fixing flatpak build, fixing firefox.sh.in to not disable langpacks loading
2d7a08
2d7a08
* Thu Oct 29 2020 Jan Horak <jhorak@redhat.com> - 78.4.0-2
2d7a08
- Enable addon sideloading
2d7a08
d3afb2
* Fri Oct 16 2020 Jan Horak <jhorak@redhat.com> - 78.4.0-1
d3afb2
- Update to 78.4.0 build2
d3afb2
e98f2c
* Fri Sep 18 2020 Jan Horak <jhorak@redhat.com>
e98f2c
- Update to 78.3.0 build1
e98f2c
e98f2c
* Tue Aug 18 2020 Jan Horak <jhorak@redhat.com> - 78.2.0-3
e98f2c
- Update to 78.2.0 build1
812ff3
e98f2c
* Fri Jul 24 2020 Jan Horak <jhorak@redhat.com>
ec3a5b
- Update to 68.11.0 build1
ec3a5b
4c7c17
* Fri Jun 26 2020 Jan Horak <jhorak@redhat.com>
4c7c17
- Update to 68.10.0 build1
4c7c17
5bf1f5
* Fri May 29 2020 Jan Horak <jhorak@redhat.com>
5bf1f5
- Update to 68.9.0 build1
5bf1f5
- Added patch for pipewire 0.3
5bf1f5
5bf1f5
* Mon May 11 2020 Jan Horak <jhorak@redhat.com>
5bf1f5
- Added s390x specific patches
5bf1f5
f5d0dc
* Wed Apr 29 2020 Jan Horak <jhorak@redhat.com>
f5d0dc
- Update to 68.8.0 build1
f5d0dc
f5d0dc
* Thu Apr 23 2020 Martin Stransky <stransky@redhat.com> - 68.7.0-3
f5d0dc
- Added fix for rhbz#1821418
f5d0dc
10686e
* Tue Apr 07 2020 Jan Horak <jhorak@redhat.com> - 68.7.0-2
10686e
- Update to 68.7.0 build3
10686e
79653b
* Mon Apr  6 2020 Jan Horak <jhorak@redhat.com> - 68.6.1-1
79653b
- Update to 68.6.1 ESR
79653b
727eab
* Wed Mar 04 2020 Jan Horak <jhorak@redhat.com>
727eab
- Update to 68.6.0 build1
727eab
727eab
* Mon Feb 24 2020 Martin Stransky <stransky@redhat.com> - 68.5.0-3
727eab
- Added fix for rhbz#1805667
727eab
- Enabled mzbz@1170092 - Firefox prefs at /etc
727eab
aec9d4
* Fri Feb 07 2020 Jan Horak <jhorak@redhat.com>
aec9d4
- Update to 68.5.0 build2
aec9d4
aec9d4
* Wed Feb 05 2020 Jan Horak <jhorak@redhat.com>
aec9d4
- Update to 68.5.0 build1
aec9d4
ce8c9f
* Wed Jan 08 2020 Jan Horak <jhorak@redhat.com>
ce8c9f
- Update to 68.4.1esr build1
ce8c9f
ce8c9f
* Fri Jan 03 2020 Jan Horak <jhorak@redhat.com>
ce8c9f
- Update to 68.4.0esr build1
ce8c9f
ce8c9f
* Wed Dec 18 2019 Jan Horak <jhorak@redhat.com>
ce8c9f
- Fix for wrong intl.accept_lang when using non en-us langpack
ce8c9f
edb57c
* Wed Nov 27 2019 Martin Stransky <stransky@redhat.com> - 68.3.0-1
edb57c
- Update to 68.3.0 ESR
edb57c
edb57c
* Thu Oct 24 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-4
edb57c
- Added patch for TLS 1.3 support.
edb57c
edb57c
* Wed Oct 23 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-3
edb57c
- Rebuild
edb57c
edb57c
* Mon Oct 21 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-2
edb57c
- Rebuild
edb57c
83e1c4
* Thu Oct 17 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-1
83e1c4
- Update to 68.2.0 ESR
83e1c4
83e1c4
* Thu Oct 10 2019 Martin Stransky <stransky@redhat.com> - 68.1.0-6
83e1c4
- Enable system nss on RHEL6
83e1c4
c82edc
* Thu Sep  5 2019 Jan Horak <jhorak@redhat.com> - 68.1.0-2
c82edc
- Enable building langpacks
64d073
c82edc
* Wed Aug 28 2019 Jan Horak <jhorak@redhat.com> - 68.1.0-1
c82edc
- Update to 68.1.0 ESR
64d073
c82edc
* Mon Aug 5 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-4
c82edc
- Enable system nss
484e5e
c82edc
* Mon Jul 29 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-3
c82edc
- Enable official branding
484e5e
c82edc
* Fri Jul 26 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-2
c82edc
- Enabled PipeWire on RHEL8
585d85
c82edc
* Fri Jul 26 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-1
c82edc
- Updated to 68.0.1 ESR
585d85
c82edc
* Tue Jul 16 2019 Jan Horak <jhorak@redhat.com> - 68.0-0.11
c82edc
- Update to 68.0 ESR
585d85
c82edc
* Tue Jun 25 2019 Martin Stransky <stransky@redhat.com> - 68.0-0.10
c82edc
- Updated to 68.0 alpha 13
c82edc
- Enabled second arches
c1be9b
c82edc
* Fri Mar 22 2019 Martin Stransky <stransky@redhat.com> - 68.0-0.1
c82edc
- Updated to 68.0 alpha
9c9a85
073c86
* Fri Mar 15 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-3
073c86
- Added Google API keys (mozbz#1531176)
073c86
073c86
* Thu Mar 14 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-2
073c86
- Update to 60.6.0 ESR (Build 2)
073c86
073c86
* Wed Mar 13 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-1
073c86
- Update to 60.6.0 ESR (Build 1)
073c86
9844c3
* Wed Feb 13 2019 Jan Horak <jhorak@redhat.com> - 60.5.1-1
9844c3
- Update to 60.5.1 ESR
9844c3
9844c3
* Wed Feb 6 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-3
9844c3
- Added fix for rhbz#1672424 - Firefox crashes on NFS drives.
32a056
7468b5
* Fri Jan 25 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-2
7468b5
- Updated to 60.5.0 ESR build2
7468b5
7468b5
* Tue Jan 22 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-1
7468b5
- Updated to 60.5.0 ESR build1
7468b5
7468b5
* Thu Jan 10 2019 Jan Horak <jhorak@redhat.com> - 60.4.0-3
7468b5
- Fixing fontconfig warnings (rhbz#1601475)
7468b5
7468b5
* Wed Jan  9 2019 Jan Horak <jhorak@redhat.com> - 60.4.0-2
7468b5
- Added pipewire patch from Tomas Popela (rhbz#1664270)
400df2
b26a6b
* Wed Dec  5 2018 Jan Horak <jhorak@redhat.com> - 60.4.0-1
b26a6b
- Update to 60.4.0 ESR
b26a6b
b26a6b
* Tue Dec  4 2018 Jan Horak <jhorak@redhat.com> - 60.3.0-2
b26a6b
- Added firefox-gnome-shell-extension
b26a6b
b26a6b
* Fri Oct 19 2018 Jan Horak <jhorak@redhat.com> - 60.3.0-1
b26a6b
- Update to 60.3.0 ESR
b26a6b
332c93
* Wed Oct 10 2018 Jan Horak <jhorak@redhat.com> - 60.2.2-2
332c93
- Added patch for rhbz#1633932
332c93
6a1aae
* Tue Oct  2 2018 Jan Horak <jhorak@redhat.com> - 60.2.2-1
6a1aae
- Update to 60.2.2 ESR
a5ff67
b6986f
* Mon Sep 24 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-1
b6986f
- Update to 60.2.1 ESR
6d119b
58eb7f
* Fri Aug 31 2018 Jan Horak <jhorak@redhat.com> - 60.2.0-1
58eb7f
- Update to 60.2.0 ESR
58eb7f
58eb7f
* Tue Aug 28 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-9
58eb7f
- Do not set user agent (rhbz#1608065)
58eb7f
- GTK dialogs are localized now (rhbz#1619373)
58eb7f
- JNLP association works again (rhbz#1607457)
58eb7f
58eb7f
* Thu Aug 16 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-8
58eb7f
- Fixed homepage and bookmarks (rhbz#1606778)
58eb7f
- Fixed missing file associations in RHEL6 (rhbz#1613565)
58eb7f
58eb7f
* Thu Jul 12 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-7
58eb7f
- Run at-spi-bus if not running already (for the bundled gtk3)
58eb7f
58eb7f
* Mon Jul  9 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-6
58eb7f
- Fix for missing schemes for bundled gtk3
58eb7f
58eb7f
* Mon Jun 25 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-5
58eb7f
- Added mesa-libEGL dependency to gtk3/rhel6
ce03ed
d417c4
* Sun Jun 24 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-4
d417c4
- Disabled jemalloc on all second arches
d417c4
d417c4
* Fri Jun 22 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-3
d417c4
- Updated to 60.1.0 ESR build2
d417c4
d417c4
* Thu Jun 21 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-2
d417c4
- Disabled jemalloc on second arches
d417c4
d417c4
* Wed Jun 20 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-1
d417c4
- Updated to 60.1.0 ESR
d417c4
d417c4
* Wed Jun 13 2018 Jan Horak <jhorak@redhat.com> - 60.0-12
d417c4
- Fixing bundled libffi issues
d417c4
- Readded some requirements
d417c4
d417c4
* Mon Jun 11 2018 Martin Stransky <stransky@redhat.com> - 60.0-10
d417c4
- Added fix for mozilla BZ#1436242 - IPC crashes.
48ab33
d417c4
* Mon Jun 11 2018 Jan Horak <jhorak@redhat.com> - 60.0-9
d417c4
- Bundling libffi for the sec-arches
d417c4
- Added openssl-devel for the Python
d417c4
- Fixing bundled gtk3
d3672c
d417c4
* Fri May 18 2018 Martin Stransky <stransky@redhat.com> - 60.0-8
d417c4
- Added fix for mozilla BZ#1458492
41fb10
d417c4
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-7
d417c4
- Added patch from rhbz#1498561 to fix ppc64(le) crashes.
d417c4
d417c4
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-6
d417c4
- Disabled jemalloc on second arches
d417c4
d417c4
* Sun May  6 2018 Jan Horak <jhorak@redhat.com> - 60.0-4
d417c4
- Update to 60.0 ESR
f0612e
746756
* Thu Mar  8 2018 Jan Horak <jhorak@redhat.com> - 52.7.0-1
746756
- Update to 52.7.0 ESR
746756
d417c4
* Mon Jan 29 2018 Martin Stransky <stransky@redhat.com> - 52.6.0-2
d417c4
- Build Firefox for desktop arches only (x86_64 and ppc64le)
e856dc
d417c4
* Thu Jan 18 2018 Martin Stransky <stransky@redhat.com> - 52.6.0-1
d417c4
- Update to 52.6.0 ESR
56500d
d074aa
* Thu Nov  9 2017 Jan Horak <jhorak@redhat.com> - 52.5.0-1
d074aa
- Update to 52.5.0 ESR
dfb614
07688c
* Mon Sep 25 2017 Jan Horak <jhorak@redhat.com> - 52.4.0-1
07688c
- Update to 52.4.0 ESR
3dae0c
07688c
* Thu Aug  3 2017 Jan Horak <jhorak@redhat.com> - 52.3.0-3
ecb567
- Update to 52.3.0 ESR (b2)
07688c
- Require correct nss version
c2606d
81cc07
* Tue Jun 13 2017 Jan Horak <jhorak@redhat.com> - 52.2.0-1
7b80ca
- Update to 52.2.0 ESR
7b80ca
81cc07
* Wed May 24 2017 Jan Horak <jhorak@redhat.com> - 52.1.2-1
81cc07
- Update to 52.1.2 ESR
00e548
81cc07
* Wed May 24 2017 Jan Horak <jhorak@redhat.com> - 52.0-7
81cc07
- Added fix for accept language (rhbz#1454322)
99a998
81cc07
* Wed Mar 22 2017 Jan Horak <jhorak@redhat.com> - 52.0-6
81cc07
- Removing patch required for older NSS from RHEL 7.3
81cc07
- Added patch for rhbz#1414564
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
481763