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