%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
+%bcond_with lowmem # lower memory requirements
# UPDATING TRANSLATIONS:
%if 0
%undefine crashreporter
%endif
+%ifarch %{ix86} %{arm} aarch64
+%define with_lowmem 1
+%endif
+
%define nspr_ver 4.21
-%define nss_ver 3.44.1
+%define nss_ver 3.44.3
# 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: 68.1.2
+Version: 68.8.0
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: 0abdbbcc72013a59d186b629af2756e6
+# Source0-md5: 37c0cb512abb2b99c9cd230fffe5d617
Source1: %{name}.desktop
Source2: %{name}.sh
Source100: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ar.xpi
-# Source100-md5: deca24d692c1354d9659715ddbdcd8ef
+# Source100-md5: 09fd7476172f3069a9c2c9b6eb220ddf
Source101: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ast.xpi
-# Source101-md5: 6fa70d43af402d10e6c93908aa58c992
+# Source101-md5: d9ab97d926fb188a6c42003164c8c972
Source102: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/be.xpi
-# Source102-md5: 0fb084a3eb488ad559a9e6e386eef7db
+# Source102-md5: 7323f58dbc28b120f48d541098f84cdc
Source103: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/bg.xpi
-# Source103-md5: b57c0f80ff20e9e962c56284be370386
+# Source103-md5: fcada43ec27eb9de4163dec08cc58554
Source104: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/br.xpi
-# Source104-md5: adb9fdad0797dfeb5220e17f9c02a259
+# Source104-md5: ef87b7a5ee884bfcbf3b0cecaa56948f
Source105: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ca.xpi
-# Source105-md5: c34349fdbf804075f7fe6343663d43e1
+# Source105-md5: 6472318e813408f7e89501b8e303c2db
Source106: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cs.xpi
-# Source106-md5: bdb19d87ae33fb0a586d41392b73f7f3
+# Source106-md5: 25996d633348e573ee5deef320166d26
Source107: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cy.xpi
-# Source107-md5: 1a2f45a6128b9b7076c2ba3261027a35
+# Source107-md5: ef284f6cde4d07f9b7634d4ceb19fe72
Source108: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/da.xpi
-# Source108-md5: 82a2faba087265708f4bb303d9ad3183
+# Source108-md5: f6fc29a1bace6d0bb0fc6bf875949c78
Source109: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/de.xpi
-# Source109-md5: deb5412e903d0a01d8dad11c4d4b917e
+# Source109-md5: bd753b0e75f1a765144d27981c823759
Source110: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/dsb.xpi
-# Source110-md5: 9135b2cecd96fb2f12a5bf86652ca828
+# Source110-md5: 61d6c56505fbaef4c22d119be9f947dd
Source111: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/el.xpi
-# Source111-md5: 94b900cc840c7aa34a08ca29fafa401c
+# Source111-md5: 692a9f71ad2e13d0749251c5cbe45512
Source112: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-GB.xpi
-# Source112-md5: c1cff7f0587a2de66e3aa04048c00dab
+# Source112-md5: 57a276118758fea719569fc572c52183
Source113: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-US.xpi
-# Source113-md5: 65ee732a6f2c965c527f79e0f31aaf45
+# Source113-md5: b4c1d05e6ce029c13bad75a88d2406be
Source114: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-AR.xpi
-# Source114-md5: f33c1d274bfe09b8e50e5e50459a3fc9
+# Source114-md5: 3a71087ef7aa437614c956edd6cceb34
Source115: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-ES.xpi
-# Source115-md5: 42144921aa48e605ae9b92208bbd0a97
+# Source115-md5: 6815520c79f1fc6fb93f03e5f3dc9f06
Source116: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/et.xpi
-# Source116-md5: 8b8116bdb7e6f94a1d023de47143c224
+# Source116-md5: 4ae88e21f5ed4d6557a2482da51df7a6
Source117: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/eu.xpi
-# Source117-md5: fbd5ac00f72031439a1ceaec663fd46c
+# Source117-md5: 9ca3d27f062d0d8389f3b9e5b5709ea7
Source118: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fi.xpi
-# Source118-md5: bc3f47718d197e5fd23749d89d27cf28
+# Source118-md5: 9eedc2d8c923dc8827aa3fe89db0532a
Source119: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fr.xpi
-# Source119-md5: b4d1fcf870ae1bcdcae0b803a4027f93
+# Source119-md5: 920d0bcfb9bfb9d358aa21f6ed7adf78
Source120: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fy-NL.xpi
-# Source120-md5: cfdaedd675c64a741804fb40abc55712
+# Source120-md5: 04f0d8327c96ed46ffe9c3b18d060a5e
Source121: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ga-IE.xpi
-# Source121-md5: a68c1752de8319625d6300511d43bbfd
+# Source121-md5: 925bff9cf3e80ce1b228080fb63ffe2c
Source122: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gd.xpi
-# Source122-md5: 3d7208cb5080c4749d1edbdcfd0ed6e3
+# Source122-md5: d9ab2f1c86dddd212406734163b31619
Source123: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gl.xpi
-# Source123-md5: 6b3eb1bf8b18e0d88fbb9951a7625e04
+# Source123-md5: 047b59b505d0763b3fe03da3cc83dea9
Source124: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/he.xpi
-# Source124-md5: 5ce57740a7dbcb783ab035770b34c57e
+# Source124-md5: 021d2b0b4f39d94eeda8b4f20f6aaccd
Source125: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hr.xpi
-# Source125-md5: 5746f897fad4848d4358a856cb712842
+# Source125-md5: da652a7e51f32806c710ac7b452213d7
Source126: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hsb.xpi
-# Source126-md5: 977e6743b0629bf3ab88144d9d8332f1
+# Source126-md5: 39379c6b363e4d1c4ffafe56d7ca37e1
Source127: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hu.xpi
-# Source127-md5: ad5237d1c3204367fe1d36efe6bdad8e
+# Source127-md5: 4d83a3c97cc055a587f9177602aa76e7
Source128: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hy-AM.xpi
-# Source128-md5: 739538454407d5176848865f787689e0
+# Source128-md5: ebaea74e02e704dd65b401b904dde1dd
Source129: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/id.xpi
-# Source129-md5: 8484326881ab5e1280d8e2fdd7f4859c
+# Source129-md5: 4c91cfddb52001f4f1784db53c8cb0f5
Source130: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/is.xpi
-# Source130-md5: 43ee5584a5fc9ed8b39529f5ceeb2cd6
+# Source130-md5: a9e60d3354ca583c28a2ab95ba2a48c1
Source131: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/it.xpi
-# Source131-md5: 7ae3026fba03de1075ddadec68caaffb
+# Source131-md5: 38711685bc3fb7847b974b982f3d2edc
Source132: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ja.xpi
-# Source132-md5: 1b54a5452f59da421756a68a264a3974
+# Source132-md5: 81db5d961ee7e1a003a68a488d1d296f
Source133: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kab.xpi
-# Source133-md5: aa623a980f523843689a714b4f552d85
+# Source133-md5: 014be4463201c69d981946c91c9990e1
Source134: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kk.xpi
-# Source134-md5: 689e44882c0958a0d5dc54fcf206fc06
+# Source134-md5: 032058e83db18da562531cbe7af92efb
Source135: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ko.xpi
-# Source135-md5: a6e4343883730a23823a7072e1d10bb4
+# Source135-md5: 3172909334bc21559b6b0a4d264ffbcc
Source136: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/lt.xpi
-# Source136-md5: 79262868c96ee7ae06b4a7ea891f001a
+# Source136-md5: 5bfc54198fc840f479a82f119d1c2224
Source137: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ms.xpi
-# Source137-md5: 3c8175e01b5d319c53d0d509aa9f732e
+# Source137-md5: ddd9f8f952e28d89c022415e65d09b35
Source138: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nb-NO.xpi
-# Source138-md5: beeee96cd5283567527dd611190aea5a
+# Source138-md5: c2e0227ac47c1d77b72a473743660e9a
Source139: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nl.xpi
-# Source139-md5: 07b0221fa95597e3e981bdaff47b3afc
+# Source139-md5: 88c0618cdc22c317e679335a3f6781cd
Source140: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nn-NO.xpi
-# Source140-md5: 1c9e4a9ba0c83f5bf3ef4fa8d28e639b
+# Source140-md5: d431054341b81e887d8b53617be39186
Source141: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pl.xpi
-# Source141-md5: 37d41eeb832f4d17ffe00f0b3a758499
+# Source141-md5: e48ee4eaf2c7ed3d2141444f8b280264
Source142: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-BR.xpi
-# Source142-md5: aebc5e488b1c81b2d5e54ffab5d59988
+# Source142-md5: 4fe97f2ca4c5e2962f3812a1f70f63d4
Source143: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-PT.xpi
-# Source143-md5: 40bc6fdda345a501096235431d2c5e8b
+# Source143-md5: e3631038405df363fec9ea14aa95bce3
Source144: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/rm.xpi
-# Source144-md5: 7e3d7091302dfaad46915d6be3434872
+# Source144-md5: e50adfc5f3621c9b25223f0d432d8a85
Source145: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ro.xpi
-# Source145-md5: 5d97a32e77519578aca62039cd091bb7
+# Source145-md5: a6ca065809f4571719e067996fe00eb1
Source146: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ru.xpi
-# Source146-md5: ee4e2085df83a161c6b5639260ccaad8
+# Source146-md5: 4972f026f6d673c2ff71fb48fb37342f
Source147: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/si.xpi
-# Source147-md5: ef834f6fbfdfc8ccdb4980f528c175b7
+# Source147-md5: ee1ee0e26c01845f1374f438f3b9aa34
Source148: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sk.xpi
-# Source148-md5: 3c4a50f5e86908078215d8a87bf9dfd6
+# Source148-md5: 01fed493c980d6e4234945a5ca9702ef
Source149: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sl.xpi
-# Source149-md5: 3c27bb605c73d97e89dc72cb9444cbc6
+# Source149-md5: 6eab6ca4ba443310597d64174f26dddf
Source150: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sq.xpi
-# Source150-md5: f6a1761907365d3fa3606f0687f96fac
+# Source150-md5: da6bd3b374b795f6c5c1c5c6a6ee085f
Source151: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sr.xpi
-# Source151-md5: ade2aa601bab0461f146bddd7a70355c
+# Source151-md5: 426befd70f71b66878f372b1d67f4b3e
Source152: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sv-SE.xpi
-# Source152-md5: 834d799e95ec2362c0d5109dc3b63b48
+# Source152-md5: 71769ae325ca5fcaee5745c82180c974
Source153: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/tr.xpi
-# Source153-md5: df050fda8f7ae19fa288b8ee7d6dbba4
+# Source153-md5: f8d7c0ff30f8cca64002df12b3842e8a
Source154: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/uk.xpi
-# Source154-md5: 46cc2ddef4c2fd6e8ff6b941fd54ae46
+# Source154-md5: 9c4f7178a069f574dc65e5efce340a44
Source155: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/vi.xpi
-# Source155-md5: aea625e03b73b1fa3cd313aa036be4bd
+# Source155-md5: 09dd4bdad2c94a5051b132a281e8c522
Source156: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-CN.xpi
-# Source156-md5: 1f42653096bbaffd6c4316f1dd0e35d6
+# Source156-md5: b900eeb2cdd06c4e7fa2b2a9c33cb1c3
Source157: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-TW.xpi
-# Source157-md5: e86f782924795140b748923a9b91aad3
+# Source157-md5: 4be2f370e5b33f2b7a5b464d8420cc3a
Patch0: prefs.patch
Patch1: no-subshell.patch
Patch2: enable-addons.patch
# 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 libmozwayland.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}
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 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"
-%else
-export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
-export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
%endif
%if %{with crashreporter}
%else
ac_add_options --disable-crashreporter
%endif
+%ifarch %{ix86} %{x8664} %{arm}
ac_add_options --disable-elf-hack
+%endif
ac_add_options --disable-gconf
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --with-system-zlib
EOF
-%{!?with_clang:export MOZ_MAKE_FLAGS="-j1"}
+%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.
+RPM_BUILD_NR_THREADS=1
+%ifarch %{x8664}
+jobs=$(echo %{_smp_mflags} | cut -dj -f2)
+[ -n "$jobs" -a "$jobs" -gt 4 ] && RPM_BUILD_NR_THREADS=4 || RPM_BUILD_NR_THREADS="$jobs"
+%endif
+export MOZ_MAKE_FLAGS="-j${RPM_BUILD_NR_THREADS}"
+%endif
AUTOCONF=/usr/bin/autoconf2_13 ./mach build
%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}/libmozwayland.so
%attr(755,root,root) %{_libdir}/%{name}/libxul.so
%attr(755,root,root) %{_libdir}/%{name}/*-bin