#
# Conditional builds
%bcond_with tests # enable tests (whatever they check)
-%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_without gold # use default linker instead of gold
+%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_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_without clang # build using Clang/LLVM
+%bcond_with clang # build using Clang/LLVM
+%bcond_with lowmem # lower memory requirements
# 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.19
-%define nss_ver 3.36.8
+%ifarch %{ix86} %{arm} aarch64
+%define with_lowmem 1
+%endif
-# The actual sqlite version (see RHBZ#480989):
-%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
+%define nspr_ver 4.25
+%define nss_ver 3.53.1
Summary: Thunderbird - email client
Summary(pl.UTF-8): Thunderbird - klient poczty
Name: thunderbird
-Version: 60.8.0
+Version: 78.0.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: a8735a56f578c2690442ee26f60c488a
+# Source0-md5: 14c0bff157f26553568855ff8075e42e
Source1: %{name}.desktop
Source2: %{name}.sh
-Source100: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ar.xpi
-# Source100-md5: 67237a870ff67c1bd5e602522b94c9ff
-Source101: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ast.xpi
-# Source101-md5: 7dabc48adb58b1488150bef1d32a1b44
-Source102: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/be.xpi
-# Source102-md5: e8642e9d5f005e4d4a36220ae5d80e4a
-Source103: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/bg.xpi
-# Source103-md5: 670e2674c6084b063c0a301b1dd22d86
-Source104: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/br.xpi
-# Source104-md5: 7f79676d4c0b7632db49e3a46bafa39c
-Source105: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ca.xpi
-# Source105-md5: 204298b7f58a8b58d850334a084fdb73
-Source106: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cs.xpi
-# Source106-md5: 6f69be14003ca294f761cb60da71dc19
-Source107: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cy.xpi
-# Source107-md5: 02950337b3043d96748a81a129fd06dc
-Source108: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/da.xpi
-# Source108-md5: 1adf5e7e0d11afe9575b7657b02301a0
-Source109: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/de.xpi
-# Source109-md5: 047875f6e9661d60e2d89447dd497f79
-Source110: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/dsb.xpi
-# Source110-md5: c1fe6beca90452855a6f3ec09b6927f3
-Source111: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/el.xpi
-# Source111-md5: c1008989ed9a6fd8e502d38ba87bbe99
-Source112: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-GB.xpi
-# Source112-md5: 0c01575004e6005a2b44bfc4fdb4a1e6
-Source113: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-US.xpi
-# Source113-md5: a0e1d1a90e3aec3ffe77ff6331164eb7
-Source114: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-AR.xpi
-# Source114-md5: 1b2a68ea3604b599f32223cb47e15995
-Source115: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-ES.xpi
-# Source115-md5: 64c16b6175e1a6b9b78357e9d6596da8
-Source116: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/et.xpi
-# Source116-md5: 445220d4396627aa1db35f21c855beba
-Source117: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/eu.xpi
-# Source117-md5: ebbbac05a2c25543fc8282208f86332f
-Source118: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fi.xpi
-# Source118-md5: 2688f2d0b89b13b3c9ae917dc931c90d
-Source119: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fr.xpi
-# Source119-md5: 187a84ea7a8c7d85bbee62b49b19fe41
-Source120: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fy-NL.xpi
-# Source120-md5: 555299a724cf98f80d03f93aa743f0c0
-Source121: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ga-IE.xpi
-# Source121-md5: 254e838681af2028c36dc19526423f5c
-Source122: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gd.xpi
-# Source122-md5: 55cdfb066768557f94704f09a713b730
-Source123: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gl.xpi
-# Source123-md5: 8ba30c464ec643c35c7011d4dc688bd9
-Source124: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/he.xpi
-# Source124-md5: 7f601da89983a0c0e825051326dacb1e
-Source125: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hr.xpi
-# Source125-md5: 547e48a7107d47266c1396313a742384
-Source126: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hsb.xpi
-# Source126-md5: 45d8844f900a7a5a18eaaaeb8f2c889f
-Source127: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hu.xpi
-# Source127-md5: b7ebc38008995ee94b907020e3a6d372
-Source128: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hy-AM.xpi
-# Source128-md5: 901e260334a165593f4990855b18acaa
-Source129: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/id.xpi
-# Source129-md5: 5ab7e6ae5dc3e2e2b99c7fe0104b4706
-Source130: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/is.xpi
-# Source130-md5: 5cc432d7e52bf652051492b087ecef45
-Source131: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/it.xpi
-# Source131-md5: 3e4093484c1d62c28031b7bf2af5c2e3
-Source132: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ja.xpi
-# Source132-md5: 201b79a903500b622937787d5e2b0817
-Source133: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kab.xpi
-# Source133-md5: 4988e0883b5193efde3b8d88d2c81104
-Source134: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kk.xpi
-# Source134-md5: afe4f9fd23222aa1bab03010011c1ce3
-Source135: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ko.xpi
-# Source135-md5: 6390dd6be7826087bb080593ae5b42f0
-Source136: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/lt.xpi
-# Source136-md5: 21d72645132822cc70b26e422228c91e
-Source137: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ms.xpi
-# Source137-md5: 2ad3ca6b765084460b127060a385c1f0
-Source138: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nb-NO.xpi
-# Source138-md5: 77f403cc7de25674f9c847a977e4ebb7
-Source139: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nl.xpi
-# Source139-md5: 88f7afdb3d060c5f416adfcbea1a72cc
-Source140: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nn-NO.xpi
-# Source140-md5: ba7abf288b2b6842ae208563c983bf47
-Source141: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pl.xpi
-# Source141-md5: d7c5def03b34a94a823ac718d1049a50
-Source142: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-BR.xpi
-# Source142-md5: 896e944e56e0e382ce4528d6cd1ab5a2
-Source143: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-PT.xpi
-# Source143-md5: 3f378ded0566fc34167335900e0d8f0e
-Source144: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/rm.xpi
-# Source144-md5: 7be1afb8de74a81bb185674fff68fc5c
-Source145: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ro.xpi
-# Source145-md5: e70133fa605900a1bfbd20d10dae6d62
-Source146: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ru.xpi
-# Source146-md5: 8c3f2478fd6b562564c35a3d0496e950
-Source147: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/si.xpi
-# Source147-md5: f7bd6c600bd841e5171340a7e9e43cbd
-Source148: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sk.xpi
-# Source148-md5: 7b7fdbb2954083c300dd49b068788546
-Source149: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sl.xpi
-# Source149-md5: d130a372bf5cb8f708f6c4999a4f1d40
-Source150: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sq.xpi
-# Source150-md5: bddb602870ec5d18045ced182f75bb59
-Source151: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sr.xpi
-# Source151-md5: d0ced25e653b4bc1537a8f5c9697dad1
-Source152: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sv-SE.xpi
-# Source152-md5: 21afa50d058315cf0389871e0cefa217
-Source153: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/tr.xpi
-# Source153-md5: 62fa2f9f8f731678d391f00145bc77e4
-Source154: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/uk.xpi
-# Source154-md5: 86be97db561dc81d0f41d6e0ce3a35fe
-Source155: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/vi.xpi
-# Source155-md5: f6fbe55c4dd3217f9e6782ab953759cd
-Source156: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-CN.xpi
-# Source156-md5: a189689795ebf08822dfdf4af5d85c72
-Source157: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-TW.xpi
-# Source157-md5: 809a2bff00452fce2fd596aa0fb309a7
+Source100: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ar.xpi
+# Source100-md5: 108fc4448664a1be9036e5643485a8f1
+Source101: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ast.xpi
+# Source101-md5: a42cada1f621746a3ae0e2406e2a6201
+Source102: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/be.xpi
+# Source102-md5: 5afddfebf86825342b78ce5f0563a03c
+Source103: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/bg.xpi
+# Source103-md5: 5bc31bd5aea92d78cc467e2db252ee0f
+Source104: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/br.xpi
+# Source104-md5: c0a88c6f39938b7b34078a7b804702aa
+Source105: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ca.xpi
+# Source105-md5: 99b70e2dfb3b53a298bbd427b5d05062
+Source106: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cs.xpi
+# Source106-md5: d582a3f0b37bf148f20d980207c03a5d
+Source107: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cy.xpi
+# Source107-md5: b8d6f0928afea41214ff9a41812a50b0
+Source108: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/da.xpi
+# Source108-md5: 9b56fe9fa458a613e02aa34cd805eef1
+Source109: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/de.xpi
+# Source109-md5: 3b125d4c8b4009813a59aba5738d1771
+Source110: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/dsb.xpi
+# Source110-md5: 0036d631043cf02c7fc394ec8ff257f8
+Source111: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/el.xpi
+# Source111-md5: 2d64b4714f2d26003a99f470c0edbbfd
+Source112: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-GB.xpi
+# Source112-md5: d8410c74e718f10e17e92daf20a05580
+Source113: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-US.xpi
+# Source113-md5: 892e7e0e74e6633659e72bf541fee352
+Source114: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-AR.xpi
+# Source114-md5: d4047f6c73bf417d860d80c95c03c4da
+Source115: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-ES.xpi
+# Source115-md5: 4cdf4a26fd8f496c378fd96d4cc04918
+Source116: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/et.xpi
+# Source116-md5: 00862fbe443ee8c9cb7e103777149b4e
+Source117: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/eu.xpi
+# Source117-md5: 02d4404e1449da2c1e141c11a1d86fb5
+Source118: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fi.xpi
+# Source118-md5: d9a3d0d689f2530810b5927f5ecdeb36
+Source119: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fr.xpi
+# Source119-md5: 3b56d630c4554203525639f63207447e
+Source120: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fy-NL.xpi
+# Source120-md5: 7ba2b167ce4fc8b7f244a27af7035592
+Source121: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ga-IE.xpi
+# Source121-md5: c2f322bed3a0e38b0c3cf652954c282e
+Source122: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gd.xpi
+# Source122-md5: 9295015c69fdeffb213df855295c61bb
+Source123: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gl.xpi
+# Source123-md5: 9e2f512dc8b9ce030ebde407f6424e4a
+Source124: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/he.xpi
+# Source124-md5: a2202bc43951650fe885dfed679f769c
+Source125: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hr.xpi
+# Source125-md5: bbb51e85add658e9e03046d3ffbed08c
+Source126: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hsb.xpi
+# Source126-md5: 20b0a513fac8178135ff90b249792d1e
+Source127: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hu.xpi
+# Source127-md5: 4636ef49b16428d45ef12b1dd49b86e2
+Source128: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hy-AM.xpi
+# Source128-md5: 6929d3be27fb96d03e67cb5956bf4312
+Source129: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/id.xpi
+# Source129-md5: 652871e70e0849b6d7a1cccc2c185699
+Source130: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/is.xpi
+# Source130-md5: 4c713193cabd0005196377781aec1488
+Source131: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/it.xpi
+# Source131-md5: 4e37f8196d2e8bf5c96cae16648379a3
+Source132: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ja.xpi
+# Source132-md5: fe23f923752c6f8c2d5b6d0bde12a228
+Source133: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kab.xpi
+# Source133-md5: c3af545813f57baf72c430d9d1adac70
+Source134: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kk.xpi
+# Source134-md5: 808e6e4a6e19656ae3cd678fcff9f212
+Source135: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ko.xpi
+# Source135-md5: 67331ee907e4d9d4f8e7c9a92ad52b91
+Source136: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/lt.xpi
+# Source136-md5: 99ebe4d1aaf11698a014b1979e6a568c
+Source137: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ms.xpi
+# Source137-md5: a79c8a86ca65b3255eee32be355cd37e
+Source138: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nb-NO.xpi
+# Source138-md5: 385dcd32edbdab951f04193d7ad4464b
+Source139: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nl.xpi
+# Source139-md5: aaaebb817bc7264f6d2804923ce773ea
+Source140: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nn-NO.xpi
+# Source140-md5: 952c53021d99fbb49eb2191bcb6cc558
+Source141: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pl.xpi
+# Source141-md5: 663723f6e9ac3527c99c65c6ebc5b905
+Source142: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-BR.xpi
+# Source142-md5: 00bbafffdbfca361be6896a94c89282d
+Source143: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-PT.xpi
+# Source143-md5: 83d746b3433e51aab55f140d36b74bf8
+Source144: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/rm.xpi
+# Source144-md5: 5d43a035fb93ba0d5b64f2068dda089a
+Source145: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ro.xpi
+# Source145-md5: d69b252b520bc235e162772637fd6d8f
+Source146: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ru.xpi
+# Source146-md5: 5d2382eefd2bf33cb1ae69bc55f7efb4
+Source147: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/si.xpi
+# Source147-md5: 3a9afd5604ce624140be4a331cf0cb33
+Source148: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sk.xpi
+# Source148-md5: 764bbd32ab88699929bec88341900eee
+Source149: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sl.xpi
+# Source149-md5: 29f81c3267843d81521d9c28c1e5081b
+Source150: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sq.xpi
+# Source150-md5: 62d12e1aa6570f041d97e5d588c39207
+Source151: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sr.xpi
+# Source151-md5: c3011cc2b5cfdc2bab37475bad8985a7
+Source152: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sv-SE.xpi
+# Source152-md5: 9321872e25895ea0e6cbf71d7e068ae9
+Source153: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/tr.xpi
+# Source153-md5: 5870e3e0bbd91220cad6c266d248c400
+Source154: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uk.xpi
+# Source154-md5: 3b33c527f673b3cd3ec19a640e978b14
+Source155: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/vi.xpi
+# Source155-md5: aa384d9ea7e95bf02183f276717c3029
+Source156: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-CN.xpi
+# Source156-md5: 7de9f5bbe7a7a3ddc9b3d85f638a4d0f
+Source157: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-TW.xpi
+# Source157-md5: f7197847b113866248da4869472de7f1
Patch0: prefs.patch
Patch1: no-subshell.patch
Patch2: enable-addons.patch
-Patch3: rust-1.33.patch
+Patch3: %{name}-system-virtualenv.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
%{?with_system_cairo:BuildRequires: cairo-devel >= 1.10.2-5}
BuildRequires: cargo
%{?with_clang:BuildRequires: clang}
BuildRequires: fontconfig-devel >= 2.7.0
BuildRequires: freetype-devel >= 1:2.1.8
BuildRequires: glib2-devel >= 1:2.22
-BuildRequires: gtk+3-devel >= 3.4.0
-BuildRequires: hunspell-devel
+BuildRequires: gtk+3-devel >= 3.14.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: libstdc++-devel >= 6:4.8.1
%{?with_system_libvpx:BuildRequires: libvpx-devel >= 1.5.0}
BuildRequires: llvm-devel
BuildRequires: mozldap-devel
+BuildRequires: nodejs >= 8.11
BuildRequires: nspr-devel >= 1:%{nspr_ver}
BuildRequires: nss-devel >= 1:%{nss_ver}
BuildRequires: pango-devel >= 1:1.22.0
BuildRequires: pkgconfig
BuildRequires: python >= 1:2.7
BuildRequires: python-virtualenv
-BuildRequires: rust
+BuildRequires: rust >= 1.34.0
+BuildRequires: rust-cbindgen >= 0.14.1
BuildRequires: sed >= 4.0
-BuildRequires: sqlite3-devel >= 3.22.0
-BuildRequires: startup-notification-devel >= 0.8
BuildRequires: virtualenv
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXcomposite-devel
%{?with_system_cairo:Requires: cairo >= 1.10.2-5}
Requires: dbus-glib >= 0.60
Requires: glib2 >= 1:2.22
-Requires: gtk+3 >= 3.4.0
+Requires: glibc >= 6:2.17
+Requires: gtk+3 >= 3.14.0
Requires: libpng >= 2:1.6.25
+Requires: libstdc++ >= 6:4.8.1
%{?with_system_libvpx:Requires: libvpx >= 1.5.0}
Requires: myspell-common
Requires: nspr >= 1:%{nspr_ver}
Requires: nss >= 1:%{nss_ver}
Requires: pango >= 1:1.22.0
-Requires: sqlite3 >= %{sqlite_build_version}
-Requires: startup-notification >= 0.8
Requires: libjpeg-turbo
Obsoletes: icedove
Obsoletes: mozilla-thunderbird
Obsoletes: mozilla-thunderbird-dictionary-en-US
+Obsoletes: thunderbird-addon-lightning < 78.0
Conflicts: thunderbird-lang-resources < %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# firefox/thunderbird/seamonkey provide their own versions
%define _noautoprovfiles %{_libdir}/%{name}/components
+%define moz_caps liblgpllibs.so libmozalloc.so libmozgtk.so libmozjs.so libmozsandbox.so libmozsqlite3.so libmozwayland.so librnp.so libxul.so
# we don't want these to satisfy packages depending on xulrunner
-%define _noautoprov libmozalloc.so libmozjs.so libxul.so
+%define _noautoprov %{moz_caps}
# and as we don't provide them, don't require either
-%define _noautoreq libmozalloc.so libmozjs.so libxul.so
+%define _noautoreq %{moz_caps}
%define topdir %{_builddir}/thunderbird-%{version}
%define objdir %{topdir}/obj-%{_target_cpu}
Thunderbird jest mającym otwarte źródła, szybkim i przenośnym klientem
poczty.
-%package addon-lightning
-Summary: An integrated calendar for Thunderbird
-Summary(pl.UTF-8): Zintegrowany kalendarz dla Thunderbird
-License: MPL 1.1 or GPL v2+ or LGPL v2.1+
-Group: Applications/Networking
-Requires: %{name} = %{version}-%{release}
-Obsoletes: icedove-addon-lightning
-
-%description addon-lightning
-Lightning is an calendar extension to Thunderbird email client.
-
-%description addon-lightning -l pl.UTF-8
-Lightning to rozszerzenie do klienta poczty Thunderbird dodające
-funkcjonalność kalendarza.
-
%package lang-ar
Summary: Arabic resources for Thunderbird
Summary(pl.UTF-8): Arabskie pliki językowe dla Thunderbirda
%patch0 -p1
%patch1 -p1
%patch2 -p0
-%patch3 -p1
+%patch3 -p2
%build
cp -p %{_datadir}/automake/config.* build/autoconf
export CC="%{__cc}"
export CXX="%{__cxx}"
%endif
+%ifarch %{ix86}
+export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
+export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
+%else
export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
+%endif
+
+%if %{with lowmem}
+export CFLAGS="$CFLAGS -g0"
+export CXXFLAGS="$CXXFLAGS -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"
+%endif
%if %{with crashreporter}
export MOZ_DEBUG_SYMBOLS=1
%else
ac_add_options --disable-crashreporter
%endif
-#ac_add_options --disable-elf-hack
-ac_add_options --disable-gconf
+%ifarch %{ix86} %{x8664} %{arm}
+ac_add_options --disable-elf-hack
+%endif
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --enable-alsa
ac_add_options --enable-application=comm/mail
ac_add_options --enable-chrome-format=omni
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
%{?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 --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-nss
ac_add_options --with-system-png
ac_add_options --with-system-zlib
-ac_add_options --with-x
EOF
-AUTOCONF=/usr/bin/autoconf2_13 ./mach build -v
+%if ! %{with clang}
+# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
+# however builds tend to fail on other arches when building in parallel.
+MOZ_PARALLEL_BUILD=1
+%ifarch %{x8664}
+jobs="%{__jobs}"
+[ -n "$jobs" -a "$jobs" -gt 4 ] && MOZ_PARALLEL_BUILD=4 || MOZ_PARALLEL_BUILD="$jobs"
+%endif
+export MOZ_PARALLEL_BUILD
+%else
+%{?__jobs:export MOZ_PARALLEL_BUILD="%__jobs"}
+%endif
+
+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 comm/mail/installer stage-package \
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
fi
mv -v %{_libdir}/%{name}/extensions %{_datadir}/%{name}/extensions
fi
-if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
- mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
-fi
for d in chrome defaults icons isp modules res; do
if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
install -d %{_datadir}/%{name}
%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
%attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
%attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
%{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so}
+%ifarch %{ix86} %{x8664}
%attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so
+%endif
+%attr(755,root,root) %{_libdir}/%{name}/libmozsqlite3.so
+%attr(755,root,root) %{_libdir}/%{name}/libmozwayland.so
+%attr(755,root,root) %{_libdir}/%{name}/librnp.so
%attr(755,root,root) %{_libdir}/%{name}/libxul.so
%attr(755,root,root) %{_libdir}/%{name}/*-bin
%attr(755,root,root) %{_libdir}/%{name}/pingsender
%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
%{_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
%{_libdir}/%{name}/Throbber-small.gif
%endif
-%dir %{_libdir}/%{name}/distribution
-%dir %{_libdir}/%{name}/distribution/extensions
-
# 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
-
-%if %{with lightning}
-%files addon-lightning
-%defattr(644,root,root,755)
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi
-%endif
+%{_datadir}/%{name}/isp
%files lang-ar
%defattr(644,root,root,755)