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