f1b26c
# Set for local builds only
f1b26c
%global disable_toolsets  0
f1b26c
f1b26c
%ifarch i686
f1b26c
# no debug package for the i686 because oom on i686 with debuginfos
f1b26c
%global debug_package %{nil}
f1b26c
%endif
f1b26c
539dac
%{lua:
539dac
function dist_to_rhel_minor(str, start)
539dac
  match = string.match(str, ".module%+el8.%d+")
539dac
  if match then
539dac
     return string.sub(match, 13)
539dac
  end
539dac
  match = string.match(str, ".el8_%d+")
539dac
  if match then
539dac
     return string.sub(match, 6)
539dac
  end
4add1b
  match = string.match(str, ".el8")
4add1b
  if match then
4add1b
     return 5
4add1b
  end
539dac
  return -1
539dac
end}
539dac
4add1b
%global rhel_minor_version %{lua:print(dist_to_rhel_minor(rpm.expand("%dist")))}
f1b26c
f1b26c
%global system_nss        1
f1b26c
%global bundle_nss        0
f1b26c
92e660
%if 0%{?rhel} == 8
539dac
  %if %{rhel_minor_version} < 2
f1b26c
%global bundle_nss        1
f1b26c
  %endif
92e660
%endif
f1b26c
f1b26c
%if 0%{?rhel} == 6
f1b26c
%global system_nss        0
92e660
%endif
92e660
f1b26c
%define use_bundled_ffi   0
f1b26c
f1b26c
%define use_bundled_python_2 1
f1b26c
%define use_bundled_python_3 1
f1b26c
025a5f
%if 0%{?rhel} == 8
025a5f
%define use_bundled_python_2 1
025a5f
%define use_bundled_python_3 0
f1b26c
%endif
f1b26c
f1b26c
%if 0%{?rhel} == 7
f1b26c
%define use_bundled_python_2 0
f1b26c
%define use_bundled_python_3 0
f1b26c
%endif
f1b26c
f1b26c
%if 0%{?flatpak:1}
025a5f
%define use_bundled_python_2 1
025a5f
%endif
f1b26c
f1b26c
# we need python2 because of icu data gen
f1b26c
%define use_bundled_python_2 1
f1b26c
# Don't use system hunspell for now
f1b26c
%global system_hunspell   0
025a5f
%if 0%{?rhel} == 8
025a5f
%global use_llvmts        0
025a5f
%else
025a5f
%global use_llvmts        1
025a5f
%endif
969f7f
f1b26c
%if 0%{?rhel} > 6
f1b26c
%global system_ffi        1
f1b26c
%else
f1b26c
%global system_ffi        0
f1b26c
%endif
f1b26c
%if 0%{?rhel} < 8
f1b26c
%global use_dts           1
969f7f
%endif
969f7f
969f7f
%global use_rustts        1
025a5f
%global dts_version       8
f1b26c
%if 0%{?rhel} == 6
f1b26c
%global dts_version       8
f1b26c
%endif
f1b26c
%global rust_version         1.41
f1b26c
%global rust_toolset_version 1.41
025a5f
%global llvm_version      7.0
025a5f
%if 0%{?rhel} == 8
025a5f
%global llvm_version      6.0
969f7f
%endif
025a5f
025a5f
%if 0%{?disable_toolsets}
025a5f
%global use_rustts        0
025a5f
%global use_dts           0
025a5f
%global use_llvmts        0
025a5f
%endif
025a5f
f1b26c
# Use system cairo?
f1b26c
%global system_cairo      0
025a5f
f1b26c
# Use system libvpx?
f1b26c
%global system_libvpx     0
025a5f
f1b26c
# Use system libicu?
f1b26c
%global system_libicu     0
969f7f
969f7f
# Big endian platforms
969f7f
%ifarch ppc64 s390x
969f7f
# Javascript Intl API is not supported on big endian platforms right now:
969f7f
# https://bugzilla.mozilla.org/show_bug.cgi?id=1322212
f1b26c
%global big_endian        1
969f7f
%endif
969f7f
f1b26c
# Hardened build?
f1b26c
%global hardened_build    1
f1b26c
f1b26c
%global system_jpeg       1
f1b26c
f1b26c
%ifarch %{ix86} x86_64
f1b26c
%global run_tests         0
f1b26c
%else
f1b26c
%global run_tests         0
f1b26c
%endif
969f7f
f1b26c
# Build as a debug package?
f1b26c
%global debug_build       0
969f7f
969f7f
%define thunderbird_app_id      \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
f1b26c
# Minimal required versions
f1b26c
%global cairo_version 1.13.1
f1b26c
%global freetype_version 2.1.9
f1b26c
%if %{?system_libvpx}
f1b26c
%global libvpx_version 1.4.0
f1b26c
%endif
969f7f
f1b26c
%if 0%{?system_nss}
f1b26c
%global nspr_version 4.25
f1b26c
# NSS/NSPR quite often ends in build override, so as requirement the version
f1b26c
# we're building against could bring us some broken dependencies from time to time.
564aa4
#%%global nspr_build_version %%(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536)
f1b26c
%global nspr_build_version %{nspr_version}
f1b26c
%global nss_version 3.53.1
564aa4
#%%global nss_build_version %%(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536)
f1b26c
%global nss_build_version %{nss_version}
969f7f
%endif
969f7f
f1b26c
025a5f
%define bundled_python_version_2 2.7.13
025a5f
%define bundled_python_version_3 3.6.8
025a5f
%define use_bundled_openssl     0
025a5f
%define use_bundled_nodejs      0
f1b26c
%define use_bundled_yasm        0
f1b26c
f1b26c
%if 0%{?rhel} == 8
539dac
  %if %{rhel_minor_version} <= 2
025a5f
%define use_bundled_nodejs      1
f1b26c
  %endif
025a5f
%endif
f1b26c
f1b26c
%if 0%{?rhel} == 7
f1b26c
%define use_bundled_nodejs      1
f1b26c
%define use_bundled_yasm        1
025a5f
%endif
969f7f
969f7f
%if 0%{?rhel} == 6
f1b26c
%define use_bundled_nodejs      1
f1b26c
%define use_bundled_openssl     1
f1b26c
%define use_bundled_yasm        1
969f7f
%define bundle_gtk3             1
969f7f
# In-tree libffi is able to build on following platforms, we have to bundle it for the rest
969f7f
%ifnarch x86_64 i686 aarch64
969f7f
%define use_bundled_ffi         1
969f7f
%endif
969f7f
%endif
969f7f
f1b26c
# GTK3 bundling
f1b26c
%define avoid_bundled_rebuild   0
f1b26c
f1b26c
%define gtk3_nvr 3.22.26-1
f1b26c
%define gtk3_install_path %{mozappdir}/bundled
969f7f
969f7f
# We could use %%include, but in %%files, %%post and other sections, but in these
969f7f
# sections it could lead to syntax errors about unclosed %%if. Work around it by
969f7f
# using the following macro
969f7f
%define include_file() %{expand:%(cat '%1')}
969f7f
f1b26c
%global mozappdir     %{_libdir}/%{name}
f1b26c
%global mozappdirdev  %{_libdir}/%{name}-devel-%{version}
f1b26c
%global langpackdir   %{mozappdir}/distribution/extensions
f1b26c
%global tarballdir    %{name}-%{version}
564aa4
%global mozappfeatures %{mozappdir}/features/*.xpi
f1b26c
#global pre_tag       alpha
969f7f
f1b26c
%global official_branding       1
f1b26c
%global build_langpacks         1
969f7f
Summary:        Mozilla Thunderbird mail/newsgroup client
969f7f
Name:           thunderbird
34b6ff
Version:        78.14.0
564aa4
Release:        1%{?dist}
969f7f
URL:            http://www.mozilla.org/projects/thunderbird/
969f7f
License:        MPLv1.1 or GPLv2+ or LGPLv2+
969f7f
Group:          Applications/Internet
969f7f
969f7f
%if 0%{?rhel} == 7
969f7f
ExcludeArch:    s390 ppc
969f7f
%endif
969f7f
%if 0%{?rhel} == 6
969f7f
ExclusiveArch:  i686 x86_64 ppc64 s390x
969f7f
%endif
969f7f
564aa4
# From ftp://archive.mozilla.org/pub/thunderbird/releases/%%{version}%%{?ext_version}/source
969f7f
Source0:        https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.xz
969f7f
%if %{build_langpacks}
34b6ff
Source1:        thunderbird-langpacks-%{version}%{?ext_version}-20210902.tar.xz
969f7f
# Locales for lightning
969f7f
%endif
f1b26c
Source2:        cbindgen-vendor-0.14.3.tar.xz
969f7f
Source3:        get-calendar-langpacks.sh
969f7f
969f7f
Source10:       thunderbird-mozconfig
969f7f
Source20:       thunderbird.desktop
969f7f
Source21:       thunderbird.sh.in
969f7f
Source24:       mozilla-api-key
969f7f
Source27:       google-api-key
025a5f
Source28:       node-stdout-nonblocking-wrapper
025a5f
Source102:      find-external-requires
969f7f
Source200:      gtk3-private-%{gtk3_nvr}.el6.src.rpm
969f7f
Source201:      gtk3-private-%{gtk3_nvr}-post.inc
969f7f
Source202:      gtk3-private-%{gtk3_nvr}-postun.inc
969f7f
Source203:      gtk3-private-%{gtk3_nvr}-posttrans.inc
969f7f
Source204:      gtk3-private-%{gtk3_nvr}-files.inc
969f7f
Source205:      gtk3-private-%{gtk3_nvr}-setup-flags-env.inc
969f7f
Source206:      gtk3-private-%{gtk3_nvr}-requires-provides-filter.inc
969f7f
Source301:      yasm-1.2.0-3.el5.src.rpm
969f7f
Source303:      libffi-3.0.13-18.el7_3.src.rpm
d10cfe
Source304:      nodejs-10.21.0-5.fc32.src.rpm
025a5f
Source305:      openssl-1.0.2k-19.6.bundle.el7_7.src.rpm
1f220b
Source601:      thunderbird-centos-default-prefs.js.el6
1f220b
Source701:      thunderbird-centos-default-prefs.js.el7
969f7f
969f7f
## Firefox patches
969f7f
f1b26c
Source403:      nss-3.53.1-3.fc32.src.rpm
f1b26c
Source401:      nss-setup-flags-env.inc
f1b26c
Source402:      nspr-4.25.0-1.el8_0.src.rpm 
f1b26c
#Python
f1b26c
%if 0%{?use_bundled_python_2}
f1b26c
Source100:      https://www.python.org/ftp/python/%{bundled_python_version_2}/Python-%{bundled_python_version_2}.tar.xz
f1b26c
%endif
f1b26c
%if 0%{?use_bundled_python_3}
f1b26c
Source101:      https://www.python.org/ftp/python/%{bundled_python_version_3}/Python-%{bundled_python_version_3}.tar.xz
f1b26c
%endif
969f7f
# Build patches
f1b26c
Patch1000:      python-2.7.patch
025a5f
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1699374
025a5f
Patch1001:      build-ppc64le-inline.patch
025a5f
Patch1002:      python-2.7-gcc8-fix.patch
025a5f
Patch1003:      python-missing-utimensat.patch
f1b26c
Patch1004:      build-icu-make.patch
025a5f
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1699374
969f7f
Patch4:         build-mozconfig-fix.patch
969f7f
Patch6:         build-nss-version.patch
025a5f
Patch7:         firefox-debugedits-error.patch
969f7f
969f7f
# Fedora/RHEL specific patches
969f7f
Patch215:        firefox-enable-addons.patch
969f7f
Patch219:        rhbz-1173156.patch
969f7f
Patch224:        mozilla-1170092.patch
969f7f
#ARM run-time patch
f1b26c
Patch231:        firefox-pipewire.patch
025a5f
Patch232:        firefox-rhel6-hugepage.patch
f1b26c
Patch233:        firefox-rhel6-nss-tls1.3.patch
f1b26c
Patch234:        rhbz-1821418.patch
f1b26c
Patch235:        firefox-pipewire-0-3.patch
f1b26c
Patch236:        fedora-shebang-build.patch
0303dc
Patch237:        disable-openpgp-in-thunderbird.patch
969f7f
969f7f
# Upstream patches
969f7f
Patch402:        mozilla-1196777.patch
969f7f
025a5f
Patch501:        python-encode.patch
f1b26c
Patch503:        mozilla-s390-context.patch
f1b26c
Patch505:        mozilla-bmo1005535.patch
f1b26c
Patch506:        mozilla-bmo1504834-part1.patch
f1b26c
Patch507:        mozilla-bmo1504834-part2.patch
f1b26c
Patch508:        mozilla-bmo1504834-part3.patch
f1b26c
Patch509:        mozilla-bmo1504834-part4.patch
f1b26c
Patch510:        mozilla-bmo1554971.patch
f1b26c
Patch511:        mozilla-bmo1602730.patch
f1b26c
Patch512:        mozilla-bmo849632.patch
f1b26c
Patch513:        mozilla-bmo998749.patch
f1b26c
Patch514:        mozilla-s390x-skia-gradient.patch
f1b26c
Patch515:        mozilla-bmo1626236.patch
f1b26c
Patch516:        D87019-thin-vec-big-endian.diff
f1b26c
f1b26c
f1b26c
# CentOS patches
f1b26c
%if 0%{?centos}
f1b26c
Patch10000:      Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch
92e660
Patch10001:      Bug-1526653---fix_user_vfp_armv7.patch
f1b26c
%endif
92e660
f1b26c
# RHEL6 patches
f1b26c
Patch600:        rhel6-dbusver.patch
f1b26c
Patch601:        rhel6-kernel.patch
f1b26c
Patch602:        rhel6-mach-fail.patch
f1b26c
Patch603:        rhel6-zconst.patch
f1b26c
Patch604:        rhel6-auxvh.patch
f1b26c
Patch605:        rhel6-abiv2-mozbz1642174.patch
d10cfe
Patch606:        rhel6-auxv.patch
659ae9
Patch607:        rhel6-at-no-automount.patch
659ae9
Patch608:        rhel6-clock_gettime.patch
969f7f
f1b26c
%if %{?system_nss}
f1b26c
%if !0%{?bundle_nss}
f1b26c
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
f1b26c
BuildRequires:  pkgconfig(nss) >= %{nss_version}
f1b26c
BuildRequires:  nss-static >= %{nss_version}
f1b26c
%endif
f1b26c
%endif
f1b26c
%if %{?system_cairo}
f1b26c
BuildRequires:  pkgconfig(cairo) >= %{cairo_version}
f1b26c
%endif
969f7f
BuildRequires:  pkgconfig(libpng)
969f7f
BuildRequires:  xz
f1b26c
BuildRequires:  libXt-devel
f1b26c
BuildRequires:  mesa-libGL-devel
969f7f
Requires:       liberation-fonts-common
969f7f
Requires:       liberation-sans-fonts
969f7f
%if %{?system_jpeg}
969f7f
BuildRequires:  libjpeg-devel
969f7f
%endif
f1b26c
BuildRequires:  zip
f1b26c
BuildRequires:  bzip2-devel
f1b26c
BuildRequires:  pkgconfig(zlib)
f1b26c
BuildRequires:  pkgconfig(libIDL-2.0)
f1b26c
BuildRequires:  pkgconfig(gtk+-2.0)
f1b26c
BuildRequires:  krb5-devel
f1b26c
BuildRequires:  pkgconfig(pango)
f1b26c
BuildRequires:  pkgconfig(freetype2) >= %{freetype_version}
f1b26c
BuildRequires:  pkgconfig(xt)
f1b26c
BuildRequires:  pkgconfig(xrender)
f1b26c
%if %{?system_hunspell}
f1b26c
BuildRequires:  hunspell-devel
969f7f
%endif
f1b26c
BuildRequires:  pkgconfig(libstartup-notification-1.0)
f1b26c
BuildRequires:  pkgconfig(libnotify)
f1b26c
BuildRequires:  pkgconfig(dri)
f1b26c
BuildRequires:  pkgconfig(libcurl)
f1b26c
BuildRequires:  dbus-glib-devel
969f7f
%if %{?system_libvpx}
969f7f
BuildRequires:  libvpx-devel >= %{libvpx_version}
969f7f
%endif
f1b26c
BuildRequires:  autoconf213
f1b26c
BuildRequires:  pkgconfig(libpulse)
f1b26c
BuildRequires:  pkgconfig(gconf-2.0)
969f7f
969f7f
%if 0%{?use_dts}
969f7f
BuildRequires:  devtoolset-%{dts_version}-gcc-c++
969f7f
BuildRequires:  devtoolset-%{dts_version}-gcc
969f7f
BuildRequires:  devtoolset-%{dts_version}-binutils
969f7f
BuildRequires:  devtoolset-%{dts_version}-libatomic-devel
025a5f
%if 0%{?use_llvmts}
969f7f
BuildRequires:  llvm-toolset-%{llvm_version}
969f7f
BuildRequires:  llvm-toolset-%{llvm_version}-llvm-devel
969f7f
%endif
969f7f
%endif
f1b26c
025a5f
BuildRequires:  scl-utils
f1b26c
BuildRequires:  findutils
f1b26c
f1b26c
969f7f
%if 0%{?rhel} == 8
969f7f
BuildRequires:  cargo
025a5f
BuildRequires:  rust >= %{rust_version}
969f7f
BuildRequires:  llvm >= %{llvm_version}
969f7f
BuildRequires:  llvm-devel >= %{llvm_version}
969f7f
BuildRequires:  clang >= %{llvm_version}
024a14
BuildRequires:  clang-devel >= %{llvm_version}
f1b26c
BuildRequires:  rustfmt >= %{rust_version}
025a5f
BuildRequires:  python3
f1b26c
BuildRequires:  nodejs >= 10.21
025a5f
%else
025a5f
%if 0%{?use_rustts}
025a5f
BuildRequires:  rust-toolset-%{rust_toolset_version}
969f7f
%endif
f1b26c
%if 0%{?rhel} == 7
f1b26c
#BuildRequires:  rh-nodejs12
f1b26c
%endif
025a5f
%if 0%{?use_llvmts}
025a5f
BuildRequires:  llvm-toolset-%{llvm_version}
025a5f
BuildRequires:  llvm-toolset-%{llvm_version}-llvm-devel
025a5f
%endif
025a5f
%endif
025a5f
f1b26c
%if ! 0%{?use_bundled_yasm}
f1b26c
BuildRequires:  yasm
f1b26c
%endif
f1b26c
f1b26c
025a5f
%if 0%{?use_bundled_python_2}
969f7f
# Needed for Python in RHEL6
969f7f
BuildRequires:  openssl-devel
f1b26c
%endif
f1b26c
f1b26c
%if 0%{?rhel} == 8
539dac
  %if %{rhel_minor_version} >= 3
f1b26c
BuildRequires:  pkgconfig(libpipewire-0.3)
f1b26c
  %else
f1b26c
BuildRequires:  pipewire-devel
f1b26c
  %endif
969f7f
%endif
969f7f
969f7f
%if 0%{?bundle_gtk3}
969f7f
BuildRequires:        automake
969f7f
BuildRequires:        autoconf
969f7f
BuildRequires:        cups-devel
969f7f
BuildRequires:        dbus-devel
969f7f
BuildRequires:        desktop-file-utils
969f7f
BuildRequires:        expat-devel
969f7f
BuildRequires:        fontpackages-devel
969f7f
BuildRequires:        gamin-devel
969f7f
BuildRequires:        gettext-devel
969f7f
BuildRequires:        git
969f7f
BuildRequires:        intltool
969f7f
BuildRequires:        jasper-devel
969f7f
BuildRequires:        libepoxy-devel
969f7f
BuildRequires:        libcroco-devel
969f7f
BuildRequires:        libffi-devel
969f7f
BuildRequires:        libpng-devel
969f7f
BuildRequires:        libtiff-devel
969f7f
BuildRequires:        libtool
969f7f
BuildRequires:        libxml2-devel
969f7f
BuildRequires:        libX11-devel
969f7f
BuildRequires:        libXcomposite-devel
969f7f
BuildRequires:        libXcursor-devel
969f7f
BuildRequires:        libXinerama-devel
969f7f
BuildRequires:        libXevie-devel
969f7f
BuildRequires:        libXrandr-devel
969f7f
BuildRequires:        libXrender-devel
969f7f
BuildRequires:        libXtst-devel
969f7f
BuildRequires:        mesa-libGL-devel
969f7f
BuildRequires:        mesa-libEGL-devel
969f7f
BuildRequires:        pixman-devel
969f7f
BuildRequires:        rest-devel
969f7f
BuildRequires:        readline-devel
969f7f
# TODO: We miss that dependency in our bundled gtk3 package.
969f7f
# As a hotfix we put it here and fix gtk3 in next release.
969f7f
Requires:             mesa-libEGL%{?_isa}
969f7f
Requires:             libcroco%{?_isa}
969f7f
Requires:             mesa-libGL%{?_isa}
969f7f
Requires:             bzip2-libs%{?_isa}
969f7f
Requires:             libXtst%{?_isa}
969f7f
%else
969f7f
BuildRequires:        gtk3-devel
969f7f
BuildRequires:        glib2-devel
969f7f
%endif
f1b26c
f1b26c
# Bundled nss/nspr requirement
f1b26c
%if 0%{?bundle_nss}
f1b26c
BuildRequires:    nss-softokn
f1b26c
BuildRequires:    sqlite-devel
f1b26c
BuildRequires:    zlib-devel
f1b26c
BuildRequires:    pkgconfig
f1b26c
BuildRequires:    gawk
f1b26c
BuildRequires:    psmisc
f1b26c
%if 0%{?rhel} == 6
f1b26c
BuildRequires:    perl
f1b26c
%else
f1b26c
BuildRequires:    perl-interpreter
f1b26c
%endif
f1b26c
BuildRequires:    gcc-c++
f1b26c
BuildRequires:    xmlto
f1b26c
%endif
f1b26c
f1b26c
Requires:       mozilla-filesystem
f1b26c
Requires:       p11-kit-trust
969f7f
%if %{?system_nss}
f1b26c
%if !0%{?bundle_nss}
f1b26c
Requires:       nspr >= %{nspr_build_version}
f1b26c
Requires:       nss >= %{nss_build_version}
f1b26c
%endif
969f7f
%endif
969f7f
f1b26c
BuildRequires:  desktop-file-utils
f1b26c
BuildRequires:  system-bookmarks
f1b26c
Requires:       redhat-indexhtml
f1b26c
#for the python2
f1b26c
BuildRequires:  pkgconfig(sqlite3)
f1b26c
f1b26c
f1b26c
%if %{?run_tests}
f1b26c
BuildRequires:  xorg-x11-server-Xvfb
969f7f
%endif
f1b26c
969f7f
%if %{?system_ffi}
969f7f
  %if !%{use_bundled_ffi}0
969f7f
BuildRequires:  pkgconfig(libffi)
969f7f
  %endif
969f7f
%endif
969f7f
f1b26c
%if %{?use_bundled_nodejs}
f1b26c
%if !0%{?use_bundled_python_3}
f1b26c
BuildRequires: python3-devel
f1b26c
%endif
f1b26c
BuildRequires: zlib-devel
f1b26c
#BuildRequires: brotli-devel
f1b26c
#BuildRequires: gcc >= 4.9.4
f1b26c
#BuildRequires: gcc-c++ >= 4.9.4
f1b26c
BuildRequires: chrpath
f1b26c
BuildRequires: libatomic
f1b26c
BuildRequires: openssl-devel
f1b26c
%endif
44d8f9
44d8f9
%if 0%{?big_endian}
44d8f9
  %if 0%{?flatpak}
44d8f9
BuildRequires:  icu
44d8f9
  %endif
44d8f9
%endif
44d8f9
969f7f
Obsoletes:      thunderbird-lightning
969f7f
# ==================================================================================
969f7f
# Override internal dependency generator to avoid showing libraries provided by this package
969f7f
# in dependencies:
969f7f
#AutoProv: 0
564aa4
#%%define _use_internal_dependency_generator 0
34b6ff
#%%define __find_requires %%{SOURCE101}
969f7f
969f7f
%description
969f7f
Mozilla Thunderbird is a standalone mail and newsgroup client.
969f7f
969f7f
969f7f
%prep
f1b26c
echo "Build environment"
f1b26c
echo "dist                  %{?dist}"
539dac
echo "RHEL 8 minor version: %{rhel_minor_version}"
f1b26c
echo "use_bundled_ffi       %{?use_bundled_ffi}"
f1b26c
echo "use_bundled_python_2  %{?use_bundled_python_2}"
f1b26c
echo "use_bundled_python_3  %{?use_bundled_python_3}"
f1b26c
echo "bundle_nss            %{?bundle_nss}"
f1b26c
echo "system_nss            %{?system_nss}"
f1b26c
echo "use_rustts            %{?use_rustts}"
f1b26c
echo "use_bundled_nodejs    %{?use_bundled_nodejs}"
f1b26c
echo "use_bundled_openssl   %{?use_bundled_openssl}"
f1b26c
echo "use_bundled_yasm      %{?use_bundled_yasm}"
f1b26c
f1b26c
025a5f
%if 0%{?use_bundled_python_2}
025a5f
%setup -q -T -c -n python2 -a 100
025a5f
%patch1000 -p0 -b .build
025a5f
%patch1002 -p0 -b .gcc8
025a5f
%endif
025a5f
%if 0%{?use_bundled_python_3}
025a5f
%setup -q -T -c -n python3 -a 101
025a5f
%if 0%{?rhel} == 6
025a5f
%patch1003 -p0 -b .missing-utimensat.patch
025a5f
%endif
025a5f
%endif
969f7f
%setup -q -n %{tarballdir}
969f7f
969f7f
# Firefox patches
025a5f
%patch7 -p1 -b .debugedits-error
025a5f
%ifarch %{ix86} %{arm} ppc
025a5f
# binary check fails OOM on 32bit arches
025a5f
%endif
969f7f
969f7f
%patch4  -p1 -b .build-mozconfig-fix
f1b26c
#%patch6  -p1 -b .nss-version
969f7f
969f7f
# Fedora patches
969f7f
%patch215 -p1 -b .addons
969f7f
%patch219 -p1 -b .rhbz-1173156
fb5326
%patch224 -p1 -b .1170092
539dac
f1b26c
%if 0%{?rhel} == 8
539dac
  %if %{rhel_minor_version} >= 3
539dac
# fixing /usr/include in the patch for the flatpak build
539dac
    %if 0%{?flatpak}
539dac
sed -ie 's|/usr/include|/app/include|' %_sourcedir/firefox-pipewire-0-3.patch
539dac
    %endif
f1b26c
%patch235 -p1 -b .pipewire-0-3
f1b26c
  %else
f1b26c
%patch231 -p1 -b .pipewire
f1b26c
  %endif
025a5f
%endif
969f7f
f1b26c
%patch236 -p1 -b .fedora-shebang-build
fac902
#patch237 -p1 -b .disable-openpgp-in-thunderbird
969f7f
f1b26c
%if 0%{?rhel} == 6
f1b26c
%patch232 -p1 -b .hugepage
f1b26c
%patch233 -p1 -b .rhel6-nss-tls1.3
969f7f
%endif
f1b26c
%patch234 -p1 -b .rhbz-1821418
969f7f
969f7f
%patch402 -p1 -b .1196777
969f7f
969f7f
# Patch for big endian platforms only
969f7f
%if 0%{?big_endian}
969f7f
%endif
969f7f
969f7f
# Thunderbird patches
025a5f
%patch501 -p1 -b .python-encode
f1b26c
%patch503 -p1 -b .mozilla-s390-context
f1b26c
%patch505 -p1 -b .mozilla-bmo1005535
f1b26c
%patch506 -p1 -b .mozilla-bmo1504834-part1
f1b26c
%patch507 -p1 -b .mozilla-bmo1504834-part2
f1b26c
%patch508 -p1 -b .mozilla-bmo1504834-part3
f1b26c
%patch509 -p1 -b .mozilla-bmo1504834-part4
f1b26c
%patch510 -p1 -b .mozilla-bmo1554971
f1b26c
%patch511 -p1 -b .mozilla-bmo1602730
f1b26c
%patch512 -p1 -b .mozilla-bmo849632
f1b26c
%patch513 -p1 -b .mozilla-bmo998749
f1b26c
%patch514 -p1 -b .mozilla-s390x-skia-gradient
f1b26c
%patch515 -p1 -b .mozilla-bmo1626236
f1b26c
%patch516 -p1 -b .D87019-thin-vec-big-endian.diff
f1b26c
f1b26c
025a5f
%patch1001 -p1 -b .ppc64le-inline
f1b26c
%patch1004 -p1 -b .icu-make
969f7f
f1b26c
%if 0%{?rhel} == 6
f1b26c
%patch600 -p1 -b .rhel6-dbusver
f1b26c
%patch601 -p1 -b .rhel6-kernel
f1b26c
%patch602 -p1 -b .rhel6-mach-fail
f1b26c
%patch603 -p1 -b .rhel6-zconst
f1b26c
%patch604 -p1 -b .rhel6-auxvh
f1b26c
%patch605 -p1 -b .rhel6-abiv2-mozbz1642174
d10cfe
%patch606 -p1 -b .rhel6-auxv
659ae9
%patch607 -p1 -R -b .rhel6-at-no-automount
659ae9
%patch608 -p1 -b .rhel6-clock_gettime
f1b26c
%endif
f1b26c
f1b26c
# CentOS patches
f1b26c
%if 0%{?centos}
92e660
%patch10000 -p1 -b .mozilla-1238661
92e660
%patch10001 -p1 -b .mozilla-1526653
92e660
%endif
92e660
969f7f
%{__rm} -f .mozconfig
969f7f
%{__cp} %{SOURCE10} .mozconfig
969f7f
function add_to_mozconfig() {
969f7f
  mozconfig_entry=$1
969f7f
  echo "ac_add_options --$1" >> .mozconfig
969f7f
}
969f7f
969f7f
# Modify mozconfig file
969f7f
%if %{official_branding}
969f7f
 add_to_mozconfig "enable-official-branding"
969f7f
%endif
969f7f
%{__cp} %{SOURCE24} mozilla-api-key
969f7f
%{__cp} %{SOURCE27} google-api-key
969f7f
969f7f
%if %{?system_nss}
969f7f
 add_to_mozconfig "with-system-nspr"
969f7f
 add_to_mozconfig "with-system-nss"
969f7f
%else
969f7f
 add_to_mozconfig "without-system-nspr"
969f7f
 add_to_mozconfig "without-system-nss"
969f7f
%endif
969f7f
969f7f
%if 0%{?use_bundled_ffi}
969f7f
 add_to_mozconfig "with-system-ffi"
969f7f
%endif
969f7f
969f7f
%if 0%{?system_ffi}
969f7f
 add_to_mozconfig "with-system-ffi"
969f7f
%endif
025a5f
%ifarch %{arm} %{ix86} x86_64
969f7f
 add_to_mozconfig "disable-elf-hack"
969f7f
%endif
969f7f
f1b26c
%if %{?system_hunspell}
f1b26c
echo "ac_add_options --enable-system-hunspell" >> .mozconfig
f1b26c
%else
f1b26c
# not available?
f1b26c
#echo "ac_add_options --disable-system-hunspell" >> .mozconfig
f1b26c
%endif
f1b26c
969f7f
%if %{?debug_build}
969f7f
 add_to_mozconfig "enable-debug"
969f7f
 add_to_mozconfig "disable-optimize"
969f7f
%else
969f7f
%global optimize_flags "-g -O2"
f1b26c
%ifarch s390 s390x
f1b26c
%global optimize_flags "-g -O1"
969f7f
%endif
969f7f
%ifarch armv7hl
969f7f
# ARMv7 need that (rhbz#1426850)
659ae9
%global optimize_flags "-g -O2 -fno-schedule-insns"
969f7f
%endif
969f7f
%ifarch ppc64le aarch64
969f7f
%global optimize_flags "-g -O2"
969f7f
%endif
969f7f
%if %{optimize_flags} != "none"
969f7f
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
969f7f
%else
969f7f
echo 'ac_add_options --enable-optimize' >> .mozconfig
969f7f
%endif
969f7f
echo "ac_add_options --disable-debug" >> .mozconfig
969f7f
%endif
969f7f
969f7f
# Second arches fail to start with jemalloc enabled
969f7f
%ifnarch %{ix86} x86_64
969f7f
echo "ac_add_options --disable-jemalloc" >> .mozconfig
969f7f
%endif
969f7f
969f7f
%ifnarch %{ix86} x86_64
969f7f
echo "ac_add_options --disable-webrtc" >> .mozconfig
969f7f
%endif
969f7f
f1b26c
%if !%{?system_jpeg}
f1b26c
echo "ac_add_options --without-system-jpeg" >> .mozconfig
f1b26c
%else
f1b26c
echo "ac_add_options --with-system-jpeg" >> .mozconfig
f1b26c
%endif
f1b26c
969f7f
%if %{?system_libvpx}
969f7f
echo "ac_add_options --with-system-libvpx" >> .mozconfig
969f7f
%else
969f7f
echo "ac_add_options --without-system-libvpx" >> .mozconfig
969f7f
%endif
969f7f
969f7f
%if %{?system_libicu}
969f7f
echo "ac_add_options --with-system-icu" >> .mozconfig
969f7f
%else
969f7f
echo "ac_add_options --without-system-icu" >> .mozconfig
969f7f
%endif
969f7f
%ifarch s390 s390x
f1b26c
echo "ac_add_options --disable-jit" >> .mozconfig
f1b26c
%endif
f1b26c
f1b26c
%ifnarch %{ix86}
f1b26c
%if !0%{?debug_build}
f1b26c
echo "ac_add_options --disable-debug-symbols" >> .mozconfig
f1b26c
%endif
969f7f
%endif
969f7f
025a5f
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
969f7f
969f7f
# Remove executable bit to make brp-mangle-shebangs happy.
969f7f
chmod -x third_party/rust/itertools/src/lib.rs
f1b26c
chmod a-x third_party/rust/gfx-backend-vulkan/src/*.rs
f1b26c
chmod a-x third_party/rust/gfx-hal/src/*.rs
f1b26c
chmod a-x third_party/rust/ash/src/extensions/ext/*.rs
f1b26c
chmod a-x third_party/rust/ash/src/extensions/khr/*.rs
f1b26c
chmod a-x third_party/rust/ash/src/extensions/mvk/*.rs
f1b26c
chmod a-x third_party/rust/ash/src/extensions/nv/*.rs
969f7f
969f7f
# install lightning langpacks
969f7f
969f7f
%build
f1b26c
ulimit -a
f1b26c
free
f1b26c
#set -e
025a5f
# Hack for missing shell when building in brew on RHEL6
025a5f
%if 0%{?rhel} == 6
025a5f
export SHELL=/bin/sh
025a5f
%endif
969f7f
969f7f
#GTK3 >>
969f7f
%if ! 0%{?avoid_bundled_rebuild}
969f7f
    rm -rf %{_buildrootdir}/*
969f7f
%endif
969f7f
export PATH="%{_buildrootdir}/bin:$PATH"
969f7f
969f7f
function install_rpms_to_current_dir() {
969f7f
    PACKAGE_RPM=$(eval echo $1)
969f7f
    PACKAGE_DIR=%{_rpmdir}
969f7f
969f7f
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
969f7f
        # Hack for tps tests
969f7f
        ARCH_STR=%{_arch}
969f7f
        %ifarch i386 i686
969f7f
            ARCH_STR="i?86"
969f7f
        %endif
f1b26c
        %if 0%{?rhel} > 6
f1b26c
          PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
f1b26c
        %endif
969f7f
     fi
969f7f
969f7f
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
969f7f
     do
969f7f
         echo "$package"
969f7f
         rpm2cpio "$package" | cpio -idu
969f7f
     done
969f7f
}
969f7f
969f7f
function build_bundled_package() {
969f7f
  PACKAGE_RPM=$1
969f7f
  PACKAGE_FILES=$2
969f7f
  PACKAGE_SOURCE=$3
f1b26c
  PACKAGE_BUILD_OPTIONS=$4
025a5f
  export PACKAGE_DIR="%{_topdir}/RPMS"
969f7f
969f7f
  PACKAGE_ALREADY_BUILD=0
969f7f
  %if %{?avoid_bundled_rebuild}
969f7f
    if ls $PACKAGE_DIR/$PACKAGE_RPM; then
969f7f
      PACKAGE_ALREADY_BUILD=1
969f7f
    fi
969f7f
    if ls $PACKAGE_DIR/%{_arch}/$PACKAGE_RPM; then
969f7f
      PACKAGE_ALREADY_BUILD=1
969f7f
    fi
969f7f
  %endif
969f7f
  if [ $PACKAGE_ALREADY_BUILD == 0 ]; then
969f7f
    echo "Rebuilding $PACKAGE_RPM from $PACKAGE_SOURCE"; echo "==============================="
f1b26c
    rpmbuild --nodeps $PACKAGE_BUILD_OPTIONS --rebuild $PACKAGE_SOURCE
f1b26c
    cat /var/tmp/rpm-tmp*
969f7f
  fi
969f7f
f1b26c
  find $PACKAGE_DIR
969f7f
  if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
969f7f
    # Hack for tps tests
969f7f
    ARCH_STR=%{_arch}
969f7f
    %ifarch i386 i686
969f7f
    ARCH_STR="i?86"
969f7f
    %endif
f1b26c
    %if 0%{?rhel} > 6
f1b26c
      export PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
f1b26c
    %endif
969f7f
  fi
969f7f
  pushd $PACKAGE_DIR
025a5f
969f7f
  echo "Installing $PACKAGE_DIR/$PACKAGE_RPM"; echo "==============================="
f1b26c
  pwd
025a5f
  PACKAGE_LIST=$(echo $PACKAGE_DIR/$PACKAGE_RPM | tr " " "\n")
025a5f
  for PACKAGE in $PACKAGE_LIST
025a5f
  do
025a5f
      rpm2cpio $PACKAGE | cpio -iduv
025a5f
  done
025a5f
025a5f
  PATH=$PACKAGE_DIR/usr/bin:$PATH
025a5f
  export PATH
025a5f
  LD_LIBRARY_PATH=$PACKAGE_DIR/usr/%{_lib}:$LD_LIBRARY_PATH
025a5f
  export LD_LIBRARY_PATH
025a5f
969f7f
  # Clean rpms to avoid including them to package
969f7f
  %if ! 0%{?avoid_bundled_rebuild}
969f7f
    rm -f $PACKAGE_FILES
969f7f
  %endif
969f7f
969f7f
  popd
969f7f
}
969f7f
969f7f
# Build and install local yasm if needed
969f7f
# ======================================
f1b26c
%if 0%{?use_bundled_yasm}
969f7f
  build_bundled_package 'yasm-1*.rpm' 'yasm-*.rpm' '%{SOURCE301}'
969f7f
%endif
969f7f
f1b26c
%if 0%{?bundle_nss}
f1b26c
   rpm -ivh %{SOURCE402}
f1b26c
   #rpmbuild --nodeps --define '_prefix %{gtk3_install_path}' --without=tests -ba %{_specdir}/nspr.spec
f1b26c
   rpmbuild --nodeps --define '_prefix %{gtk3_install_path}' -ba %{_specdir}/nspr.spec
f1b26c
   pushd %{_buildrootdir}
f1b26c
   install_rpms_to_current_dir nspr-4*.rpm
f1b26c
   install_rpms_to_current_dir nspr-devel*.rpm
f1b26c
   popd
f1b26c
   echo "Setting nspr flags"
f1b26c
   # nss-setup-flags-env.inc
f1b26c
   sed -i 's@%{gtk3_install_path}@%{_buildrootdir}%{gtk3_install_path}@g' %{_buildrootdir}%{gtk3_install_path}/%{_lib}/pkgconfig/nspr*.pc
f1b26c
f1b26c
   export LDFLAGS="-L%{_buildrootdir}%{gtk3_install_path}/%{_lib} $LDFLAGS"
f1b26c
   export LDFLAGS="-Wl,-rpath,%{gtk3_install_path}/%{_lib} $LDFLAGS"
f1b26c
   export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{gtk3_install_path}/%{_lib} $LDFLAGS"
f1b26c
   export PKG_CONFIG_PATH=%{_buildrootdir}%{gtk3_install_path}/%{_lib}/pkgconfig
f1b26c
   export PATH="{_buildrootdir}%{gtk3_install_path}/bin:$PATH"
f1b26c
f1b26c
   export PATH=%{_buildrootdir}/%{gtk3_install_path}/bin:$PATH
f1b26c
   echo $PKG_CONFIG_PATH
f1b26c
f1b26c
   rpm -ivh %{SOURCE403}
f1b26c
   rpmbuild --nodeps --define '_prefix %{gtk3_install_path}' -ba %{_specdir}/nss.spec
f1b26c
   pushd %{_buildrootdir}
f1b26c
   #cleanup
f1b26c
   #rm -rf {_buildrootdir}/usr/lib/debug/*
f1b26c
   #rm -rf {_buildrootdir}/usr/lib/.build-id
f1b26c
   #install_rpms_to_current_dir nss-%{gtk3_nvr}*.rpm
f1b26c
   #install_rpms_to_current_dir nss-devel-%{gtk3_nvr}*.rpm
f1b26c
   install_rpms_to_current_dir nss-3*.rpm
f1b26c
   install_rpms_to_current_dir nss-devel*.rpm
f1b26c
   install_rpms_to_current_dir nss-pkcs11-devel*.rpm
f1b26c
   install_rpms_to_current_dir nss-softokn-3*.rpm
f1b26c
   install_rpms_to_current_dir nss-softokn-devel*.rpm
f1b26c
   install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
f1b26c
   install_rpms_to_current_dir nss-softokn-freebl-devel*.rpm
f1b26c
   install_rpms_to_current_dir nss-util-3*.rpm
f1b26c
   install_rpms_to_current_dir nss-util-devel*.rpm
f1b26c
   popd
f1b26c
  %filter_provides_in %{gtk3_install_path}/%{_lib}
f1b26c
  %filter_requires_in %{gtk3_install_path}/%{_lib}
f1b26c
  %filter_from_requires /libnss3.so.*/d
f1b26c
  %filter_from_requires /libsmime3.so.*/d
f1b26c
  %filter_from_requires /libssl3.so.*/d
f1b26c
  %filter_from_requires /libnssutil3.so.*/d
f1b26c
  %filter_from_requires /libnspr4.so.*/d
659ae9
%endif
f1b26c
659ae9
%if 0%{?rhel} == 6
659ae9
  %filter_from_requires /libnss3.so.*/d
659ae9
  %filter_from_requires /libsmime3.so.*/d
659ae9
  %filter_from_requires /libssl3.so.*/d
659ae9
  %filter_from_requires /libnssutil3.so.*/d
659ae9
  %filter_from_requires /libnspr4.so.*/d
659ae9
  %filter_from_provides /libnss3.so.*/d
659ae9
  %filter_from_provides /libsmime3.so.*/d
659ae9
  %filter_from_provides /libssl3.so.*/d
659ae9
  %filter_from_provides /libnssutil3.so.*/d
659ae9
  %filter_from_provides /libnspr4.so.*/d
f1b26c
%endif
f1b26c
969f7f
%if 0%{?bundle_gtk3}
969f7f
   %if ! 0%{?avoid_bundled_rebuild}
969f7f
    rpm -ivh %{SOURCE200}
969f7f
    rpmbuild --nodeps --define '_prefix %{gtk3_install_path}' -ba %{_specdir}/gtk3-private.spec
969f7f
   %endif
969f7f
   pushd %{_buildrootdir}
969f7f
   install_rpms_to_current_dir gtk3-private-%{gtk3_nvr}*.rpm
969f7f
   install_rpms_to_current_dir gtk3-private-devel-%{gtk3_nvr}*.rpm
969f7f
   install_rpms_to_current_dir gtk3-private-rpm-scripts-%{gtk3_nvr}*.rpm
969f7f
   popd
969f7f
%endif
969f7f
969f7f
%if 0%{?bundle_gtk3}
969f7f
# gtk3-private-3.22.26.el6-1-requires-provides-filter.inc
969f7f
%include_file %{SOURCE206}
969f7f
%endif
969f7f
%if 0%{use_bundled_ffi}
969f7f
  # Install libraries to the predefined location to later add them to the Firefox libraries
969f7f
  rpm -ivh %{SOURCE303}
969f7f
  rpmbuild --nodeps --define '_prefix %{gtk3_install_path}' -ba %{_specdir}/libffi.spec
969f7f
  pushd %{_buildrootdir}
969f7f
  install_rpms_to_current_dir 'libffi*.rpm'
969f7f
  popd
969f7f
  %filter_from_requires /libffi.so.6/d
969f7f
%endif
969f7f
%filter_setup
969f7f
025a5f
# If needed build the bundled python 2.7 and 3.6 and put it in the PATH
025a5f
%if 0%{?use_bundled_python_3}
025a5f
    pushd %{_builddir}/python3/Python-%{bundled_python_version_3}
f1b26c
    ./configure --prefix="%{_buildrootdir}" --exec-prefix="%{_buildrootdir}" --libdir="%{_buildrootdir}/lib"
025a5f
    make %{?_smp_mflags} install V=1 -j1
025a5f
    cp Tools/scripts/pathfix.py %{_buildrootdir}/bin
025a5f
    popd
025a5f
%endif
025a5f
%if 0%{?use_bundled_python_2}
025a5f
    pushd %{_builddir}/python2/Python-%{bundled_python_version_2}
025a5f
    ./configure --prefix="%{_buildrootdir}" --exec-prefix="%{_buildrootdir}" --libdir="%{_buildrootdir}/lib"
025a5f
    make %{?_smp_mflags} install V=1
f1b26c
    popd    
025a5f
%endif
969f7f
025a5f
function replace_prefix() {
025a5f
  FILE_NAME=$1
025a5f
  PKG_CONFIG_PREFIX=$2
025a5f
025a5f
  cat $FILE_NAME | tail -n +2 > tmp.txt
025a5f
  echo "$PKG_CONFIG_PREFIX" > $FILE_NAME
025a5f
  cat tmp.txt >> $FILE_NAME
025a5f
  rm -rf tmp.txt
025a5f
}
025a5f
025a5f
# Build and install local openssl if needed
025a5f
# =========================================
025a5f
%if 0%{?use_bundled_openssl}
025a5f
  rpm -ivh %{SOURCE305}
025a5f
  rpmbuild --nodeps -ba %{_specdir}/openssl.spec
025a5f
  pushd %{_buildrootdir}
025a5f
  install_rpms_to_current_dir openssl-1.0.2k*.rpm
025a5f
  install_rpms_to_current_dir openssl-libs-1.0.2k*.rpm
025a5f
  install_rpms_to_current_dir openssl-devel-1.0.2k*.rpm
025a5f
  install_rpms_to_current_dir openssl-static-1.0.2k*.rpm
025a5f
  # openssl is installed to %{_buildrootdir}/usr/lib(64)/...
025a5f
  export PKG_CONFIG_PATH=%{_buildrootdir}/%{_libdir}/pkgconfig/:$PKG_CONFIG_PATH
025a5f
  replace_prefix %{_buildrootdir}/%{_libdir}/pkgconfig/libcrypto.pc prefix=%{_buildrootdir}/usr
025a5f
  replace_prefix %{_buildrootdir}/%{_libdir}/pkgconfig/libssl.pc prefix=%{_buildrootdir}/usr
025a5f
  replace_prefix %{_buildrootdir}/%{_libdir}/pkgconfig/openssl.pc prefix=%{_buildrootdir}/usr
025a5f
  cat  %{_buildrootdir}/%{_libdir}/pkgconfig/libcrypto.pc
025a5f
  cat  %{_buildrootdir}/%{_libdir}/pkgconfig/libssl.pc
025a5f
  cat  %{_buildrootdir}/%{_libdir}/pkgconfig/openssl.pc
025a5f
  pushd %{_rpmdir}
025a5f
  rm -f openssl-*.rpm
025a5f
  popd
025a5f
  popd
969f7f
%endif
969f7f
025a5f
# GTK3 <<
969f7f
# We need to disable exit on error temporarily for the following scripts:
969f7f
set +e
969f7f
%if 0%{?use_dts}
969f7f
source scl_source enable devtoolset-%{dts_version}
969f7f
%endif
969f7f
%if 0%{?use_rustts}
025a5f
source scl_source enable rust-toolset-%{rust_toolset_version}
969f7f
%endif
969f7f
f1b26c
env
f1b26c
which gcc
f1b26c
which c++
f1b26c
which g++
f1b26c
which ld
025a5f
# Build and install local node if needed
025a5f
# ======================================
025a5f
%if %{use_bundled_nodejs}
f1b26c
  build_bundled_package 'nodejs-10*.rpm' 'nodejs-*.rpm npm-*.rpm' %{SOURCE304} "--with bootstrap"
025a5f
  export MOZ_NODEJS=$PACKAGE_DIR/usr/bin/node
025a5f
%else
025a5f
  export MOZ_NODEJS=/usr/bin/node
969f7f
%endif
969f7f
025a5f
mkdir -p my_rust_vendor
025a5f
cd my_rust_vendor
f1b26c
%{__tar} xf %{SOURCE2}
025a5f
cd -
025a5f
mkdir -p .cargo
025a5f
cat > .cargo/config <
025a5f
[source.crates-io]
025a5f
replace-with = "vendored-sources"
025a5f
025a5f
[source.vendored-sources]
025a5f
directory = "`pwd`/my_rust_vendor"
025a5f
EOL
025a5f
025a5f
export CARGO_HOME=.cargo
025a5f
cargo install cbindgen
025a5f
export PATH=`pwd`/.cargo/bin:$PATH
025a5f
export CBINDGEN=`pwd`/.cargo/bin/cbindgen
025a5f
025a5f
f1b26c
# debug missing sqlite3 python module
f1b26c
./mach python -c "import sys;print(sys.path)"
5a363f
969f7f
%if 0%{?big_endian}
44d8f9
  %if 0%{?flatpak}
44d8f9
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
44d8f9
icupkg -tb config/external/icu/data/icudt67l.dat config/external/icu/data/icudt67b.dat
44d8f9
ls -l config/external/icu/data
44d8f9
rm -f config/external/icu/data/icudt*l.dat
44d8f9
  %else
f1b26c
echo "Generate big endian version of config/external/icu/data/icud64l.dat"
f1b26c
 ./mach python intl/icu_sources_data.py .
f1b26c
 rm -f config/external/icu/data/icudt*l.dat
f1b26c
# mv config/external/icu/data/icudt64l.dat config/external/icu/data/icudt64b.dat
025a5f
 ls -l config/external/icu/data
f1b26c
 cat /tmp/icu-make*
44d8f9
  %endif
969f7f
%endif
969f7f
025a5f
mkdir %{_buildrootdir}/bin || :
025a5f
cp %{SOURCE28} %{_buildrootdir}/bin || :
f1b26c
chmod +x %{_buildrootdir}/bin/node-stdout-nonblocking-wrapper
025a5f
969f7f
# Update the various config.guess to upstream release for aarch64 support
969f7f
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
969f7f
969f7f
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
969f7f
#
969f7f
# Mozilla builds with -Wall with exception of a few warnings which show up
969f7f
# everywhere in the code; so, don't override that.
969f7f
#
969f7f
# Disable C++ exceptions since Mozilla code is not exception-safe
969f7f
#
969f7f
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
969f7f
#rhbz#1037063
969f7f
# -Werror=format-security causes build failures when -Wno-format is explicitly given
969f7f
# for some sources
969f7f
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
969f7f
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
969f7f
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
969f7f
%if 0%{?fedora} > 23
969f7f
# Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045)
969f7f
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fno-delete-null-pointer-checks"
969f7f
%endif
969f7f
# Use hardened build?
969f7f
%if %{?hardened_build}
969f7f
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
969f7f
%endif
969f7f
%if %{?debug_build}
f1b26c
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
969f7f
%endif
969f7f
%ifarch s390
969f7f
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
969f7f
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
969f7f
# overrides the -g1 from line above and breaks building on s390
969f7f
# (OOM when linking, rhbz#1238225)
969f7f
export MOZ_DEBUG_FLAGS=" "
969f7f
%endif
f1b26c
f1b26c
# We don't wantfirefox to use CK_GCM_PARAMS_V3 in nss
f1b26c
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT"
f1b26c
f1b26c
%ifarch s390 %{arm} ppc aarch64 i686 x86_64 s390x
969f7f
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
969f7f
%endif
f1b26c
%ifarch %{arm} i686
f1b26c
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--strip-debug"
92e660
echo "ac_add_options --enable-linker=gold" >> .mozconfig
92e660
%endif
d0bb16
f1b26c
%ifarch %{arm} i686
f1b26c
export RUSTFLAGS="-Cdebuginfo=0"
f1b26c
%endif
969f7f
export CFLAGS=$MOZ_OPT_FLAGS
969f7f
export CXXFLAGS=$MOZ_OPT_FLAGS
969f7f
export LDFLAGS=$MOZ_LINK_FLAGS
969f7f
969f7f
export PREFIX='%{_prefix}'
969f7f
export LIBDIR='%{_libdir}'
025a5f
export CC=gcc
025a5f
export CXX=g++
969f7f
969f7f
MOZ_SMP_FLAGS=-j1
025a5f
# More than two build tasks can lead to OOM gcc crash.
025a5f
%if 0%{?rhel} < 8
025a5f
[ -z "$RPM_BUILD_NCPUS" ] && \
025a5f
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
025a5f
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
025a5f
%else
969f7f
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le aarch64
969f7f
[ -z "$RPM_BUILD_NCPUS" ] && \
969f7f
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
969f7f
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
f1b26c
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j2
f1b26c
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j2
969f7f
%endif
025a5f
%endif
969f7f
f1b26c
cat /proc/meminfo
f1b26c
# Free memory in kB
f1b26c
f1b26c
MEM_AVAILABLE=$(grep MemAvailable /proc/meminfo | awk '{ print $2 }')
f1b26c
f1b26c
# Usually the compiler processes can take 2 GB of memory at peaks
f1b26c
TASK_SIZE=4000000
f1b26c
MEM_CONSTRAINED_JOBS=$(( MEM_AVAILABLE / TASK_SIZE ))
f1b26c
CPU_AVAILABLE=$(/usr/bin/getconf _NPROCESSORS_ONLN)
f1b26c
# Pick the minimum from available CPUs or memory constrained number of jobs
f1b26c
#MOZ_SMP_FLAGS=-j$([ "$CPU_AVAILABLE" -le "$MEM_CONSTRAINED_JOBS" ] && echo "$CPU_AVAILABLE" || echo "$MEM_CONSTRAINED_JOBS")
f1b26c
969f7f
%if 0%{?bundle_gtk3}
969f7f
# gtk3-private-setup-flags-env.inc
969f7f
%include_file %{SOURCE205}
969f7f
%endif
f1b26c
d10cfe
d10cfe
#FIXME workaround for oom
d10cfe
d10cfe
cat /proc/meminfo
d10cfe
# Free memory in kB
d10cfe
d10cfe
MEM_AVAILABLE=$(grep MemAvailable /proc/meminfo | awk '{ print $2 }')
d10cfe
f1b26c
%if 0%{?bundle_nss}
f1b26c
echo "Setting nss flags"
f1b26c
# nss-setup-flags-env.inc
f1b26c
%include_file %{SOURCE401}
f1b26c
export PATH=%{_buildrootdir}/%{gtk3_install_path}/bin:$PATH
f1b26c
echo $PKG_CONFIG_PATH
f1b26c
%endif
969f7f
969f7f
export MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
969f7f
#export MOZ_SERVICES_SYNC="1"
f1b26c
# we need to strip the sources on i686 because to we don't use rpm to generate debugsymbols because of oom
f1b26c
%ifnarch i686 i386
969f7f
export STRIP=/bin/true
f1b26c
%endif
f1b26c
which node
f1b26c
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"'
f1b26c
env
f1b26c
ls %{_buildrootdir}
f1b26c
f1b26c
f1b26c
%if 0%{?rhel} == 6
f1b26c
export POLICY_FILE="rhel6.config"
f1b26c
export POLICT_PATH="/etc/pki/nss-legacy"
f1b26c
%endif
f1b26c
f1b26c
%if 0%{?use_llvmts}
f1b26c
scl enable llvm-toolset-%{llvm_version} './mach build -v'
f1b26c
%else
969f7f
./mach build -v
f1b26c
%endif
969f7f
969f7f
#---------------------------------------------------------------------
969f7f
969f7f
%install
969f7f
%if 0%{?rhel} == 6
969f7f
export SHELL=/bin/sh
969f7f
%endif
969f7f
969f7f
function install_rpms_to_current_dir() {
969f7f
    PACKAGE_RPM=$(eval echo $1)
969f7f
    PACKAGE_DIR=%{_rpmdir}
969f7f
969f7f
    if [ ! -f $PACKAGE_DIR/$PACKAGE_RPM ]; then
969f7f
        # Hack for tps tests
969f7f
        ARCH_STR=%{_arch}
969f7f
        %ifarch i386 i686
969f7f
            ARCH_STR="i?86"
969f7f
        %endif
f1b26c
        %if 0%{?rhel} > 6
f1b26c
          PACKAGE_DIR="$PACKAGE_DIR/$ARCH_STR"
f1b26c
        %endif
969f7f
     fi
969f7f
969f7f
     for package in $(ls $PACKAGE_DIR/$PACKAGE_RPM)
969f7f
     do
969f7f
         echo "$package"
969f7f
         rpm2cpio "$package" | cpio -idu
969f7f
     done
969f7f
}
969f7f
f1b26c
%if 0%{?bundle_gtk3}
969f7f
pushd %{buildroot}
969f7f
# Install gtk3-private again to the buildroot, but without devel subpackage
969f7f
install_rpms_to_current_dir gtk3-private-%{gtk3_nvr}*.rpm
969f7f
install_rpms_to_current_dir gtk3-private-rpm-scripts-%{gtk3_nvr}*.rpm
969f7f
popd
969f7f
%endif
969f7f
f1b26c
%if 0%{?bundle_nss}
f1b26c
  pushd %{buildroot}
f1b26c
  #install_rpms_to_current_dir nss-*.rpm
f1b26c
  install_rpms_to_current_dir nspr-4*.rpm
f1b26c
  install_rpms_to_current_dir nss-3*.rpm
f1b26c
  install_rpms_to_current_dir nss-softokn-3*.rpm
f1b26c
  install_rpms_to_current_dir nss-softokn-freebl-3*.rpm
f1b26c
  install_rpms_to_current_dir nss-util-3*.rpm
f1b26c
 
f1b26c
  # cleanup unecessary nss files
f1b26c
  #rm -rf %{_buildrootdir}/%{gtk3_install_path}/bin
f1b26c
  #rm -rf %{_buildrootdir}/%{gtk3_install_path}/include
f1b26c
  rm -rf %{buildroot}/%{gtk3_install_path}/lib/dracut
f1b26c
  rm -rf %{buildroot}/%{gtk3_install_path}/%{_lib}/nss
f1b26c
  #rm -rf %{_buildrootdir}/%{gtk3_install_path}/%{_lib}/pkgconfig
f1b26c
  rm -rf %{buildroot}/%{gtk3_install_path}/%{_lib}/share
f1b26c
  rm -rf %{buildroot}/%{gtk3_install_path}/share
f1b26c
  rm -rf %{buildroot}/etc/pki
f1b26c
  rm -rf %{buildroot}/usr/lib/.build-id
f1b26c
  rm -rf %{buildroot}/etc/crypto-policies
f1b26c
  popd
f1b26c
%endif
f1b26c
969f7f
# Install bundled libffi
969f7f
%if %{use_bundled_ffi}
969f7f
  pushd %{buildroot}
969f7f
  install_rpms_to_current_dir libffi-3*.rpm
969f7f
  popd
969f7f
%endif
969f7f
969f7f
DESTDIR=%{buildroot} make -C objdir install
969f7f
969f7f
%{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
969f7f
969f7f
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
969f7f
969f7f
# set up the thunderbird start script
969f7f
rm -rf %{buildroot}%{_bindir}/thunderbird
969f7f
%{__rm} -rf %{buildroot}%{_bindir}/thunderbird
969f7f
%{__cat} %{SOURCE21} > %{buildroot}%{_bindir}/thunderbird
539dac
sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{_bindir}/thunderbird
969f7f
%if 0%{?bundle_gtk3}
f1b26c
sed -i -e 's|%RHEL_ENV_VARS%|export XDG_DATA_DIRS="$MOZ_LIB_DIR/thunderbird/bundled/share:/usr/share:$XDG_DATA_DIRS"\nexport FONTCONFIG_FILE="$MOZ_LIB_DIR/thunderbird/bundled/etc/fonts/fonts.conf"|' %{buildroot}%{_bindir}/thunderbird
969f7f
%else
969f7f
sed -i -e 's|%RHEL_ENV_VARS%||' %{buildroot}%{_bindir}/thunderbird
969f7f
%endif
969f7f
%{__chmod} 755 %{buildroot}%{_bindir}/thunderbird
969f7f
969f7f
# Setup preferences, depends on RHEL version
969f7f
THUNDERBIRD_PREF_SOURCE=%{SOURCE701}
969f7f
%if 0%{?rhel} == 6
969f7f
  THUNDERBIRD_PREF_SOURCE=%{SOURCE601}
969f7f
%endif
969f7f
969f7f
# Fill in THUNDERBIRD_RPM_VR into our rh-default-prefs
969f7f
%{__cat} $THUNDERBIRD_PREF_SOURCE | %{__sed} -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g' > \
969f7f
        %{buildroot}/rh-default-prefs
969f7f
%{__install} -D %{buildroot}/rh-default-prefs %{buildroot}/%{mozappdir}/greprefs/all-redhat.js
969f7f
%{__install} -D %{buildroot}/rh-default-prefs %{buildroot}/%{mozappdir}/defaults/pref/all-redhat.js
969f7f
%{__rm} %{buildroot}/rh-default-prefs
969f7f
969f7f
# install icons
969f7f
for s in 16 22 24 32 48 256; do
969f7f
    %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
969f7f
    %{__cp} -p comm/mail/branding/%{name}/default${s}.png \
969f7f
               %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/thunderbird.png
969f7f
done
969f7f
969f7f
%{__rm} -f %{buildroot}%{_bindir}/thunderbird-config
969f7f
969f7f
# own mozilla plugin dir (#135050)
969f7f
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/plugins
969f7f
969f7f
# own extension directories
969f7f
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{thunderbird_app_id}
969f7f
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{thunderbird_app_id}
969f7f
969f7f
# Install langpacks
969f7f
echo > %{name}.lang
969f7f
%if %{build_langpacks}
969f7f
# Extract langpacks, make any mods needed, repack the langpack, and install it.
969f7f
%{__mkdir_p} %{buildroot}%{langpackdir}
969f7f
%{__tar} xf %{SOURCE1}
969f7f
for langpack in `ls thunderbird-langpacks/*.xpi`; do
969f7f
  language=`basename $langpack .xpi`
969f7f
  extensionID=langpack-$language@thunderbird.mozilla.org
969f7f
  %{__mkdir_p} $extensionID
969f7f
  unzip $langpack -d $extensionID
969f7f
  find $extensionID -type f | xargs chmod 644
969f7f
969f7f
  cd $extensionID
969f7f
  zip -r9mX ../${extensionID}.xpi *
969f7f
  cd -
969f7f
969f7f
  %{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
969f7f
  language=`echo $language | sed -e 's/-/_/g'`
969f7f
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
969f7f
done
969f7f
%{__rm} -rf thunderbird-langpacks
969f7f
f1b26c
echo "Adding following langpacks:"
f1b26c
cat %{name}.lang
f1b26c
%endif
969f7f
564aa4
# Install feature extensions.
564aa4
echo > %{name}.features
564aa4
if [ -f "$(ls -1 %{mozappfeatures} | head -1)" ]; then
564aa4
    ls -1 %{mozappfeatures} >> %{name}.features
564aa4
    echo "Adding following features:"
564aa4
    cat %{name}.features
564aa4
fi
564aa4
969f7f
# Get rid of devel package and its debugsymbols
969f7f
%{__rm} -rf %{buildroot}%{_libdir}/%{name}-devel-%{version}
969f7f
969f7f
# Copy over the LICENSE
969f7f
%{__install} -p -c -m 644 LICENSE %{buildroot}/%{mozappdir}
969f7f
969f7f
# Use the system hunspell dictionaries
969f7f
%{__rm} -rf %{buildroot}%{mozappdir}/dictionaries
969f7f
ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries
969f7f
969f7f
# ghost files
969f7f
%{__mkdir_p} %{buildroot}%{mozappdir}/components
969f7f
touch %{buildroot}%{mozappdir}/components/compreg.dat
969f7f
touch %{buildroot}%{mozappdir}/components/xpti.dat
969f7f
969f7f
# Clean thunderbird-devel debuginfo
969f7f
rm -rf %{_prefix}/lib/debug/lib/%{name}-devel-*
969f7f
rm -rf %{_prefix}/lib/debug/lib64/%{name}-devel-*
969f7f
f1b26c
# Fixing python version
f1b26c
test -f "%{buildroot}%{mozappdir}/distribution/extensions/unicode-segmentation/scripts/unicode_gen_breaktests.py" && sed -i -e 's|/usr/bin/env python$|/usr/bin/env python2|' %{buildroot}%{mozappdir}/distribution/extensions/unicode-segmentation/scripts/unicode_gen_breaktests.py
f1b26c
test -f "%{buildroot}%{mozappdir}/distribution/extensions/unicode-segmentation/scripts/unicode.py" && sed -i -e 's|/usr/bin/env python$|/usr/bin/env python2|' %{buildroot}%{mozappdir}/distribution/extensions/unicode-segmentation/scripts/unicode.py
f1b26c
test -f "%{buildroot}%{mozappdir}/distribution/extensions/unicode-width/scripts/unicode.py" && sed -i -e 's|/usr/bin/env python$|/usr/bin/env python2|' %{buildroot}%{mozappdir}/distribution/extensions/unicode-width/scripts/unicode.py
f1b26c
f1b26c
# Removing librnp.so - we cannot deliver that in RHELs
fac902
#{__rm} -rf %{buildroot}%{mozappdir}/librnp.so
539dac
539dac
# Register as an application to be visible in the software center
539dac
#
539dac
# NOTE: It would be *awesome* if this file was maintained by the upstream
539dac
# project, translated and installed into the right place during `make install`.
539dac
#
539dac
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
539dac
#
34b6ff
%{__mkdir_p} %{buildroot}%{_datadir}/appdata
34b6ff
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <
539dac
539dac
539dac
539dac
BugReportURL: https://bugzilla.mozilla.org/show_bug.cgi?id=1071065
539dac
SentUpstream: 2014-09-22
539dac
-->
539dac
<application>
539dac
  <id type="desktop">mozilla-thunderbird.desktop</id>
539dac
  <metadata_license>CC0-1.0</metadata_license>
539dac
  <project_license>MPLv1.1 or GPLv2+ or LGPLv2+</project_license>
539dac
  <description>
539dac
    

539dac
      Thunderbird is an email client that allows you to read, write and organise all
539dac
      of your email messages. It is compatible with most email accounts, including the
539dac
      most popular webmail services.
539dac
    

539dac
    

539dac
      Thunderbird is designed by Mozilla, a global community working together to make
539dac
      the Internet better. Mozilla believe that the Internet should be open, public,
539dac
      and accessible to everyone without any restrictions.
539dac
    

539dac
    
    539dac
          
  • Easier than ever to set up a new e-mail account
  • 539dac
          
  • Awesome search allows you to find your messages fast
  • 539dac
          
  • Thousands of add-ons give you the freedom to make Thunderbird your own
  • 539dac
        
    539dac
      </description>
    539dac
      <url type="homepage">http://www.mozilla.org/thunderbird/</url>
    539dac
      <screenshots>
    539dac
        <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mozilla-thunderbird/a.png</screenshot>
    539dac
      </screenshots>
    539dac
      <releases>
    539dac
        <release version="%{version}" date="$(date '+%F')"/>
    539dac
      </releases>
    539dac
      
    539dac
      <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
    539dac
       -->
    539dac
    </application>
    539dac
    EOF
    f1b26c
    969f7f
    #---------------------------------------------------------------------
    969f7f
    969f7f
    %clean
    969f7f
    rm -rf %{_srcrpmdir}/gtk3-private-%{gtk3_nvr}*.src.rpm
    969f7f
    find %{_rpmdir} -name "gtk3-private-*%{gtk3_nvr}*.rpm" -delete
    969f7f
    rm -rf %{_srcrpmdir}/libffi*.src.rpm
    969f7f
    find %{_rpmdir} -name "libffi*.rpm" -delete
    025a5f
    rm -rf %{_srcrpmdir}/openssl*.src.rpm
    025a5f
    find %{_rpmdir} -name "openssl*.rpm" -delete
    f1b26c
    rm -rf %{_srcrpmdir}/nss*.src.rpm
    f1b26c
    find %{_rpmdir} -name "nss*.rpm" -delete
    f1b26c
    rm -rf %{_srcrpmdir}/nspr*.src.rpm
    f1b26c
    find %{_rpmdir} -name "nspr*.rpm" -delete
    969f7f
    969f7f
    %post
    969f7f
    update-desktop-database &> /dev/null || :
    969f7f
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
    969f7f
    %if 0%{?bundle_gtk3}
    969f7f
    # gtk3-private-post.inc
    969f7f
    %include_file %{SOURCE201}
    969f7f
    %endif
    969f7f
    969f7f
    if [ -x %{_bindir}/gtk-update-icon-cache ]; then
    969f7f
      %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
    969f7f
    fi
    969f7f
    969f7f
    %postun
    969f7f
    if [ $1 -eq 0 ] ; then
    969f7f
        touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    969f7f
        gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
    969f7f
    fi
    969f7f
    update-desktop-database &> /dev/null || :
    969f7f
    %if 0%{?bundle_gtk3}
    969f7f
    # gtk3-private-postun.inc
    969f7f
    %include_file %{SOURCE202}
    969f7f
    %endif
    969f7f
    969f7f
    %posttrans
    969f7f
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
    969f7f
    %if 0%{?bundle_gtk3}
    969f7f
    # gtk3-private-posttrans.inc
    969f7f
    %include_file %{SOURCE203}
    969f7f
    %endif
    969f7f
    969f7f
    #===============================================================================
    564aa4
    %files -f %{name}.lang -f %{name}.features
    969f7f
    %defattr(-,root,root,-)
    969f7f
    %attr(755,root,root) %{_bindir}/thunderbird
    539dac
    %{_datadir}/appdata/*.appdata.xml
    969f7f
    %attr(644,root,root) %{_datadir}/applications/thunderbird.desktop
    969f7f
    %dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id}
    969f7f
    %dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id}
    969f7f
    %dir %{mozappdir}
    969f7f
    %doc %{mozappdir}/LICENSE
    969f7f
    %{mozappdir}/chrome
    969f7f
    %dir %{mozappdir}/components
    969f7f
    %ghost %{mozappdir}/components/compreg.dat
    969f7f
    %ghost %{mozappdir}/components/xpti.dat
    969f7f
    %{mozappdir}/omni.ja
    969f7f
    %{mozappdir}/plugin-container
    969f7f
    %{mozappdir}/defaults
    969f7f
    %{mozappdir}/dictionaries
    969f7f
    %{mozappdir}/greprefs
    969f7f
    %{mozappdir}/isp
    969f7f
    %{mozappdir}/thunderbird-bin
    969f7f
    %{mozappdir}/thunderbird
    969f7f
    %{mozappdir}/*.so
    969f7f
    %{mozappdir}/platform.ini
    969f7f
    %{mozappdir}/application.ini
    969f7f
    %exclude %{mozappdir}/removed-files
    969f7f
    %{_datadir}/icons/hicolor/16x16/apps/thunderbird.png
    969f7f
    %{_datadir}/icons/hicolor/22x22/apps/thunderbird.png
    969f7f
    %{_datadir}/icons/hicolor/24x24/apps/thunderbird.png
    969f7f
    %{_datadir}/icons/hicolor/256x256/apps/thunderbird.png
    969f7f
    %{_datadir}/icons/hicolor/32x32/apps/thunderbird.png
    969f7f
    %{_datadir}/icons/hicolor/48x48/apps/thunderbird.png
    969f7f
    %{mozappdir}/pingsender
    969f7f
    %{mozappdir}/gtk2/libmozgtk.so
    969f7f
    %{mozappdir}/dependentlibs.list
    f1b26c
    %dir %{mozappdir}/distribution
    025a5f
    %{mozappdir}/fonts/TwemojiMozilla.ttf
    025a5f
    969f7f
    %if !%{?system_libicu}
    564aa4
    #%%{mozappdir}/icudt*.dat
    969f7f
    %endif
    969f7f
    %if !%{?system_nss}
    969f7f
    %exclude %{mozappdir}/libnssckbi.so
    969f7f
    %endif
    969f7f
    %if 0%{use_bundled_ffi}
    969f7f
    %{mozappdir}/bundled/%{_lib}/libffi.so*
    969f7f
    %exclude %{_datadir}/doc/libffi*
    969f7f
    %endif
    969f7f
    969f7f
    %if 0%{?bundle_gtk3}
    969f7f
    # gtk3-private-files.inc
    969f7f
    %include_file %{SOURCE204}
    969f7f
    %endif
    969f7f
    f1b26c
    %if 0%{?bundle_nss}
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libfreebl*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libnss3*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libnssdbm3*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libnssutil3*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libsmime3*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libsoftokn*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libssl3*
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libnspr4.so
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libplc4.so
    f1b26c
    %{mozappdir}/bundled/%{_lib}/libplds4.so
    f1b26c
    %endif
    969f7f
    969f7f
    #===============================================================================
    969f7f
    969f7f
    %changelog
    34b6ff
    * Mon Sep 13 2021 CentOS Sources <bugs@centos.org> - 78.14.0-1.el8.centos
    34b6ff
    - Apply debranding changes
    34b6ff
    34b6ff
    * Thu Sep 02 2021 Eike Rathke <erack@redhat.com> - 78.14.0-1
    34b6ff
    - Update to 78.14.0 build1
    34b6ff
    34b6ff
    * Mon Aug 16 2021 Jan Horak <jhorak@redhat.com> - 78.13.0-2
    34b6ff
    - Use the right name for the appstream file
    34b6ff
    564aa4
    * Wed Aug 04 2021 Eike Rathke <erack@redhat.com> - 78.13.0-1
    564aa4
    - Update to 78.13.0 build1
    842448
    842448
    * Fri Jul 16 2021 Jan Horak <jhorak@redhat.com> - 78.12.0-3
    842448
    - Rebuild to pickup older nss
    842448
    4add1b
    * Mon Jul 12 2021 Eike Rathke <erack@redhat.com> - 78.12.0-2
    4add1b
    - Update to 78.12.0 build2
    4add1b
    539dac
    * Thu Jul 08 2021 Eike Rathke <erack@redhat.com> - 78.12.0-1
    539dac
    - Update to 78.12.0 build1
    219c29
    3355c4
    * Mon May 31 2021 Eike Rathke <erack@redhat.com> - 78.11.0-1
    3355c4
    - Update to 78.11.0 build1
    3355c4
    c2ee0d
    * Wed Apr 21 2021 Eike Rathke <erack@redhat.com> - 78.10.0-1
    c2ee0d
    - Update to 78.10.0
    c2ee0d
    7ff9a2
    * Mon Apr 12 2021 Eike Rathke <erack@redhat.com> - 78.9.1-1
    7ff9a2
    - Update to 78.9.1
    7ff9a2
    83da2d
    * Tue Mar 23 2021 Eike Rathke <erack@redhat.com> - 78.9.0-3
    83da2d
    - Update to 78.9.0 build2, updated langpacks
    83da2d
    83da2d
    * Mon Mar 22 2021 Eike Rathke <erack@redhat.com> - 78.9.0-2
    83da2d
    - Update to 78.9.0 build2
    83da2d
    83da2d
    * Mon Mar 22 2021 Eike Rathke <erack@redhat.com> - 78.9.0-1
    83da2d
    - Update to 78.9.0 build1
    83da2d
    936caf
    * Fri Feb 19 2021 Eike Rathke <erack@redhat.com> - 78.8.0-1
    936caf
    - Update to 78.8.0 build1
    936caf
    c3b777
    * Tue Jan 26 2021 Eike Rathke <erack@redhat.com> - 78.7.0-1
    c3b777
    - Update to 78.7.0
    c3b777
    44d8f9
    * Tue Jan 12 2021 Eike Rathke <erack@redhat.com> - 78.6.1-1
    44d8f9
    - Update to 78.6.1
    4077b5
    81487c
    * Tue Dec 15 2020 Eike Rathke <erack@redhat.com> - 78.6.0-1
    81487c
    - Update to 78.6.0
    558e7e
    c95b84
    * Fri Dec 04 2020 Jan Horak <jhorak@redhat.com> - 78.5.1-1
    c95b84
    - Update to 78.5.1 build1
    4c865a
    263dc0
    * Wed Nov 18 2020 Eike Rathke <erack@redhat.com> - 78.5.0-1
    263dc0
    - Update to 78.5.0 build3
    79d8ef
    659ae9
    * Thu Nov 12 2020 Eike Rathke <erack@redhat.com> - 78.4.3-1
    659ae9
    - Update to 78.4.3
    4fb299
    d10cfe
    * Wed Oct 21 2020 Eike Rathke <erack@redhat.com> - 78.4.0-1
    d10cfe
    - Update to 78.4.0 build1
    d10cfe
    - Disabled telemetry
    d10cfe
    d10cfe
    * Tue Sep 29 2020 Jan Horak <jhorak@redhat.com> - 78.3.1-1
    d10cfe
    - Update to 78.3.1 build1
    c38704
    f1b26c
    * Sat Sep 19 2020 Jan Horak <jhorak@redhat.com> - 78.3.0-3
    f1b26c
    - Update to 78.3.0 build1
    f1b26c
    - Remove librdp.so as long as we cannot ship it in RHEL
    f1b26c
    f1b26c
    * Tue Sep 08 2020 Jan Horak <jhorak@redhat.com> - 78.2.1-1
    f1b26c
    - Update to 78.2.1 build1
    da9ada
    6abda1
    * Wed Sep 02 2020 Jan Horak <jhorak@redhat.com> - 68.12.0-1
    6abda1
    - Update to 68.12.0 build1
    060290
    089654
    * Tue Aug 04 2020 Jan Horak <jhorak@redhat.com> - 68.11.0-1
    089654
    - Update to 68.11.0 build1
    e4b39d
    e5fcac
    * Wed Jul 08 2020 Jan Horak <jhorak@redhat.com> - 68.10.0-1
    e5fcac
    - Update to 68.10.0 build1
    3dc594
    8d37c8
    * Fri Jun 05 2020 Jan Horak <jhorak@redhat.com> - 68.9.0-1
    8d37c8
    - Update to 68.9.0 build1
    8d37c8
    ca36d0
    * Tue May 05 2020 Jan Horak <jhorak@redhat.com> - 68.8.0-1
    ca36d0
    - Update to 68.8.0 build2
    ca36d0
    ccc184
    * Tue Apr 14 2020 Jan Horak <jhorak@redhat.com> - 68.7.0-1
    ccc184
    - Update to 68.7.0 build1
    ccc184
    fb5326
    * Fri Mar 13 2020 Jan Horak <jhorak@redhat.com> - 68.6.0-1
    fb5326
    - Update to 68.6.0 build2
    fb5326
    6ca1be
    * Thu Feb 13 2020 Jan Horak <jhorak@redhat.com> - 68.5.0-1
    6ca1be
    - Update to 68.5.0 build1
    6ca1be
    d0bb16
    * Mon Jan 13 2020 Jan Horak <jhorak@redhat.com> - 68.4.1-2
    d0bb16
    - Update to 68.4.1 build1
    d0bb16
    024a14
    * Mon Dec 02 2019 Jan Horak <jhorak@redhat.com> - 68.3.0-2
    024a14
    - Update to 68.3.0 build2
    024a14
    024a14
    * Fri Oct 25 2019 Jan Horak <jhorak@redhat.com> - 68.2.0-2
    024a14
    - Added patch for TLS 1.3 support.
    024a14
    025a5f
    * Tue Oct 22 2019 Jan Horak <jhorak@redhat.com> - 68.2.0-1
    025a5f
    - Update to 68.2.0
    025a5f
    025a5f
    * Thu Oct  3 2019 Jan Horak <jhorak@redhat.com> - 68.1.1-2
    025a5f
    - Update to 68.1.1
    025a5f
    5a363f
    * Wed Sep  4 2019 Jan Horak <jhorak@redhat.com> - 60.9.0-2
    5a363f
    - Update to 60.9.0
    5a363f
    1539bb
    * Thu Jul 4 2019 Martin Stransky <stransky@redhat.com> - 60.8.0-1
    1539bb
    - Updated to 60.8.0
    1539bb
    1539bb
    * Wed Jul 3 2019 Martin Stransky <stransky@redhat.com> - 60.7.2-3
    1539bb
    - Rebuild to fix rhbz#1725919 - Thunderbird fails to authenticate
    1539bb
      with gmail with ssl/tls and OAuth2.
    78462a
    a24009
    * Fri Jun 21 2019 Jan Horak <jhorak@redhat.com> - 60.7.2-2
    a24009
    - Update to 60.7.2 build2
    a24009
    a24009
    * Thu Jun 20 2019 Jan Horak <jhorak@redhat.com> - 60.7.2-1
    a24009
    - Update to 60.7.2
    a24009
    a24009
    * Tue Jun 18 2019 Jan Horak <jhorak@redhat.com> - 60.7.1-1
    a24009
    - Update to 60.7.1
    a24009
    8a71f6
    * Mon May 27 2019 Martin Stransky <stransky@redhat.com> - 60.7.0-1
    8a71f6
    - Update to 60.7.0
    384c06
    09cbe3
    * Mon Mar 25 2019 Martin Stransky <stransky@redhat.com> - 60.6.1-1
    09cbe3
    - Update to 60.6.1
    09cbe3
    09cbe3
    * Tue Mar 19 2019 Martin Stransky <stransky@redhat.com> - 60.6.0-1
    09cbe3
    - Update to 60.6.0
    09cbe3
    969f7f
    * Tue Jan 29 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-1
    969f7f
    - Update to 60.5.0
    969f7f
    969f7f
    * Thu Jan  3 2019 Jan Horak <jhorak@redhat.com> - 60.4.0-1
    969f7f
    - Update to 60.4.0
    969f7f
    969f7f
    * Wed Oct 31 2018 Jan Horak <jhorak@redhat.com> - 60.3.0-1
    969f7f
    - Update to 60.3.0
    969f7f
    969f7f
    * Wed Oct 31 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-6
    969f7f
    - Fixed missing calendar langpacks
    969f7f
    969f7f
    * Tue Oct 16 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-5
    969f7f
    - Fixing minor issues
    969f7f
    969f7f
    * Wed Oct 10 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-3
    969f7f
    - Reverting deleting of key3db
    969f7f
    969f7f
    * Wed Oct  3 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-2
    969f7f
    - Update to 60.2.1
    969f7f
    - Added fix for rhbz#1546988
    969f7f
    969f7f
    * Fri Sep 14 2018 Jan Horak <jhorak@redhat.com> - 60.0-1
    969f7f
    - Rebase to version 60
    969f7f
    969f7f
    * Tue Jul 10 2018 Jan Horak <jhorak@redhat.com> - 52.9.1-1
    969f7f
    - Update to 52.9.1
    969f7f
    969f7f
    * Thu May 17 2018 Jan Horak <jhorak@redhat.com> - 52.8.0-2
    969f7f
    - Update to 52.8.0
    969f7f
    969f7f
    * Mon Mar 26 2018 Jan Horak <jhorak@redhat.com> - 52.7.0-1
    969f7f
    - Update to 52.7.0
    969f7f
    969f7f
    * Fri Jan 26 2018 Jan Horak <jhorak@redhat.com> - 52.6.0-1
    969f7f
    - Update to 52.6.0
    969f7f
    969f7f
    * Tue Jan  2 2018 Jan Horak <jhorak@redhat.com> - 52.5.2-1
    969f7f
    - Update to 52.5.2
    969f7f
    969f7f
    * Mon Nov 27 2017 Jan Horak <jhorak@redhat.com> - 52.5.0-1
    969f7f
    - Update to 52.5.0
    969f7f
    969f7f
    * Wed Oct  4 2017 Jan Horak <jhorak@redhat.com> - 52.4.0-2
    969f7f
    - Update to 52.4.0 (b2)
    969f7f
    969f7f
    * Mon Aug 21 2017 Jan Horak <jhorak@redhat.com> - 52.3.0-1
    969f7f
    - Update to 52.3.0
    969f7f
    969f7f
    * Thu Jun 29 2017 Jan Horak <jhorak@redhat.com> - 52.2.1-1
    969f7f
    - Update to 52.2.1
    969f7f
    969f7f
    * Thu Jun 15 2017 Jan Horak <jhorak@redhat.com> - 52.2.0-1
    969f7f
    - Update to 52.2.0
    969f7f
    969f7f
    * Tue May  2 2017 Jan Horak <jhorak@redhat.com> - 52.1.0-1
    969f7f
    - Update to 52.1.0
    969f7f
    969f7f
    * Thu Apr 13 2017 Jan Horak <jhorak@redhat.com> - 52.0.1-1
    969f7f
    - Update to 52.0.1
    969f7f
    969f7f
    * Tue Mar  7 2017 Jan Horak <jhorak@redhat.com> - 45.8.0-1
    969f7f
    - Update to 45.8.0
    969f7f
    969f7f
    * Thu Jan 26 2017 Jan Horak <jhorak@redhat.com> - 45.7.0-1
    969f7f
    - Update to 45.7.0
    969f7f
    969f7f
    * Fri Dec 16 2016 Martin Stransky <stransky@redhat.com> - 45.6.0-1
    969f7f
    - Update to the latest upstream (45.6.0)
    969f7f
    969f7f
    * Thu Dec  1 2016 Jan Horak <jhorak@redhat.com> - 45.5.1-1
    969f7f
    - Update to 45.5.1
    969f7f
    969f7f
    * Fri Nov 18 2016 Jan Horak <jhorak@redhat.com> - 45.5.0-1
    969f7f
    - Update to 45.5.0
    969f7f
    969f7f
    * Thu Sep 29 2016 Jan Horak <jhorak@redhat.com> - 45.4.0-1
    969f7f
    - Update to 45.4.0
    969f7f
    969f7f
    * Fri Aug 26 2016 Jan Horak <jhorak@redhat.com> - 45.3.0-1
    969f7f
    - Update to 45.3.0
    969f7f
    969f7f
    * Wed Jun 29 2016 Jan Horak <jhorak@redhat.com> - 45.2-1
    969f7f
    - Update to 45.2
    969f7f
    969f7f
    * Mon Jun  6 2016 Jan Horak <jhorak@redhat.com> - 45.1.1-1
    969f7f
    - Update to 45.1.1
    969f7f
    969f7f
    * Mon Jun 06 2016 Jan Horak <jhorak@redhat.com> - 45.1.0-5
    969f7f
    - Do not add symlinks to some langpacks
    969f7f
    969f7f
    * Tue May 17 2016 Jan Horak <jhorak@redhat.com> - 45.1.0-4
    969f7f
    - Update to 45.1.0
    969f7f
    969f7f
    * Tue Apr 26 2016 Jan Horak <jhorak@redhat.com> - 45.0-5
    969f7f
    - Update to 45.0
    969f7f
    969f7f
    * Tue Sep 29 2015 Jan Horak <jhorak@redhat.com> - 38.3.0-1
    969f7f
    - Update to 38.3.0
    969f7f
    969f7f
    * Fri Aug 14 2015 Jan Horak <jhorak@redhat.com> - 38.2.0-1
    969f7f
    - Update to 38.2.0
    969f7f
    969f7f
    * Wed Jul 15 2015 Jan Horak <jhorak@redhat.com> - 38.1.0-2
    969f7f
    - Rebase to 38.1.0
    969f7f
    969f7f
    * Wed Jul 15 2015 Jan Horak <jhorak@redhat.com> - 31.8.0-1
    969f7f
    - Update to 31.8.0
    969f7f
    969f7f
    * Sun May 10 2015 Jan Horak <jhorak@redhat.com> - 31.7.0-1
    969f7f
    - Update to 31.7.0
    969f7f
    969f7f
    * Tue Mar 31 2015 Jan Horak <jhorak@redhat.com> - 31.6.0-1
    969f7f
    - Update to 31.6.0
    969f7f
    969f7f
    * Mon Feb 23 2015 Jan Horak <jhorak@redhat.com> - 31.5.0-2
    969f7f
    - Update to 31.5.0
    969f7f
    969f7f
    * Sat Jan 10 2015 Jan Horak <jhorak@redhat.com> - 31.4.0-1
    969f7f
    - Update to 31.4.0
    969f7f
    969f7f
    * Mon Dec 22 2014 Jan Horak <jhorak@redhat.com> - 31.3.0-2
    969f7f
    - Fixed problems with dictionaries (mozbz#1097550)
    969f7f
    969f7f
    * Fri Nov 28 2014 Jan Horak <jhorak@redhat.com> - 31.3.0-1
    969f7f
    - Update to 31.3.0
    969f7f
    969f7f
    * Thu Oct 30 2014 Jan Horak <jhorak@redhat.com> - 31.2.0-2
    969f7f
    - Update to 31.2.0
    969f7f
    969f7f
    * Wed Oct 1 2014 Martin Stransky <stransky@redhat.com> - 31.1.1-5
    969f7f
    - Sync preferences with Firefox
    969f7f
    969f7f
    * Thu Sep 18 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 31.1.1-4
    969f7f
    - Fix dependency generation for internal libraries (#1140471)
    969f7f
    969f7f
    * Fri Sep 12 2014 Jan Horak <jhorak@redhat.com> - 31.1.1-3
    969f7f
    - Update to 31.1.1
    969f7f
    969f7f
    * Tue Sep  9 2014 Jan Horak <jhorak@redhat.com> - 31.1.0-4
    969f7f
    - Use  system libffi
    969f7f
    969f7f
    * Wed Sep  3 2014 Jan Horak <jhorak@redhat.com> - 31.1.0-2
    969f7f
    - Added fix for ppc64le
    969f7f
    969f7f
    * Mon Sep  1 2014 Jan Horak <jhorak@redhat.com> - 31.1.0-1
    969f7f
    - Update to 31.1.0
    969f7f
    969f7f
    * Wed Jul 30 2014 Martin Stransky <stransky@redhat.com> - 31.0-2
    969f7f
    - Added patch for mozbz#858919
    969f7f
    969f7f
    * Tue Jul 29 2014 Martin Stransky <stransky@redhat.com> - 31.0-1
    969f7f
    - Update to 31.0
    969f7f
    969f7f
    * Tue Jul 22 2014 Jan Horak <jhorak@redhat.com> - 24.7.0-1
    969f7f
    - Update to 24.7.0
    969f7f
    969f7f
    * Mon Jun  9 2014 Jan Horak <jhorak@redhat.com> - 24.6.0-1
    969f7f
    - Update to 24.6.0
    969f7f
    969f7f
    * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 24.5.0-6
    969f7f
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
    969f7f
    969f7f
    * Fri May 23 2014 Brent Baude <baude@us.ibm.com> - 24.5.0-5
    969f7f
    - Moving the ppc64 conditional up before the cd so it will
    969f7f
    - apply cleanly
    969f7f
    969f7f
    * Fri May 23 2014 Martin Stransky <stransky@redhat.com> - 24.5.0-4
    969f7f
    - Added a build fix for ppc64 - rhbz#1100495
    969f7f
    969f7f
    * Mon May  5 2014 Jan Horak <jhorak@redhat.com> - 24.5.0-3
    969f7f
    - Fixed find requires
    969f7f
    969f7f
    * Mon Apr 28 2014 Jan Horak <jhorak@redhat.com> - 24.5.0-1
    969f7f
    - Update to 24.5.0
    969f7f
    969f7f
    * Tue Apr 22 2014 Jan Horak <jhorak@redhat.com> - 24.4.0-2
    969f7f
    - Added support for ppc64le
    969f7f
    969f7f
    * Tue Mar 18 2014 Jan Horak <jhorak@redhat.com> - 24.4.0-1
    969f7f
    - Update to 24.4.0
    969f7f
    969f7f
    * Mon Feb  3 2014 Jan Horak <jhorak@redhat.com> - 24.3.0-1
    969f7f
    - Update to 24.3.0
    969f7f
    969f7f
    * Mon Dec 16 2013 Martin Stransky <stransky@redhat.com> - 24.2.0-4
    969f7f
    - Fixed rhbz#1024232 - thunderbird: squiggly lines used
    969f7f
      for spelling correction disappear randomly
    969f7f
    969f7f
    * Fri Dec 13 2013 Martin Stransky <stransky@redhat.com> - 24.2.0-3
    969f7f
    - Build with -Werror=format-security (rhbz#1037353)
    969f7f
    969f7f
    * Wed Dec 11 2013 Martin Stransky <stransky@redhat.com> - 24.2.0-2
    969f7f
    - rhbz#1001998 - added a workaround for system notifications
    969f7f
    969f7f
    * Mon Dec  9 2013 Jan Horak <jhorak@redhat.com> - 24.2.0-1
    969f7f
    - Update to 24.2.0
    969f7f
    969f7f
    * Sat Nov 02 2013 Dennis Gilmore <dennis@ausil.us> - 24.1.0-2
    969f7f
    - remove ExcludeArch: armv7hl
    969f7f
    969f7f
    * Wed Oct 30 2013 Jan Horak <jhorak@redhat.com> - 24.1.0-1
    969f7f
    - Update to 24.1.0
    969f7f
    969f7f
    * Thu Oct 17 2013 Martin Stransky <stransky@redhat.com> - 24.0-4
    969f7f
    - Fixed rhbz#1005611 - BEAST workaround not enabled in Firefox
    969f7f
    969f7f
    * Wed Sep 25 2013 Jan Horak <jhorak@redhat.com> - 24.0-3
    969f7f
    - Update to 24.0
    969f7f
    969f7f
    * Mon Sep 23 2013 Jan Horak <jhorak@redhat.com> - 17.0.9-1
    969f7f
    - Update to 17.0.9 ESR
    969f7f
    969f7f
    * Mon Aug  5 2013 Jan Horak <jhorak@redhat.com> - 17.0.8-1
    969f7f
    - Update to 17.0.8
    969f7f
    969f7f
    * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 17.0.7-2
    969f7f
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
    969f7f
    969f7f
    * Tue Jun 25 2013 Jan Horak <jhorak@redhat.com> - 17.0.7-1
    969f7f
    - Update to 17.0.7
    969f7f
    969f7f
    * Wed Jun 12 2013 Jan Horak <jhorak@redhat.com> - 17.0.6-2
    969f7f
    - Fixed rhbz#973371 - unable to install addons
    969f7f
    969f7f
    * Tue May 14 2013 Jan Horak <jhorak@redhat.com> - 17.0.6-1
    969f7f
    - Update to 17.0.6
    969f7f
    969f7f
    * Tue Apr  2 2013 Jan Horak <jhorak@redhat.com> - 17.0.5-1
    969f7f
    - Update to 17.0.5
    969f7f
    969f7f
    * Mon Mar 11 2013 Jan Horak <jhorak@redhat.com> - 17.0.4-1
    969f7f
    - Update to 17.0.4
    969f7f
    969f7f
    * Tue Feb 19 2013 Jan Horak <jhorak@redhat.com> - 17.0.3-1
    969f7f
    - Update to 17.0.3
    969f7f
    969f7f
    * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 17.0.2-4
    969f7f
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
    969f7f
    969f7f
    * Tue Jan 15 2013 Martin Stransky <stransky@redhat.com> - 17.0.2-3
    969f7f
    - Added fix for NM regression (mozbz#791626)
    969f7f
    969f7f
    * Tue Jan 15 2013 Jan Horak <jhorak@redhat.com> - 17.0.2-2
    969f7f
    - Added mozilla-746112 patch to fix crash on ppc(64)
    969f7f
    969f7f
    * Thu Jan 10 2013 Jan Horak <jhorak@redhat.com> - 17.0.2-1
    969f7f
    - Update to 17.0.2
    969f7f
    969f7f
    * Mon Nov 19 2012 Jan Horak <jhorak@redhat.com> - 17.0-1
    969f7f
    - Update to 17.0
    969f7f
    969f7f
    * Mon Oct 29 2012 Jan Horak <jhorak@redhat.com> - 16.0.2-1
    969f7f
    - Update to 16.0.2
    969f7f
    969f7f
    * Tue Oct 16 2012 Jan Horak <jhorak@redhat.com> - 16.0.1-2
    969f7f
    - Fixed nss and nspr versions
    969f7f
    969f7f
    * Thu Oct 11 2012 Jan Horak <jhorak@redhat.com> - 16.0.1-1
    969f7f
    - Update to 16.0.1
    969f7f
    969f7f
    * Tue Oct  9 2012 Jan Horak <jhorak@redhat.com> - 16.0-1
    969f7f
    - Update to 16.0
    969f7f
    969f7f
    * Tue Sep 18 2012 Dan Horák <dan[at]danny.cz> - 15.0.1-3
    969f7f
    - Added fix for rhbz#855923 - TB freezes on Fedora 18 for PPC64
    969f7f
    969f7f
    * Fri Sep 14 2012 Martin Stransky <stransky@redhat.com> - 15.0.1-2
    969f7f
    - Added build flags for second arches
    969f7f
    969f7f
    * Tue Sep 11 2012 Jan Horak <jhorak@redhat.com> - 15.0.1-1
    969f7f
    - Update to 15.0.1
    969f7f
    969f7f
    * Fri Sep  7 2012 Jan Horak <jhorak@redhat.com> - 15.0-2
    969f7f
    - Added workaround fix for PPC (rbhz#852698)
    969f7f
    969f7f
    * Mon Aug 27 2012 Jan Horak <jhorak@redhat.com> - 15.0-1
    969f7f
    - Update to 15.0
    969f7f
    969f7f
    * Wed Aug 1 2012 Martin Stransky <stransky@redhat.com> - 14.0-4
    969f7f
    - Removed StartupWMClass (rhbz#844863)
    969f7f
    - Fixed -g parameter
    969f7f
    - Removed thunderbird-devel before packing to avoid debugsymbols duplicities (rhbz#823940)
    969f7f
    969f7f
    * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.0-2
    969f7f
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
    969f7f
    969f7f
    * Tue Jul 17 2012 Jan Horak <jhorak@redhat.com> - 14.0-1
    969f7f
    - Update to 14.0
    969f7f
    969f7f
    * Fri Jun 15 2012 Jan Horak <jhorak@redhat.com> - 13.0.1-1
    969f7f
    - Update to 13.0.1
    969f7f
    969f7f
    * Tue Jun  5 2012 Jan Horak <jhorak@redhat.com> - 13.0-1
    969f7f
    - Update to 13.0
    969f7f
    969f7f
    * Mon May 7 2012 Martin Stransky <stransky@redhat.com> - 12.0.1-2
    969f7f
    - Fixed #717245 - adhere Static Library Packaging Guidelines
    969f7f
    969f7f
    * Mon Apr 30 2012 Jan Horak <jhorak@redhat.com> - 12.0.1-1
    969f7f
    - Update to 12.0.1
    969f7f
    969f7f
    * Tue Apr 24 2012 Jan Horak <jhorak@redhat.com> - 12.0-1
    969f7f
    - Update to 12.0
    969f7f
    969f7f
    * Mon Apr 16 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 11.0.1-2
    969f7f
    - Add upstream patch to fix FTBFS on ARM
    969f7f
    969f7f
    * Thu Mar 29 2012 Jan Horak <jhorak@redhat.com> - 11.0.1-1
    969f7f
    - Update to 11.0.1
    969f7f
    969f7f
    * Thu Mar 22 2012 Jan Horak <jhorak@redhat.com> - 11.0-6
    969f7f
    - Added translations to thunderbird.desktop file
    969f7f
    969f7f
    * Fri Mar 16 2012 Martin Stransky <stransky@redhat.com> - 11.0-5
    969f7f
    - gcc 4.7 build fixes
    969f7f
    969f7f
    * Wed Mar 14 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 11.0-4
    969f7f
    - Add ARM configuration options
    969f7f
    969f7f
    * Wed Mar 14 2012 Martin Stransky <stransky@redhat.com> - 11.0-3
    969f7f
    - Build with system libvpx
    969f7f
    969f7f
    * Tue Mar 13 2012 Martin Stransky <stransky@redhat.com> - 11.0-1
    969f7f
    - Update to 11.0
    969f7f
    969f7f
    * Thu Feb 23 2012 Jan Horak <jhorak@redhat.com> - 10.0.1-3
    969f7f
    - Added fix for proxy settings mozbz#682832
    969f7f
    969f7f
    * Thu Feb 16 2012 Martin Stransky <stransky@redhat.com> - 10.0.1-2
    969f7f
    - Added fix for mozbz#727401
    969f7f
    969f7f
    * Thu Feb  9 2012 Jan Horak <jhorak@redhat.com> - 10.0.1-1
    969f7f
    - Update to 10.0.1
    969f7f
    969f7f
    * Mon Feb 6 2012 Martin Stransky <stransky@redhat.com> - 10.0-2
    969f7f
    - gcc 4.7 build fixes
    969f7f
    969f7f
    * Tue Jan 31 2012 Jan Horak <jhorak@redhat.com> - 10.0-1
    969f7f
    - Update to 10.0
    969f7f
    969f7f
    * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0-7
    969f7f
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
    969f7f
    969f7f
    * Thu Jan 05 2012 Dan Horák <dan[at]danny.cz> - 9.0-6
    969f7f
    - disable jemalloc on s390(x) (taken from xulrunner)
    969f7f
    969f7f
    * Wed Jan 04 2012 Dan Horák <dan[at]danny.cz> - 9.0-5
    969f7f
    - fix build on secondary arches (cherry-picked from 13afcd4c097c)
    969f7f
    969f7f
    * Thu Dec 22 2011 Jan Horak <jhorak@redhat.com> - 9.0-4
    969f7f
    - Update to 9.0
    969f7f
    969f7f
    * Fri Dec 9 2011 Martin Stransky <stransky@redhat.com> - 8.0-4
    969f7f
    - enabled gio support (#760644)
    969f7f
    969f7f
    * Tue Nov 29 2011 Jan Horak <jhorak@redhat.com> - 8.0-3
    969f7f
    - Fixed s390x issues
    969f7f
    969f7f
    * Thu Nov 10 2011 Jan Horak <jhorak@redhat.com> - 8.0-2
    969f7f
    - Enable Mozilla's crash reporter again for all archs
    969f7f
    - Temporary workaround for langpacks
    969f7f
    - Disabled addon check UI (#753551)
    969f7f
    969f7f
    * Tue Nov  8 2011 Jan Horak <jhorak@redhat.com> - 8.0-1
    969f7f
    - Update to 8.0
    969f7f
    969f7f
    * Tue Oct 18 2011 Martin Stransky <stransky@redhat.com> - 7.0.1-3
    969f7f
    - Added NM patches (mozbz#627672, mozbz#639959)
    969f7f
    969f7f
    * Wed Oct 12 2011 Dan Horák <dan[at]danny.cz> - 7.0.1-2
    969f7f
    - fix build on secondary arches (copied from xulrunner)
    969f7f
    969f7f
    * Fri Sep 30 2011 Jan Horak <jhorak@redhat.com> - 7.0.1-1
    969f7f
    - Update to 7.0.1
    969f7f
    969f7f
    * Tue Sep 27 2011 Jan Horak <jhorak@redhat.com> - 7.0-1
    969f7f
    - Update to 7.0
    969f7f
    969f7f
    * Tue Sep  6 2011 Jan Horak <jhorak@redhat.com> - 6.0.2-1
    969f7f
    - Update to 6.0.2
    969f7f
    969f7f
    * Wed Aug 31 2011 Jan Horak <jhorak@redhat.com> - 6.0-3
    969f7f
    - Distrust a specific Certificate Authority
    969f7f
    969f7f
    * Wed Aug 31 2011 Dan Horák <dan[at]danny.cz> - 6.0-2
    969f7f
    - add secondary-ipc patch from xulrunner
    969f7f
    969f7f
    * Tue Aug 16 2011 Jan Horak <jhorak@redhat.com> - 6.0-1
    969f7f
    - Update to 6.0
    969f7f
    969f7f
    * Tue Aug 16 2011 Remi Collet <remi@fedoraproject.org> 5.0-4