c59d34
%global disable_toolsets  0
c59d34
c4efd4
%ifarch %{ix86}
c4efd4
  # no debug package for the i686 because oom on i686 with debuginfos
c4efd4
  #FIXME revise if still necessary
c4efd4
  %global debug_package %{nil}
b21e02
%endif
3f591a
ad8adb
%{lua:
ad8adb
function dist_to_rhel_minor(str, start)
ad8adb
  match = string.match(str, ".module%+el8.%d+")
ad8adb
  if match then
ad8adb
     return string.sub(match, 13)
ad8adb
  end
ad8adb
  match = string.match(str, ".el8_%d+")
ad8adb
  if match then
ad8adb
     return string.sub(match, 6)
ad8adb
  end
c277d2
  match = string.match(str, ".el8")
c277d2
  if match then
c277d2
     return 5
c277d2
  end
ad8adb
  return -1
ad8adb
end}
ad8adb
ad8adb
%global rhel_minor_version %{lua:print(dist_to_rhel_minor(rpm.expand("%dist")))}
c4efd4
%global build_with_clang  0
b21e02
3f591a
%global system_nss        1
b41e6b
%global bundle_nss        0
b41e6b
c59d34
%if 0%{?rhel} == 8
c4efd4
  %if %{rhel_minor_version} < 3
c4efd4
    %global bundle_nss        1
c4efd4
    %global system_nss        1
3f591a
  %endif
c59d34
%endif
b41e6b
c59d34
%define use_bundled_ffi   0
b41e6b
c4efd4
%global use_llvmts        0
c4efd4
%global use_nodejsts      0
c4efd4
%if 0%{?rhel} < 8
c4efd4
%global use_llvmts        1
c4efd4
%global use_nodejsts      1
3f591a
%endif
3f591a
c4efd4
%global nodejs_rb         nodejs
c4efd4
%global llvm_version      7.0
c59d34
c59d34
%if 0%{?rhel} == 8
c4efd4
%global llvm_version      6.0
c59d34
%endif
c59d34
c4efd4
%if 0%{?rhel} == 7
c4efd4
  %global use_dts         1
c4efd4
  %global nodejs_rb       rh-nodejs10-nodejs
c4efd4
  %global llvm_version    11.0
c59d34
%endif
c59d34
c59d34
%global use_rustts        1
c4efd4
%if 0%{?rhel} >= 9
c4efd4
  %global use_rustts      0
c59d34
%endif
c59d34
c4efd4
%global dts_version       10
c4efd4
%global rust_version      1.52
c4efd4
c59d34
%if 0%{?disable_toolsets}
c59d34
%global use_rustts        0
c59d34
%global use_dts           0
c59d34
%global use_llvmts        0
c59d34
%endif
c59d34
c59d34
# Big endian platforms
c59d34
%ifarch ppc64 s390x
c59d34
# Javascript Intl API is not supported on big endian platforms right now:
c59d34
# https://bugzilla.mozilla.org/show_bug.cgi?id=1322212
c59d34
%global big_endian        1
c59d34
%endif
c59d34
c59d34
# Hardened build?
c59d34
%global hardened_build    1
c59d34
c59d34
%ifarch %{ix86} x86_64
c59d34
%global run_tests         0
c59d34
%else
c59d34
%global run_tests         0
c59d34
%endif
c59d34
c59d34
# Build as a debug package?
c59d34
%global debug_build       0
c59d34
c4efd4
# We need to use full path because of flatpak where datadir is /app/share
ad8adb
%global default_bookmarks_file  /usr/share/bookmarks/default-bookmarks.html
c59d34
%global firefox_app_id  \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
c59d34
# Minimal required versions
c59d34
c59d34
%if 0%{?system_nss}
b41e6b
%global nspr_version 4.25
c59d34
# NSS/NSPR quite often ends in build override, so as requirement the version
c59d34
# we're building against could bring us some broken dependencies from time to time.
c4efd4
#%global nspr_build_version %(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536)
c59d34
%global nspr_build_version %{nspr_version}
b41e6b
%global nss_version 3.53.1
c4efd4
#%global nss_build_version %(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536)
c59d34
%global nss_build_version %{nss_version}
c59d34
%endif
c59d34
b41e6b
# GTK3 bundling
b41e6b
%define avoid_bundled_rebuild   0
b41e6b
c4efd4
%define bundled_install_path %{mozappdir}/bundled
c59d34
c59d34
# We could use %%include, but in %%files, %%post and other sections, but in these
c59d34
# sections it could lead to syntax errors about unclosed %%if. Work around it by
c59d34
# using the following macro
c59d34
%define include_file() %{expand:%(cat '%1')}
c59d34
c59d34
%global mozappdir     %{_libdir}/%{name}
c59d34
%global mozappdirdev  %{_libdir}/%{name}-devel-%{version}
69c14a
%global langpackdir   %{mozappdir}/langpacks
c59d34
%global tarballdir    %{name}-%{version}
c59d34
%global pre_version   esr
c59d34
c59d34
%global official_branding       1
c59d34
%global build_langpacks         1
c59d34
c59d34
Summary:        Mozilla Firefox Web browser
c59d34
Name:           firefox
c4efd4
Version:        91.2.0
c4efd4
Release:        1%{?dist}
c59d34
URL:            https://www.mozilla.org/firefox/
c59d34
License:        MPLv1.1 or GPLv2+ or LGPLv2+
c4efd4
%if 0%{?rhel} == 9
c4efd4
ExcludeArch:    %{ix86}
c4efd4
%endif
c4efd4
%if 0%{?rhel} == 8
c4efd4
ExcludeArch:    %{ix86}
c4efd4
%endif
c59d34
%if 0%{?rhel} == 7
c59d34
ExcludeArch:    s390 ppc
c59d34
%endif
c59d34
c4efd4
# We can't use the official tarball as it contains some test files that use
c4efd4
# licenses that are rejected by Red Hat Legal.
c4efd4
# The official tarball has to be always processed by the process-official-tarball
c4efd4
# script.
c4efd4
# Link to official tarball: https://hg.mozilla.org/releases/mozilla-release/archive/firefox-%%{version}%%{?pre_version}.source.tar.xz
c4efd4
Source0:        firefox-%{version}%{?pre_version}.processed-source.tar.xz
c59d34
%if %{build_langpacks}
c4efd4
Source1:        firefox-langpacks-%{version}%{?pre_version}-20210929.tar.xz
c59d34
%endif
c4efd4
Source2:        cbindgen-vendor.tar.xz
c4efd4
Source3:        process-official-tarball
c59d34
Source10:       firefox-mozconfig
c59d34
%if 0%{?centos}
c59d34
Source12:       firefox-centos-default-prefs.js
c59d34
%else
c59d34
Source12:       firefox-redhat-default-prefs.js
c59d34
%endif
c59d34
Source20:       firefox.desktop
c59d34
Source21:       firefox.sh.in
c59d34
Source23:       firefox.1
c59d34
Source24:       mozilla-api-key
c59d34
Source25:       firefox-symbolic.svg
c59d34
Source26:       distribution.ini
c59d34
Source27:       google-api-key
c59d34
Source28:       node-stdout-nonblocking-wrapper
c59d34
c4efd4
Source403:      nss-3.67.0-6.el8_1.src.rpm
3f591a
Source401:      nss-setup-flags-env.inc
c4efd4
Source402:      nspr-4.32.0-1.el8_1.src.rpm
c4efd4
c59d34
# Build patches
c59d34
Patch1001:      build-ppc64le-inline.patch
c4efd4
Patch1008:        build-rhel7-nasm-dwarf.patch
c4efd4
Patch1009:        build-debuginfo-fix.patch
c59d34
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1699374
c59d34
Patch4:         build-mozconfig-fix.patch
c59d34
Patch6:         build-nss-version.patch
c59d34
c59d34
# Fedora/RHEL specific patches
c59d34
Patch215:        firefox-enable-addons.patch
c59d34
Patch219:        rhbz-1173156.patch
c59d34
Patch224:        mozilla-1170092.patch
c59d34
c59d34
# Upstream patches
c59d34
c59d34
Patch503:        mozilla-s390-context.patch
c59d34
Patch505:        mozilla-bmo1005535.patch
c59d34
Patch506:        mozilla-bmo1504834-part1.patch
c59d34
Patch507:        mozilla-bmo1504834-part2.patch
c59d34
Patch508:        mozilla-bmo1504834-part3.patch
c59d34
Patch509:        mozilla-bmo1504834-part4.patch
c59d34
Patch510:        mozilla-bmo1554971.patch
c59d34
Patch511:        mozilla-bmo1602730.patch
c59d34
Patch512:        mozilla-bmo849632.patch
3f591a
Patch513:        mozilla-bmo998749.patch
3f591a
Patch514:        mozilla-s390x-skia-gradient.patch
3f591a
Patch515:        mozilla-bmo1626236.patch
ad8adb
Patch518:        D110204-fscreen.diff
c59d34
69c14a
# Flatpak patches
b41e6b
c59d34
%if %{?system_nss}
3f591a
%if !0%{?bundle_nss}
c59d34
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
c59d34
BuildRequires:  pkgconfig(nss) >= %{nss_version}
c59d34
BuildRequires:  nss-static >= %{nss_version}
c59d34
%endif
3f591a
%endif
c59d34
BuildRequires:  pkgconfig(libpng)
c59d34
BuildRequires:  xz
c59d34
BuildRequires:  libXt-devel
c59d34
BuildRequires:  mesa-libGL-devel
c59d34
Requires:       liberation-fonts-common
c59d34
Requires:       liberation-sans-fonts
c59d34
BuildRequires:  libjpeg-devel
c59d34
BuildRequires:  zip
c59d34
BuildRequires:  bzip2-devel
c59d34
BuildRequires:  pkgconfig(zlib)
c4efd4
#BuildRequires:  pkgconfig(libIDL-2.0)
c59d34
BuildRequires:  pkgconfig(gtk+-2.0)
c59d34
BuildRequires:  krb5-devel
c59d34
BuildRequires:  pkgconfig(pango)
c4efd4
BuildRequires:  pkgconfig(freetype2) >= 2.1.9
c59d34
BuildRequires:  pkgconfig(xt)
c59d34
BuildRequires:  pkgconfig(xrender)
c59d34
BuildRequires:  pkgconfig(libstartup-notification-1.0)
c59d34
BuildRequires:  pkgconfig(libnotify)
c59d34
BuildRequires:  pkgconfig(dri)
c59d34
BuildRequires:  pkgconfig(libcurl)
c59d34
BuildRequires:  dbus-glib-devel
c4efd4
BuildRequires:  m4
c4efd4
c59d34
BuildRequires:  pkgconfig(libpulse)
c59d34
c59d34
%if 0%{?use_dts}
c59d34
BuildRequires:  devtoolset-%{dts_version}-gcc-c++
c59d34
BuildRequires:  devtoolset-%{dts_version}-gcc
c59d34
BuildRequires:  devtoolset-%{dts_version}-libatomic-devel
c59d34
%endif
c4efd4
%if 0%{?rhel} == 9
c4efd4
BuildRequires:  gcc
c4efd4
BuildRequires:  gcc-c++
c4efd4
BuildRequires:  cargo
c4efd4
BuildRequires:  rust
c4efd4
BuildRequires:  clang clang-libs llvm
c59d34
%endif
c59d34
c59d34
BuildRequires:  scl-utils
b41e6b
BuildRequires:  findutils
c59d34
c4efd4
BuildRequires:  %{nodejs_rb} >= 10.21
c4efd4
BuildRequires:  python3
c59d34
c59d34
%if 0%{?rhel} == 8
c59d34
BuildRequires:  cargo
c59d34
BuildRequires:  rust >= %{rust_version}
c59d34
BuildRequires:  llvm >= %{llvm_version}
c59d34
BuildRequires:  llvm-devel >= %{llvm_version}
c59d34
BuildRequires:  clang >= %{llvm_version}
c59d34
BuildRequires:  clang-devel >= %{llvm_version}
c59d34
BuildRequires:  rustfmt >= %{rust_version}
c59d34
%else
c59d34
%if 0%{?use_rustts}
c4efd4
BuildRequires:  rust-toolset-%{rust_version}
b41e6b
%endif
c59d34
%if 0%{?use_llvmts}
c59d34
BuildRequires:  llvm-toolset-%{llvm_version}
c59d34
BuildRequires:  llvm-toolset-%{llvm_version}-llvm-devel
c4efd4
BuildRequires:  llvm-toolset-%{llvm_version}-clang
c4efd4
BuildRequires:  llvm-toolset-%{llvm_version}-clang-devel
c59d34
%endif
c59d34
%endif
c59d34
c4efd4
BuildRequires:  nasm
c4efd4
%if %{build_with_clang}
c4efd4
BuildRequires:  lld
c59d34
%endif
c59d34
c59d34
%if 0%{?rhel} == 8
ad8adb
  %if %{rhel_minor_version} >= 3
3f591a
BuildRequires:  pkgconfig(libpipewire-0.3)
3f591a
  %else
b41e6b
BuildRequires:  pipewire-devel
3f591a
  %endif
c59d34
%endif
c59d34
c59d34
BuildRequires:        gtk3-devel
c59d34
BuildRequires:        glib2-devel
c4efd4
BuildRequires:        perl-interpreter
c59d34
3f591a
# Bundled nss/nspr requirement
3f591a
%if 0%{?bundle_nss}
3f591a
BuildRequires:    nss-softokn
3f591a
BuildRequires:    sqlite-devel
3f591a
BuildRequires:    zlib-devel
3f591a
BuildRequires:    pkgconfig
3f591a
BuildRequires:    gawk
3f591a
BuildRequires:    psmisc
3f591a
BuildRequires:    perl-interpreter
3f591a
BuildRequires:    gcc-c++
3f591a
BuildRequires:    xmlto
3f591a
%endif
3f591a
c4efd4
BuildRequires:    libstdc++-static
c4efd4
c59d34
Requires:       mozilla-filesystem
c59d34
Requires:       p11-kit-trust
c59d34
%if %{?system_nss}
3f591a
%if !0%{?bundle_nss}
c59d34
Requires:       nspr >= %{nspr_build_version}
c59d34
Requires:       nss >= %{nss_build_version}
c59d34
%endif
3f591a
%endif
c59d34
c59d34
BuildRequires:  desktop-file-utils
c59d34
BuildRequires:  system-bookmarks
c59d34
Requires:       redhat-indexhtml
c59d34
c59d34
%if %{?run_tests}
c59d34
BuildRequires:  xorg-x11-server-Xvfb
c59d34
%endif
c59d34
c59d34
BuildRequires:  pkgconfig(libffi)
3f591a
69c14a
%if 0%{?big_endian}
69c14a
  %if 0%{?flatpak}
69c14a
BuildRequires:  icu
69c14a
  %endif
69c14a
%endif
69c14a
c59d34
Obsoletes:      mozilla <= 37:1.7.13
c59d34
Provides:       webclient
c59d34
c4efd4
# Bundled libraries
c4efd4
Provides: bundled(angle)
c4efd4
Provides: bundled(cairo)
c4efd4
Provides: bundled(graphite2)
c4efd4
Provides: bundled(harfbuzz)
c4efd4
Provides: bundled(ots)
c4efd4
Provides: bundled(sfntly)
c4efd4
Provides: bundled(skia)
c4efd4
Provides: bundled(thebes)
c4efd4
Provides: bundled(WebRender)
c4efd4
Provides: bundled(audioipc-2)
c4efd4
Provides: bundled(ffvpx)
c4efd4
Provides: bundled(kissfft)
c4efd4
Provides: bundled(libaom)
c4efd4
Provides: bundled(libcubeb)
c4efd4
Provides: bundled(libdav1d)
c4efd4
Provides: bundled(libjpeg)
c4efd4
Provides: bundled(libmkv)
c4efd4
Provides: bundled(libnestegg)
c4efd4
Provides: bundled(libogg)
c4efd4
Provides: bundled(libopus)
c4efd4
Provides: bundled(libpng)
c4efd4
Provides: bundled(libsoundtouch)
c4efd4
Provides: bundled(libspeex_resampler)
c4efd4
Provides: bundled(libtheora)
c4efd4
Provides: bundled(libtremor)
c4efd4
Provides: bundled(libvorbis)
c4efd4
Provides: bundled(libvpx)
c4efd4
Provides: bundled(libwebp)
c4efd4
Provides: bundled(libyuv)
c4efd4
Provides: bundled(mp4parse-rust)
c4efd4
Provides: bundled(mtransport)
c4efd4
Provides: bundled(openmax_dl)
c4efd4
Provides: bundled(double-conversion)
c4efd4
Provides: bundled(brotli)
c4efd4
Provides: bundled(fdlibm)
c4efd4
Provides: bundled(freetype2)
c4efd4
Provides: bundled(libmar)
c4efd4
Provides: bundled(woff2)
c4efd4
Provides: bundled(xz-embedded)
c4efd4
Provides: bundled(zlib)
c4efd4
Provides: bundled(expat)
c4efd4
Provides: bundled(msgpack-c)
c4efd4
Provides: bundled(libprio)
c4efd4
Provides: bundled(rlbox_sandboxing_api)
c4efd4
Provides: bundled(sqlite3)
c4efd4
c4efd4
%if 0%{?bundle_nss}
c4efd4
Provides: bundled(nss) = 3.67.0
c4efd4
Provides: bundled(nspr) = 4.32.0
c4efd4
%endif
c4efd4
c59d34
%description
c59d34
Mozilla Firefox is an open-source web browser, designed for standards
c59d34
compliance, performance and portability.
c59d34
c59d34
%if %{run_tests}
c59d34
%global testsuite_pkg_name mozilla-%{name}-testresults
c59d34
%package -n %{testsuite_pkg_name}
c59d34
Summary: Results of testsuite
c59d34
%description -n %{testsuite_pkg_name}
c59d34
This package contains results of tests executed during build.
c59d34
%files -n %{testsuite_pkg_name}
c59d34
/test_results
c59d34
%endif
c59d34
c59d34
#---------------------------------------------------------------------
c59d34
%prep
3f591a
echo "Build environment"
3f591a
echo "dist                  %{?dist}"
ad8adb
echo "RHEL 8 minor version: %{rhel_minor_version}"
3f591a
echo "use_bundled_ffi       %{?use_bundled_ffi}"
3f591a
echo "bundle_nss            %{?bundle_nss}"
3f591a
echo "system_nss            %{?system_nss}"
3f591a
echo "use_rustts            %{?use_rustts}"
3f591a
3f591a
c59d34
%setup -q -n %{tarballdir}
c59d34
# Build patches, can't change backup suffix from default because during build
c59d34
# there is a compare of config and js/config directories and .orig suffix is
c59d34
# ignored during this compare.
c59d34
c59d34
%patch4  -p1 -b .build-mozconfig-fix
c4efd4
%patch6  -p1 -b .nss-version
c59d34
c59d34
# Fedora patches
c59d34
%patch215 -p1 -b .addons
c59d34
%patch219 -p1 -b .rhbz-1173156
c59d34
%patch224 -p1 -b .1170092
69c14a
c59d34
# Patch for big endian platforms only
c59d34
%if 0%{?big_endian}
c59d34
%endif
c59d34
c59d34
%patch503 -p1 -b .mozilla-s390-context
c59d34
%patch505 -p1 -b .mozilla-bmo1005535
c59d34
%patch506 -p1 -b .mozilla-bmo1504834-part1
c59d34
%patch507 -p1 -b .mozilla-bmo1504834-part2
c59d34
%patch508 -p1 -b .mozilla-bmo1504834-part3
c59d34
%patch509 -p1 -b .mozilla-bmo1504834-part4
c59d34
%patch510 -p1 -b .mozilla-bmo1554971
c59d34
%patch511 -p1 -b .mozilla-bmo1602730
c59d34
%patch512 -p1 -b .mozilla-bmo849632
3f591a
%patch513 -p1 -b .mozilla-bmo998749
3f591a
%patch514 -p1 -b .mozilla-s390x-skia-gradient
3f591a
%patch515 -p1 -b .mozilla-bmo1626236
ad8adb
%patch518 -p1 -b .D110204-fscreen.diff
b41e6b
b41e6b
c59d34
%patch1001 -p1 -b .ppc64le-inline
c4efd4
%if 0%{?rhel} == 7
c4efd4
# fix the /usr/lib/rpm/debugedit: canonicalization unexpectedly shrank by one character
c4efd4
%patch1009 -p1 -b .build-debuginfo-fix
c4efd4
  %ifarch %{ix86}
c4efd4
# -F dwarf not available in RHEL7's nasm
c4efd4
%patch1008 -p1 -b .build-rhel7-nasm-dwarf
c4efd4
  %endif
c59d34
%endif
c59d34
c59d34
%{__rm} -f .mozconfig
c59d34
%{__cp} %{SOURCE10} .mozconfig
c59d34
%if %{official_branding}
c59d34
echo "ac_add_options --enable-official-branding" >> .mozconfig
c59d34
%endif
c59d34
%{__cp} %{SOURCE24} mozilla-api-key
c59d34
%{__cp} %{SOURCE27} google-api-key
c59d34
c59d34
%if %{?system_nss}
c59d34
echo "ac_add_options --with-system-nspr" >> .mozconfig
c59d34
echo "ac_add_options --with-system-nss" >> .mozconfig
c59d34
%else
c59d34
echo "ac_add_options --without-system-nspr" >> .mozconfig
c59d34
echo "ac_add_options --without-system-nss" >> .mozconfig
c59d34
%endif
c59d34
c4efd4
%ifarch %{ix86} x86_64
c59d34
echo "ac_add_options --disable-elf-hack" >> .mozconfig
c59d34
%endif
c59d34
c59d34
%if %{?debug_build}
c59d34
echo "ac_add_options --enable-debug" >> .mozconfig
c59d34
echo "ac_add_options --disable-optimize" >> .mozconfig
c59d34
%else
c59d34
%global optimize_flags "-g -O2"
c4efd4
%ifarch s390x
c59d34
%global optimize_flags "-g -O1"
c59d34
%endif
c59d34
%ifarch ppc64le aarch64
c59d34
%global optimize_flags "-g -O2"
c59d34
%endif
c59d34
%if %{optimize_flags} != "none"
c59d34
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
c59d34
%else
c59d34
echo 'ac_add_options --enable-optimize' >> .mozconfig
c59d34
%endif
c59d34
echo "ac_add_options --disable-debug" >> .mozconfig
c59d34
%endif
c59d34
c59d34
# Second arches fail to start with jemalloc enabled
c59d34
%ifnarch %{ix86} x86_64
c59d34
echo "ac_add_options --disable-jemalloc" >> .mozconfig
c59d34
%endif
c59d34
c59d34
%ifnarch %{ix86} x86_64
c59d34
echo "ac_add_options --disable-webrtc" >> .mozconfig
c59d34
%endif
c59d34
c59d34
%if %{?run_tests}
c59d34
echo "ac_add_options --enable-tests" >> .mozconfig
c59d34
%endif
c59d34
c4efd4
%ifarch s390x
3f591a
echo "ac_add_options --disable-jit" >> .mozconfig
3f591a
%endif
3f591a
3f591a
%ifnarch %{ix86}
3f591a
%if !0%{?debug_build}
3f591a
echo "ac_add_options --disable-debug-symbols" >> .mozconfig
3f591a
%endif
c59d34
%endif
c59d34
c4efd4
# AV1 requires newer nasm that was rebased in 8.4
c4efd4
%if 0%{?rhel} == 7 || (0%{?rhel} == 8 && %{rhel_minor_version} < 4)
c4efd4
echo "ac_add_options --disable-av1" >> .mozconfig
c4efd4
%endif
c4efd4
c59d34
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
c59d34
c59d34
# Remove executable bit to make brp-mangle-shebangs happy.
c59d34
chmod -x third_party/rust/itertools/src/lib.rs
3f591a
chmod a-x third_party/rust/gfx-backend-vulkan/src/*.rs
3f591a
chmod a-x third_party/rust/gfx-hal/src/*.rs
3f591a
chmod a-x third_party/rust/ash/src/extensions/ext/*.rs
3f591a
chmod a-x third_party/rust/ash/src/extensions/khr/*.rs
3f591a
chmod a-x third_party/rust/ash/src/extensions/mvk/*.rs
3f591a
chmod a-x third_party/rust/ash/src/extensions/nv/*.rs
c59d34
c59d34
#---------------------------------------------------------------------
c59d34
c59d34
%build
c4efd4
# Disable LTO to work around rhbz#1883904
c4efd4
%define _lto_cflags %{nil}
3f591a
ulimit -a
b41e6b
free
b41e6b
#set -e
c59d34
# Hack for missing shell when building in brew on RHEL6
c59d34
c59d34
%if ! 0%{?avoid_bundled_rebuild}
c59d34
    rm -rf %{_buildrootdir}/*
c59d34
%endif
c59d34
export PATH="%{_buildrootdir}/bin:$PATH"
c59d34
c59d34
function install_rpms_to_current_dir() {
c59d34
    PACKAGE_RPM=$(eval echo $1)
c59d34
    PACKAGE_DIR=%{_rpmdir}
c59d34
c59d34
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
c59d34
        # Hack for tps tests
c59d34
        ARCH_STR=%{_arch}
c4efd4
        %ifarch %{ix86}
c59d34
            ARCH_STR="i?86"
c59d34
        %endif
c4efd4
        PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
c59d34
     fi
c59d34
c59d34
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
c59d34
     do
c59d34
         echo "$package"
c59d34
         rpm2cpio "$package" | cpio -idu
c59d34
     done
c59d34
}
c59d34
c59d34
function build_bundled_package() {
c59d34
  PACKAGE_RPM=$1
c59d34
  PACKAGE_FILES=$2
c59d34
  PACKAGE_SOURCE=$3
3f591a
  PACKAGE_BUILD_OPTIONS=$4
c59d34
  export PACKAGE_DIR="%{_topdir}/RPMS"
c59d34
c59d34
  PACKAGE_ALREADY_BUILD=0
c59d34
  %if %{?avoid_bundled_rebuild}
c59d34
    if ls $PACKAGE_DIR/$PACKAGE_RPM; then
c59d34
      PACKAGE_ALREADY_BUILD=1
c59d34
    fi
c59d34
    if ls $PACKAGE_DIR/%{_arch}/$PACKAGE_RPM; then
c59d34
      PACKAGE_ALREADY_BUILD=1
c59d34
    fi
c59d34
  %endif
c59d34
  if [ $PACKAGE_ALREADY_BUILD == 0 ]; then
c59d34
    echo "Rebuilding $PACKAGE_RPM from $PACKAGE_SOURCE"; echo "==============================="
3f591a
    rpmbuild --nodeps $PACKAGE_BUILD_OPTIONS --rebuild $PACKAGE_SOURCE
b41e6b
    cat /var/tmp/rpm-tmp*
c59d34
  fi
c59d34
b41e6b
  find $PACKAGE_DIR
c59d34
  if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
c59d34
    # Hack for tps tests
c59d34
    ARCH_STR=%{_arch}
c4efd4
    %ifarch %{ix86}
c59d34
    ARCH_STR="i?86"
c59d34
    %endif
c4efd4
    export PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
c59d34
  fi
c59d34
  pushd $PACKAGE_DIR
c59d34
c59d34
  echo "Installing $PACKAGE_DIR/$PACKAGE_RPM"; echo "==============================="
3f591a
  pwd
c59d34
  PACKAGE_LIST=$(echo $PACKAGE_DIR/$PACKAGE_RPM | tr " " "\n")
c59d34
  for PACKAGE in $PACKAGE_LIST
c59d34
  do
c59d34
      rpm2cpio $PACKAGE | cpio -iduv
c59d34
  done
c59d34
c59d34
  PATH=$PACKAGE_DIR/usr/bin:$PATH
c59d34
  export PATH
c59d34
  LD_LIBRARY_PATH=$PACKAGE_DIR/usr/%{_lib}:$LD_LIBRARY_PATH
c59d34
  export LD_LIBRARY_PATH
c59d34
c59d34
  # Clean rpms to avoid including them to package
c59d34
  %if ! 0%{?avoid_bundled_rebuild}
c59d34
    rm -f $PACKAGE_FILES
c59d34
  %endif
c59d34
c59d34
  popd
c59d34
}
c59d34
3f591a
%if 0%{?bundle_nss}
c4efd4
  rpm -ivh %{SOURCE402}
c4efd4
  #rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nspr.spec
c4efd4
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nspr.spec
c4efd4
  pushd %{_buildrootdir}
c4efd4
  install_rpms_to_current_dir nspr-4*.rpm
c4efd4
  install_rpms_to_current_dir nspr-devel*.rpm
c4efd4
  popd
c4efd4
  echo "Setting nspr flags"
c4efd4
  # nss-setup-flags-env.inc
c4efd4
  sed -i 's@%{bundled_install_path}@%{_buildrootdir}%{bundled_install_path}@g' %{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig/nspr*.pc
c4efd4
c4efd4
  export LDFLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
c4efd4
  export LDFLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $LDFLAGS"
c4efd4
  export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
c4efd4
  export PKG_CONFIG_PATH=%{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig
c4efd4
  export PATH="{_buildrootdir}%{bundled_install_path}/bin:$PATH"
c4efd4
c4efd4
  export PATH=%{_buildrootdir}/%{bundled_install_path}/bin:$PATH
c4efd4
  echo $PKG_CONFIG_PATH
b41e6b
c4efd4
  rpm -ivh %{SOURCE403}
c4efd4
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/nss.spec
c4efd4
  pushd %{_buildrootdir}
c4efd4
  #cleanup
c4efd4
  #rm -rf {_buildrootdir}/usr/lib/debug/*
c4efd4
  #rm -rf {_buildrootdir}/usr/lib/.build-id
c4efd4
  install_rpms_to_current_dir nss-3*.rpm
c4efd4
  install_rpms_to_current_dir nss-devel*.rpm
c4efd4
  install_rpms_to_current_dir nss-pkcs11-devel*.rpm
c4efd4
  install_rpms_to_current_dir nss-softokn-3*.rpm
c4efd4
  install_rpms_to_current_dir nss-softokn-devel*.rpm
c4efd4
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
c4efd4
  install_rpms_to_current_dir nss-softokn-freebl-devel*.rpm
c4efd4
  install_rpms_to_current_dir nss-util-3*.rpm
c4efd4
  install_rpms_to_current_dir nss-util-devel*.rpm
c4efd4
  popd
c4efd4
  %filter_provides_in %{bundled_install_path}/%{_lib}
c4efd4
  %filter_requires_in %{bundled_install_path}/%{_lib}
69c14a
  %filter_from_requires /libnss3.so.*/d
69c14a
  %filter_from_requires /libsmime3.so.*/d
69c14a
  %filter_from_requires /libssl3.so.*/d
69c14a
  %filter_from_requires /libnssutil3.so.*/d
69c14a
  %filter_from_requires /libnspr4.so.*/d
c4efd4
  find %{_buildrootdir}
c59d34
%endif
c59d34
c59d34
%if 0%{use_bundled_ffi}
c59d34
  # Install libraries to the predefined location to later add them to the Firefox libraries
c59d34
  rpm -ivh %{SOURCE303}
c4efd4
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' -ba %{_specdir}/libffi.spec
c59d34
  pushd %{_buildrootdir}
c59d34
  install_rpms_to_current_dir 'libffi*.rpm'
c59d34
  popd
c59d34
  %filter_from_requires /libffi.so.6/d
c59d34
%endif
c59d34
%filter_setup
c59d34
c59d34
function replace_prefix() {
c59d34
  FILE_NAME=$1
c59d34
  PKG_CONFIG_PREFIX=$2
c59d34
c59d34
  cat $FILE_NAME | tail -n +2 > tmp.txt
c59d34
  echo "$PKG_CONFIG_PREFIX" > $FILE_NAME
c59d34
  cat tmp.txt >> $FILE_NAME
c59d34
  rm -rf tmp.txt
c59d34
}
c59d34
c59d34
# We need to disable exit on error temporarily for the following scripts:
c59d34
set +e
c59d34
%if 0%{?use_dts}
c59d34
source scl_source enable devtoolset-%{dts_version}
c59d34
%endif
c59d34
%if 0%{?use_rustts}
c4efd4
source scl_source enable rust-toolset-%{rust_version}
c4efd4
%endif
c4efd4
%if 0%{?use_nodejsts}
c4efd4
source scl_source enable rh-nodejs10
c59d34
%endif
c59d34
b41e6b
env
b41e6b
which gcc
b41e6b
which c++
b41e6b
which g++
b41e6b
which ld
c4efd4
which nasm
c59d34
# Build and install local node if needed
c59d34
# ======================================
c4efd4
export MOZ_NODEJS=`which node`
c59d34
c59d34
mkdir -p my_rust_vendor
c59d34
cd my_rust_vendor
c59d34
%{__tar} xf %{SOURCE2}
c59d34
cd -
c59d34
mkdir -p .cargo
c59d34
cat > .cargo/config <
c59d34
[source.crates-io]
c59d34
replace-with = "vendored-sources"
c59d34
c59d34
[source.vendored-sources]
c59d34
directory = "`pwd`/my_rust_vendor"
c59d34
EOL
c59d34
c59d34
export CARGO_HOME=.cargo
c59d34
cargo install cbindgen
c59d34
export PATH=`pwd`/.cargo/bin:$PATH
c59d34
export CBINDGEN=`pwd`/.cargo/bin/cbindgen
c59d34
3f591a
# debug missing sqlite3 python module
c4efd4
export MACH_USE_SYSTEM_PYTHON=1
3f591a
./mach python -c "import sys;print(sys.path)"
3f591a
c59d34
mkdir %{_buildrootdir}/bin || :
c59d34
cp %{SOURCE28} %{_buildrootdir}/bin || :
3f591a
chmod +x %{_buildrootdir}/bin/node-stdout-nonblocking-wrapper
c59d34
c59d34
# Update the various config.guess to upstream release for aarch64 support
c59d34
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
c59d34
c59d34
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
c59d34
#
c59d34
# Mozilla builds with -Wall with exception of a few warnings which show up
c59d34
# everywhere in the code; so, don't override that.
c59d34
#
c59d34
# Disable C++ exceptions since Mozilla code is not exception-safe
c59d34
#
c59d34
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
c59d34
#rhbz#1037063
c59d34
# -Werror=format-security causes build failures when -Wno-format is explicitly given
c59d34
# for some sources
c59d34
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
c59d34
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
c59d34
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
c4efd4
c59d34
%if %{?hardened_build}
c4efd4
  MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
c4efd4
  %endif
c59d34
%if %{?debug_build}
c4efd4
  MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
c59d34
%endif
3f591a
3f591a
# We don't wantfirefox to use CK_GCM_PARAMS_V3 in nss
3f591a
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT"
3f591a
c4efd4
%if !%{build_with_clang}
c4efd4
  %ifarch aarch64 %{ix86} x86_64 s390x
c4efd4
    MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
c4efd4
  %endif
c4efd4
  %ifarch %{ix86}
c4efd4
    MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--strip-debug"
c4efd4
    echo "ac_add_options --enable-linker=gold" >> .mozconfig
c4efd4
  %endif
c59d34
%endif
c4efd4
c4efd4
%if 0%{?bundle_nss}
c4efd4
  mkdir -p %{_buildrootdir}%{bundled_install_path}/%{_lib}
c4efd4
  MOZ_LINK_FLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
c4efd4
  MOZ_LINK_FLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
c4efd4
  MOZ_LINK_FLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
b21e02
%endif
3f591a
c4efd4
%ifarch %{ix86}
c4efd4
  export RUSTFLAGS="-Cdebuginfo=0"
c4efd4
  echo 'export RUSTFLAGS="-Cdebuginfo=0"' >> .mozconfig
c59d34
%endif
c59d34
c59d34
export PREFIX='%{_prefix}'
c59d34
export LIBDIR='%{_libdir}'
c59d34
export CC=gcc
c59d34
export CXX=g++
c4efd4
echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
c4efd4
echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
c4efd4
echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig
c4efd4
c4efd4
%if %{build_with_clang}
c4efd4
  echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig
c4efd4
  echo "export AR=\"llvm-ar\"" >> .mozconfig
c4efd4
  echo "export NM=\"llvm-nm\"" >> .mozconfig
c4efd4
  echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig
c4efd4
  echo "ac_add_options --enable-linker=lld" >> .mozconfig
c4efd4
%else
c4efd4
  echo "export CC=gcc" >> .mozconfig
c4efd4
  echo "export CXX=g++" >> .mozconfig
c4efd4
  echo "export AR=\"gcc-ar\"" >> .mozconfig
c4efd4
  echo "export NM=\"gcc-nm\"" >> .mozconfig
c4efd4
  echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
c4efd4
%endif
c59d34
c59d34
MOZ_SMP_FLAGS=-j1
c59d34
# More than two build tasks can lead to OOM gcc crash.
c59d34
%if 0%{?rhel} < 8
c4efd4
  [ -z "$RPM_BUILD_NCPUS" ] && \
c4efd4
       RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
c4efd4
  [ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
c59d34
%else
c4efd4
  %ifarch %{ix86} x86_64 ppc64 ppc64le aarch64
c4efd4
  [ -z "$RPM_BUILD_NCPUS" ] && \
c4efd4
       RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
c4efd4
    [ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
c4efd4
    [ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j3
c4efd4
    [ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j3
c4efd4
  %endif
c59d34
%endif
3f591a
b41e6b
cat /proc/meminfo
3f591a
b41e6b
# Free memory in kB
69c14a
if grep -q MemAvailable /proc/meminfo; then
69c14a
    MEM_AVAILABLE=$(grep MemAvailable /proc/meminfo | awk '{ print $2 }')
69c14a
else
69c14a
    MEM_AVAILABLE=$(grep MemFree /proc/meminfo | awk '{ print $2 }')
69c14a
fi
b41e6b
b41e6b
# Usually the compiler processes can take 2 GB of memory at peaks
b41e6b
TASK_SIZE=4000000
b41e6b
MEM_CONSTRAINED_JOBS=$(( MEM_AVAILABLE / TASK_SIZE ))
e7a30c
e7a30c
if [ $MEM_CONSTRAINED_JOBS -le 0 ]; then
e7a30c
  MEM_CONSTRAINED_JOBS=1
e7a30c
fi
e7a30c
b41e6b
CPU_AVAILABLE=$(/usr/bin/getconf _NPROCESSORS_ONLN)
b41e6b
# Pick the minimum from available CPUs or memory constrained number of jobs
69c14a
MOZ_SMP_FLAGS=-j$([ "$CPU_AVAILABLE" -le "$MEM_CONSTRAINED_JOBS" ] && echo "$CPU_AVAILABLE" || echo "$MEM_CONSTRAINED_JOBS")
c59d34
c4efd4
# override smp flags to the rpmbuild defaults ATM
c4efd4
%ifnarch ppc64le
c4efd4
MOZ_SMP_FLAGS=%{_smp_mflags}
c4efd4
%endif
c4efd4
c4efd4
%ifarch s390x
c4efd4
MOZ_SMP_FLAGS=-j2
c59d34
%endif
c59d34
3f591a
%if 0%{?bundle_nss}
c4efd4
  echo "Setting nss flags"
c4efd4
  # nss-setup-flags-env.inc
c4efd4
  %include_file %{SOURCE401}
c4efd4
  export PATH=%{_buildrootdir}/%{bundled_install_path}/bin:$PATH
c4efd4
  echo $PKG_CONFIG_PATH
3f591a
%endif
3f591a
c59d34
export MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
c59d34
export MOZ_SERVICES_SYNC="1"
3f591a
# we need to strip the sources on i686 because to we don't use rpm to generate debugsymbols because of oom
c4efd4
%ifnarch %{ix86}
c4efd4
  export STRIP=/bin/true
3f591a
%endif
3f591a
which node
3f591a
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"'
3f591a
env
3f591a
ls %{_buildrootdir}
3f591a
c4efd4
export MACH_USE_SYSTEM_PYTHON=1
b41e6b
%if 0%{?use_llvmts}
c4efd4
  #scl enable llvm-toolset-%{llvm_version} './mach build -v'
c4efd4
  ./mach build -v
b41e6b
%else
c4efd4
  ./mach build -v
c59d34
%endif
c4efd4
# Look for the reason we get: /usr/lib/rpm/debugedit: canonicalization unexpectedly shrank by one character
c4efd4
readelf -wl objdir/dist/bin/libxul.so | grep "/"
c59d34
c59d34
%if %{?run_tests}
c4efd4
  %if %{?system_nss}
c4efd4
    ln -s /usr/bin/certutil objdir/dist/bin/certutil
c4efd4
    ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
c4efd4
  %endif
c4efd4
  mkdir test_results
c4efd4
  ./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey || true
c4efd4
  ./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey-2nd-run || true
c4efd4
  ./mach --log-no-times cppunittest &> test_results/cppunittest || true
c4efd4
  xvfb-run ./mach --log-no-times crashtest &> test_results/crashtest || true
c4efd4
  ./mach --log-no-times gtest &> test_results/gtest || true
c4efd4
  xvfb-run ./mach --log-no-times jetpack-test &> test_results/jetpack-test || true
c4efd4
  # not working right now ./mach marionette-test &> test_results/marionette-test || true
c4efd4
  xvfb-run ./mach --log-no-times mochitest-a11y &> test_results/mochitest-a11y || true
c4efd4
  xvfb-run ./mach --log-no-times mochitest-browser &> test_results/mochitest-browser || true
c4efd4
  xvfb-run ./mach --log-no-times mochitest-chrome &> test_results/mochitest-chrome || true
c4efd4
  xvfb-run ./mach --log-no-times mochitest-devtools &> test_results/mochitest-devtools || true
c4efd4
  xvfb-run ./mach --log-no-times mochitest-plain &> test_results/mochitest-plain || true
c4efd4
  xvfb-run ./mach --log-no-times reftest &> test_results/reftest || true
c4efd4
  xvfb-run ./mach --log-no-times webapprt-test-chrome &> test_results/webapprt-test-chrome || true
c4efd4
  xvfb-run ./mach --log-no-times webapprt-test-content &> test_results/webapprt-test-content || true
c4efd4
  ./mach --log-no-times webidl-parser-test &> test_results/webidl-parser-test || true
c4efd4
  xvfb-run ./mach --log-no-times xpcshell-test &> test_results/xpcshell-test || true
c4efd4
  %if %{?system_nss}
c4efd4
    rm -f  objdir/dist/bin/certutil
c4efd4
    rm -f  objdir/dist/bin/pk12util
c4efd4
  %endif
c59d34
%endif
c59d34
#---------------------------------------------------------------------
c59d34
c59d34
%install
c4efd4
export MACH_USE_SYSTEM_PYTHON=1
c59d34
function install_rpms_to_current_dir() {
c59d34
    PACKAGE_RPM=$(eval echo $1)
c59d34
    PACKAGE_DIR=%{_rpmdir}
c59d34
c59d34
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
c59d34
        # Hack for tps tests
c59d34
        ARCH_STR=%{_arch}
c4efd4
        %ifarch %{ix86}
c59d34
            ARCH_STR="i?86"
c59d34
        %endif
c4efd4
        PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
c59d34
     fi
c59d34
c59d34
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
c59d34
     do
c59d34
         echo "$package"
c59d34
         rpm2cpio "$package" | cpio -idu
c59d34
     done
c59d34
}
c59d34
3f591a
%if 0%{?bundle_nss}
3f591a
  pushd %{buildroot}
3f591a
  #install_rpms_to_current_dir nss-*.rpm
3f591a
  install_rpms_to_current_dir nspr-4*.rpm
3f591a
  install_rpms_to_current_dir nss-3*.rpm
3f591a
  install_rpms_to_current_dir nss-softokn-3*.rpm
3f591a
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
3f591a
  install_rpms_to_current_dir nss-util-3*.rpm
c4efd4
3f591a
  # cleanup unecessary nss files
c4efd4
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/bin
c4efd4
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/include
c4efd4
  rm -rf %{buildroot}/%{bundled_install_path}/lib/dracut
c4efd4
  rm -rf %{buildroot}/%{bundled_install_path}/%{_lib}/nss
c4efd4
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/%{_lib}/pkgconfig
c4efd4
  rm -rf %{buildroot}/%{bundled_install_path}/%{_lib}/share
c4efd4
  rm -rf %{buildroot}/%{bundled_install_path}/share
3f591a
  rm -rf %{buildroot}/etc/pki
3f591a
  rm -rf %{buildroot}/usr/lib/.build-id
3f591a
  rm -rf %{buildroot}/etc/crypto-policies
3f591a
  popd
3f591a
%endif
3f591a
c59d34
# Install bundled libffi
c59d34
%if %{use_bundled_ffi}
c59d34
  pushd %{buildroot}
c59d34
  install_rpms_to_current_dir libffi-3*.rpm
c59d34
  popd
c59d34
%endif
c59d34
c59d34
# set up our default bookmarks
c59d34
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/en-US/locale/browser/bookmarks.html
c59d34
c59d34
# Make sure locale works for langpacks
c59d34
%{__cat} > objdir/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
c59d34
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
c59d34
EOF
c59d34
c59d34
DESTDIR=%{buildroot} make -C objdir install
c59d34
c59d34
%{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
c59d34
c59d34
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
c59d34
c59d34
# set up the firefox start script
c59d34
%{__rm} -rf %{buildroot}%{_bindir}/firefox
c59d34
%{__cat} %{SOURCE21} > %{buildroot}%{_bindir}/firefox
e7a30c
sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{_bindir}/firefox
c59d34
sed -i -e 's|%RHEL_ENV_VARS%||' %{buildroot}%{_bindir}/firefox
c59d34
c59d34
%{__chmod} 755 %{buildroot}%{_bindir}/firefox
c59d34
c59d34
%{__install} -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/firefox.1
c59d34
c59d34
%{__rm} -f %{buildroot}/%{mozappdir}/firefox-config
c59d34
%{__rm} -f %{buildroot}/%{mozappdir}/update-settings.ini
c59d34
c59d34
for s in 16 22 24 32 48 256; do
c59d34
    %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
c59d34
    %{__cp} -p browser/branding/official/default${s}.png \
c59d34
               %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
c59d34
done
c59d34
c59d34
# Install hight contrast icon
c59d34
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
c59d34
%{__cp} -p %{SOURCE25} \
c59d34
           %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
c59d34
c59d34
# Register as an application to be visible in the software center
c59d34
#
c59d34
# NOTE: It would be *awesome* if this file was maintained by the upstream
c59d34
# project, translated and installed into the right place during `make install`.
c59d34
#
c59d34
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
c59d34
#
c59d34
%{__mkdir_p} %{buildroot}%{_datadir}/appdata
c59d34
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <
c59d34
c59d34
c59d34
c59d34
BugReportURL: https://bugzilla.mozilla.org/show_bug.cgi?id=1071061
c59d34
SentUpstream: 2014-09-22
c59d34
-->
c59d34
<application>
c59d34
  <id type="desktop">firefox.desktop</id>
c59d34
  <metadata_license>CC0-1.0</metadata_license>
ad8adb
  <project_license>MPLv1.1 or GPLv2+ or LGPLv2+</project_license>
c59d34
  <description>
c59d34
    

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

c59d34
    
c59d34
  </description>
c59d34
  <url type="homepage">http://www.mozilla.org/</url>
c59d34
  <screenshots>
c59d34
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/a.png</screenshot>
c59d34
    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/b.png</screenshot>
c59d34
    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/c.png</screenshot>
c59d34
  </screenshots>
c59d34
  
c59d34
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
c59d34
   -->
c59d34
</application>
c59d34
EOF
c59d34
c59d34
echo > %{name}.lang
c59d34
%if %{build_langpacks}
c59d34
# Extract langpacks, make any mods needed, repack the langpack, and install it.
c59d34
%{__mkdir_p} %{buildroot}%{langpackdir}
c59d34
%{__tar} xf %{SOURCE1}
c59d34
for langpack in `ls firefox-langpacks/*.xpi`; do
c59d34
  language=`basename $langpack .xpi`
c59d34
  extensionID=langpack-$language@firefox.mozilla.org
c59d34
  %{__mkdir_p} $extensionID
c59d34
  unzip -qq $langpack -d $extensionID
c59d34
  find $extensionID -type f | xargs chmod 644
c59d34
c59d34
  cd $extensionID
c59d34
  zip -qq -r9mX ../${extensionID}.xpi *
c59d34
  cd -
c59d34
c59d34
  %{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
c59d34
  language=`echo $language | sed -e 's/-/_/g'`
c59d34
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
c59d34
done
c59d34
%{__rm} -rf firefox-langpacks
c59d34
c59d34
# Install langpack workaround (see #707100, #821169)
c59d34
function create_default_langpack() {
c59d34
language_long=$1
c59d34
language_short=$2
c59d34
cd %{buildroot}%{langpackdir}
c59d34
ln -s langpack-$language_long@firefox.mozilla.org.xpi langpack-$language_short@firefox.mozilla.org.xpi
c59d34
cd -
c59d34
echo "%%lang($language_short) %{langpackdir}/langpack-$language_short@firefox.mozilla.org.xpi" >> %{name}.lang
c59d34
}
c59d34
c59d34
# Table of fallbacks for each language
c59d34
# please file a bug at bugzilla.redhat.com if the assignment is incorrect
c59d34
create_default_langpack "es-AR" "es"
c59d34
create_default_langpack "fy-NL" "fy"
c59d34
create_default_langpack "ga-IE" "ga"
c59d34
create_default_langpack "gu-IN" "gu"
c59d34
create_default_langpack "hi-IN" "hi"
c59d34
create_default_langpack "hy-AM" "hy"
c59d34
create_default_langpack "nb-NO" "nb"
c59d34
create_default_langpack "nn-NO" "nn"
c59d34
create_default_langpack "pa-IN" "pa"
c59d34
create_default_langpack "pt-PT" "pt"
c59d34
create_default_langpack "sv-SE" "sv"
c59d34
create_default_langpack "zh-TW" "zh"
c59d34
%endif
c59d34
c59d34
# Keep compatibility with the old preference location.
c59d34
%{__mkdir_p} %{buildroot}%{mozappdir}/defaults/preferences
c59d34
%{__mkdir_p} %{buildroot}%{mozappdir}/browser/defaults
c59d34
ln -s %{mozappdir}/defaults/preferences $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults/preferences
c59d34
# Default preferences
c59d34
%{__cp} %{SOURCE12} %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
e7a30c
sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
c4efd4
# Enable modern crypto for the key export on the RHEL9 only (rhbz#1764205)
c4efd4
%if 0%{?rhel} == 9
c4efd4
  echo 'pref("security.pki.use_modern_crypto_with_pkcs12", true);' >> %{buildroot}%{mozappdir}/defaults/preferences/all-redhat.js
c4efd4
%endif
c59d34
c59d34
# System config dir
c59d34
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/%{name}/pref
c59d34
c59d34
# System extensions
c59d34
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_app_id}
c59d34
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_app_id}
c59d34
c59d34
# Copy over the LICENSE
c59d34
%{__install} -p -c -m 644 LICENSE %{buildroot}/%{mozappdir}
c59d34
c59d34
# Use the system hunspell dictionaries
c59d34
%{__rm} -rf %{buildroot}%{mozappdir}/dictionaries
c59d34
ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries
c59d34
c59d34
%if %{run_tests}
c59d34
# Add debuginfo for crash-stats.mozilla.com
c59d34
%{__mkdir_p} %{buildroot}/test_results
c59d34
%{__cp} test_results/* %{buildroot}/test_results
c59d34
%endif
c59d34
c59d34
c59d34
# Copy over run-mozilla.sh
c59d34
%{__cp} build/unix/run-mozilla.sh %{buildroot}%{mozappdir}
c59d34
c59d34
# Add distribution.ini
c59d34
%{__mkdir_p} %{buildroot}%{mozappdir}/distribution
c59d34
%{__cp} %{SOURCE26} %{buildroot}%{mozappdir}/distribution
c59d34
c59d34
%if 0%{?centos}
c59d34
sed -i -e 's|Red Hat Enterprise|CentOS|' %{buildroot}%{mozappdir}/distribution/distribution.ini
c59d34
%endif
c59d34
c59d34
# Remove copied libraries to speed up build
c59d34
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
c59d34
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozalloc.so
c59d34
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libxul.so
c59d34
#---------------------------------------------------------------------
c59d34
c59d34
%preun
c59d34
# is it a final removal?
c59d34
if [ $1 -eq 0 ]; then
c59d34
  %{__rm} -rf %{mozappdir}/components
c59d34
  %{__rm} -rf %{mozappdir}/extensions
c59d34
  %{__rm} -rf %{mozappdir}/plugins
c59d34
fi
c59d34
c59d34
%clean
c59d34
rm -rf %{_srcrpmdir}/libffi*.src.rpm
c59d34
find %{_rpmdir} -name "libffi*.rpm" -delete
c59d34
rm -rf %{_srcrpmdir}/openssl*.src.rpm
c59d34
find %{_rpmdir} -name "openssl*.rpm" -delete
3f591a
rm -rf %{_srcrpmdir}/nss*.src.rpm
3f591a
find %{_rpmdir} -name "nss*.rpm" -delete
3f591a
rm -rf %{_srcrpmdir}/nspr*.src.rpm
3f591a
find %{_rpmdir} -name "nspr*.rpm" -delete
c59d34
c59d34
%post
c59d34
update-desktop-database &> /dev/null || :
c59d34
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
c59d34
c59d34
%postun
c59d34
update-desktop-database &> /dev/null || :
c59d34
if [ $1 -eq 0 ] ; then
c59d34
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
c59d34
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c59d34
fi
c59d34
c59d34
%posttrans
c59d34
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c59d34
c59d34
%files -f %{name}.lang
c59d34
%{_bindir}/firefox
c59d34
%{mozappdir}/firefox
c59d34
%{mozappdir}/firefox-bin
c59d34
%doc %{_mandir}/man1/*
c59d34
%dir %{_sysconfdir}/%{name}
c59d34
%dir %{_sysconfdir}/%{name}/*
c59d34
%dir %{_datadir}/mozilla/extensions/*
c59d34
%dir %{_libdir}/mozilla/extensions/*
c59d34
%{_datadir}/appdata/*.appdata.xml
c59d34
%{_datadir}/applications/*.desktop
c59d34
%dir %{mozappdir}
c59d34
%doc %{mozappdir}/LICENSE
c59d34
%{mozappdir}/browser/chrome
c59d34
%{mozappdir}/defaults/preferences/*
c59d34
%{mozappdir}/browser/defaults/preferences
c59d34
%{mozappdir}/browser/features/*.xpi
c59d34
%{mozappdir}/distribution/distribution.ini
ffa54f
%if %{build_langpacks}
ffa54f
%dir %{langpackdir}
ffa54f
%endif
c59d34
%{mozappdir}/browser/omni.ja
c59d34
%{mozappdir}/run-mozilla.sh
c59d34
%{mozappdir}/application.ini
c59d34
%{mozappdir}/pingsender
c59d34
%exclude %{mozappdir}/removed-files
c59d34
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
c59d34
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
c59d34
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
c59d34
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
c59d34
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
c59d34
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
c59d34
%{_datadir}/icons/hicolor/symbolic/apps/firefox-symbolic.svg
c59d34
%{mozappdir}/*.so
c59d34
%{mozappdir}/defaults/pref/channel-prefs.js
c59d34
%{mozappdir}/dependentlibs.list
c59d34
%{mozappdir}/dictionaries
c59d34
%{mozappdir}/omni.ja
c59d34
%{mozappdir}/platform.ini
c59d34
%{mozappdir}/plugin-container
c59d34
%{mozappdir}/gmp-clearkey
c59d34
%{mozappdir}/fonts/*.ttf
c59d34
%if !%{?system_nss}
c59d34
%exclude %{mozappdir}/libnssckbi.so
c59d34
%endif
c59d34
%if 0%{use_bundled_ffi}
c59d34
%{mozappdir}/bundled/%{_lib}/libffi.so*
c59d34
%exclude %{_datadir}/doc/libffi*
c59d34
%endif
c59d34
3f591a
%if 0%{?bundle_nss}
3f591a
%{mozappdir}/bundled/%{_lib}/libfreebl*
3f591a
%{mozappdir}/bundled/%{_lib}/libnss3*
3f591a
%{mozappdir}/bundled/%{_lib}/libnssdbm3*
3f591a
%{mozappdir}/bundled/%{_lib}/libnssutil3*
3f591a
%{mozappdir}/bundled/%{_lib}/libsmime3*
3f591a
%{mozappdir}/bundled/%{_lib}/libsoftokn*
3f591a
%{mozappdir}/bundled/%{_lib}/libssl3*
3f591a
%{mozappdir}/bundled/%{_lib}/libnspr4.so
3f591a
%{mozappdir}/bundled/%{_lib}/libplc4.so
3f591a
%{mozappdir}/bundled/%{_lib}/libplds4.so
3f591a
%endif
3f591a
c59d34
c59d34
#---------------------------------------------------------------------
c59d34
c59d34
%changelog
c4efd4
* Wed Sep 29 2021 Jan Horak <jhorak@redhat.com> - 91.2.0-1
c4efd4
- Update to 91.2.0 build1
c4efd4
c4efd4
* Wed Sep 15 2021 Jan Horak <jhorak@redhat.com> - 91.1.0-1
c4efd4
- Update to 91.1.0 build1
c4efd4
c4efd4
* Tue Aug 17 2021 Jan Horak <jhorak@redhat.com>
c4efd4
- Update to 91.0.1 build1
c4efd4
c4efd4
* Tue Aug 10 2021 Jan Horak <jhorak@redhat.com> - 91.0-1
c4efd4
- Update to 91.0 ESR
c277d2
c4efd4
* Thu Jul 29 2021 Jan Horak <jhorak@redhat.com> - 91.0-1
c4efd4
- Update to 91.0b8
c277d2
c277d2
* Fri Jul 16 2021 Jan Horak <jhorak@redhat.com> - 78.12.0-2
c277d2
- Rebuild to pickup older nss
c277d2
ad8adb
* Wed Jul 07 2021 Eike Rathke <erack@redhat.com> - 78.12.0-1
ad8adb
- Update to 78.12.0 build1
ad8adb
ad8adb
* Mon May 31 2021 Eike Rathke <erack@redhat.com> - 78.11.0-3
ad8adb
- Update to 78.11.0 build2 (release)
ad8adb
ad8adb
* Thu May 27 2021 Eike Rathke <erack@redhat.com> - 78.11.0-2
ad8adb
- Fix rhel_minor_version for dist .el8_4 and .el8
ad8adb
ad8adb
* Tue May 25 2021 Eike Rathke <erack@redhat.com> - 78.11.0-1
ad8adb
- Update to 78.11.0 build1
ad8adb
ad8adb
* Tue Apr 20 2021 Eike Rathke <erack@redhat.com> - 78.10.0-1
ad8adb
- Update to 78.10.0
ad8adb
ad8adb
* Wed Mar 17 2021 Eike Rathke <erack@redhat.com> - 78.9.0-1
ad8adb
- Update to 78.9.0 build1
ad8adb
ad8adb
* Wed Feb 17 2021 Eike Rathke <erack@redhat.com> - 78.8.0-1
ad8adb
- Update to 78.8.0 build2
ad8adb
e7a30c
* Tue Feb 09 2021 Eike Rathke <erack@redhat.com> - 78.7.1-1
e7a30c
- Update to 78.7.1
e7a30c
e7a30c
* Tue Feb 09 2021 Jan Horak <jhorak@redhat.com> - 78.7.0-3
e7a30c
- Fixing install prefix for the homepage
e7a30c
e7a30c
* Fri Jan 22 2021 Eike Rathke <erack@redhat.com> - 78.7.0-2
e7a30c
- Update to 78.7.0 build2
e7a30c
e7a30c
* Wed Jan 20 2021 Eike Rathke <erack@redhat.com> - 78.7.0-1
e7a30c
- Update to 78.7.0 build1
e7a30c
e7a30c
* Wed Jan  6 2021 Eike Rathke <erack@redhat.com> - 78.6.1-1
e7a30c
- Update to 78.6.1 build1
e7a30c
69c14a
* Thu Dec 10 2020 Jan Horak <jhorak@redhat.com> - 78.6.0-1
69c14a
- Update to 78.6.0 build1
69c14a
69c14a
* Wed Nov 18 2020 Jan Horak <jhorak@redhat.com> - 78.5.0-1
69c14a
- Update to 78.5.0 build1
69c14a
69c14a
* Tue Nov 10 2020 erack@redhat.com - 78.4.1-1
69c14a
- Update to 78.4.1
69c14a
69c14a
* Tue Nov 10 2020 Jan Horak <jhorak@redhat.com> - 78.4.0-3
69c14a
- Fixing flatpak build, fixing firefox.sh.in to not disable langpacks loading
69c14a
69c14a
* Thu Oct 29 2020 Jan Horak <jhorak@redhat.com> - 78.4.0-2
69c14a
- Enable addon sideloading
69c14a
69c14a
* Fri Oct 16 2020 Jan Horak <jhorak@redhat.com> - 78.4.0-1
69c14a
- Update to 78.4.0 build2
69c14a
b41e6b
* Fri Sep 18 2020 Jan Horak <jhorak@redhat.com>
b41e6b
- Update to 78.3.0 build1
b41e6b
ffa54f
* Tue Aug 18 2020 Jan Horak <jhorak@redhat.com> - 78.2.0-3
3f591a
- Update to 78.2.0 build1
3f591a
3f591a
* Fri Jul 24 2020 Jan Horak <jhorak@redhat.com>
3f591a
- Update to 68.11.0 build1
3f591a
3f591a
* Fri Jun 26 2020 Jan Horak <jhorak@redhat.com>
3f591a
- Update to 68.10.0 build1
3f591a
c59d34
* Fri May 29 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.9.0 build1
c59d34
- Added patch for pipewire 0.3
c59d34
c59d34
* Mon May 11 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Added s390x specific patches
c59d34
c59d34
* Wed Apr 29 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.8.0 build1
c59d34
c59d34
* Thu Apr 23 2020 Martin Stransky <stransky@redhat.com> - 68.7.0-3
c59d34
- Added fix for rhbz#1821418
c59d34
c59d34
* Tue Apr 07 2020 Jan Horak <jhorak@redhat.com> - 68.7.0-2
c59d34
- Update to 68.7.0 build3
c59d34
c59d34
* Mon Apr  6 2020 Jan Horak <jhorak@redhat.com> - 68.6.1-1
c59d34
- Update to 68.6.1 ESR
c59d34
c59d34
* Wed Mar 04 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.6.0 build1
c59d34
c59d34
* Mon Feb 24 2020 Martin Stransky <stransky@redhat.com> - 68.5.0-3
c59d34
- Added fix for rhbz#1805667
c59d34
- Enabled mzbz@1170092 - Firefox prefs at /etc
c59d34
c59d34
* Fri Feb 07 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.5.0 build2
c59d34
c59d34
* Wed Feb 05 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.5.0 build1
c59d34
c59d34
* Wed Jan 08 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.4.1esr build1
c59d34
c59d34
* Fri Jan 03 2020 Jan Horak <jhorak@redhat.com>
c59d34
- Update to 68.4.0esr build1
c59d34
c59d34
* Wed Dec 18 2019 Jan Horak <jhorak@redhat.com>
c59d34
- Fix for wrong intl.accept_lang when using non en-us langpack
c59d34
c59d34
* Wed Nov 27 2019 Martin Stransky <stransky@redhat.com> - 68.3.0-1
c59d34
- Update to 68.3.0 ESR
c59d34
c59d34
* Thu Oct 24 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-4
c59d34
- Added patch for TLS 1.3 support.
c59d34
c59d34
* Wed Oct 23 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-3
c59d34
- Rebuild
c59d34
c59d34
* Mon Oct 21 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-2
c59d34
- Rebuild
c59d34
c59d34
* Thu Oct 17 2019 Martin Stransky <stransky@redhat.com> - 68.2.0-1
c59d34
- Update to 68.2.0 ESR
c59d34
c59d34
* Thu Oct 10 2019 Martin Stransky <stransky@redhat.com> - 68.1.0-6
c59d34
- Enable system nss on RHEL6
c59d34
c59d34
* Thu Sep  5 2019 Jan Horak <jhorak@redhat.com> - 68.1.0-2
c59d34
- Enable building langpacks
c59d34
c59d34
* Wed Aug 28 2019 Jan Horak <jhorak@redhat.com> - 68.1.0-1
c59d34
- Update to 68.1.0 ESR
c59d34
c59d34
* Mon Aug 5 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-4
c59d34
- Enable system nss
c59d34
c59d34
* Mon Jul 29 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-3
c59d34
- Enable official branding
c59d34
c59d34
* Fri Jul 26 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-2
c59d34
- Enabled PipeWire on RHEL8
c59d34
c59d34
* Fri Jul 26 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-1
c59d34
- Updated to 68.0.1 ESR
c59d34
c59d34
* Tue Jul 16 2019 Jan Horak <jhorak@redhat.com> - 68.0-0.11
c59d34
- Update to 68.0 ESR
c59d34
c59d34
* Tue Jun 25 2019 Martin Stransky <stransky@redhat.com> - 68.0-0.10
c59d34
- Updated to 68.0 alpha 13
c59d34
- Enabled second arches
c59d34
c59d34
* Fri Mar 22 2019 Martin Stransky <stransky@redhat.com> - 68.0-0.1
c59d34
- Updated to 68.0 alpha
c59d34
c59d34
* Fri Mar 15 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-3
c59d34
- Added Google API keys (mozbz#1531176)
c59d34
c59d34
* Thu Mar 14 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-2
c59d34
- Update to 60.6.0 ESR (Build 2)
c59d34
c59d34
* Wed Mar 13 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-1
c59d34
- Update to 60.6.0 ESR (Build 1)
c59d34
c59d34
* Wed Feb 13 2019 Jan Horak <jhorak@redhat.com> - 60.5.1-1
c59d34
- Update to 60.5.1 ESR
c59d34
c59d34
* Wed Feb 6 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-3
c59d34
- Added fix for rhbz#1672424 - Firefox crashes on NFS drives.
c59d34
c59d34
* Fri Jan 25 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-2
c59d34
- Updated to 60.5.0 ESR build2
c59d34
c59d34
* Tue Jan 22 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-1
c59d34
- Updated to 60.5.0 ESR build1
c59d34
c59d34
* Thu Jan 10 2019 Jan Horak <jhorak@redhat.com> - 60.4.0-3
c59d34
- Fixing fontconfig warnings (rhbz#1601475)
c59d34
c59d34
* Wed Jan  9 2019 Jan Horak <jhorak@redhat.com> - 60.4.0-2
c59d34
- Added pipewire patch from Tomas Popela (rhbz#1664270)
c59d34
c59d34
* Wed Dec  5 2018 Jan Horak <jhorak@redhat.com> - 60.4.0-1
c59d34
- Update to 60.4.0 ESR
c59d34
c59d34
* Tue Dec  4 2018 Jan Horak <jhorak@redhat.com> - 60.3.0-2
c59d34
- Added firefox-gnome-shell-extension
c59d34
c59d34
* Fri Oct 19 2018 Jan Horak <jhorak@redhat.com> - 60.3.0-1
c59d34
- Update to 60.3.0 ESR
c59d34
c59d34
* Wed Oct 10 2018 Jan Horak <jhorak@redhat.com> - 60.2.2-2
c59d34
- Added patch for rhbz#1633932
c59d34
c59d34
* Tue Oct  2 2018 Jan Horak <jhorak@redhat.com> - 60.2.2-1
c59d34
- Update to 60.2.2 ESR
c59d34
c59d34
* Mon Sep 24 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-1
c59d34
- Update to 60.2.1 ESR
c59d34
c59d34
* Fri Aug 31 2018 Jan Horak <jhorak@redhat.com> - 60.2.0-1
c59d34
- Update to 60.2.0 ESR
c59d34
c59d34
* Tue Aug 28 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-9
c59d34
- Do not set user agent (rhbz#1608065)
c59d34
- GTK dialogs are localized now (rhbz#1619373)
c59d34
- JNLP association works again (rhbz#1607457)
c59d34
c59d34
* Thu Aug 16 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-8
c59d34
- Fixed homepage and bookmarks (rhbz#1606778)
c59d34
- Fixed missing file associations in RHEL6 (rhbz#1613565)
c59d34
c59d34
* Thu Jul 12 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-7
c59d34
- Run at-spi-bus if not running already (for the bundled gtk3)
c59d34
c59d34
* Mon Jul  9 2018 Jan Horak <jhorak@redhat.com> - 60.1.0-6
c59d34
- Fix for missing schemes for bundled gtk3
c59d34
c59d34
* Mon Jun 25 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-5
c59d34
- Added mesa-libEGL dependency to gtk3/rhel6
c59d34
c59d34
* Sun Jun 24 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-4
c59d34
- Disabled jemalloc on all second arches
c59d34
c59d34
* Fri Jun 22 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-3
c59d34
- Updated to 60.1.0 ESR build2
c59d34
c59d34
* Thu Jun 21 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-2
c59d34
- Disabled jemalloc on second arches
c59d34
c59d34
* Wed Jun 20 2018 Martin Stransky <stransky@redhat.com> - 60.1.0-1
c59d34
- Updated to 60.1.0 ESR
c59d34
c59d34
* Wed Jun 13 2018 Jan Horak <jhorak@redhat.com> - 60.0-12
c59d34
- Fixing bundled libffi issues
c59d34
- Readded some requirements
c59d34
c59d34
* Mon Jun 11 2018 Martin Stransky <stransky@redhat.com> - 60.0-10
c59d34
- Added fix for mozilla BZ#1436242 - IPC crashes.
c59d34
c59d34
* Mon Jun 11 2018 Jan Horak <jhorak@redhat.com> - 60.0-9
c59d34
- Bundling libffi for the sec-arches
c59d34
- Added openssl-devel for the Python
c59d34
- Fixing bundled gtk3
c59d34
c59d34
* Fri May 18 2018 Martin Stransky <stransky@redhat.com> - 60.0-8
c59d34
- Added fix for mozilla BZ#1458492
c59d34
c59d34
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-7
c59d34
- Added patch from rhbz#1498561 to fix ppc64(le) crashes.
c59d34
c59d34
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-6
c59d34
- Disabled jemalloc on second arches
c59d34
c59d34
* Sun May  6 2018 Jan Horak <jhorak@redhat.com> - 60.0-4
c59d34
- Update to 60.0 ESR
c59d34
c59d34
* Thu Mar  8 2018 Jan Horak <jhorak@redhat.com> - 52.7.0-1
c59d34
- Update to 52.7.0 ESR
c59d34
c59d34
* Mon Jan 29 2018 Martin Stransky <stransky@redhat.com> - 52.6.0-2
c59d34
- Build Firefox for desktop arches only (x86_64 and ppc64le)
c59d34
c59d34
* Thu Jan 18 2018 Martin Stransky <stransky@redhat.com> - 52.6.0-1
c59d34
- Update to 52.6.0 ESR
c59d34
c59d34
* Thu Nov  9 2017 Jan Horak <jhorak@redhat.com> - 52.5.0-1
c59d34
- Update to 52.5.0 ESR
c59d34
c59d34
* Mon Sep 25 2017 Jan Horak <jhorak@redhat.com> - 52.4.0-1
c59d34
- Update to 52.4.0 ESR
c59d34
c59d34
* Thu Aug  3 2017 Jan Horak <jhorak@redhat.com> - 52.3.0-3
c59d34
- Update to 52.3.0 ESR (b2)
c59d34
- Require correct nss version
c59d34
c59d34
* Tue Jun 13 2017 Jan Horak <jhorak@redhat.com> - 52.2.0-1
c59d34
- Update to 52.2.0 ESR
c59d34
c59d34
* Wed May 24 2017 Jan Horak <jhorak@redhat.com> - 52.1.2-1
c59d34
- Update to 52.1.2 ESR
c59d34
c59d34
* Wed May 24 2017 Jan Horak <jhorak@redhat.com> - 52.0-7
c59d34
- Added fix for accept language (rhbz#1454322)
c59d34
c59d34
* Wed Mar 22 2017 Jan Horak <jhorak@redhat.com> - 52.0-6
c59d34
- Removing patch required for older NSS from RHEL 7.3
c59d34
- Added patch for rhbz#1414564
c59d34
c59d34
* Fri Mar 17 2017 Martin Stransky <stransky@redhat.com> - 52.0-5
c59d34
- Added fix for mozbz#1348168/CVE-2017-5428
c59d34
c59d34
* Mon Mar  6 2017 Jan Horak <jhorak@redhat.com> - 52.0-4
c59d34
- Update to 52.0 ESR (b4)
c59d34
c59d34
* Thu Mar 2 2017 Martin Stransky <stransky@redhat.com> - 52.0-3
c59d34
- Added fix for rhbz#1423012 - ppc64 gfx crashes
c59d34
c59d34
* Wed Mar  1 2017 Jan Horak <jhorak@redhat.com> - 52.0-2
c59d34
- Enable system nss
c59d34
c59d34
* Tue Feb 28 2017 Martin Stransky <stransky@redhat.com> - 52.0-1
c59d34
- Update to 52.0ESR (B1)
c59d34
- Build RHEL7 package for Gtk3
c59d34
c59d34
* Mon Feb 27 2017 Martin Stransky <stransky@redhat.com> - 52.0-0.13
c59d34
- Added fix for rhbz#1414535
c59d34
c59d34
* Tue Feb 21 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.12
c59d34
- Update to 52.0b8
c59d34
c59d34
* Tue Feb  7 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.11
c59d34
- Readded addons patch
c59d34
c59d34
* Mon Feb  6 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.10
c59d34
- Update to 52.0b3
c59d34
c59d34
* Tue Jan 31 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.9
c59d34
- Update to 52.0b2
c59d34
c59d34
* Fri Jan 27 2017 Jan Horak <jhorak@redhat.com> - 52.0-0.8
c59d34
- Update to 52.0b1
c59d34
c59d34
* Thu Dec  8 2016 Jan Horak <jhorak@redhat.com> - 52.0-0.5
c59d34
- Firefox Aurora 52 testing build