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