7cc1fe
# Set for local builds only
7cc1fe
%global disable_toolsets  0
7cc1fe
fc5871
%if 0%{?fedora} > 35 || 0%{?rhel} > 9
fc5871
%global dictionarydir hunspell
fc5871
%else
fc5871
%global dictionarydir myspell
7cc1fe
%endif
7cc1fe
8a4b0e
%{lua:
8a4b0e
function dist_to_rhel_minor(str, start)
8a4b0e
  match = string.match(str, ".module%+el8.%d+")
8a4b0e
  if match then
8a4b0e
     return string.sub(match, 13)
8a4b0e
  end
8a4b0e
  match = string.match(str, ".el8_%d+")
8a4b0e
  if match then
8a4b0e
     return string.sub(match, 6)
8a4b0e
  end
00fc72
  match = string.match(str, ".el8")
00fc72
  if match then
fc5871
     return 7
00fc72
  end
8a4b0e
  return -1
8a4b0e
end}
8a4b0e
8a4b0e
%global rhel_minor_version %{lua:print(dist_to_rhel_minor(rpm.expand("%dist")))}
fc5871
fc5871
# Produce debug (non-optimized) package build. Suitable for debugging only
fc5871
# as the build is *very* slow.
fc5871
%global debug_build       0
b06239
50bed7
%global system_nss        1
7cc1fe
%global bundle_nss        0
fc5871
%global build_langpacks   1
fc5871
fc5871
# librnp with openssl support, not available in RHEL7 because it requires openssl >= 1.1.1e,
fc5871
# nor in rhel-8.1.0 or rhel-8.2.0
fc5871
%global use_openssl_for_librnp 1
fc5871
%if 0%{?rhel} == 7 || (0%{?rhel} == 8 && %{rhel_minor_version} < 4)
fc5871
%global use_openssl_for_librnp 0
fc5871
%endif
50bed7
7cc1fe
%if 0%{?rhel} == 8
fc5871
  %if %{rhel_minor_version} <= 4
d15791
    %global bundle_nss        1
d15791
    %global system_nss        1
7cc1fe
  %endif
7cc1fe
%endif
50bed7
fc5871
%global build_with_asan   0
7cc1fe
f9adc4
%global use_llvmts        0
d15791
%global use_nodejsts      0
d15791
%if 0%{?rhel} < 8
f9adc4
%global use_llvmts        1
d15791
%global use_nodejsts      1
f9adc4
%endif
f9adc4
fc5871
d15791
%global nodejs_rb         nodejs
d15791
%global llvm_version      7.0
fc5871
%if "%{toolchain}" == "clang"
fc5871
%global build_with_clang 1
fc5871
%else
fc5871
%global build_with_clang 0
7cc1fe
%endif
d15791
fc5871
%ifarch armv7hl
fc5871
%global create_debuginfo  0
fc5871
%endif
d15791
%if 0%{?rhel} == 7
d15791
  %global use_dts         1
d15791
  %global nodejs_rb       rh-nodejs10-nodejs
d15791
  %global llvm_version    11.0
f9adc4
%endif
f9adc4
fc5871
# Temporary disabled due to
fc5871
# https://bugzilla.redhat.com/show_bug.cgi?id=1951606
fc5871
%global enable_mozilla_crashreporter 0
fc5871
fc5871
%global system_ffi        1
fc5871
%ifarch armv7hl
fc5871
%global system_libvpx     1
fc5871
%else
fc5871
%global system_libvpx     0
fc5871
%endif
fc5871
%global hardened_build    1
fc5871
%global system_jpeg       1
fc5871
%global disable_elfhack   1
fc5871
%global use_bundled_cbindgen  1
fc5871
%if %{debug_build}
fc5871
%global release_build     0
fc5871
%endif
fc5871
# Build PGO+LTO on x86_64 only due to build issues
fc5871
# on other arches.
fc5871
%global build_with_pgo    0
fc5871
%ifarch x86_64
fc5871
%if 0%{?release_build}
fc5871
%global build_with_pgo    0
fc5871
%endif
fc5871
%endif
f9adc4
%global use_rustts        1
fc5871
%global dts_version       10
fc5871
%global rust_version      1.62
fc5871
%if 0%{?rhel} >= 8
d15791
  %global use_rustts      0
f9adc4
%endif
fc5871
%if 0%{?flatpak}
fc5871
%global build_with_pgo    0
fc5871
%endif
d15791
f9adc4
%if 0%{?disable_toolsets}
f9adc4
%global use_rustts        0
f9adc4
%global use_dts           0
f9adc4
%global use_llvmts        0
fc5871
%global use_nodejsts      0
fc5871
%global nodejs_rb         nodejs
f9adc4
%endif
f9adc4
f9adc4
# Big endian platforms
f9adc4
%ifarch ppc64 s390x
7cc1fe
%global big_endian        1
f9adc4
%endif
f9adc4
fc5871
%if 0%{?build_with_pgo}
fc5871
%global use_xvfb          1
fc5871
%global build_tests       1
7cc1fe
%endif
7cc1fe
# Minimal required versions
fc5871
%global cairo_version 1.13.1
fc5871
%global freetype_version 2.1.9
fc5871
%global libnotify_version 0.7.0
fc5871
%if %{?system_libvpx}
fc5871
%global libvpx_version 1.8.2
fc5871
%endif
f9adc4
fc5871
%if %{?system_nss}
fc5871
%global nspr_version 4.34
7cc1fe
%global nspr_build_version %{nspr_version}
fc5871
%global nss_version 3.79
7cc1fe
%global nss_build_version %{nss_version}
f9adc4
%endif
fc5871
%define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
fc5871
%global langpackdir   %{mozappdir}/extensions
f9adc4
fc5871
# The tarball is pretty inconsistent with directory structure.
fc5871
# Sometimes there is a top level directory.  That goes here.
fc5871
#
fc5871
# IMPORTANT: If there is no top level directory, this should be
fc5871
# set to the cwd, ie: '.'
fc5871
%define objdir       objdir
fc5871
%define mozappdir    %{_libdir}/thunderbird
50bed7
d15791
%define bundled_install_path %{mozappdir}/bundled
fc5871
%define official_branding 1
f9adc4
# We could use %%include, but in %%files, %%post and other sections, but in these
f9adc4
# sections it could lead to syntax errors about unclosed %%if. Work around it by
f9adc4
# using the following macro
f9adc4
%define include_file() %{expand:%(cat '%1')}
f9adc4
fc5871
# Exclude private libraries from autogenerated provides and requires
fc5871
%global __provides_exclude_from ^%{mozappdir}
fc5871
%global __requires_exclude ^(%%(find %{buildroot}%{mozappdir} -name '*.so' | xargs -n1 basename | sort -u | paste -s -d '|' -))
f9adc4
f9adc4
Summary:        Mozilla Thunderbird mail/newsgroup client
f9adc4
Name:           thunderbird
fc5871
Version:        102.6.0
fc5871
Release:        2%{?dist}
f9adc4
URL:            http://www.mozilla.org/projects/thunderbird/
f9adc4
License:        MPLv1.1 or GPLv2+ or LGPLv2+
f9adc4
d15791
%if 0%{?rhel} == 9
d15791
ExcludeArch:    %{ix86}
d15791
%endif
d15791
%if 0%{?rhel} == 8
5abd3a
  %if %{rhel_minor_version} == 1
5abd3a
ExcludeArch:    %{ix86} aarch64 s390x
5abd3a
  %else
d15791
ExcludeArch:    %{ix86}
5abd3a
  %endif
d15791
%endif
f9adc4
%if 0%{?rhel} == 7
5abd3a
ExcludeArch:    aarch64 s390 ppc
f9adc4
%endif
f9adc4
fc5871
#Source0:        https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.processed-source.tar.xz
d15791
Source0:        thunderbird-%{version}%{?pre_version}.processed-source.tar.xz
f9adc4
%if %{build_langpacks}
fc5871
Source1:        thunderbird-langpacks-%{version}-20221213.tar.xz
f9adc4
%endif
d15791
Source2:        cbindgen-vendor.tar.xz
fc5871
Source3:        process-official-tarball
f9adc4
Source10:       thunderbird-mozconfig
fc5871
Source12:       thunderbird-redhat-default-prefs.js
f9adc4
Source20:       thunderbird.desktop
f9adc4
Source21:       thunderbird.sh.in
f9adc4
Source24:       mozilla-api-key
fc5871
Source25:       thunderbird-symbolic.svg
f9adc4
Source27:       google-api-key
fc5871
Source32:       node-stdout-nonblocking-wrapper
fc5871
Source35:       google-loc-api-key
fc5871
Source403:      nss-3.79.0-6.el8_1.src.rpm
7cc1fe
Source401:      nss-setup-flags-env.inc
fc5871
Source402:      nspr-4.34.0-3.el8_1.src.rpm
d15791
f9adc4
# Build patches
fc5871
Patch3:         mozilla-build-arm.patch
fc5871
Patch25:        rhbz-1219542-s390-build.patch
fc5871
# Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x)
fc5871
Patch40:        build-aarch64-skia.patch
fc5871
Patch41:        build-disable-elfhack.patch
fc5871
Patch44:        build-arm-libopus.patch
fc5871
Patch47:        fedora-shebang-build.patch
fc5871
Patch49:        build-arm-libaom.patch
fc5871
Patch53:        firefox-gcc-build.patch
fc5871
Patch54:        mozilla-1669639.patch
fc5871
Patch71:        0001-GLIBCXX-fix-for-GCC-12.patch
fc5871
Patch72:        build-remove-dav1d-from-wayland-dep.patch
fc5871
Patch73:        build-ascii-decode-fail-rhel7.patch
fc5871
Patch75:        build-big-endian-errors.patch
fc5871
Patch76:        firefox-nss-version.patch
fc5871
Patch77:        mozilla-1775202.patch
fc5871
Patch78:        build-rhel7-lower-node-min-version.patch
fc5871
fc5871
# Fedora specific patches
f9adc4
Patch215:        firefox-enable-addons.patch
f9adc4
Patch219:        rhbz-1173156.patch
f9adc4
Patch224:        mozilla-1170092.patch
fc5871
#ARM run-time patch
fc5871
Patch226:        rhbz-1354671.patch
fc5871
Patch228:        disable-openh264-download.patch
fc5871
Patch229:        firefox-nss-addon-hack.patch
fc5871
Patch230:        disable-openpgp-in-thunderbird.patch
f9adc4
f9adc4
# Upstream patches
fc5871
Patch415:        mozilla-1670333.patch
fc5871
Patch416:        mozilla-bmo1005535.patch
fc5871
Patch417:        mozilla-bmo1504834-part1.patch
fc5871
Patch418:        mozilla-bmo1504834-part3.patch
fc5871
Patch419:        mozilla-bmo849632.patch
fc5871
Patch420:        mozilla-bmo998749.patch
fc5871
Patch421:        mozilla-s390-context.patch
fc5871
Patch422:        mozilla-s390x-skia-gradient.patch
fc5871
Patch423:        one_swizzle_to_rule_them_all.patch
fc5871
Patch424:        svg-rendering.patch
fc5871
Patch425:        D158770.diff
fc5871
Patch5426:        backport-rnp-0.16.2-to-esr102-a-bug-1753683.patch
fc5871
Patch5427:        backport-rnp-0.16.2-to-esr102-b-bug-1790446.patch
fc5871
Patch5428:        backport-rnp-0.16.2-to-esr102-c-bug-1790446.patch
fc5871
Patch5429:        backport-rnp-0.16.2-to-esr102-d-bug-1790446.patch
fc5871
Patch5430:        backport-rnp-0.16.2-to-esr102-e-bug-1790116.patch
fc5871
Patch5431:        backport-rnp-0.16.2-to-esr102-f-bug-1790116.patch
fc5871
Patch5432:        backport-rnp-0.16.2-to-esr102-g-bug-1790116.patch
fc5871
Patch5433:        backport-rnp-0.16.2-to-esr102-h-bug-1790116.patch
fc5871
Patch5434:        backport-rnp-0.16.2-to-esr102-i-bug-1790116.patch
fc5871
Patch5435:        backport-rnp-0.16.2-to-esr102-j-bug-1790662.patch
fc5871
Patch5436:        backport-rnp-0.16.2-to-esr102-k-bug-1790662.patch
fc5871
Patch5437:        backport-rnp-0.16.2-to-esr102-l-bug-1791195.patch
fc5871
Patch5438:        backport-rnp-0.16.2-to-esr102-m-bug-1791195.patch
fc5871
Patch5439:        backport-rnp-use-openssl.patch
fc5871
Patch5479:        D161379.diff
fc5871
Patch5480:        D161895.diff
fc5871
fc5871
# PGO/LTO patches
fc5871
Patch600:        pgo.patch
fc5871
Patch602:        mozilla-1516803.patch
fc5871
fc5871
# Backported WebRTC changes for PipeWire/Wayland screen sharing support
fc5871
Patch1008:      build-rhel7-nasm-dwarf.patch
e2e09b
7cc1fe
%if %{?system_nss}
7cc1fe
%if !0%{?bundle_nss}
7cc1fe
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
7cc1fe
BuildRequires:  pkgconfig(nss) >= %{nss_version}
7cc1fe
BuildRequires:  nss-static >= %{nss_version}
7cc1fe
%endif
7cc1fe
%endif
f9adc4
BuildRequires:  pkgconfig(libpng)
fc5871
%if %{?system_jpeg}
f9adc4
BuildRequires:  libjpeg-devel
fc5871
%endif
7cc1fe
BuildRequires:  zip
7cc1fe
BuildRequires:  bzip2-devel
7cc1fe
BuildRequires:  pkgconfig(zlib)
fc5871
BuildRequires:  pkgconfig(gtk+-3.0)
7cc1fe
BuildRequires:  pkgconfig(gtk+-2.0)
fc5871
BuildRequires:  pkgconfig(krb5)
7cc1fe
BuildRequires:  pkgconfig(pango)
fc5871
BuildRequires:  pkgconfig(freetype2) >= %{freetype_version}
7cc1fe
BuildRequires:  pkgconfig(xt)
fc5871
BuildRequires:  pkgconfig(xtst)
7cc1fe
BuildRequires:  pkgconfig(xrender)
7cc1fe
BuildRequires:  pkgconfig(libstartup-notification-1.0)
fc5871
BuildRequires:  pkgconfig(libnotify) >= %{libnotify_version}
7cc1fe
BuildRequires:  pkgconfig(dri)
7cc1fe
BuildRequires:  pkgconfig(libcurl)
fc5871
BuildRequires:  pkgconfig(alsa)
fc5871
%if %{?use_openssl_for_librnp}
fc5871
BuildRequires:  pkgconfig(openssl)
fc5871
%endif
fc5871
BuildRequires:  libstdc++-devel
fc5871
BuildRequires:  libstdc++-static
7cc1fe
BuildRequires:  dbus-glib-devel
fc5871
%if %{?system_libvpx}
fc5871
BuildRequires:  libvpx-devel >= %{libvpx_version}
fc5871
%endif
fc5871
%if %{?system_ffi}
fc5871
BuildRequires:  libffi-devel
fc5871
%endif
fc5871
BuildRequires:  startup-notification-devel
fc5871
BuildRequires:  alsa-lib-devel
d15791
BuildRequires:  m4
7cc1fe
BuildRequires:  pkgconfig(libpulse)
f9adc4
f9adc4
%if 0%{?use_dts}
f9adc4
BuildRequires:  devtoolset-%{dts_version}-gcc-c++
f9adc4
BuildRequires:  devtoolset-%{dts_version}-gcc
f9adc4
BuildRequires:  devtoolset-%{dts_version}-libatomic-devel
f9adc4
%endif
d15791
%if 0%{?rhel} == 9
d15791
BuildRequires:  gcc
d15791
BuildRequires:  gcc-c++
d15791
BuildRequires:  cargo
d15791
BuildRequires:  rust
d15791
BuildRequires:  clang clang-libs llvm
f9adc4
%endif
fc5871
BuildRequires:  %{nodejs_rb} >= 10.21
fc5871
%if 0%{?rhel} == 7
f9adc4
BuildRequires:  scl-utils
7cc1fe
BuildRequires:  findutils
fc5871
%endif
f9adc4
%if 0%{?rhel} == 8
f9adc4
BuildRequires:  cargo
f9adc4
BuildRequires:  rust >= %{rust_version}
f9adc4
BuildRequires:  llvm >= %{llvm_version}
f9adc4
BuildRequires:  llvm-devel >= %{llvm_version}
f9adc4
BuildRequires:  clang >= %{llvm_version}
f9adc4
BuildRequires:  clang-devel >= %{llvm_version}
7cc1fe
BuildRequires:  rustfmt >= %{rust_version}
fc5871
%endif
fc5871
f9adc4
%if 0%{?use_rustts}
d15791
BuildRequires:  rust-toolset-%{rust_version}
7cc1fe
%endif
fc5871
f9adc4
%if 0%{?use_llvmts}
f9adc4
BuildRequires:  llvm-toolset-%{llvm_version}
f9adc4
BuildRequires:  llvm-toolset-%{llvm_version}-llvm-devel
d15791
BuildRequires:  llvm-toolset-%{llvm_version}-clang
d15791
BuildRequires:  llvm-toolset-%{llvm_version}-clang-devel
f9adc4
%endif
f9adc4
7cc1fe
fc5871
%if 0%{?rhel} > 7
7cc1fe
BuildRequires:  pipewire-devel
f9adc4
%endif
f9adc4
fc5871
%if !0%{?use_bundled_cbindgen}
fc5871
BuildRequires:  cbindgen
fc5871
%endif
fc5871
BuildRequires:  nasm >= 1.13
fc5871
BuildRequires:  libappstream-glib
7cc1fe
fc5871
%if 0%{?big_endian}
fc5871
BuildRequires:  icu
fc5871
%endif
7cc1fe
# Bundled nss/nspr requirement
7cc1fe
%if 0%{?bundle_nss}
7cc1fe
BuildRequires:    nss-softokn
7cc1fe
BuildRequires:    sqlite-devel
7cc1fe
BuildRequires:    zlib-devel
7cc1fe
BuildRequires:    pkgconfig
7cc1fe
BuildRequires:    gawk
7cc1fe
BuildRequires:    psmisc
fc5871
BuildRequires:    perl-interpreter
7cc1fe
BuildRequires:    gcc-c++
7cc1fe
BuildRequires:    xmlto
7cc1fe
%endif
7cc1fe
fc5871
# Don't require any OpenPGP backend with the librnp interface, because RHEL does not have it
fc5871
#Requires:       thunderbird-librnp%{?_isa}
fc5871
# prefer the librnp implementation bundled with thunderbird
fc5871
#Not in RHEL7 Suggests:       thunderbird-librnp-rnp%{?_isa}
7cc1fe
Requires:       p11-kit-trust
fc5871
Requires:       pciutils-libs
f9adc4
%if %{?system_nss}
7cc1fe
%if !0%{?bundle_nss}
7cc1fe
Requires:       nspr >= %{nspr_build_version}
7cc1fe
Requires:       nss >= %{nss_build_version}
7cc1fe
%endif
f9adc4
%endif
fc5871
BuildRequires:  python3-devel
fc5871
BuildRequires:  python3-setuptools
f9adc4
7cc1fe
BuildRequires:  desktop-file-utils
fc5871
%if %{?system_ffi}
fc5871
BuildRequires:  pkgconfig(libffi)
fc5871
%endif
7cc1fe
fc5871
%if 0%{?use_xvfb}
7cc1fe
BuildRequires:  xorg-x11-server-Xvfb
f9adc4
%endif
fc5871
%if %{build_with_asan}
fc5871
BuildRequires:  libasan
fc5871
BuildRequires:  libasan-static
fc5871
%endif
fc5871
BuildRequires:  perl-interpreter
fc5871
#BuildRequires:  fdk-aac-free-devel not on rhel8
fc5871
%if 0%{?test_on_wayland}
fc5871
BuildRequires:  mutter
fc5871
BuildRequires:  gsettings-desktop-schemas
fc5871
BuildRequires:  gnome-settings-daemon
fc5871
BuildRequires:  mesa-dri-drivers
fc5871
BuildRequires:  xorg-x11-server-Xwayland
fc5871
BuildRequires:  dbus-x11
fc5871
BuildRequires:  gnome-keyring
fc5871
%endif
fc5871
%if 0%{?run_firefox_tests}
fc5871
BuildRequires:  procps-ng
fc5871
BuildRequires:  nss-tools
fc5871
BuildRequires:  dejavu-sans-mono-fonts
fc5871
BuildRequires:  dejavu-sans-fonts
fc5871
BuildRequires:  dejavu-serif-fonts
fc5871
BuildRequires:  dbus-x11
fc5871
BuildRequires:  gnome-keyring
fc5871
BuildRequires:  mesa-dri-drivers
fc5871
# ----------------------------------------
fc5871
BuildRequires:  liberation-fonts-common
fc5871
BuildRequires:  liberation-mono-fonts
fc5871
BuildRequires:  liberation-sans-fonts
fc5871
BuildRequires:  liberation-serif-fonts
fc5871
# ----------------------------------
fc5871
# Missing on f32
fc5871
%if 0%{?fedora} > 33
fc5871
BuildRequires:  google-carlito-fonts
fc5871
%endif
fc5871
BuildRequires:  google-droid-sans-fonts
fc5871
BuildRequires:  google-noto-fonts-common
fc5871
BuildRequires:  google-noto-cjk-fonts-common
fc5871
BuildRequires:  google-noto-sans-cjk-ttc-fonts
fc5871
BuildRequires:  google-noto-sans-gurmukhi-fonts
fc5871
BuildRequires:  google-noto-sans-fonts
fc5871
BuildRequires:  google-noto-emoji-color-fonts
fc5871
BuildRequires:  google-noto-sans-sinhala-vf-fonts
fc5871
# -----------------------------------
fc5871
BuildRequires:  thai-scalable-fonts-common
fc5871
BuildRequires:  thai-scalable-waree-fonts
fc5871
BuildRequires:  khmeros-base-fonts
fc5871
BuildRequires:  jomolhari-fonts
fc5871
# ----------------------------------
fc5871
BuildRequires:  lohit-tamil-fonts
fc5871
BuildRequires:  lohit-telugu-fonts
fc5871
# ----------------------------------
fc5871
BuildRequires:  paktype-naskh-basic-fonts
fc5871
# faild to build in Koji / f32
fc5871
%if 0%{?fedora} > 33
fc5871
BuildRequires:  pt-sans-fonts
fc5871
%endif
fc5871
BuildRequires:  smc-meera-fonts
fc5871
BuildRequires:  stix-fonts
fc5871
BuildRequires:  abattis-cantarell-fonts
fc5871
BuildRequires:  xorg-x11-fonts-ISO8859-1-100dpi
fc5871
BuildRequires:  xorg-x11-fonts-misc
fc5871
%endif
fc5871
BuildRequires:  make
fc5871
BuildRequires:  pciutils-libs
fc5871
fc5871
Obsoletes:      mozilla <= 37:1.7.13
fc5871
Provides:       webclient
fc5871
%if 0%{?rhel} == 8 && %{rhel_minor_version} < 6
fc5871
%ifarch aarch64
fc5871
BuildRequires: gcc-toolset-12-annobin-plugin-gcc
fc5871
%endif
8a4b0e
%endif
8a4b0e
f9adc4
d15791
# Bundled libraries
d15791
Provides: bundled(angle)
fc5871
Provides: bundled(audioipc-2)
fc5871
Provides: bundled(brotli)
fc5871
Provides: bundled(bzip2)
d15791
Provides: bundled(cairo)
fc5871
Provides: bundled(cfworker)
fc5871
Provides: bundled(d3.js)
fc5871
Provides: bundled(double-conversion)
fc5871
Provides: bundled(expat)
fc5871
Provides: bundled(fdlibm)
fc5871
Provides: bundled(ffvpx)
fc5871
Provides: bundled(freetype2)
d15791
Provides: bundled(graphite2)
d15791
Provides: bundled(harfbuzz)
fc5871
Provides: bundled(highway)
fc5871
Provides: bundled(intgemm)
fc5871
Provides: bundled(json-c)
d15791
Provides: bundled(kissfft)
d15791
Provides: bundled(libaom)
d15791
Provides: bundled(libcubeb)
d15791
Provides: bundled(libdav1d)
fc5871
Provides: bundled(libgcrypt)
fc5871
Provides: bundled(libgpg-error)
d15791
Provides: bundled(libjpeg)
fc5871
Provides: bundled(libjxl)
fc5871
Provides: bundled(libjxl)
fc5871
Provides: bundled(libmar)
d15791
Provides: bundled(libmkv)
d15791
Provides: bundled(libnestegg)
d15791
Provides: bundled(libogg)
d15791
Provides: bundled(libopus)
fc5871
Provides: bundled(libotr)
d15791
Provides: bundled(libpng)
fc5871
Provides: bundled(libprio)
d15791
Provides: bundled(libsoundtouch)
d15791
Provides: bundled(libspeex_resampler)
fc5871
Provides: bundled(libsrtp)
d15791
Provides: bundled(libtheora)
d15791
Provides: bundled(libtremor)
d15791
Provides: bundled(libvorbis)
d15791
Provides: bundled(libvpx)
d15791
Provides: bundled(libwebp)
fc5871
Provides: bundled(libwebrtc)
d15791
Provides: bundled(libyuv)
d15791
Provides: bundled(mp4parse-rust)
fc5871
Provides: bundled(mp4parse-rust)
fc5871
Provides: bundled(msgpack-c)
fc5871
Provides: bundled(msgpack-c)
d15791
Provides: bundled(mtransport)
fc5871
Provides: bundled(niwcompat)
d15791
Provides: bundled(openmax_dl)
fc5871
Provides: bundled(openmax_il)
fc5871
Provides: bundled(openmax_il)
fc5871
Provides: bundled(ots)
fc5871
Provides: bundled(qcms)
fc5871
Provides: bundled(rlbox_sandboxing_api)
fc5871
Provides: bundled(rnp)
fc5871
Provides: bundled(sfntly)
fc5871
Provides: bundled(sipcc)
fc5871
Provides: bundled(skia)
fc5871
Provides: bundled(sqlite3)
fc5871
Provides: bundled(thebes)
fc5871
Provides: bundled(wasm2c)
fc5871
Provides: bundled(WebRender)
d15791
Provides: bundled(woff2)
d15791
Provides: bundled(xz-embedded)
fc5871
Provides: bundled(ycbcr)
d15791
Provides: bundled(zlib)
d15791
d15791
%if 0%{?bundle_nss}
fc5871
Provides: bundled(nss) = 3.79.0
fc5871
Provides: bundled(nspr) = 4.34.0
d15791
%endif
fc5871
f9adc4
%description
f9adc4
Mozilla Thunderbird is a standalone mail and newsgroup client.
f9adc4
fc5871
#%package librnp-rnp
fc5871
#Summary: OpenPGP implementation for Thunderbird based on RNP
fc5871
#Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
fc5871
#Provides: thunderbird-librnp
fc5871
#Provides: thunderbird-librnp%{?_isa}
fc5871
#Conflicts: thunderbird-librnp%{?_isa}
fc5871
#%description librnp-rnp
fc5871
#The thunderbird-librnp-rnp package contains an OpenPGP implementation
fc5871
#based on RNP.
fc5871
#%files librnp-rnp
fc5871
#%{mozappdir}/librnp.so
fc5871
#%{mozappdir}/rnp-cli
fc5871
#%{mozappdir}/rnpkeys
f9adc4
f9adc4
%prep
7cc1fe
echo "Build environment"
7cc1fe
echo "dist                  %{?dist}"
fc5871
echo "RHEL 8 minor version: %{?rhel_minor_version}"
7cc1fe
echo "use_bundled_ffi       %{?use_bundled_ffi}"
7cc1fe
echo "bundle_nss            %{?bundle_nss}"
7cc1fe
echo "system_nss            %{?system_nss}"
7cc1fe
echo "use_rustts            %{?use_rustts}"
7cc1fe
fc5871
%setup -q
7cc1fe
fc5871
# Build patches
fc5871
%ifarch s390
fc5871
%patch25 -p1 -b .rhbz-1219542-s390
fc5871
%endif
fc5871
%patch40 -p1 -b .aarch64-skia
fc5871
%if 0%{?disable_elfhack}
fc5871
%patch41 -p1 -b .disable-elfhack
fc5871
%endif
fc5871
%patch3  -p1 -b .arm
fc5871
%patch44 -p1 -b .build-arm-libopus
fc5871
%patch47 -p1 -b .fedora-shebang
fc5871
%patch49 -p1 -b .build-arm-libaom
fc5871
%patch53 -p1 -b .firefox-gcc-build
fc5871
%patch54 -p1 -b .1669639
fc5871
%patch71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12
fc5871
%patch72 -p1 -b .build-remove-dav1d-from-wayland-dep
fc5871
fc5871
%patch75 -p1 -b .build-big-endian-errors
fc5871
%patch76 -p1 -b .firefox-nss-version
fc5871
#ppc64le build failure because of webrtc
fc5871
%patch77 -p1 -b .mozilla-1775202
fc5871
fc5871
%patch73 -p1 -b .build-ascii-decode-fail-rhel7
fc5871
%if 0%{?rhel} == 7
fc5871
%patch78 -p1 -b .build-rhel7-lower-node-min-version
fc5871
%endif
f9adc4
fc5871
# Test patches
f9adc4
f9adc4
# Fedora patches
f9adc4
%patch215 -p1 -b .addons
f9adc4
%patch219 -p1 -b .rhbz-1173156
f9adc4
%patch224 -p1 -b .1170092
fc5871
#ARM run-time patch
fc5871
%ifarch aarch64
fc5871
%patch226 -p1 -b .1354671
fc5871
%endif
fc5871
%patch228 -p1 -b .disable-openh264-download
fc5871
%patch229 -p1 -b .firefox-nss-addon-hack
fc5871
fc5871
%patch415 -p1 -b .1670333
fc5871
%patch416 -p1 -b .mozilla-bmo1005535
fc5871
%patch417 -p1 -b .mozilla-bmo1504834-part1
fc5871
%patch418 -p1 -b .mozilla-bmo1504834-part3
fc5871
%patch419 -p1 -b .mozilla-bmo849632
fc5871
%patch420 -p1 -b .mozilla-bmo998749
fc5871
%patch421 -p1 -b .mozilla-s390-context
fc5871
%patch422 -p1 -b .mozilla-s390x-skia-gradient
fc5871
%patch423 -p1 -b .one_swizzle_to_rule_them_all
fc5871
%patch424 -p1 -b .svg-rendering
fc5871
%patch425 -p1 -b .D158770.diff
fc5871
fc5871
%if %{?use_openssl_for_librnp}
fc5871
%patch5426 -p1 -b .backport-rnp-0.16.2-to-esr102-a-bug-1753683
fc5871
%patch5427 -p1 -b .backport-rnp-0.16.2-to-esr102-b-bug-1790446
fc5871
%patch5428 -p1 -b .backport-rnp-0.16.2-to-esr102-c-bug-1790446
fc5871
%patch5429 -p1 -b .backport-rnp-0.16.2-to-esr102-d-bug-1790446
fc5871
%patch5430 -p1 -b .backport-rnp-0.16.2-to-esr102-e-bug-1790116
fc5871
%patch5431 -p1 -b .backport-rnp-0.16.2-to-esr102-f-bug-1790116
fc5871
%patch5432 -p1 -b .backport-rnp-0.16.2-to-esr102-g-bug-1790116
fc5871
%patch5433 -p1 -b .backport-rnp-0.16.2-to-esr102-h-bug-1790116
fc5871
%patch5434 -p1 -b .backport-rnp-0.16.2-to-esr102-i-bug-1790116
fc5871
%patch5435 -p1 -b .backport-rnp-0.16.2-to-esr102-j-bug-1790662
fc5871
%patch5436 -p1 -b .backport-rnp-0.16.2-to-esr102-k-bug-1790662
fc5871
%patch5437 -p1 -b .backport-rnp-0.16.2-to-esr102-l-bug-1791195
fc5871
%patch5438 -p1 -b .backport-rnp-0.16.2-to-esr102-m-bug-1791195
fc5871
%patch5439 -p1 -b .backport-rnp-use-openssl
fc5871
pushd comm
fc5871
%patch5479 -p1 -b .D161379.diff
fc5871
%patch5480 -p1 -b .D161895.diff
fc5871
popd
fc5871
%else
fc5871
%patch230 -p1 -b .disable-openpgp-in-thunderbird
fc5871
%endif
8a4b0e
fc5871
# PGO patches
fc5871
%if %{build_with_pgo}
fc5871
%if !%{build_with_clang}
fc5871
%patch600 -p1 -b .pgo
fc5871
%patch602 -p1 -b .1516803
fc5871
%endif
f9adc4
%endif
f9adc4
d15791
%if 0%{?rhel} == 7
d15791
  %ifarch %{ix86}
d15791
# -F dwarf not available in RHEL7's nasm
d15791
%patch1008 -p1 -b .build-rhel7-nasm-dwarf
d15791
  %endif
b06239
%endif
b06239
fc5871
fc5871
f9adc4
%{__rm} -f .mozconfig
f9adc4
%{__cp} %{SOURCE10} .mozconfig
fc5871
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-wayland" >> .mozconfig
f9adc4
%if %{official_branding}
d15791
echo "ac_add_options --enable-official-branding" >> .mozconfig
f9adc4
%endif
f9adc4
%{__cp} %{SOURCE24} mozilla-api-key
f9adc4
%{__cp} %{SOURCE27} google-api-key
fc5871
%{__cp} %{SOURCE35} google-loc-api-key
fc5871
fc5871
echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig
fc5871
echo "ac_add_options --libdir=\"%{_libdir}\"" >> .mozconfig
f9adc4
f9adc4
%if %{?system_nss}
d15791
echo "ac_add_options --with-system-nspr" >> .mozconfig
d15791
echo "ac_add_options --with-system-nss" >> .mozconfig
f9adc4
%else
d15791
echo "ac_add_options --without-system-nspr" >> .mozconfig
d15791
echo "ac_add_options --without-system-nss" >> .mozconfig
f9adc4
%endif
f9adc4
fc5871
%if %{?system_ffi}
fc5871
echo "ac_add_options --enable-system-ffi" >> .mozconfig
f9adc4
%endif
f9adc4
fc5871
%ifarch %{arm}
fc5871
echo "ac_add_options --disable-elf-hack" >> .mozconfig
7cc1fe
%endif
7cc1fe
f9adc4
%if %{?debug_build}
d15791
echo "ac_add_options --enable-debug" >> .mozconfig
d15791
echo "ac_add_options --disable-optimize" >> .mozconfig
f9adc4
%else
fc5871
%global optimize_flags "none"
d15791
%ifarch s390x
7cc1fe
%global optimize_flags "-g -O1"
f9adc4
%endif
f9adc4
%ifarch ppc64le aarch64
f9adc4
%global optimize_flags "-g -O2"
f9adc4
%endif
f9adc4
%if %{optimize_flags} != "none"
f9adc4
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
f9adc4
%else
f9adc4
echo 'ac_add_options --enable-optimize' >> .mozconfig
f9adc4
%endif
f9adc4
echo "ac_add_options --disable-debug" >> .mozconfig
f9adc4
%endif
f9adc4
f9adc4
# Second arches fail to start with jemalloc enabled
f9adc4
%ifnarch %{ix86} x86_64
f9adc4
echo "ac_add_options --disable-jemalloc" >> .mozconfig
f9adc4
%endif
f9adc4
fc5871
%if 0%{?build_tests}
fc5871
echo "ac_add_options --enable-tests" >> .mozconfig
fc5871
%else
fc5871
echo "ac_add_options --disable-tests" >> .mozconfig
f9adc4
%endif
f9adc4
fc5871
%if !%{?system_jpeg}
fc5871
echo "ac_add_options --without-system-jpeg" >> .mozconfig
fc5871
%else
fc5871
echo "ac_add_options --with-system-jpeg" >> .mozconfig
fc5871
%endif
fc5871
fc5871
%if %{?system_libvpx}
fc5871
echo "ac_add_options --with-system-libvpx" >> .mozconfig
fc5871
%else
fc5871
echo "ac_add_options --without-system-libvpx" >> .mozconfig
fc5871
%endif
fc5871
fc5871
%ifarch s390 s390x
7cc1fe
echo "ac_add_options --disable-jit" >> .mozconfig
7cc1fe
%endif
7cc1fe
fc5871
%if %{build_with_asan}
fc5871
echo "ac_add_options --enable-address-sanitizer" >> .mozconfig
fc5871
echo "ac_add_options --disable-jemalloc" >> .mozconfig
fc5871
%endif
fc5871
fc5871
%if !%{enable_mozilla_crashreporter}
fc5871
echo "ac_add_options --disable-crashreporter" >> .mozconfig
7cc1fe
%endif
fc5871
%if %{?use_openssl_for_librnp}
fc5871
echo "ac_add_options --with-librnp-backend=openssl" >> .mozconfig
f9adc4
%endif
f9adc4
d15791
# AV1 requires newer nasm that was rebased in 8.4
fc5871
%if 0%{?rhel} == 7 || (0%{?rhel} == 8 && %{rhel_minor_version} < 4)
d15791
echo "ac_add_options --disable-av1" >> .mozconfig
d15791
%endif
d15791
fc5871
# api keys full path
fc5871
echo "ac_add_options --with-mozilla-api-keyfile=`pwd`/mozilla-api-key" >> .mozconfig
fc5871
# It seems that the api key we have is for the safe browsing only
fc5871
echo "ac_add_options --with-google-location-service-api-keyfile=`pwd`/google-loc-api-key" >> .mozconfig
fc5871
echo "ac_add_options --with-google-safebrowsing-api-keyfile=`pwd`/google-api-key" >> .mozconfig
f9adc4
fc5871
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
d15791
f9adc4
# Remove executable bit to make brp-mangle-shebangs happy.
fc5871
find third_party -type f  -iname "*.rs"|xargs chmod a-x
f9adc4
fc5871
#===============================================================================
f9adc4
f9adc4
%build
d15791
# Disable LTO to work around rhbz#1883904
d15791
%define _lto_cflags %{nil}
f9adc4
export PATH="%{_buildrootdir}/bin:$PATH"
fc5871
# Cleanup buildroot for existing rpms from bundled nss/nspr and other packages
fc5871
rm -rf %{_buildrootdir}/*
f9adc4
f9adc4
function install_rpms_to_current_dir() {
f9adc4
    PACKAGE_RPM=$(eval echo $1)
f9adc4
    PACKAGE_DIR=%{_rpmdir}
f9adc4
f9adc4
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
f9adc4
        # Hack for tps tests
f9adc4
        ARCH_STR=%{_arch}
d15791
        %ifarch %{ix86}
f9adc4
            ARCH_STR="i?86"
f9adc4
        %endif
d15791
        PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
f9adc4
     fi
f9adc4
f9adc4
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
f9adc4
     do
f9adc4
         echo "$package"
f9adc4
         rpm2cpio "$package" | cpio -idu
f9adc4
     done
f9adc4
}
7cc1fe
%if 0%{?bundle_nss}
d15791
  rpm -ivh %{SOURCE402}
d15791
  #rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nspr.spec
d15791
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nspr.spec
d15791
  pushd %{_buildrootdir}
d15791
  install_rpms_to_current_dir nspr-4*.rpm
d15791
  install_rpms_to_current_dir nspr-devel*.rpm
d15791
  popd
d15791
  echo "Setting nspr flags"
d15791
  # nss-setup-flags-env.inc
d15791
  sed -i 's@%{bundled_install_path}@%{_buildrootdir}%{bundled_install_path}@g' %{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig/nspr*.pc
fc5871
  cat %{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig/nspr*.pc
7cc1fe
d15791
  export LDFLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
d15791
  export LDFLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $LDFLAGS"
d15791
  export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $LDFLAGS"
d15791
  export PKG_CONFIG_PATH=%{_buildrootdir}%{bundled_install_path}/%{_lib}/pkgconfig
fc5871
  pkg-config --libs-only-L nspr
fc5871
  pkg-config --libs nspr
fc5871
  export PATH="%{_buildrootdir}%{bundled_install_path}/bin:$PATH"
d15791
d15791
  export PATH=%{_buildrootdir}/%{bundled_install_path}/bin:$PATH
d15791
  echo $PKG_CONFIG_PATH
d15791
d15791
  rpm -ivh %{SOURCE403}
5abd3a
  rpmbuild --nodeps --define '_prefix %{bundled_install_path}' --without=tests -ba %{_specdir}/nss.spec
d15791
  pushd %{_buildrootdir}
d15791
  #cleanup
d15791
  install_rpms_to_current_dir nss-3*.rpm
d15791
  install_rpms_to_current_dir nss-devel*.rpm
d15791
  install_rpms_to_current_dir nss-pkcs11-devel*.rpm
d15791
  install_rpms_to_current_dir nss-softokn-3*.rpm
d15791
  install_rpms_to_current_dir nss-softokn-devel*.rpm
d15791
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
d15791
  install_rpms_to_current_dir nss-softokn-freebl-devel*.rpm
d15791
  install_rpms_to_current_dir nss-util-3*.rpm
d15791
  install_rpms_to_current_dir nss-util-devel*.rpm
d15791
  popd
d15791
  %filter_provides_in %{bundled_install_path}/%{_lib}
d15791
  %filter_requires_in %{bundled_install_path}/%{_lib}
d046e9
  %filter_from_requires /libnss3.so.*/d
d046e9
  %filter_from_requires /libsmime3.so.*/d
d046e9
  %filter_from_requires /libssl3.so.*/d
d046e9
  %filter_from_requires /libnssutil3.so.*/d
d046e9
  %filter_from_requires /libnspr4.so.*/d
d15791
  find %{_buildrootdir}
f9adc4
%endif
f9adc4
f9adc4
set +e
fc5871
%if 0%{?rhel} == 8 && %{rhel_minor_version} < 6
fc5871
%ifarch aarch64
fc5871
source scl_source enable gcc-toolset-12
fc5871
%endif
fc5871
%endif
f9adc4
%if 0%{?use_dts}
f9adc4
source scl_source enable devtoolset-%{dts_version}
f9adc4
%endif
f9adc4
%if 0%{?use_rustts}
d15791
source scl_source enable rust-toolset-%{rust_version}
d15791
%endif
d15791
%if 0%{?use_nodejsts}
d15791
source scl_source enable rh-nodejs10
f9adc4
%endif
fc5871
%if 0%{?use_llvmts}
fc5871
source scl_source enable llvm-toolset-%{llvm_version}
fc5871
%endif
f9adc4
fc5871
set -e
7cc1fe
env
7cc1fe
which gcc
7cc1fe
which c++
7cc1fe
which g++
7cc1fe
which ld
d15791
which nasm
fc5871
which node
fc5871
%if 0%{?use_bundled_cbindgen}
f9adc4
mkdir -p my_rust_vendor
f9adc4
cd my_rust_vendor
7cc1fe
%{__tar} xf %{SOURCE2}
f9adc4
mkdir -p .cargo
f9adc4
cat > .cargo/config <
f9adc4
[source.crates-io]
f9adc4
replace-with = "vendored-sources"
f9adc4
f9adc4
[source.vendored-sources]
fc5871
directory = "`pwd`"
f9adc4
EOL
f9adc4
fc5871
%ifarch aarch64
fc5871
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
fc5871
%endif
f9adc4
fc5871
env CARGO_HOME=.cargo cargo install cbindgen
fc5871
export PATH=`pwd`/.cargo/bin:$PATH
fc5871
cd -
fc5871
%endif
f9adc4
f9adc4
mkdir %{_buildrootdir}/bin || :
fc5871
cp %{SOURCE32} %{_buildrootdir}/bin || :
f9adc4
f9adc4
# Update the various config.guess to upstream release for aarch64 support
fc5871
# Do not update config.guess in the ./third_party/rust because that would break checksums
fc5871
find ./ -path ./third_party/rust -prune -o -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
f9adc4
f9adc4
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
f9adc4
#rhbz#1037063
f9adc4
# -Werror=format-security causes build failures when -Wno-format is explicitly given
f9adc4
# for some sources
f9adc4
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
f9adc4
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
fc5871
%if 0%{?fedora} < 30
f9adc4
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
fc5871
%else
fc5871
# Workaround for mozbz#1531309
fc5871
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//')
fc5871
%endif
fc5871
%if 0%{?fedora} > 30
fc5871
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fpermissive"
fc5871
%endif
f9adc4
%if %{?hardened_build}
fc5871
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
fc5871
%endif
f9adc4
%if %{?debug_build}
fc5871
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
fc5871
%endif
fc5871
%ifarch s390
fc5871
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
fc5871
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
fc5871
# overrides the -g1 from line above and breaks building on s390/arm
fc5871
# (OOM when linking, rhbz#1238225)
fc5871
export MOZ_DEBUG_FLAGS=" "
f9adc4
%endif
7cc1fe
fc5871
%ifarch %{arm} %{ix86}
fc5871
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g0/')
fc5871
export MOZ_DEBUG_FLAGS=" "
fc5871
%endif
d15791
%if !%{build_with_clang}
fc5871
%ifarch s390x ppc aarch64 %{ix86}
fc5871
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
fc5871
%endif
fc5871
%ifarch %{arm}
fc5871
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--strip-debug"
fc5871
echo "ac_add_options --enable-linker=gold" >> .mozconfig
fc5871
%endif
fc5871
%endif
fc5871
%if 0%{?flatpak}
fc5871
# Make sure the linker can find libraries in /app/lib64 as we don't use
fc5871
# __global_ldflags that normally sets this.
fc5871
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}"
fc5871
%endif
fc5871
%ifarch %{arm} %{ix86} %{s390x}
fc5871
export RUSTFLAGS="-Cdebuginfo=0"
fc5871
echo 'export RUSTFLAGS="-Cdebuginfo=0"' >> .mozconfig
fc5871
%endif
fc5871
#%ifarch aarch64
fc5871
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
fc5871
#echo 'export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"' >> .mozconfig
fc5871
#%endif
fc5871
%if %{build_with_asan}
fc5871
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address -Dxmalloc=myxmalloc"
fc5871
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -fsanitize=address -ldl"
f9adc4
%endif
d15791
d15791
%if 0%{?bundle_nss}
d15791
  mkdir -p %{_buildrootdir}%{bundled_install_path}/%{_lib}
d15791
  MOZ_LINK_FLAGS="-L%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
d15791
  MOZ_LINK_FLAGS="-Wl,-rpath,%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
d15791
  MOZ_LINK_FLAGS="-Wl,-rpath-link,%{_buildrootdir}%{bundled_install_path}/%{_lib} $MOZ_LINK_FLAGS"
b06239
%endif
f9adc4
fc5871
# We don't want thunderbird to use CK_GCM_PARAMS_V3 in nss
fc5871
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT"
f9adc4
d15791
echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
d15791
echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
d15791
echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig
d15791
d15791
%if %{build_with_clang}
fc5871
echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig
fc5871
echo "export AR=\"llvm-ar\"" >> .mozconfig
fc5871
echo "export NM=\"llvm-nm\"" >> .mozconfig
fc5871
echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig
fc5871
echo "ac_add_options --enable-linker=lld" >> .mozconfig
d15791
%else
fc5871
echo "export CC=gcc" >> .mozconfig
fc5871
echo "export CXX=g++" >> .mozconfig
fc5871
echo "export AR=\"gcc-ar\"" >> .mozconfig
fc5871
echo "export NM=\"gcc-nm\"" >> .mozconfig
fc5871
echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
fc5871
%endif
fc5871
%if 0%{?build_with_pgo}
fc5871
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
fc5871
# PGO build doesn't work with ccache
fc5871
export CCACHE_DISABLE=1
d15791
%endif
f9adc4
f9adc4
MOZ_SMP_FLAGS=-j1
fc5871
# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
fc5871
# however builds tend to fail on other arches when building in parallel.
fc5871
#%ifarch %{ix86} s390x %{arm} aarch64 ppc64le
fc5871
#[ -z "$RPM_BUILD_NCPUS" ] && \
fc5871
#     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
fc5871
#[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
fc5871
#%endif
fc5871
#%ifarch x86_64 ppc ppc64 ppc64le
fc5871
[ -z "$RPM_BUILD_NCPUS" ] && \
d15791
       RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
fc5871
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
fc5871
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
fc5871
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
fc5871
[ "$RPM_BUILD_NCPUS" -ge 16 ] && MOZ_SMP_FLAGS=-j16
fc5871
#%endif
f9adc4
fc5871
echo "mk_add_options MOZ_MAKE_FLAGS=\"$MOZ_SMP_FLAGS\"" >> .mozconfig
fc5871
echo "mk_add_options MOZ_SERVICES_SYNC=1" >> .mozconfig
fc5871
echo "export STRIP=/bin/true" >> .mozconfig
fc5871
#export MACH_USE_SYSTEM_PYTHON=1
d046e9
7cc1fe
%if 0%{?bundle_nss}
d15791
  echo "Setting nss flags"
d15791
  # nss-setup-flags-env.inc
d15791
  %include_file %{SOURCE401}
d15791
  export PATH=%{_buildrootdir}/%{bundled_install_path}/bin:$PATH
d15791
  echo $PKG_CONFIG_PATH
7cc1fe
%endif
7cc1fe
7cc1fe
d15791
export MACH_USE_SYSTEM_PYTHON=1
fc5871
./mach build -v || exit 1
f9adc4
f9adc4
fc5871
#---------------------------------------------------------------------
f9adc4
%install
d15791
export MACH_USE_SYSTEM_PYTHON=1
f9adc4
function install_rpms_to_current_dir() {
f9adc4
    PACKAGE_RPM=$(eval echo $1)
f9adc4
    PACKAGE_DIR=%{_rpmdir}
f9adc4
f9adc4
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
f9adc4
        # Hack for tps tests
f9adc4
        ARCH_STR=%{_arch}
d15791
        %ifarch %{ix86}
f9adc4
            ARCH_STR="i?86"
f9adc4
        %endif
d15791
        PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
f9adc4
     fi
f9adc4
f9adc4
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
f9adc4
     do
f9adc4
         echo "$package"
f9adc4
         rpm2cpio "$package" | cpio -idu
f9adc4
     done
f9adc4
}
f9adc4
7cc1fe
%if 0%{?bundle_nss}
7cc1fe
  pushd %{buildroot}
7cc1fe
  #install_rpms_to_current_dir nss-*.rpm
7cc1fe
  install_rpms_to_current_dir nspr-4*.rpm
7cc1fe
  install_rpms_to_current_dir nss-3*.rpm
7cc1fe
  install_rpms_to_current_dir nss-softokn-3*.rpm
7cc1fe
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
7cc1fe
  install_rpms_to_current_dir nss-util-3*.rpm
d15791
7cc1fe
  # cleanup unecessary nss files
d15791
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/bin
d15791
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/include
d15791
  rm -rf %{buildroot}/%{bundled_install_path}/lib/dracut
d15791
  rm -rf %{buildroot}/%{bundled_install_path}/%{_lib}/nss
d15791
  #rm -rf %{_buildrootdir}/%{bundled_install_path}/%{_lib}/pkgconfig
d15791
  rm -rf %{buildroot}/%{bundled_install_path}/%{_lib}/share
d15791
  rm -rf %{buildroot}/%{bundled_install_path}/share
7cc1fe
  rm -rf %{buildroot}/etc/pki
7cc1fe
  rm -rf %{buildroot}/usr/lib/.build-id
7cc1fe
  rm -rf %{buildroot}/etc/crypto-policies
7cc1fe
  popd
7cc1fe
%endif
7cc1fe
f9adc4
DESTDIR=%{buildroot} make -C objdir install
f9adc4
fc5871
fc5871
# install icons
fc5871
for s in 16 22 24 32 48 64 128 256; do
fc5871
    %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps
fc5871
    %{__cp} -p comm/mail/branding/%{name}/default${s}.png \
fc5871
               $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/thunderbird.png
fc5871
done
fc5871
fc5871
# Install high contrast icon
fc5871
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
fc5871
%{__cp} -p %{SOURCE25} \
fc5871
           %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
f9adc4
f9adc4
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
f9adc4
f9adc4
# set up the thunderbird start script
fc5871
rm -f $RPM_BUILD_ROOT/%{_bindir}/thunderbird
fc5871
%{__cat} %{SOURCE21} | %{__sed} -e 's,%PREFIX%,%{_prefix},g' > \
fc5871
        $RPM_BUILD_ROOT/%{_bindir}/thunderbird
fc5871
%{__chmod} 755 $RPM_BUILD_ROOT/%{_bindir}/thunderbird
fc5871
# Run firefox under wayland only on RHEL9 and newer
fc5871
%if 0%{?rhel} < 9
fc5871
sed -i -e 's|%DISABLE_WAYLAND_PLACEHOLDER%|export MOZ_DISABLE_WAYLAND=1|' %{buildroot}%{_bindir}/thunderbird
fc5871
%else
fc5871
sed -i -e 's|%DISABLE_WAYLAND_PLACEHOLDER%||' %{buildroot}%{_bindir}/thunderbird
fc5871
%endif
f9adc4
fc5871
# set up our default preferences
fc5871
%{__cat} %{SOURCE12} | %{__sed} -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g' \
fc5871
        -e 's,myspell,%{dictionarydir},g' \
fc5871
        > $RPM_BUILD_ROOT/rh-default-prefs
fc5871
%{__install} -D $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{mozappdir}/greprefs/all-redhat.js
fc5871
%{__install} -D $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{mozappdir}/defaults/pref/all-redhat.js
fc5871
%{__rm} $RPM_BUILD_ROOT/rh-default-prefs
f9adc4
fc5871
%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/thunderbird-config
f9adc4
f9adc4
# own mozilla plugin dir (#135050)
fc5871
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
f9adc4
f9adc4
# own extension directories
fc5871
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{thunderbird_app_id}
fc5871
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{thunderbird_app_id}
fc5871
fc5871
# System config dir (#1525709)
fc5871
%{__mkdir_p} %{buildroot}%{_sysconfdir}/%{name}/pref
f9adc4
f9adc4
# Install langpacks
fc5871
%{__rm} -f %{name}.lang # Delete for --short-circuit option
fc5871
touch %{name}.lang
fc5871
fc5871
%if 0%{?build_langpacks}
f9adc4
%{__mkdir_p} %{buildroot}%{langpackdir}
f9adc4
%{__tar} xf %{SOURCE1}
f9adc4
for langpack in `ls thunderbird-langpacks/*.xpi`; do
f9adc4
  language=`basename $langpack .xpi`
f9adc4
  extensionID=langpack-$language@thunderbird.mozilla.org
f9adc4
  %{__mkdir_p} $extensionID
d15791
  unzip -qq $langpack -d $extensionID
f9adc4
  find $extensionID -type f | xargs chmod 644
f9adc4
f9adc4
  cd $extensionID
d15791
  zip -qq -r9mX ../${extensionID}.xpi *
f9adc4
  cd -
f9adc4
f9adc4
  %{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
f9adc4
  language=`echo $language | sed -e 's/-/_/g'`
f9adc4
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
f9adc4
done
f9adc4
%{__rm} -rf thunderbird-langpacks
7cc1fe
%endif
f9adc4
fc5871
f9adc4
# Get rid of devel package and its debugsymbols
fc5871
%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-devel-%{version}
f9adc4
f9adc4
# Copy over the LICENSE
fc5871
install -c -m 644 LICENSE $RPM_BUILD_ROOT%{mozappdir}
f9adc4
f9adc4
# Use the system hunspell dictionaries
fc5871
%{__rm} -rf $RPM_BUILD_ROOT/%{mozappdir}/dictionaries
fc5871
ln -s $(pkg-config --variable prefix hunspell)/share/%{dictionarydir} $RPM_BUILD_ROOT%{mozappdir}/dictionaries
f9adc4
f9adc4
# ghost files
fc5871
%{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/components
fc5871
touch $RPM_BUILD_ROOT%{mozappdir}/components/compreg.dat
fc5871
touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat
7cc1fe
fc5871
# Add debuginfo for crash-stats.mozilla.com
fc5871
%if %{enable_mozilla_crashreporter}
fc5871
%{__mkdir_p} $RPM_BUILD_ROOT/%{moz_debug_dir}
fc5871
%{__cp} %{objdir}/dist/%{symbols_file_name} $RPM_BUILD_ROOT/%{moz_debug_dir}
fc5871
%endif
7cc1fe
fc5871
# Removing librnp.so - we cannot deliver librnp with botan crypto backend RHELs
fc5871
%if !%{?use_openssl_for_librnp}
fc5871
%{__rm} -rf %{buildroot}%{mozappdir}/librnp.so %{buildroot}%{mozappdir}/rnp-cli %{buildroot}%{mozappdir}/rnpkeys
fc5871
%endif
5abd3a
5abd3a
# Register as an application to be visible in the software center
fc5871
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
fc5871
%{__cp} -p comm/mail/branding/%{name}/net.thunderbird.Thunderbird.appdata.xml $RPM_BUILD_ROOT%{_datadir}/metainfo/thunderbird.appdata.xml
fc5871
sed -i -e 's|<icon .*|<icon type="stock">thunderbird</icon>|' "$RPM_BUILD_ROOT%{_datadir}/metainfo/thunderbird.appdata.xml"
8a4b0e
fc5871
#===============================================================================
f9adc4
f9adc4
%clean
f9adc4
rm -rf %{_srcrpmdir}/libffi*.src.rpm
f9adc4
find %{_rpmdir} -name "libffi*.rpm" -delete
f9adc4
rm -rf %{_srcrpmdir}/openssl*.src.rpm
f9adc4
find %{_rpmdir} -name "openssl*.rpm" -delete
7cc1fe
rm -rf %{_srcrpmdir}/nss*.src.rpm
7cc1fe
find %{_rpmdir} -name "nss*.rpm" -delete
7cc1fe
rm -rf %{_srcrpmdir}/nspr*.src.rpm
7cc1fe
find %{_rpmdir} -name "nspr*.rpm" -delete
f9adc4
f9adc4
%post
f9adc4
update-desktop-database &> /dev/null || :
f9adc4
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
f9adc4
f9adc4
%postun
d15791
update-desktop-database &> /dev/null || :
f9adc4
if [ $1 -eq 0 ] ; then
f9adc4
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
f9adc4
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
f9adc4
fi
f9adc4
f9adc4
%posttrans
f9adc4
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
f9adc4
f9adc4
#===============================================================================
d15791
%files -f %{name}.lang
f9adc4
%defattr(-,root,root,-)
f9adc4
%attr(755,root,root) %{_bindir}/thunderbird
fc5871
%{_datadir}/metainfo/*.appdata.xml
f9adc4
%attr(644,root,root) %{_datadir}/applications/thunderbird.desktop
fc5871
%dir %{_sysconfdir}/%{name}
fc5871
%dir %{_sysconfdir}/%{name}/*
f9adc4
%dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id}
f9adc4
%dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id}
f9adc4
%dir %{mozappdir}
f9adc4
%doc %{mozappdir}/LICENSE
f9adc4
%{mozappdir}/chrome
f9adc4
%dir %{mozappdir}/components
f9adc4
%ghost %{mozappdir}/components/compreg.dat
f9adc4
%ghost %{mozappdir}/components/xpti.dat
f9adc4
%{mozappdir}/omni.ja
f9adc4
%{mozappdir}/plugin-container
f9adc4
%{mozappdir}/defaults
f9adc4
%{mozappdir}/dictionaries
fc5871
%if %{build_langpacks}
fc5871
%dir %{langpackdir}
fc5871
%endif
f9adc4
%{mozappdir}/greprefs
f9adc4
%{mozappdir}/isp
f9adc4
%{mozappdir}/thunderbird-bin
f9adc4
%{mozappdir}/thunderbird
f9adc4
%{mozappdir}/*.so
f9adc4
%{mozappdir}/platform.ini
f9adc4
%{mozappdir}/application.ini
f9adc4
%exclude %{mozappdir}/removed-files
f9adc4
%{_datadir}/icons/hicolor/16x16/apps/thunderbird.png
f9adc4
%{_datadir}/icons/hicolor/22x22/apps/thunderbird.png
f9adc4
%{_datadir}/icons/hicolor/24x24/apps/thunderbird.png
f9adc4
%{_datadir}/icons/hicolor/256x256/apps/thunderbird.png
f9adc4
%{_datadir}/icons/hicolor/32x32/apps/thunderbird.png
f9adc4
%{_datadir}/icons/hicolor/48x48/apps/thunderbird.png
fc5871
%{_datadir}/icons/hicolor/64x64/apps/thunderbird.png
fc5871
%{_datadir}/icons/hicolor/128x128/apps/thunderbird.png
fc5871
%{_datadir}/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg
fc5871
%if %{enable_mozilla_crashreporter}
fc5871
%{mozappdir}/crashreporter
fc5871
%{mozappdir}/crashreporter.ini
fc5871
%{mozappdir}/Throbber-small.gif
fc5871
%endif
f9adc4
%if !%{?system_nss}
fc5871
%{mozappdir}/*.chk
f9adc4
%endif
fc5871
%{mozappdir}/dependentlibs.list
fc5871
%{mozappdir}/fonts
fc5871
%{mozappdir}/pingsender
fc5871
%if %{?use_openssl_for_librnp}
fc5871
%{mozappdir}/librnp.so
fc5871
%{mozappdir}/rnp-cli
fc5871
%{mozappdir}/rnpkeys
f9adc4
%endif
f9adc4
7cc1fe
%if 0%{?bundle_nss}
7cc1fe
%{mozappdir}/bundled/%{_lib}/libfreebl*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libnss3*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libnssdbm3*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libnssutil3*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libsmime3*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libsoftokn*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libssl3*
7cc1fe
%{mozappdir}/bundled/%{_lib}/libnspr4.so
7cc1fe
%{mozappdir}/bundled/%{_lib}/libplc4.so
7cc1fe
%{mozappdir}/bundled/%{_lib}/libplds4.so
7cc1fe
%endif
f9adc4
f9adc4
#===============================================================================
f9adc4
f9adc4
%changelog
fc5871
* Tue Dec 13 2022 Eike Rathke <erack@redhat.com> - 102.6.0-2
fc5871
- Update to 102.6.0 build2
fc5871
fc5871
* Fri Dec 09 2022 Eike Rathke <erack@redhat.com> - 102.6.0-1
fc5871
- Update to 102.6.0 build1
fc5871
fc5871
* Tue Nov 29 2022 Jan Horak <jhorak@redhat.com> - 102.5.0-3
fc5871
- Use openssl for the librnp crypto backend to enable the openpgp encryption
fc5871
fc5871
* Tue Nov 15 2022 Eike Rathke <erack@redhat.com> - 102.5.0-2
fc5871
- Update to 102.5.0 build2
fc5871
fc5871
* Fri Nov 11 2022 Eike Rathke <erack@redhat.com> - 102.5.0-1
fc5871
- Update to 102.5.0 build1
fc5871
fc5871
* Mon Oct 17 2022 Eike Rathke <erack@redhat.com> - 102.4.0-1
fc5871
- Update to 102.4.0 build1
fc5871
fc5871
* Wed Oct 12 2022 Jan Horak <jhorak@redhat.com> - 102.3.0-4
fc5871
- Fix for expat CVE-2022-40674
fc5871
fc5871
* Fri Sep 16 2022 Jan Horak <jhorak@redhat.com> - 102.3.0-3
fc5871
- Update to 102.3.0 build1
fc5871
fc5871
* Fri Aug 19 2022 Eike Rathke <erack@redhat.com> - 91.13.0-1
fc5871
- Update to 91.13.0 build1
fc5871
fc5871
* Mon Jul 25 2022 Eike Rathke <erack@redhat.com> - 91.12.0-1
fc5871
- Update to 91.12.0 build1
fc5871
fc5871
* Tue Jun 28 2022 Eike Rathke <erack@redhat.com> - 91.11.0-2
fc5871
- Update to 91.11.0 build2
fc5871
fc5871
* Thu Jun 23 2022 Eike Rathke <erack@redhat.com> - 91.11.0-1
fc5871
- Update to 91.11.0 build1
fc5871
fc5871
* Mon May 30 2022 Eike Rathke <erack@redhat.com> - 91.10.0-1
fc5871
- Update to 91.10.0 build1
fc5871
fc5871
* Mon May 23 2022 Jan Horak <jhorak@redhat.com> - 91.9.1-1
fc5871
- Update to 91.9.1 build1
fc5871
fc5871
* Tue May 03 2022 Eike Rathke <erack@redhat.com> - 91.9.0-3
fc5871
- Update to 91.9.0 build3
fc5871
fc5871
* Mon May 02 2022 Eike Rathke <erack@redhat.com> - 91.9.0-2
fc5871
- Update to 91.9.0 build2
fc5871
fc5871
* Thu Apr 28 2022 Eike Rathke <erack@redhat.com> - 91.9.0-1
fc5871
- Update to 91.9.0
fc5871
4c65aa
* Tue Apr 05 2022 Eike Rathke <erack@redhat.com> - 91.8.0-1
4c65aa
- Update to 91.8.0
4c65aa
5abd3a
* Tue Mar 08 2022 Eike Rathke <erack@redhat.com> - 91.7.0-2
5abd3a
- Update to 91.7.0 build2
5abd3a
5abd3a
* Thu Mar 03 2022 Eike Rathke <erack@redhat.com> - 91.7.0-1
5abd3a
- Update to 91.7.0 build1
5abd3a
fc5871
* Fri Feb 11 2022 Jan Horak <jhorak@redhat.com> - 91.6.0-2
fc5871
- Move appdata to metainfo and use stock icon instead of remote
fc5871
5abd3a
* Mon Feb 07 2022 Eike Rathke <erack@redhat.com> - 91.6.0-1
5abd3a
- Update to 91.6.0 build1
5abd3a
fc5871
* Tue Jan 18 2022 Jan Horak <jhorak@redhat.com> - 91.5.0-3
fc5871
- Using upstream appdata file
fc5871
fc5871
* Fri Jan 14 2022 Jan Horak <jhorak@redhat.com> - 91.5.0-2
fc5871
- Enabled optimalization for s390x
fc5871
5abd3a
* Fri Jan 07 2022 Eike Rathke <erack@redhat.com> - 91.5.0-1
5abd3a
- Update to 91.5.0 build1
5abd3a
5abd3a
* Mon Dec 06 2021 Eike Rathke <erack@redhat.com> - 91.4.0-2
5abd3a
- Update to 91.4.0 build2
5abd3a
d15791
* Wed Dec 01 2021 Eike Rathke <erack@redhat.com> - 91.4.0-1
d15791
- Update to 91.4.0 build1
d15791
d15791
* Tue Nov 02 2021 Eike Rathke <erack@redhat.com> - 91.3.0-2
d15791
- Update to 91.3.0 build2
d15791
d15791
* Mon Nov 01 2021 Eike Rathke <erack@redhat.com> - 91.3.0-1
d15791
- Update to 91.3.0 build1
d15791
fc5871
* Fri Oct 08 2021 Eike Rathke <erack@redhat.com> - 91.2.0-1
fc5871
- Update to 91.2.0
d15791
fc5871
* Tue Sep 07 2021 Eike Rathke <erack@redhat.com> - 78.14.0-1
fc5871
- Update to 78.14.0
d15791
fc5871
* Thu Aug 19 2021 Carlos O'Donell <codonell@redhat.com> - 78.13.0-2
fc5871
- Rebuilt for libffi 3.4.2 SONAME transition.
fc5871
  Related: rhbz#1891914
d15791
fc5871
* Tue Aug 10 2021 Eike Rathke <erack@redhat.com> - 78.13.0-1
fc5871
- Update to 78.13.0
d15791
fc5871
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 78.12.0-4
fc5871
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
fc5871
  Related: rhbz#1991688
631dec
fc5871
* Fri Jul 30 2021 Tomas Popela <tpopela@redhat.com> - 78.12.0-3
fc5871
- Add script to process the official tarball to comply with PELC review
fc5871
- Fix the build with newer glibc
121c4f
00fc72
* Mon Jul 12 2021 Eike Rathke <erack@redhat.com> - 78.12.0-2
00fc72
- Update to 78.12.0 build2
00fc72
8a4b0e
* Thu Jul 08 2021 Eike Rathke <erack@redhat.com> - 78.12.0-1
8a4b0e
- Update to 78.12.0 build1
8a4b0e
fc5871
* Wed Jun 30 2021 Jan Horak <jhorak@redhat.com> - 78.11.0-2
fc5871
- Added bundled libraries, update to 78.11
8a4b0e
fc5871
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 78.8.0-5
fc5871
- Rebuilt for RHEL 9 BETA for openssl 3.0
fc5871
  Related: rhbz#1971065
8a4b0e
fc5871
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 78.8.0-4
fc5871
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
fc5871
- Fixing MOZ_SMP_FLAGS
8a4b0e
fc5871
* Mon Mar 01 2021 Jan Horak <jhorak@redhat.com> - 78.8.0-2
fc5871
- Removed autoconf213 dependency
8a4b0e
fc5871
* Mon Feb 22 2021 Jan Horak <jhorak@redhat.com> - 78.8.0-1
8a4b0e
- Update to 78.8.0 build1
8a4b0e
8a4b0e
* Tue Jan 12 2021 Eike Rathke <erack@redhat.com> - 78.6.1-1
8a4b0e
- Update to 78.6.1
8a4b0e
8a4b0e
* Tue Dec 15 2020 Eike Rathke <erack@redhat.com> - 78.6.0-1
8a4b0e
- Update to 78.6.0
8a4b0e
d046e9
* Fri Dec 04 2020 Jan Horak <jhorak@redhat.com> - 78.5.1-1
d046e9
- Update to 78.5.1 build1
d046e9
d046e9
* Wed Nov 18 2020 Eike Rathke <erack@redhat.com> - 78.5.0-1
d046e9
- Update to 78.5.0 build3
d046e9
d046e9
* Thu Nov 12 2020 Eike Rathke <erack@redhat.com> - 78.4.3-1
d046e9
- Update to 78.4.3
d046e9
d046e9
* Wed Oct 21 2020 Eike Rathke <erack@redhat.com> - 78.4.0-1
d046e9
- Update to 78.4.0 build1
d046e9
- Disabled telemetry
d046e9
d046e9
* Tue Sep 29 2020 Jan Horak <jhorak@redhat.com> - 78.3.1-1
d046e9
- Update to 78.3.1 build1
d046e9
50bed7
* Sat Sep 19 2020 Jan Horak <jhorak@redhat.com> - 78.3.0-3
e2e09b
- Update to 78.3.0 build1
730cc2
- Remove librdp.so as long as we cannot ship it in RHEL
e2e09b
7cc1fe
* Tue Sep 08 2020 Jan Horak <jhorak@redhat.com> - 78.2.1-1
7cc1fe
- Update to 78.2.1 build1
7cc1fe
7cc1fe
* Wed Sep 02 2020 Jan Horak <jhorak@redhat.com> - 68.12.0-1
7cc1fe
- Update to 68.12.0 build1
7cc1fe
ccc7a7
* Tue Aug 04 2020 Jan Horak <jhorak@redhat.com> - 68.11.0-1
ccc7a7
- Update to 68.11.0 build1
ccc7a7
a65057
* Wed Jul 08 2020 Jan Horak <jhorak@redhat.com> - 68.10.0-1
a65057
- Update to 68.10.0 build1
a65057
f9adc4
* Fri Jun 05 2020 Jan Horak <jhorak@redhat.com> - 68.9.0-1
f9adc4
- Update to 68.9.0 build1
f9adc4
f9adc4
* Tue May 05 2020 Jan Horak <jhorak@redhat.com> - 68.8.0-1
f9adc4
- Update to 68.8.0 build2
f9adc4
f9adc4
* Tue Apr 14 2020 Jan Horak <jhorak@redhat.com> - 68.7.0-1
f9adc4
- Update to 68.7.0 build1
f9adc4
f9adc4
* Fri Mar 13 2020 Jan Horak <jhorak@redhat.com> - 68.6.0-1
f9adc4
- Update to 68.6.0 build2
f9adc4
f9adc4
* Thu Feb 13 2020 Jan Horak <jhorak@redhat.com> - 68.5.0-1
f9adc4
- Update to 68.5.0 build1
f9adc4
f9adc4
* Mon Jan 13 2020 Jan Horak <jhorak@redhat.com> - 68.4.1-2
f9adc4
- Update to 68.4.1 build1
f9adc4
f9adc4
* Mon Dec 02 2019 Jan Horak <jhorak@redhat.com> - 68.3.0-2
f9adc4
- Update to 68.3.0 build2
f9adc4
f9adc4
* Fri Oct 25 2019 Jan Horak <jhorak@redhat.com> - 68.2.0-2
f9adc4
- Added patch for TLS 1.3 support.
f9adc4
f9adc4
* Tue Oct 22 2019 Jan Horak <jhorak@redhat.com> - 68.2.0-1
f9adc4
- Update to 68.2.0
f9adc4
f9adc4
* Thu Oct  3 2019 Jan Horak <jhorak@redhat.com> - 68.1.1-2
f9adc4
- Update to 68.1.1
f9adc4
f9adc4
* Wed Sep  4 2019 Jan Horak <jhorak@redhat.com> - 60.9.0-2
f9adc4
- Update to 60.9.0
f9adc4
f9adc4
* Thu Jul 4 2019 Martin Stransky <stransky@redhat.com> - 60.8.0-1
f9adc4
- Updated to 60.8.0
f9adc4
f9adc4
* Wed Jul 3 2019 Martin Stransky <stransky@redhat.com> - 60.7.2-3
f9adc4
- Rebuild to fix rhbz#1725919 - Thunderbird fails to authenticate
f9adc4
  with gmail with ssl/tls and OAuth2.
f9adc4