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