#
# Conditional builds
%bcond_with tests # enable tests (whatever they check)
-%bcond_without gtk3 # GTK+ 3.x instead of 2.x
%bcond_without ldap # disable e-mail address lookups in LDAP directories
%bcond_without lightning # disable Sunbird/Lightning calendar
%bcond_without official # official Thunderbird branding
%bcond_with crashreporter # report crashes to crash-stats.mozilla.com
+%bcond_with gold # use gold instead of default linker
# - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
%bcond_with shared_js # shared libmozjs library [broken]
-%bcond_with system_icu # build with system ICU (disabled due to crashes with system icu 58.2)
-%bcond_without clang # build using Clang/LLVM
+%bcond_without system_icu # build without system ICU
+%bcond_with system_cairo # build with system cairo (not supported in 60.0)
+%bcond_with system_libvpx # build with system libvpx (60.7.0 does not build with libvpx 1.8)
+%bcond_with clang # build using Clang/LLVM
# UPDATING TRANSLATIONS:
%if 0
curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p'
%endif
+%define _enable_debug_packages 0
+
%if 0%{?_enable_debug_packages} != 1
%undefine crashreporter
%endif
-%define nspr_ver 4.13.1
-%define nss_ver 3.28.5
+%define nspr_ver 4.21
+%define nss_ver 3.44.2
# The actual sqlite version (see RHBZ#480989):
%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
Summary: Thunderbird - email client
Summary(pl.UTF-8): Thunderbird - klient poczty
Name: thunderbird
-Version: 52.3.0
+Version: 68.2.1
Release: 1
License: MPL v2.0
Group: X11/Applications/Mail
Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
-# Source0-md5: 5841ee1a70423b9385110c82b78bef47
+# Source0-md5: 5b2b0e16399850c09e900d36ab498b1c
Source1: %{name}.desktop
Source2: %{name}.sh
Source100: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ar.xpi
-# Source100-md5: 3dca2752cf45ddc03c76e9271e7cd20b
+# Source100-md5: 75fd41698fbfa66851de73a753c4aa80
Source101: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ast.xpi
-# Source101-md5: 2d82a69409d17e0e4c3283873fe9ed1c
+# Source101-md5: 4634f2cf1b320ae138740e4bb33ba975
Source102: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/be.xpi
-# Source102-md5: 64a40a45b7303168f54a48a4582d874b
+# Source102-md5: a228b2e927a4190ae91c05fdae05a222
Source103: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/bg.xpi
-# Source103-md5: e3fa7e387af4be963f1a6a58fc0c0016
-Source104: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/bn-BD.xpi
-# Source104-md5: 1d74a7544890e13d4bfd9408000f471e
-Source105: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/br.xpi
-# Source105-md5: c30ba85d80effddd339ed26caeb050f6
-Source106: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ca.xpi
-# Source106-md5: 3c33d3fbe537ab6a44599e8c073db870
-Source107: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cs.xpi
-# Source107-md5: 48d8aba0e19d804ace61e0831f95aa40
+# Source103-md5: c8bcfea6e811cd61b0e79b0736e8b952
+Source104: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/br.xpi
+# Source104-md5: ba3dcb7a19f49d5cef5aa98ab56a6913
+Source105: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ca.xpi
+# Source105-md5: 2c3846a089e5898ae84d4206a6346e7c
+Source106: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cs.xpi
+# Source106-md5: 5889ede356605af6c2b77a29009c3e21
+Source107: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cy.xpi
+# Source107-md5: 2b6264e5be8c9a805e3ba4be73fda1a5
Source108: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/da.xpi
-# Source108-md5: 51e6142495445880c98bfec670d6f25f
+# Source108-md5: 99b28d7b26a2f06e2f96b526888758c1
Source109: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/de.xpi
-# Source109-md5: 39fc06788219dfee6b00b8e46aa71e7f
+# Source109-md5: 96b3dfc776c6a72b04872b799db2a274
Source110: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/dsb.xpi
-# Source110-md5: 3ce9672d1a70d226ab28e45a9ad2fd30
+# Source110-md5: 894b82712fb73f95ed7d24df4c152602
Source111: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/el.xpi
-# Source111-md5: 489e21404cfa0448301d19057302077d
+# Source111-md5: bc5e7fe5770e8c7fa7583fb5341c304e
Source112: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-GB.xpi
-# Source112-md5: fc315d705383bb43a701a90a3ccb9dcb
+# Source112-md5: 03fec09408ecfed5b4ac79b4cd342cf0
Source113: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-US.xpi
-# Source113-md5: 8871241c401d58e8add0b173296c7cba
+# Source113-md5: 2724abc59fc84b83843955426a19c888
Source114: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-AR.xpi
-# Source114-md5: 6b1d2d9f79fb3df279d76ead69f1edb3
+# Source114-md5: 7ed399f5a28701d80038a017061cbff0
Source115: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-ES.xpi
-# Source115-md5: 79e0b8c8160402a1bb3b024876fb9666
+# Source115-md5: 4abe2f45802db537b3ff0d9505de0a4c
Source116: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/et.xpi
-# Source116-md5: 15540c686c9b058c7edef053a981a3f2
+# Source116-md5: 4ab31be22973b3290ee33d3840b70ece
Source117: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/eu.xpi
-# Source117-md5: 983e6b2ec0969d0f8b26c0cbfbf565a8
+# Source117-md5: 0bafa04bed96c2363fed7adfec2a8db4
Source118: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fi.xpi
-# Source118-md5: e99b315bb53767411073bca4d2320763
+# Source118-md5: 976c654bf95633618774d31cdbc3ce5c
Source119: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fr.xpi
-# Source119-md5: 82001a707850d9c2fd5994bb48c2bbd3
+# Source119-md5: acc2cfb1c03e6490f7ad859c4b7e919e
Source120: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fy-NL.xpi
-# Source120-md5: 6ab4cfc3d80a86d22ebfe833baa8a67c
+# Source120-md5: b5c5504dd88c5c5ce4ba5c622dbe111a
Source121: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ga-IE.xpi
-# Source121-md5: 0f2d1293106a248bea8ff090cb083920
+# Source121-md5: 17d9d477f68c50cb4ecb4d5766979776
Source122: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gd.xpi
-# Source122-md5: 227e304c86e73e65d18e22f90e3f9837
+# Source122-md5: ffddf67bbdad00a8df9983f62b893fd8
Source123: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gl.xpi
-# Source123-md5: 7a042308bedaee0dadfe4f7d77a74818
+# Source123-md5: 15e58a239371c1e7d11ab6405d4717c1
Source124: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/he.xpi
-# Source124-md5: 893e9e1fdf8f1f75900ff91d157571dc
+# Source124-md5: 3466068489990535b5cb18afe09c3a62
Source125: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hr.xpi
-# Source125-md5: ad78889d69d75b3783ab75cec97d49ea
+# Source125-md5: b26268ed9540237a89aeeeb2bd7d512b
Source126: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hsb.xpi
-# Source126-md5: 1d9f76630d880a55ba45823731d63400
+# Source126-md5: 90a217eca6a4406a9435b316af312de7
Source127: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hu.xpi
-# Source127-md5: dceacfcfd563657f9592c4b0ce7cc456
+# Source127-md5: 72e12d60f90e400681dc0527a11d1f17
Source128: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hy-AM.xpi
-# Source128-md5: 250a615a4ac9d268554fcb63bf4dcfb7
+# Source128-md5: ec0a67d876a51e300b48325b45bcabdb
Source129: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/id.xpi
-# Source129-md5: a946a46867ed3522c1ed30dfaaf46576
+# Source129-md5: 83adb753bcbde4e6d93351b14fe3abfc
Source130: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/is.xpi
-# Source130-md5: bf5da0a21933720ac1796e44ef719334
+# Source130-md5: 18dadabf5d34c1dcb43d15cde413c625
Source131: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/it.xpi
-# Source131-md5: 940a1df1b8d34708d8a5a7bd2a5e007c
+# Source131-md5: 84a0af8afc6f4e23478542d3ed06997e
Source132: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ja.xpi
-# Source132-md5: c525801fe4fa0e112e8cb79d0205c9a4
+# Source132-md5: 24e2dc89394b5e2ab86074668c56943a
Source133: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kab.xpi
-# Source133-md5: 8530c217499a0e2c398c83a67b74be75
-Source134: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ko.xpi
-# Source134-md5: b73951c88aec2a58ceb9f1790cf91877
-Source135: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/lt.xpi
-# Source135-md5: 4bab507394d69033a87449979656e488
-Source136: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nb-NO.xpi
-# Source136-md5: d67dbcac7bc7351bf4ed1814bff2ce24
-Source137: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nl.xpi
-# Source137-md5: ba205ea7cb31aeb67a78547c07a77037
-Source138: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nn-NO.xpi
-# Source138-md5: 924dfd6b1fa9a3eb88765bc4c79f7e7c
-Source139: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pa-IN.xpi
-# Source139-md5: 0d408ef65f1a0ee68d42eda1006b88f8
-Source140: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pl.xpi
-# Source140-md5: 9c8e1cc635af45cf848cf6c80e868f4c
-Source141: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-BR.xpi
-# Source141-md5: 8df6b9ad0a6dd594d1a05821e807e19c
-Source142: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-PT.xpi
-# Source142-md5: c3ba5e9af5c05446178c89f573828404
-Source143: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/rm.xpi
-# Source143-md5: 5e0264b6e0d4d8239100aa6780962236
-Source144: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ro.xpi
-# Source144-md5: 97f74202c0184ca0e39bf7294e8f39e5
-Source145: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ru.xpi
-# Source145-md5: 50967648b55390914d1481240337e2e0
-Source146: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/si.xpi
-# Source146-md5: 5472c8e5e8624abc3dca3e530a211aba
-Source147: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sk.xpi
-# Source147-md5: 90a9de17c778311029721e3295e58ebc
-Source148: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sl.xpi
-# Source148-md5: 211d2b7ca461b66f0278995fa8ab66eb
-Source149: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sq.xpi
-# Source149-md5: 268544e08eb08e114119421952a7cf5c
-Source150: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sr.xpi
-# Source150-md5: 5b13ef581128b135426630af220ddf41
-Source151: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sv-SE.xpi
-# Source151-md5: 066206cdd99e75aac1e3d618844e196e
-Source152: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ta-LK.xpi
-# Source152-md5: 7cbb542deb1d64f2451528ac833f1553
+# Source133-md5: d3f0e4df15c871cf4195c3d778bc1adc
+Source134: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kk.xpi
+# Source134-md5: a73ed9a6b669739b04bbc54fc1650ad1
+Source135: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ko.xpi
+# Source135-md5: c4d0db8844c17dfb16b0e492c5a356ce
+Source136: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/lt.xpi
+# Source136-md5: c83a8fc7dbd2bcb214594c56f67a80c5
+Source137: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ms.xpi
+# Source137-md5: c9fc41c3ece6b6bcd3f73bde321e4a70
+Source138: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nb-NO.xpi
+# Source138-md5: 059ecc345c97476173ed2240d58fda19
+Source139: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nl.xpi
+# Source139-md5: a00872ef75f26fca3afd5f3bbcaa803b
+Source140: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nn-NO.xpi
+# Source140-md5: 2232695b0b9d8fbf6570039aa7232914
+Source141: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pl.xpi
+# Source141-md5: af861c01525e59b2fc030d75d54c7024
+Source142: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-BR.xpi
+# Source142-md5: 40a3fa73d30ab6b65c0a9194be4207fc
+Source143: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-PT.xpi
+# Source143-md5: 8f7342de84e398bc6aee0bb872a1c841
+Source144: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/rm.xpi
+# Source144-md5: 2f19070c6f1c3480323854435a6c2dda
+Source145: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ro.xpi
+# Source145-md5: 0bdd1772c8115056d5bbde968e5b3770
+Source146: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ru.xpi
+# Source146-md5: eb1abf223cceb953329d44b7261fa660
+Source147: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/si.xpi
+# Source147-md5: 1c2785089ab6525df410ce57762491c5
+Source148: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sk.xpi
+# Source148-md5: f5b38e36c6c51374d65b37f28dcdbff4
+Source149: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sl.xpi
+# Source149-md5: 2b7903e6fea07a8f7889768851cc50ff
+Source150: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sq.xpi
+# Source150-md5: 31eb779de162baf1656144eb9bd97dce
+Source151: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sr.xpi
+# Source151-md5: 91a91197800ad4ee1f51cbc1db92bcc0
+Source152: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sv-SE.xpi
+# Source152-md5: dceb6e837e2a8393790b7339859544ef
Source153: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/tr.xpi
-# Source153-md5: e4323b14a8901593ddead55275d44b76
+# Source153-md5: 8b3cbdf04d50195b9dfdc2e81ff1a8bd
Source154: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/uk.xpi
-# Source154-md5: 8274260914e2921371accf8f06378898
+# Source154-md5: 56a2344fa4c9246a34c0b768e4eac2f0
Source155: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/vi.xpi
-# Source155-md5: 87f0aa1b105972c972d417a15b0a8382
+# Source155-md5: f4a3e55c458154d9617f14b78bc2192f
Source156: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-CN.xpi
-# Source156-md5: 6091ab332b44eb7a99b7eabb5dcbad03
+# Source156-md5: 198de026aea6fb6bc392178b9258ee8d
Source157: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-TW.xpi
-# Source157-md5: d3ace5d1dfd5975b05c8b02e8245ed85
+# Source157-md5: 1bee1d2ed02afda415fd9cf5172b3406
Patch0: prefs.patch
Patch1: no-subshell.patch
Patch2: enable-addons.patch
-Patch3: mozilla-1245783.patch
+Patch3: format.patch
URL: http://www.mozilla.org/projects/thunderbird/
BuildRequires: alsa-lib-devel
BuildRequires: autoconf2_13 >= 2.13
+%{?with_gold:BuildRequires: binutils >= 3:2.20.51.0.7}
BuildRequires: bzip2-devel
-BuildRequires: cairo-devel >= 1.10
+%{?with_system_cairo:BuildRequires: cairo-devel >= 1.10.2-5}
+BuildRequires: cargo
%{?with_clang:BuildRequires: clang}
+BuildRequires: clang-devel
BuildRequires: dbus-glib-devel >= 0.60
BuildRequires: fontconfig-devel >= 2.7.0
BuildRequires: freetype-devel >= 1:2.1.8
BuildRequires: glib2-devel >= 1:2.22
-%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18.0}
-%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.4.0}
-BuildRequires: hunspell-devel
+BuildRequires: gtk+3-devel >= 3.4.0
BuildRequires: libatomic-devel
BuildRequires: libevent-devel
BuildRequires: libffi-devel > 3.0.9
-%{?with_system_icu:BuildRequires: libicu-devel >= 58.1}
+%{?with_system_icu:BuildRequires: libicu-devel >= 63.1}
BuildRequires: libiw-devel
# requires libjpeg-turbo implementing at least libjpeg 6b API
BuildRequires: libjpeg-devel >= 6b
BuildRequires: libjpeg-turbo-devel
BuildRequires: libpng-devel >= 2:1.6.25
BuildRequires: libstdc++-devel
-BuildRequires: libvpx-devel >= 1.5.0
+%{?with_system_libvpx:BuildRequires: libvpx-devel >= 1.5.0}
+BuildRequires: llvm-devel
BuildRequires: mozldap-devel
BuildRequires: nspr-devel >= 1:%{nspr_ver}
BuildRequires: nss-devel >= 1:%{nss_ver}
BuildRequires: pkgconfig
BuildRequires: python >= 1:2.7
BuildRequires: python-virtualenv
+BuildRequires: rust >= 1.34.0
+BuildRequires: rust-cbindgen >= 0.8.2
BuildRequires: sed >= 4.0
-BuildRequires: sqlite3-devel >= 3.17.0
+BuildRequires: sqlite3-devel >= 3.28.0
BuildRequires: startup-notification-devel >= 0.8
BuildRequires: virtualenv
BuildRequires: xorg-lib-libX11-devel
BuildRequires: zip
BuildRequires: zlib-devel >= 1.2.3
Requires(post): mktemp >= 1.5-18
+%{?with_system_cairo:Requires: cairo >= 1.10.2-5}
Requires: dbus-glib >= 0.60
Requires: glib2 >= 1:2.22
-%{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0}
-%{?with_gtk3:Requires: gtk+3 >= 3.4.0}
+Requires: gtk+3 >= 3.4.0
Requires: libpng >= 2:1.6.25
-Requires: libvpx >= 1.5.0
+%{?with_system_libvpx:Requires: libvpx >= 1.5.0}
Requires: myspell-common
Requires: nspr >= 1:%{nspr_ver}
Requires: nss >= 1:%{nss_ver}
%description lang-ca -l pl.UTF-8
Katalońskie pliki językowe dla Thunderbirda.
+%package lang-cy
+Summary: Welsh resources for Thunderbird
+Summary(pl.UTF-8): Walijskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-cy
+Welsh resources for Thunderbird.
+
+%description lang-cy -l pl.UTF-8
+Walijskie pliki językowe dla Thunderbirda.
+
%package lang-cs
Summary: Czech resources for Thunderbird
Summary(pl.UTF-8): Czeskie pliki językowe dla Thunderbirda
%description lang-kab -l pl.UTF-8
Kabylskie pliki językowe dla Thunderbirda.
+%package lang-kk
+Summary: Kazakh resources for Thunderbird
+Summary(pl.UTF-8): Kazachskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-kk
+Kazakh resources for Thunderbird.
+
+%description lang-kk -l pl.UTF-8
+Kazachskie pliki językowe dla Thunderbirda.
+
%package lang-ko
Summary: Korean resources for Thunderbird
Summary(pl.UTF-8): Koreańskie pliki językowe dla Thunderbirda
%description lang-lt -l pl.UTF-8
Litewskie pliki językowe dla Thunderbirda.
+%package lang-ms
+Summary: Malay resources for Thunderbird
+Summary(pl.UTF-8): Malajskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-ms
+Malay resources for Thunderbird.
+
+%description lang-ms -l pl.UTF-8
+Malajskie pliki językowe dla Thunderbirda.
+
%package lang-nb
Summary: Norwegian Bokmaal resources for Thunderbird
Summary(pl.UTF-8): Norweskie (bokmaal) pliki językowe dla Thunderbirda
%setup -q %(seq -f '-a %g' 100 157 | xargs)
%patch0 -p1
%patch1 -p1
-%patch2 -p1
+%patch2 -p0
%patch3 -p1
%build
-cat << EOF > .mozconfig
+cp -p %{_datadir}/automake/config.* build/autoconf
+
+cat << 'EOF' > .mozconfig
+. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=%{objdir}
%if %{with clang}
export CC="%{__cc}"
export CXX="%{__cxx}"
%endif
+%ifarch %{ix86}
+export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -g0"
+export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64 -g0"
+export MOZ_DEBUG_FLAGS=" "
+export LLVM_USE_SPLIT_DWARF=1
+export LLVM_PARALLEL_LINK_JOBS=1
+export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
+export RUSTFLAGS="-Cdebuginfo=0"
+%else
export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
+%endif
%if %{with crashreporter}
export MOZ_DEBUG_SYMBOLS=1
%endif
# Options for 'configure' (same as command-line options).
+ac_add_options --host=%{_target_platform}
ac_add_options --prefix=%{_prefix}
%if %{?debug:1}0
ac_add_options --disable-optimize
ac_add_options --enable-crash-on-assert
%else
ac_add_options --disable-debug
-ac_add_options --enable-optimize="%{rpmcflags} -Os"
%endif
ac_add_options --disable-strip
ac_add_options --disable-install-strip
%if %{with tests}
ac_add_options --enable-tests
-ac_add_options --enable-mochitest
%else
ac_add_options --disable-tests
%endif
%else
ac_add_options --disable-crashreporter
%endif
-#ac_add_options --disable-elf-hack
+ac_add_options --disable-elf-hack
ac_add_options --disable-gconf
-ac_add_options --disable-gnomeui
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --enable-alsa
-ac_add_options --enable-application=mail
+ac_add_options --enable-application=comm/mail
ac_add_options --enable-chrome-format=omni
-ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
-ac_add_options --enable-gio
+ac_add_options --enable-default-toolkit=cairo-gtk3
%if %{with ldap}
ac_add_options --enable-ldap
%else
ac_add_options --disable-ldap
%endif
%{?with_official:ac_add_options --enable-official-branding}
+%{?with_gold:ac_add_options --enable-linker=gold}
ac_add_options --enable-readline
%{?with_shared_js:ac_add_options --enable-shared-js}
ac_add_options --enable-startup-notification
-ac_add_options --enable-system-cairo
+%{?with_system_cairo:ac_add_options --enable-system-cairo}
ac_add_options --enable-system-ffi
-ac_add_options --enable-system-hunspell
ac_add_options --enable-system-sqlite
-ac_add_options --enable-url-classifier
-ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
ac_add_options --with-distribution-id=org.pld-linux
-ac_add_options --with-pthreads
ac_add_options --with-system-bz2
ac_add_options --with%{!?with_system_icu:out}-system-icu
ac_add_options --with-system-jpeg
ac_add_options --with-system-libevent
-ac_add_options --with-system-libvpx
+ac_add_options --with%{!?with_system_libvpx:out}-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-png
ac_add_options --with-system-zlib
-ac_add_options --with-x
EOF
-mkdir -p %{objdir}/config
-ln -sf %{topdir}/mozilla/config/*.mk %{objdir}/config
+%{!?with_clang:export MOZ_MAKE_FLAGS="-j1"}
-%{__make} -j1 -f client.mk build \
- AUTOCONF=/usr/bin/autoconf2_13 \
- MOZ_MAKE_FLAGS="%{_smp_mflags}"
+AUTOCONF=/usr/bin/autoconf2_13 ./mach build
%if %{with crashreporter}
# create debuginfo for crash-stats.mozilla.com
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/plugins,%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{extensions,plugins},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
cd %{objdir}
-%{__make} -C mail/installer stage-package \
+%{__make} -C comm/mail/installer stage-package \
DESTDIR=$RPM_BUILD_ROOT \
installdir=%{_libdir}/%{name} \
PKG_SKIP_STRIP=1
cp -p dist/thunderbird/chrome/icons/default/default48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
-# use system dict
-%{__rm} -rv $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
-ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
-ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
-
# move arch independant ones to datadir
%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
rm -rf $RPM_BUILD_ROOT
%pretrans
-if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
- mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
+if [ -d %{_libdir}/%{name}/extensions ] && [ ! -L %{_libdir}/%{name}/extensions ]; then
+ install -d %{_datadir}/%{name}
+ if [ -e %{_datadir}/%{name}/extensions ]; then
+ mv %{_datadir}/%{name}/extensions{,.rpmsave}
+ fi
+ mv -v %{_libdir}/%{name}/extensions %{_datadir}/%{name}/extensions
fi
for d in chrome defaults icons isp modules res; do
if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
%post
%update_desktop_database_post
-# make temporary HOME, as it attempts to touch files in $HOME/.mozilla
-# dangerous if you run this with sudo with keep_env += HOME
-# also TMPDIR could be pointing to sudo user's homedir so we reset that too.
-export HOME=$(mktemp -d)
-unset TMPDIR TMP || :
-umask 022
-%{_libdir}/%{name}/thunderbird -register
-rm -rf $HOME
%postun
%update_desktop_database_postun
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
-%if %{with gtk3}
%dir %{_libdir}/%{name}/gtk2
%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
%attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
-%endif
%attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
%{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so}
%attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so
+%attr(755,root,root) %{_libdir}/%{name}/libmozwayland.so
%attr(755,root,root) %{_libdir}/%{name}/libxul.so
-%attr(755,root,root) %{_libdir}/%{name}/*.sh
%attr(755,root,root) %{_libdir}/%{name}/*-bin
+%attr(755,root,root) %{_libdir}/%{name}/pingsender
%attr(755,root,root) %{_libdir}/%{name}/plugin-container
+%attr(755,root,root) %{_libdir}/%{name}/precomplete
%attr(755,root,root) %{_libdir}/%{name}/thunderbird
%{_libdir}/%{name}/application.ini
%{_libdir}/%{name}/blocklist.xml
+%{_libdir}/%{name}/chrome.manifest
%{_libdir}/%{name}/dependentlibs.list
%{_libdir}/%{name}/omni.ja
%{_libdir}/%{name}/platform.ini
%{!?with_system_icu:%{_libdir}/%{name}/icudt58l.dat}
+%dir %{_libdir}/%{name}/features
+%{_libdir}/%{name}/features/wetransfer@extensions.thunderbird.net.xpi
+
%dir %{_libdir}/%{name}/fonts
-%{_libdir}/%{name}/fonts/EmojiOneMozilla.ttf
+%{_libdir}/%{name}/fonts/TwemojiMozilla.ttf
%if %{with crashreporter}
%attr(755,root,root) %{_libdir}/%{name}/crashreporter
# symlinks
%{_libdir}/%{name}/chrome
%{_libdir}/%{name}/defaults
-%{_libdir}/%{name}/dictionaries
%{_libdir}/%{name}/extensions
-%{_libdir}/%{name}/hyphenation
%{_libdir}/%{name}/isp
%{_pixmapsdir}/*.png
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/chrome
%{_datadir}/%{name}/defaults
-%{_datadir}/%{name}/isp
-
%dir %{_datadir}/%{name}/extensions
-%{_datadir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
+%{_datadir}/%{name}/isp
%if %{with lightning}
%files addon-lightning
%defattr(644,root,root,755)
-%dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/app.ini
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.jar
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
-%dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*manifest
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
-%dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones/zones.json
+%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi
%endif
%files lang-ar
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-bg@thunderbird.mozilla.org.xpi
-%files lang-bn
-%defattr(644,root,root,755)
-%{_datadir}/%{name}/extensions/langpack-bn-BD@thunderbird.mozilla.org.xpi
-
%files lang-br
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-br@thunderbird.mozilla.org.xpi
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-cs@thunderbird.mozilla.org.xpi
+%files lang-cy
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-cy@thunderbird.mozilla.org.xpi
+
%files lang-da
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-da@thunderbird.mozilla.org.xpi
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-kab@thunderbird.mozilla.org.xpi
+%files lang-kk
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-kk@thunderbird.mozilla.org.xpi
+
%files lang-ko
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-ko@thunderbird.mozilla.org.xpi
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-lt@thunderbird.mozilla.org.xpi
+%files lang-ms
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ms@thunderbird.mozilla.org.xpi
+
%files lang-nb
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-nb-NO@thunderbird.mozilla.org.xpi
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-nn-NO@thunderbird.mozilla.org.xpi
-%files lang-pa
-%defattr(644,root,root,755)
-%{_datadir}/%{name}/extensions/langpack-pa-IN@thunderbird.mozilla.org.xpi
-
%files lang-pl
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-pl@thunderbird.mozilla.org.xpi
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-sv-SE@thunderbird.mozilla.org.xpi
-%files lang-ta_LK
-%defattr(644,root,root,755)
-%{_datadir}/%{name}/extensions/langpack-ta-LK@thunderbird.mozilla.org.xpi
-
%files lang-tr
%defattr(644,root,root,755)
%{_datadir}/%{name}/extensions/langpack-tr@thunderbird.mozilla.org.xpi