225ef2
# Set for local builds only
225ef2
%global disable_toolsets  0
225ef2
96931b
%if 0%{?fedora} > 35 || 0%{?rhel} > 9
96931b
%global dictionarydir hunspell
96931b
%else
96931b
%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
96931b
  return -1
225ef2
end}
225ef2
225ef2
%global rhel_minor_version %{lua:print(dist_to_rhel_minor(rpm.expand("%dist")))}
96931b
96931b
# Produce debug (non-optimized) package build. Suitable for debugging only
96931b
# as the build is *very* slow.
96931b
%global debug_build       0
225ef2
225ef2
%global system_nss        1
225ef2
%global bundle_nss        0
96931b
%global build_langpacks   1
225ef2
225ef2
%if 0%{?rhel} == 8
96931b
  %if %{rhel_minor_version} <= 4
225ef2
    %global bundle_nss        1
225ef2
    %global system_nss        1
225ef2
  %endif
225ef2
%endif
225ef2
96931b
%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
96931b
225ef2
%global nodejs_rb         nodejs
225ef2
%global llvm_version      7.0
96931b
%if "%{toolchain}" == "clang"
96931b
%global build_with_clang 1
96931b
%else
96931b
%global build_with_clang 0
225ef2
%endif
225ef2
96931b
%ifarch armv7hl
96931b
%global create_debuginfo  0
96931b
%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
96931b
# Temporary disabled due to
96931b
# https://bugzilla.redhat.com/show_bug.cgi?id=1951606
96931b
%global enable_mozilla_crashreporter 0
96931b
96931b
%global system_ffi        1
96931b
%ifarch armv7hl
96931b
%global system_libvpx     1
96931b
%else
96931b
%global system_libvpx     0
96931b
%endif
96931b
%global hardened_build    1
96931b
%global system_jpeg       1
96931b
%global disable_elfhack   1
96931b
%global use_bundled_cbindgen  1
96931b
%if %{debug_build}
96931b
%global release_build     0
96931b
%endif
96931b
# Build PGO+LTO on x86_64 only due to build issues
96931b
# on other arches.
96931b
%global build_with_pgo    0
96931b
%ifarch x86_64
96931b
%if 0%{?release_build}
96931b
%global build_with_pgo    0
96931b
%endif
96931b
%endif
225ef2
%global use_rustts        1
96931b
%global dts_version       10
96931b
%global rust_version      1.62
96931b
%if 0%{?rhel} >= 8
225ef2
  %global use_rustts      0
225ef2
%endif
96931b
%if 0%{?flatpak}
96931b
%global build_with_pgo    0
96931b
%endif
225ef2
225ef2
%if 0%{?disable_toolsets}
225ef2
%global use_rustts        0
225ef2
%global use_dts           0
225ef2
%global use_llvmts        0
96931b
%global use_nodejsts      0
96931b
%global nodejs_rb         nodejs
225ef2
%endif
225ef2
225ef2
# Big endian platforms
225ef2
%ifarch ppc64 s390x
225ef2
%global big_endian        1
225ef2
%endif
225ef2
96931b
%if 0%{?build_with_pgo}
96931b
%global use_xvfb          1
96931b
%global build_tests       1
225ef2
%endif
225ef2
# Minimal required versions
96931b
%global cairo_version 1.13.1
96931b
%global freetype_version 2.1.9
96931b
%global libnotify_version 0.7.0
96931b
%if %{?system_libvpx}
96931b
%global libvpx_version 1.8.2
96931b
%endif
225ef2
96931b
%if %{?system_nss}
96931b
%global nspr_version 4.34
225ef2
%global nspr_build_version %{nspr_version}
96931b
%global nss_version 3.79
225ef2
%global nss_build_version %{nss_version}
225ef2
%endif
96931b
%define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
96931b
%global langpackdir   %{mozappdir}/extensions
225ef2
96931b
# The tarball is pretty inconsistent with directory structure.
96931b
# Sometimes there is a top level directory.  That goes here.
96931b
#
96931b
# IMPORTANT: If there is no top level directory, this should be
96931b
# set to the cwd, ie: '.'
96931b
%define objdir       objdir
96931b
%define mozappdir    %{_libdir}/thunderbird
225ef2
225ef2
%define bundled_install_path %{mozappdir}/bundled
96931b
%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
96931b
# Exclude private libraries from autogenerated provides and requires
96931b
%global __provides_exclude_from ^%{mozappdir}
96931b
%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
96931b
Version:        102.5.0
96931b
Release:        2%{?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
96931b
  %if %{rhel_minor_version} == 1
96931b
ExcludeArch:    %{ix86} aarch64 s390x
96931b
  %else
225ef2
ExcludeArch:    %{ix86}
96931b
  %endif
225ef2
%endif
225ef2
%if 0%{?rhel} == 7
96931b
ExcludeArch:    aarch64 s390 ppc
225ef2
%endif
225ef2
96931b
#Source0:        https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.processed-source.tar.xz
96931b
Source0:        thunderbird-%{version}%{?pre_version}.processed-source.tar.xz
225ef2
%if %{build_langpacks}
96931b
Source1:        thunderbird-langpacks-%{version}-20221115.tar.xz
225ef2
%endif
225ef2
Source2:        cbindgen-vendor.tar.xz
96931b
Source3:        process-official-tarball
225ef2
Source10:       thunderbird-mozconfig
96931b
Source12:       thunderbird-redhat-default-prefs.js
225ef2
Source20:       thunderbird.desktop
225ef2
Source21:       thunderbird.sh.in
225ef2
Source24:       mozilla-api-key
96931b
Source25:       thunderbird-symbolic.svg
225ef2
Source27:       google-api-key
96931b
Source32:       node-stdout-nonblocking-wrapper
96931b
Source35:       google-loc-api-key
96931b
Source403:      nss-3.79.0-6.el8_1.src.rpm
225ef2
Source401:      nss-setup-flags-env.inc
96931b
Source402:      nspr-4.34.0-3.el8_1.src.rpm
225ef2
225ef2
# Build patches
96931b
Patch3:         mozilla-build-arm.patch
96931b
Patch25:        rhbz-1219542-s390-build.patch
96931b
# Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x)
96931b
Patch40:        build-aarch64-skia.patch
96931b
Patch41:        build-disable-elfhack.patch
96931b
Patch44:        build-arm-libopus.patch
96931b
Patch47:        fedora-shebang-build.patch
96931b
Patch49:        build-arm-libaom.patch
96931b
Patch53:        firefox-gcc-build.patch
96931b
Patch54:        mozilla-1669639.patch
96931b
Patch71:        0001-GLIBCXX-fix-for-GCC-12.patch
96931b
Patch72:        build-remove-dav1d-from-wayland-dep.patch
96931b
Patch73:        build-ascii-decode-fail-rhel7.patch
96931b
Patch75:        build-big-endian-errors.patch
96931b
Patch76:        firefox-nss-version.patch
96931b
Patch77:        mozilla-1775202.patch
96931b
Patch78:        build-rhel7-lower-node-min-version.patch
96931b
96931b
# Fedora specific patches
225ef2
Patch215:        firefox-enable-addons.patch
225ef2
Patch219:        rhbz-1173156.patch
225ef2
Patch224:        mozilla-1170092.patch
96931b
#ARM run-time patch
96931b
Patch226:        rhbz-1354671.patch
96931b
Patch228:        disable-openh264-download.patch
96931b
Patch229:        firefox-nss-addon-hack.patch
96931b
Patch230:        disable-openpgp-in-thunderbird.patch
96931b
Patch231:        cbindgen-already-covers.patch
225ef2
225ef2
# Upstream patches
96931b
Patch415:        mozilla-1670333.patch
96931b
Patch416:        mozilla-bmo1005535.patch
96931b
Patch417:        mozilla-bmo1504834-part1.patch
96931b
Patch418:        mozilla-bmo1504834-part3.patch
96931b
Patch419:        mozilla-bmo849632.patch
96931b
Patch420:        mozilla-bmo998749.patch
96931b
Patch421:        mozilla-s390-context.patch
96931b
Patch422:        mozilla-s390x-skia-gradient.patch
96931b
Patch423:        one_swizzle_to_rule_them_all.patch
96931b
Patch424:        svg-rendering.patch
96931b
Patch425:        D158770.diff
96931b
96931b
# PGO/LTO patches
96931b
Patch600:        pgo.patch
96931b
Patch602:        mozilla-1516803.patch
96931b
96931b
# Backported WebRTC changes for PipeWire/Wayland screen sharing support
96931b
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)
96931b
%if %{?system_jpeg}
225ef2
BuildRequires:  libjpeg-devel
96931b
%endif
225ef2
BuildRequires:  zip
225ef2
BuildRequires:  bzip2-devel
225ef2
BuildRequires:  pkgconfig(zlib)
96931b
BuildRequires:  pkgconfig(gtk+-3.0)
225ef2
BuildRequires:  pkgconfig(gtk+-2.0)
96931b
BuildRequires:  pkgconfig(krb5)
225ef2
BuildRequires:  pkgconfig(pango)
96931b
BuildRequires:  pkgconfig(freetype2) >= %{freetype_version}
225ef2
BuildRequires:  pkgconfig(xt)
96931b
BuildRequires:  pkgconfig(xtst)
225ef2
BuildRequires:  pkgconfig(xrender)
225ef2
BuildRequires:  pkgconfig(libstartup-notification-1.0)
96931b
BuildRequires:  pkgconfig(libnotify) >= %{libnotify_version}
225ef2
BuildRequires:  pkgconfig(dri)
225ef2
BuildRequires:  pkgconfig(libcurl)
96931b
BuildRequires:  pkgconfig(alsa)
96931b
BuildRequires:  libstdc++-devel
96931b
BuildRequires:  libstdc++-static
225ef2
BuildRequires:  dbus-glib-devel
96931b
%if %{?system_libvpx}
96931b
BuildRequires:  libvpx-devel >= %{libvpx_version}
96931b
%endif
96931b
%if %{?system_ffi}
96931b
BuildRequires:  libffi-devel
96931b
%endif
96931b
BuildRequires:  startup-notification-devel
96931b
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
96931b
BuildRequires:  %{nodejs_rb} >= 10.21
96931b
%if 0%{?rhel} == 7
225ef2
BuildRequires:  scl-utils
225ef2
BuildRequires:  findutils
96931b
%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}
96931b
%endif
96931b
225ef2
%if 0%{?use_rustts}
225ef2
BuildRequires:  rust-toolset-%{rust_version}
225ef2
%endif
96931b
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
96931b
%if 0%{?rhel} > 7
225ef2
BuildRequires:  pipewire-devel
225ef2
%endif
225ef2
96931b
%if !0%{?use_bundled_cbindgen}
96931b
BuildRequires:  cbindgen
96931b
%endif
96931b
BuildRequires:  nasm >= 1.13
96931b
BuildRequires:  libappstream-glib
225ef2
96931b
%if 0%{?big_endian}
96931b
BuildRequires:  icu
96931b
%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
96931b
BuildRequires:    perl-interpreter
225ef2
BuildRequires:    gcc-c++
225ef2
BuildRequires:    xmlto
225ef2
%endif
225ef2
0eb64c
# Don't require any OpenPGP backend with the librnp interface, because RHEL does not have it (but we build it in centos-plus)
0eb64c
Requires:       thunderbird-librnp%{?_isa}
96931b
# prefer the librnp implementation bundled with thunderbird
96931b
#Not in RHEL7 Suggests:       thunderbird-librnp-rnp%{?_isa}
225ef2
Requires:       p11-kit-trust
96931b
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
96931b
BuildRequires:  python3-devel
96931b
BuildRequires:  python3-setuptools
225ef2
225ef2
BuildRequires:  desktop-file-utils
96931b
%if %{?system_ffi}
96931b
BuildRequires:  pkgconfig(libffi)
96931b
%endif
225ef2
96931b
%if 0%{?use_xvfb}
225ef2
BuildRequires:  xorg-x11-server-Xvfb
225ef2
%endif
96931b
%if %{build_with_asan}
96931b
BuildRequires:  libasan
96931b
BuildRequires:  libasan-static
96931b
%endif
96931b
BuildRequires:  perl-interpreter
96931b
#BuildRequires:  fdk-aac-free-devel not on rhel8
96931b
%if 0%{?test_on_wayland}
96931b
BuildRequires:  mutter
96931b
BuildRequires:  gsettings-desktop-schemas
96931b
BuildRequires:  gnome-settings-daemon
96931b
BuildRequires:  mesa-dri-drivers
96931b
BuildRequires:  xorg-x11-server-Xwayland
96931b
BuildRequires:  dbus-x11
96931b
BuildRequires:  gnome-keyring
96931b
%endif
96931b
%if 0%{?run_firefox_tests}
96931b
BuildRequires:  procps-ng
96931b
BuildRequires:  nss-tools
96931b
BuildRequires:  dejavu-sans-mono-fonts
96931b
BuildRequires:  dejavu-sans-fonts
96931b
BuildRequires:  dejavu-serif-fonts
96931b
BuildRequires:  dbus-x11
96931b
BuildRequires:  gnome-keyring
96931b
BuildRequires:  mesa-dri-drivers
96931b
# ----------------------------------------
96931b
BuildRequires:  liberation-fonts-common
96931b
BuildRequires:  liberation-mono-fonts
96931b
BuildRequires:  liberation-sans-fonts
96931b
BuildRequires:  liberation-serif-fonts
96931b
# ----------------------------------
96931b
# Missing on f32
96931b
%if 0%{?fedora} > 33
96931b
BuildRequires:  google-carlito-fonts
96931b
%endif
96931b
BuildRequires:  google-droid-sans-fonts
96931b
BuildRequires:  google-noto-fonts-common
96931b
BuildRequires:  google-noto-cjk-fonts-common
96931b
BuildRequires:  google-noto-sans-cjk-ttc-fonts
96931b
BuildRequires:  google-noto-sans-gurmukhi-fonts
96931b
BuildRequires:  google-noto-sans-fonts
96931b
BuildRequires:  google-noto-emoji-color-fonts
96931b
BuildRequires:  google-noto-sans-sinhala-vf-fonts
96931b
# -----------------------------------
96931b
BuildRequires:  thai-scalable-fonts-common
96931b
BuildRequires:  thai-scalable-waree-fonts
96931b
BuildRequires:  khmeros-base-fonts
96931b
BuildRequires:  jomolhari-fonts
96931b
# ----------------------------------
96931b
BuildRequires:  lohit-tamil-fonts
96931b
BuildRequires:  lohit-telugu-fonts
96931b
# ----------------------------------
96931b
BuildRequires:  paktype-naskh-basic-fonts
96931b
# faild to build in Koji / f32
96931b
%if 0%{?fedora} > 33
96931b
BuildRequires:  pt-sans-fonts
96931b
%endif
96931b
BuildRequires:  smc-meera-fonts
96931b
BuildRequires:  stix-fonts
96931b
BuildRequires:  abattis-cantarell-fonts
96931b
BuildRequires:  xorg-x11-fonts-ISO8859-1-100dpi
96931b
BuildRequires:  xorg-x11-fonts-misc
96931b
%endif
96931b
BuildRequires:  make
96931b
BuildRequires:  pciutils-libs
96931b
96931b
Obsoletes:      mozilla <= 37:1.7.13
96931b
Provides:       webclient
96931b
%if 0%{?rhel} == 8 && %{rhel_minor_version} < 6
96931b
%ifarch aarch64
96931b
BuildRequires: gcc-toolset-12-annobin-plugin-gcc
96931b
%endif
225ef2
%endif
225ef2
225ef2
225ef2
# Bundled libraries
225ef2
Provides: bundled(angle)
96931b
Provides: bundled(audioipc-2)
96931b
Provides: bundled(brotli)
96931b
Provides: bundled(bzip2)
225ef2
Provides: bundled(cairo)
96931b
Provides: bundled(cfworker)
96931b
Provides: bundled(d3.js)
96931b
Provides: bundled(double-conversion)
96931b
Provides: bundled(expat)
96931b
Provides: bundled(fdlibm)
96931b
Provides: bundled(ffvpx)
96931b
Provides: bundled(freetype2)
225ef2
Provides: bundled(graphite2)
225ef2
Provides: bundled(harfbuzz)
96931b
Provides: bundled(highway)
96931b
Provides: bundled(intgemm)
96931b
Provides: bundled(json-c)
225ef2
Provides: bundled(kissfft)
225ef2
Provides: bundled(libaom)
225ef2
Provides: bundled(libcubeb)
225ef2
Provides: bundled(libdav1d)
96931b
Provides: bundled(libgcrypt)
96931b
Provides: bundled(libgpg-error)
225ef2
Provides: bundled(libjpeg)
96931b
Provides: bundled(libjxl)
96931b
Provides: bundled(libjxl)
96931b
Provides: bundled(libmar)
225ef2
Provides: bundled(libmkv)
225ef2
Provides: bundled(libnestegg)
225ef2
Provides: bundled(libogg)
225ef2
Provides: bundled(libopus)
96931b
Provides: bundled(libotr)
225ef2
Provides: bundled(libpng)
96931b
Provides: bundled(libprio)
225ef2
Provides: bundled(libsoundtouch)
225ef2
Provides: bundled(libspeex_resampler)
96931b
Provides: bundled(libsrtp)
225ef2
Provides: bundled(libtheora)
225ef2
Provides: bundled(libtremor)
225ef2
Provides: bundled(libvorbis)
225ef2
Provides: bundled(libvpx)
225ef2
Provides: bundled(libwebp)
96931b
Provides: bundled(libwebrtc)
225ef2
Provides: bundled(libyuv)
225ef2
Provides: bundled(mp4parse-rust)
96931b
Provides: bundled(mp4parse-rust)
96931b
Provides: bundled(msgpack-c)
96931b
Provides: bundled(msgpack-c)
225ef2
Provides: bundled(mtransport)
96931b
Provides: bundled(niwcompat)
225ef2
Provides: bundled(openmax_dl)
96931b
Provides: bundled(openmax_il)
96931b
Provides: bundled(openmax_il)
96931b
Provides: bundled(ots)
96931b
Provides: bundled(qcms)
96931b
Provides: bundled(rlbox_sandboxing_api)
96931b
Provides: bundled(rnp)
96931b
Provides: bundled(sfntly)
96931b
Provides: bundled(sipcc)
96931b
Provides: bundled(skia)
96931b
Provides: bundled(sqlite3)
96931b
Provides: bundled(thebes)
96931b
Provides: bundled(wasm2c)
96931b
Provides: bundled(WebRender)
225ef2
Provides: bundled(woff2)
225ef2
Provides: bundled(xz-embedded)
96931b
Provides: bundled(ycbcr)
225ef2
Provides: bundled(zlib)
225ef2
225ef2
%if 0%{?bundle_nss}
96931b
Provides: bundled(nss) = 3.79.0
96931b
Provides: bundled(nspr) = 4.34.0
225ef2
%endif
96931b
225ef2
%description
225ef2
Mozilla Thunderbird is a standalone mail and newsgroup client.
225ef2
0eb64c
%package librnp-rnp
0eb64c
Summary: OpenPGP implementation for Thunderbird based on RNP
0eb64c
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
0eb64c
Provides: thunderbird-librnp
0eb64c
Provides: thunderbird-librnp%{?_isa}
0eb64c
Conflicts: thunderbird-librnp%{?_isa}
0eb64c
%description librnp-rnp
0eb64c
The thunderbird-librnp-rnp package contains an OpenPGP implementation
0eb64c
based on RNP.
0eb64c
%files librnp-rnp
0eb64c
%{mozappdir}/librnp.so
0eb64c
%{mozappdir}/rnp-cli
0eb64c
%{mozappdir}/rnpkeys
225ef2
225ef2
%prep
225ef2
echo "Build environment"
225ef2
echo "dist                  %{?dist}"
96931b
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
96931b
%setup -q
225ef2
96931b
# Build patches
96931b
#MISSING% patch9   -p2 -b .arm
96931b
%ifarch s390
96931b
%patch25 -p1 -b .rhbz-1219542-s390
96931b
%endif
96931b
%patch40 -p1 -b .aarch64-skia
96931b
%if 0%{?disable_elfhack}
96931b
%patch41 -p1 -b .disable-elfhack
96931b
%endif
96931b
%patch3  -p1 -b .arm
96931b
%patch44 -p1 -b .build-arm-libopus
96931b
%patch47 -p1 -b .fedora-shebang
96931b
%patch49 -p1 -b .build-arm-libaom
96931b
%patch53 -p1 -b .firefox-gcc-build
96931b
%patch54 -p1 -b .1669639
96931b
%patch71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12
96931b
%patch72 -p1 -b .build-remove-dav1d-from-wayland-dep
96931b
96931b
%patch75 -p1 -b .build-big-endian-errors
96931b
%patch76 -p1 -b .firefox-nss-version
96931b
#ppc64le build failure because of webrtc
96931b
%patch77 -p1 -b .mozilla-1775202
96931b
96931b
%patch73 -p1 -b .build-ascii-decode-fail-rhel7
96931b
%if 0%{?rhel} == 7
96931b
%patch78 -p1 -b .build-rhel7-lower-node-min-version
96931b
%endif
225ef2
96931b
# Test patches
225ef2
225ef2
# Fedora patches
225ef2
%patch215 -p1 -b .addons
225ef2
%patch219 -p1 -b .rhbz-1173156
225ef2
%patch224 -p1 -b .1170092
96931b
#ARM run-time patch
96931b
%ifarch aarch64
96931b
%patch226 -p1 -b .1354671
96931b
%endif
96931b
%patch228 -p1 -b .disable-openh264-download
96931b
%patch229 -p1 -b .firefox-nss-addon-hack
2eaae0
#patch230 -p1 -b .disable-openpgp-in-thunderbird
96931b
%patch231 -p1 -b .cbindgen-already-covers
96931b
96931b
%patch415 -p1 -b .1670333
96931b
%patch416 -p1 -b .mozilla-bmo1005535
96931b
%patch417 -p1 -b .mozilla-bmo1504834-part1
96931b
%patch418 -p1 -b .mozilla-bmo1504834-part3
96931b
%patch419 -p1 -b .mozilla-bmo849632
96931b
%patch420 -p1 -b .mozilla-bmo998749
96931b
%patch421 -p1 -b .mozilla-s390-context
96931b
%patch422 -p1 -b .mozilla-s390x-skia-gradient
96931b
%patch423 -p1 -b .one_swizzle_to_rule_them_all
96931b
%patch424 -p1 -b .svg-rendering
96931b
%patch425 -p1 -b .D158770.diff
96931b
96931b
# PGO patches
96931b
%if %{build_with_pgo}
96931b
%if !%{build_with_clang}
96931b
%patch600 -p1 -b .pgo
96931b
%patch602 -p1 -b .1516803
96931b
%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
96931b
96931b
225ef2
%{__rm} -f .mozconfig
225ef2
%{__cp} %{SOURCE10} .mozconfig
96931b
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
96931b
%{__cp} %{SOURCE35} google-loc-api-key
96931b
96931b
echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig
96931b
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
96931b
%if %{?system_ffi}
96931b
echo "ac_add_options --enable-system-ffi" >> .mozconfig
225ef2
%endif
225ef2
96931b
%ifarch %{arm}
96931b
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
96931b
%global optimize_flags "none"
96931b
%ifarch s390x
96931b
%global optimize_flags "-g -O1"
96931b
%endif
96931b
%ifarch ppc64le aarch64
225ef2
%global optimize_flags "-g -O2"
96931b
%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
96931b
%if 0%{?build_tests}
96931b
echo "ac_add_options --enable-tests" >> .mozconfig
96931b
%else
96931b
echo "ac_add_options --disable-tests" >> .mozconfig
225ef2
%endif
225ef2
96931b
%if !%{?system_jpeg}
96931b
echo "ac_add_options --without-system-jpeg" >> .mozconfig
96931b
%else
96931b
echo "ac_add_options --with-system-jpeg" >> .mozconfig
96931b
%endif
96931b
96931b
%if %{?system_libvpx}
96931b
echo "ac_add_options --with-system-libvpx" >> .mozconfig
96931b
%else
96931b
echo "ac_add_options --without-system-libvpx" >> .mozconfig
96931b
%endif
96931b
96931b
%ifarch s390 s390x
225ef2
echo "ac_add_options --disable-jit" >> .mozconfig
225ef2
%endif
225ef2
96931b
%if %{build_with_asan}
96931b
echo "ac_add_options --enable-address-sanitizer" >> .mozconfig
96931b
echo "ac_add_options --disable-jemalloc" >> .mozconfig
225ef2
%endif
96931b
96931b
%if !%{enable_mozilla_crashreporter}
96931b
echo "ac_add_options --disable-crashreporter" >> .mozconfig
225ef2
%endif
225ef2
225ef2
# AV1 requires newer nasm that was rebased in 8.4
96931b
%if 0%{?rhel} == 7 || (0%{?rhel} == 8 && %{rhel_minor_version} < 4)
225ef2
echo "ac_add_options --disable-av1" >> .mozconfig
225ef2
%endif
225ef2
96931b
# api keys full path
96931b
echo "ac_add_options --with-mozilla-api-keyfile=`pwd`/mozilla-api-key" >> .mozconfig
96931b
# It seems that the api key we have is for the safe browsing only
96931b
echo "ac_add_options --with-google-location-service-api-keyfile=`pwd`/google-loc-api-key" >> .mozconfig
96931b
echo "ac_add_options --with-google-safebrowsing-api-keyfile=`pwd`/google-api-key" >> .mozconfig
225ef2
96931b
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
225ef2
225ef2
# Remove executable bit to make brp-mangle-shebangs happy.
96931b
find third_party -type f  -iname "*.rs"|xargs chmod a-x
225ef2
96931b
#===============================================================================
225ef2
225ef2
%build
225ef2
# Disable LTO to work around rhbz#1883904
225ef2
%define _lto_cflags %{nil}
225ef2
export PATH="%{_buildrootdir}/bin:$PATH"
96931b
# Cleanup buildroot for existing rpms from bundled nss/nspr and other packages
96931b
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
96931b
  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
96931b
  pkg-config --libs-only-L nspr
96931b
  pkg-config --libs nspr
96931b
  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}
96931b
  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
96931b
%if 0%{?rhel} == 8 && %{rhel_minor_version} < 6
96931b
%ifarch aarch64
96931b
source scl_source enable gcc-toolset-12
96931b
%endif
96931b
%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
96931b
%if 0%{?use_llvmts}
96931b
source scl_source enable llvm-toolset-%{llvm_version}
96931b
%endif
225ef2
96931b
set -e
225ef2
env
225ef2
which gcc
225ef2
which c++
225ef2
which g++
225ef2
which ld
225ef2
which nasm
96931b
which node
96931b
%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]
96931b
directory = "`pwd`"
225ef2
EOL
225ef2
96931b
%ifarch aarch64
96931b
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
96931b
%endif
225ef2
96931b
env CARGO_HOME=.cargo cargo install cbindgen
96931b
export PATH=`pwd`/.cargo/bin:$PATH
96931b
cd -
96931b
%endif
225ef2
225ef2
mkdir %{_buildrootdir}/bin || :
96931b
cp %{SOURCE32} %{_buildrootdir}/bin || :
225ef2
225ef2
# Update the various config.guess to upstream release for aarch64 support
96931b
# Do not update config.guess in the ./third_party/rust because that would break checksums
96931b
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
96931b
%if 0%{?fedora} < 30
225ef2
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
96931b
%else
96931b
# Workaround for mozbz#1531309
96931b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//')
96931b
%endif
96931b
%if 0%{?fedora} > 30
96931b
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fpermissive"
96931b
%endif
225ef2
%if %{?hardened_build}
96931b
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
96931b
%endif
225ef2
%if %{?debug_build}
96931b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
96931b
%endif
96931b
%ifarch s390
96931b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
96931b
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
96931b
# overrides the -g1 from line above and breaks building on s390/arm
96931b
# (OOM when linking, rhbz#1238225)
96931b
export MOZ_DEBUG_FLAGS=" "
225ef2
%endif
225ef2
96931b
%ifarch %{arm} %{ix86}
96931b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g0/')
96931b
export MOZ_DEBUG_FLAGS=" "
96931b
%endif
225ef2
%if !%{build_with_clang}
96931b
%ifarch s390x ppc aarch64 %{ix86}
96931b
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
96931b
%endif
96931b
%ifarch %{arm}
96931b
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--strip-debug"
96931b
echo "ac_add_options --enable-linker=gold" >> .mozconfig
96931b
%endif
96931b
%endif
96931b
%if 0%{?flatpak}
96931b
# Make sure the linker can find libraries in /app/lib64 as we don't use
96931b
# __global_ldflags that normally sets this.
96931b
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}"
96931b
%endif
96931b
%ifarch %{arm} %{ix86} %{s390x}
96931b
export RUSTFLAGS="-Cdebuginfo=0"
96931b
echo 'export RUSTFLAGS="-Cdebuginfo=0"' >> .mozconfig
96931b
%endif
96931b
#%ifarch aarch64
96931b
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
96931b
#echo 'export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"' >> .mozconfig
96931b
#%endif
96931b
%if %{build_with_asan}
96931b
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address -Dxmalloc=myxmalloc"
96931b
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
96931b
# We don't want thunderbird to use CK_GCM_PARAMS_V3 in nss
96931b
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}
96931b
echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig
96931b
echo "export AR=\"llvm-ar\"" >> .mozconfig
96931b
echo "export NM=\"llvm-nm\"" >> .mozconfig
96931b
echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig
96931b
echo "ac_add_options --enable-linker=lld" >> .mozconfig
225ef2
%else
96931b
echo "export CC=gcc" >> .mozconfig
96931b
echo "export CXX=g++" >> .mozconfig
96931b
echo "export AR=\"gcc-ar\"" >> .mozconfig
96931b
echo "export NM=\"gcc-nm\"" >> .mozconfig
96931b
echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
96931b
%endif
96931b
%if 0%{?build_with_pgo}
96931b
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
96931b
# PGO build doesn't work with ccache
96931b
export CCACHE_DISABLE=1
225ef2
%endif
225ef2
225ef2
MOZ_SMP_FLAGS=-j1
96931b
# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
96931b
# however builds tend to fail on other arches when building in parallel.
96931b
#%ifarch %{ix86} s390x %{arm} aarch64 ppc64le
96931b
#[ -z "$RPM_BUILD_NCPUS" ] && \
96931b
#     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
96931b
#[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
96931b
#%endif
96931b
#%ifarch x86_64 ppc ppc64 ppc64le
96931b
[ -z "$RPM_BUILD_NCPUS" ] && \
225ef2
       RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
96931b
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
96931b
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
96931b
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
96931b
[ "$RPM_BUILD_NCPUS" -ge 16 ] && MOZ_SMP_FLAGS=-j16
96931b
#%endif
225ef2
96931b
echo "mk_add_options MOZ_MAKE_FLAGS=\"$MOZ_SMP_FLAGS\"" >> .mozconfig
96931b
echo "mk_add_options MOZ_SERVICES_SYNC=1" >> .mozconfig
96931b
echo "export STRIP=/bin/true" >> .mozconfig
96931b
#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
96931b
./mach build -v || exit 1
225ef2
225ef2
96931b
#---------------------------------------------------------------------
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
96931b
96931b
# install icons
96931b
for s in 16 22 24 32 48 64 128 256; do
96931b
    %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps
96931b
    %{__cp} -p comm/mail/branding/%{name}/default${s}.png \
96931b
               $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/thunderbird.png
96931b
done
96931b
96931b
# Install high contrast icon
96931b
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
96931b
%{__cp} -p %{SOURCE25} \
96931b
           %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
225ef2
225ef2
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
225ef2
225ef2
# set up the thunderbird start script
96931b
rm -f $RPM_BUILD_ROOT/%{_bindir}/thunderbird
96931b
%{__cat} %{SOURCE21} | %{__sed} -e 's,%PREFIX%,%{_prefix},g' > \
96931b
        $RPM_BUILD_ROOT/%{_bindir}/thunderbird
96931b
%{__chmod} 755 $RPM_BUILD_ROOT/%{_bindir}/thunderbird
96931b
# Run firefox under wayland only on RHEL9 and newer
96931b
%if 0%{?rhel} < 9
96931b
sed -i -e 's|%DISABLE_WAYLAND_PLACEHOLDER%|export MOZ_DISABLE_WAYLAND=1|' %{buildroot}%{_bindir}/thunderbird
96931b
%else
96931b
sed -i -e 's|%DISABLE_WAYLAND_PLACEHOLDER%||' %{buildroot}%{_bindir}/thunderbird
96931b
%endif
225ef2
96931b
# set up our default preferences
96931b
%{__cat} %{SOURCE12} | %{__sed} -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g' \
96931b
        -e 's,myspell,%{dictionarydir},g' \
96931b
        > $RPM_BUILD_ROOT/rh-default-prefs
96931b
%{__install} -D $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{mozappdir}/greprefs/all-redhat.js
96931b
%{__install} -D $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{mozappdir}/defaults/pref/all-redhat.js
96931b
%{__rm} $RPM_BUILD_ROOT/rh-default-prefs
225ef2
96931b
%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/thunderbird-config
225ef2
225ef2
# own mozilla plugin dir (#135050)
96931b
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
225ef2
225ef2
# own extension directories
96931b
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{thunderbird_app_id}
96931b
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{thunderbird_app_id}
96931b
96931b
# System config dir (#1525709)
96931b
%{__mkdir_p} %{buildroot}%{_sysconfdir}/%{name}/pref
225ef2
225ef2
# Install langpacks
96931b
%{__rm} -f %{name}.lang # Delete for --short-circuit option
96931b
touch %{name}.lang
96931b
96931b
%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
96931b
225ef2
# Get rid of devel package and its debugsymbols
96931b
%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-devel-%{version}
225ef2
225ef2
# Copy over the LICENSE
96931b
install -c -m 644 LICENSE $RPM_BUILD_ROOT%{mozappdir}
225ef2
225ef2
# Use the system hunspell dictionaries
96931b
%{__rm} -rf $RPM_BUILD_ROOT/%{mozappdir}/dictionaries
96931b
ln -s $(pkg-config --variable prefix hunspell)/share/%{dictionarydir} $RPM_BUILD_ROOT%{mozappdir}/dictionaries
225ef2
225ef2
# ghost files
96931b
%{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/components
96931b
touch $RPM_BUILD_ROOT%{mozappdir}/components/compreg.dat
96931b
touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat
225ef2
96931b
# Add debuginfo for crash-stats.mozilla.com
96931b
%if %{enable_mozilla_crashreporter}
96931b
%{__mkdir_p} $RPM_BUILD_ROOT/%{moz_debug_dir}
96931b
%{__cp} %{objdir}/dist/%{symbols_file_name} $RPM_BUILD_ROOT/%{moz_debug_dir}
96931b
%endif
225ef2
225ef2
# Removing librnp.so - we cannot deliver that in RHELs
2eaae0
#{__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
96931b
%clean
96931b
rm -rf %{_srcrpmdir}/libffi*.src.rpm
96931b
find %{_rpmdir} -name "libffi*.rpm" -delete
96931b
rm -rf %{_srcrpmdir}/openssl*.src.rpm
96931b
find %{_rpmdir} -name "openssl*.rpm" -delete
96931b
rm -rf %{_srcrpmdir}/nss*.src.rpm
96931b
find %{_rpmdir} -name "nss*.rpm" -delete
96931b
rm -rf %{_srcrpmdir}/nspr*.src.rpm
96931b
find %{_rpmdir} -name "nspr*.rpm" -delete
96931b
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
96931b
%dir %{_sysconfdir}/%{name}
96931b
%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
96931b
%if %{build_langpacks}
96931b
%dir %{langpackdir}
96931b
%endif
96931b
%{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
96931b
%{_datadir}/icons/hicolor/64x64/apps/thunderbird.png
96931b
%{_datadir}/icons/hicolor/128x128/apps/thunderbird.png
96931b
%{_datadir}/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg
96931b
%if %{enable_mozilla_crashreporter}
96931b
%{mozappdir}/crashreporter
96931b
%{mozappdir}/crashreporter.ini
96931b
%{mozappdir}/Throbber-small.gif
225ef2
%endif
96931b
%if !%{?system_nss}
96931b
%{mozappdir}/*.chk
225ef2
%endif
96931b
%{mozappdir}/dependentlibs.list
96931b
%{mozappdir}/fonts
96931b
%{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
96931b
* Mon Nov 21 2022 CentOS Sources <bugs@centos.org> - 102.5.0-2.el9.centos
51ec0c
- Apply debranding changes
51ec0c
96931b
* Tue Nov 15 2022 Eike Rathke <erack@redhat.com> - 102.5.0-2
96931b
- Update to 102.5.0 build2
96931b
96931b
* Fri Nov 11 2022 Eike Rathke <erack@redhat.com> - 102.5.0-1
96931b
- Update to 102.5.0 build1
96931b
96931b
* Mon Oct 17 2022 Eike Rathke <erack@redhat.com> - 102.4.0-1
96931b
- Update to 102.4.0 build1
96931b
96931b
* Wed Oct 12 2022 Jan Horak <jhorak@redhat.com> - 102.3.0-4
96931b
- Fix for expat CVE-2022-40674
96931b
96931b
* Fri Sep 16 2022 Jan Horak <jhorak@redhat.com> - 102.3.0-3
96931b
- Update to 102.3.0 build1
96931b
0ae5e1
* Fri Aug 19 2022 Eike Rathke <erack@redhat.com> - 91.13.0-1
0ae5e1
- Update to 91.13.0 build1
0ae5e1
557f02
* Mon Jul 25 2022 Eike Rathke <erack@redhat.com> - 91.12.0-1
557f02
- Update to 91.12.0 build1
557f02
ad56e7
* Tue Jun 28 2022 Eike Rathke <erack@redhat.com> - 91.11.0-2
ad56e7
- Update to 91.11.0 build2
ad56e7
ad56e7
* Thu Jun 23 2022 Eike Rathke <erack@redhat.com> - 91.11.0-1
ad56e7
- Update to 91.11.0 build1
ad56e7
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