# TODO:
# - build with system mozldap
+# - do something with *.rdf file, there is file conflict with other lang packages
#
# Conditional builds
-%bcond_with gtk3 # GTK+ 3.x instead of 2.x
-%bcond_without ldap # disable e-mail address lookups in LDAP directories
+%bcond_with tests # enable tests (whatever they check)
%bcond_without lightning # disable Sunbird/Lightning calendar
-%bcond_with xulrunner # system xulrunner
+%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_without system_icu # build without system ICU
+%bcond_with system_cairo # build with system cairo (not supported in 60.0)
+%bcond_without system_libvpx # build with system libvpx
+%bcond_without clang # build using Clang/LLVM
+%bcond_with lowmem # lower memory requirements
-%if 0%{?_enable_debug_packages} != 1
-%undefine crashreporter
+# UPDATING TRANSLATIONS:
+%if 0
+rm -vf *.xpi
+./builder -g
+V=31.4.0
+U=https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/$V/linux-i686/
+curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p'
%endif
-%define nspr_ver 4.10.6
-%define nss_ver 3.19.2.1
+%define _enable_debug_packages 0
-%define xulrunner_ver 2:31.3.0
+%if 0%{?_enable_debug_packages} != 1
+%undefine crashreporter
+%endif
-%if %{without xulrunner}
-# The actual sqlite version (see RHBZ#480989):
-%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
+%ifarch %{ix86} %{arm} aarch64
+%define with_lowmem 1
%endif
+%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: 45.8.0
-Release: 0.1
+Version: 78.10.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: 4e04b1618273f946f00f8ea547578895
-Source4: %{name}.desktop
-Source5: %{name}.sh
-Patch2: prefs.patch
-Patch6: no-subshell.patch
-Patch8: enable-addons.patch
-Patch9: mozilla-1269171-badalloc.patch
+Source0: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
+# Source0-md5: 8986771daeaf38228371187a9d862cfa
+Source1: %{name}.desktop
+Source2: %{name}.sh
+Source100: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/af.xpi
+# Source100-md5: 4e96e6e62406bcd2311f3be07d8f5f57
+Source101: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ar.xpi
+# Source101-md5: 75720b42cb575c8def9ad7aa45325e22
+Source102: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ast.xpi
+# Source102-md5: d1278b989b23fc9f88e1485fce25d54c
+Source103: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/be.xpi
+# Source103-md5: b5604dd69291aef3cbd859757d6d0e51
+Source104: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/bg.xpi
+# Source104-md5: c17fcad90c12d95bf6a27f1e9778aa77
+Source105: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/br.xpi
+# Source105-md5: 4080b0cb1eee5ee5562dafd6ded62a4d
+Source106: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ca.xpi
+# Source106-md5: ccbb4fac4c1f5047697f476f5f35ed55
+Source107: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cak.xpi
+# Source107-md5: 2cf586e98f7699410d378bc68f85cfe1
+Source108: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cs.xpi
+# Source108-md5: 3527e3597c64742bc291da7a7d62d688
+Source109: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cy.xpi
+# Source109-md5: 82ce8606f78912cc7bf493baaeab6af6
+Source110: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/da.xpi
+# Source110-md5: 83310f7501e5ad6e8cc777354f1a3a75
+Source111: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/de.xpi
+# Source111-md5: ec5839b61b5ed4b1bd8b14bab25cdc64
+Source112: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/dsb.xpi
+# Source112-md5: a2c00b2684661197ae0769b42af8e3f0
+Source113: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/el.xpi
+# Source113-md5: 25909f7a3019bce98f405041a5baeb8d
+Source114: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-CA.xpi
+# Source114-md5: bcc3b5c32a9ccd762ff21d248e643963
+Source115: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-GB.xpi
+# Source115-md5: 540d52688d355f00115a73dd6050a992
+Source116: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-US.xpi
+# Source116-md5: c00ba1e7434b8c1f72c4c5a42afffc2c
+Source117: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-AR.xpi
+# Source117-md5: fe887e5f6c17e89fc58457aea2501da6
+Source118: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-ES.xpi
+# Source118-md5: 9fcf36e43135eeb408ac65d30c9e3d8d
+Source119: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/et.xpi
+# Source119-md5: 1da5cde7deedf8084c3f9ccdbf2d5b9b
+Source120: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/eu.xpi
+# Source120-md5: d332af8201419c1dcb0dd60d08a381db
+Source121: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fa.xpi
+# Source121-md5: 3edaa2f6b360e5bcd136bebe529affdf
+Source122: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fi.xpi
+# Source122-md5: 760948021812048944627a7f121d666a
+Source123: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fr.xpi
+# Source123-md5: 8a8e69a2346268d3d54bced01921f310
+Source124: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fy-NL.xpi
+# Source124-md5: 8ecac69da968a22f9defe6756a694b80
+Source125: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ga-IE.xpi
+# Source125-md5: d2b0d8696934d3354f512d50ce4330f1
+Source126: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gd.xpi
+# Source126-md5: ff8565b2b709c87453dcf55be5728b74
+Source127: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gl.xpi
+# Source127-md5: 0773ca0d7655bfb54e44b14c5879ed1b
+Source128: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/he.xpi
+# Source128-md5: 543e5d348425ac7dd273a7d3a186e5f3
+Source129: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hr.xpi
+# Source129-md5: d15d1631d7b1e3ed40da0e155cb2f538
+Source130: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hsb.xpi
+# Source130-md5: d599ad11ab2e2ff2608bc822972a23c2
+Source131: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hu.xpi
+# Source131-md5: c64a441dfc6749256f6c134566e49488
+Source132: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hy-AM.xpi
+# Source132-md5: bb4d3a273794dcbbdf09ed70063cd6cb
+Source133: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/id.xpi
+# Source133-md5: c426887a19f9b606ea29ec735b84ac95
+Source134: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/is.xpi
+# Source134-md5: 1e07f73844e4e77d624937c21943a408
+Source135: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/it.xpi
+# Source135-md5: cdd5eadcecc4110bcf7d02611ed3453f
+Source136: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ja.xpi
+# Source136-md5: d74fdc910dbba049aa86bbc3b9180f55
+Source137: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ka.xpi
+# Source137-md5: 16a952b0790735e17e5007f2f6eb83e4
+Source138: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kab.xpi
+# Source138-md5: 1a2e4f0f43d6e6aaa5b28c785fbdd065
+Source139: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kk.xpi
+# Source139-md5: f8725255f98f00dae06ebfd5ccd04455
+Source140: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ko.xpi
+# Source140-md5: 3733ce7e868783866891f2d97443c808
+Source141: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/lt.xpi
+# Source141-md5: 8c09f49124cdb37b5b04d5fdae713edf
+Source142: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ms.xpi
+# Source142-md5: 0e688574ac95683108ea19c667ac3fb3
+Source143: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nb-NO.xpi
+# Source143-md5: f3d7bbb2d5785d385cc23487c2d258e7
+Source144: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nl.xpi
+# Source144-md5: 90da4706f529b230f294695230d776a0
+Source145: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nn-NO.xpi
+# Source145-md5: bd0ad183bdfe43ccfe6008f018e739dc
+Source146: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pa-IN.xpi
+# Source146-md5: 5f419651e313d34eda9ccc5e233ba4fa
+Source147: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pl.xpi
+# Source147-md5: 46b3d517d544803babc3263afe0d094d
+Source148: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-BR.xpi
+# Source148-md5: 3f43f0c2a2bcefeea6f12e9575b24a5c
+Source149: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-PT.xpi
+# Source149-md5: a81cf878e35912ab318578cce965d795
+Source150: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/rm.xpi
+# Source150-md5: 147b8e2869465b283524fef5b215d911
+Source151: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ro.xpi
+# Source151-md5: f9c9701d60d012cd6a280f81f40da268
+Source152: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ru.xpi
+# Source152-md5: 55d91e3074e73be428008761e32845e5
+Source153: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/si.xpi
+# Source153-md5: 6af8b579ce9bc14a446814b8c065bcb7
+Source154: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sk.xpi
+# Source154-md5: 77767c6d6484a3fcd650617e6fdf528e
+Source155: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sl.xpi
+# Source155-md5: 016e3ff8425aa754ed03d7a6a6ae869b
+Source156: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sq.xpi
+# Source156-md5: 898168825cbef667ebe661857e648e7d
+Source157: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sr.xpi
+# Source157-md5: a4d907feb6a7239022bd7413b4ca3cbc
+Source158: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sv-SE.xpi
+# Source158-md5: e9c9701e978a75ced64ee046297ed7e3
+Source159: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/th.xpi
+# Source159-md5: 7e815844cfa8344a1b19414bdc709aae
+Source160: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/tr.xpi
+# Source160-md5: 19ebbf312d77d460890ef32e1feb590a
+Source161: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uk.xpi
+# Source161-md5: 0fb44d70f9ec5be3e8e8155b1dadf7b5
+Source162: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uz.xpi
+# Source162-md5: f07e56a8280bbc1f7af233e6ce09f0b6
+Source163: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/vi.xpi
+# Source163-md5: 955b0ea6051a7150fc8046b8677f92d1
+Source164: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-CN.xpi
+# Source164-md5: 4c16b3f1891e3ef0994eb675af08f1ed
+Source165: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-TW.xpi
+# Source165-md5: f8a4a78f44e1eee384747a382f089885
+Patch0: prefs.patch
+Patch1: no-subshell.patch
+Patch2: enable-addons.patch
+Patch3: %{name}-system-virtualenv.patch
URL: http://www.mozilla.org/projects/thunderbird/
-BuildRequires: GConf2-devel >= 1.2.1
BuildRequires: alsa-lib-devel
-BuildRequires: automake
-BuildRequires: bzip2-devel
-BuildRequires: cairo-devel >= 1.10
+BuildRequires: autoconf2_13 >= 2.13
+%{?with_gold:BuildRequires: binutils >= 3:2.20.51.0.7}
+%{?with_system_cairo:BuildRequires: cairo-devel >= 1.10.2-5}
+BuildRequires: cargo
+%{?with_clang:BuildRequires: clang}
+BuildRequires: clang-devel
+BuildRequires: dbus-devel >= 0.60
BuildRequires: dbus-glib-devel >= 0.60
+BuildRequires: fontconfig-devel >= 2.7.0
BuildRequires: freetype-devel >= 1:2.1.8
-BuildRequires: glib2-devel >= 1:2.20
-BuildRequires: gstreamer0.10-devel
-BuildRequires: gstreamer0.10-plugins-base-devel
-%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.14}
-%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
-BuildRequires: hunspell-devel
-BuildRequires: libIDL-devel >= 0.8.0
+BuildRequires: glib2-devel >= 1:2.22
+BuildRequires: gtk+3-devel >= 3.14.0
+BuildRequires: libatomic-devel
+BuildRequires: libdrm-devel >= 2.4
BuildRequires: libevent-devel
-BuildRequires: libicu-devel >= 50.1
+BuildRequires: libffi-devel > 3.0.9
+%{?with_system_icu:BuildRequires: libicu-devel >= 67.1}
BuildRequires: libiw-devel
# requires libjpeg-turbo implementing at least libjpeg 6b API
BuildRequires: libjpeg-devel >= 6b
BuildRequires: libjpeg-turbo-devel
-BuildRequires: libpng-devel >= 1.4.1
-BuildRequires: libstdc++-devel
-BuildRequires: libvpx-devel >= 1.3.0
+BuildRequires: libpng-devel >= 2:1.6.35
+BuildRequires: libstdc++-devel >= 6:7
+BuildRequires: libwebp-devel >= 1.0.2
+%{?with_system_libvpx:BuildRequires: libvpx-devel >= 1.8.0}
+BuildRequires: llvm-devel
BuildRequires: mozldap-devel
+BuildRequires: nodejs >= 10.21.0
BuildRequires: nspr-devel >= 1:%{nspr_ver}
BuildRequires: nss-devel >= 1:%{nss_ver}
BuildRequires: pango-devel >= 1:1.22.0
BuildRequires: perl-base >= 1:5.6
+BuildRequires: pixman-devel >= 0.19.2
BuildRequires: pkgconfig
-BuildRequires: python >= 1:2.5
-BuildRequires: python-virtualenv
+BuildRequires: python3 >= 1:3.8.5-3
+BuildRequires: python3-virtualenv
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rust >= 1.41.0
+BuildRequires: rust-cbindgen >= 0.14.1
BuildRequires: sed >= 4.0
-BuildRequires: sqlite3-devel >= 3.8.4.2
-BuildRequires: startup-notification-devel >= 0.8
+BuildRequires: tar >= 1:1.22
BuildRequires: virtualenv
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXcomposite-devel
+BuildRequires: xorg-lib-libXdamage-devel
BuildRequires: xorg-lib-libXext-devel
-BuildRequires: xorg-lib-libXinerama-devel
+BuildRequires: xorg-lib-libXfixes-devel
BuildRequires: xorg-lib-libXt-devel
-BuildRequires: yasm
+BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.1
+BuildRequires: xz
+%ifarch %{ix86} %{x8664}
+BuildRequires: yasm >= 1.0.1
+%endif
BuildRequires: zip
-%if %{with xulrunner}
-BuildRequires: xulrunner-devel < 2:32
-BuildRequires: xulrunner-devel >= %{xulrunner_ver}
-%else
-Requires: glib2 >= 1:2.20
-%{!?with_gtk3:Requires: gtk+2 >= 2:2.14}
-%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
-Requires: libvpx >= 1.3.0
+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: fontconfig >= 2.7.0
+Requires: glib2 >= 1:2.22
+Requires: glibc >= 6:2.17
+Requires: gtk+3 >= 3.14.0
+Requires: libdrm >= 2.4
+%{?with_system_icu:Requires: libicu >= 67.1}
+Requires: libjpeg-turbo
+Requires: libpng >= 2:1.6.35
+Requires: libstdc++ >= 6:4.8.1
+Requires: libwebp >= 1.0.2
+%{?with_system_libvpx:Requires: libvpx >= 1.8.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}
-%endif
-Requires(post): mktemp >= 1.5-18
-%if %{with xulrunner}
-%requires_eq_to xulrunner xulrunner-devel
-%endif
-Requires: libjpeg-turbo
-Obsoletes: mozilla-thunderbird
-Obsoletes: mozilla-thunderbird-dictionary-en-US
+Requires: xorg-lib-libxkbcommon >= 0.4.1
+Obsoletes: icedove < 39
+Obsoletes: mozilla-thunderbird < 32
+Obsoletes: mozilla-thunderbird-dictionary-en-US < 2.0
+Obsoletes: thunderbird-addon-lightning < 78.0
Conflicts: thunderbird-lang-resources < %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
+%if %{with clang}
+%define filterout -fvar-tracking-assignments
+%endif
+
# firefox/thunderbird/seamonkey provide their own versions
%define _noautoprovfiles %{_libdir}/%{name}/components
-%if %{without xulrunner}
+
+%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
-%endif
+%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}
+%package lang-af
+Summary: Afrikaans resources for Thunderbird
+Summary(pl.UTF-8): Afrykanerskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-af
+Afrikaans resources for Thunderbird.
+
+%description lang-af -l pl.UTF-8
+Afrykanerskie pliki językowe dla Thunderbirda.
+
+%package lang-ar
+Summary: Arabic resources for Thunderbird
+Summary(pl.UTF-8): Arabskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ar < 39
+Obsoletes: mozilla-thunderbird-lang-ar < 32
+BuildArch: noarch
+
+%description lang-ar
+Arabic resources for Thunderbird.
+
+%description lang-ar -l pl.UTF-8
+Arabskie pliki językowe dla Thunderbirda.
+
+%package lang-ast
+Summary: Asturian resources for Thunderbird
+Summary(pl.UTF-8): Asturskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ast < 39
+Obsoletes: mozilla-thunderbird-lang-ast < 32
+BuildArch: noarch
+
+%description lang-ast
+Asturian resources for Thunderbird.
+
+%description lang-ast -l pl.UTF-8
+Asturskie pliki językowe dla Thunderbirda.
+
+%package lang-be
+Summary: Belarusian resources for Thunderbird
+Summary(pl.UTF-8): Białoruskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-be < 39
+Obsoletes: mozilla-thunderbird-lang-be < 32
+BuildArch: noarch
+
+%description lang-be
+Belarusian resources for Thunderbird.
+
+%description lang-be -l pl.UTF-8
+Białoruskie pliki językowe dla Thunderbirda.
+
+%package lang-bg
+Summary: Bulgarian resources for Thunderbird
+Summary(pl.UTF-8): Bułgarskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-bg < 39
+Obsoletes: mozilla-thunderbird-lang-bg < 32
+BuildArch: noarch
+
+%description lang-bg
+Bulgarian resources for Thunderbird.
+
+%description lang-bg -l pl.UTF-8
+Bułgarskie pliki językowe dla Thunderbirda.
+
+%package lang-bn
+Summary: Bengali (Bangladesh) resources for Thunderbird
+Summary(pl.UTF-8): Bengalskie pliki językowe dla Thunderbirda (wersja dla Bangladeszu)
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-bn < 39
+Obsoletes: mozilla-thunderbird-lang-bn < 32
+BuildArch: noarch
+
+%description lang-bn
+Bengali (Bangladesh) resources for Thunderbird.
+
+%description lang-bn -l pl.UTF-8
+Bengalskie pliki językowe dla Thunderbirda (wersja dla Bangladeszu).
+
+%package lang-br
+Summary: Breton resources for Thunderbird
+Summary(pl.UTF-8): Bretońskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-br < 39
+Obsoletes: mozilla-thunderbird-lang-br < 32
+BuildArch: noarch
+
+%description lang-br
+Breton resources for Thunderbird.
+
+%description lang-br -l pl.UTF-8
+Bretońskie pliki językowe dla Thunderbirda.
+
+%package lang-ca
+Summary: Catalan resources for Thunderbird
+Summary(pl.UTF-8): Katalońskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ca < 39
+Obsoletes: mozilla-thunderbird-lang-ca < 32
+BuildArch: noarch
+
+%description lang-ca
+Catalan resources for Thunderbird.
+
+%description lang-ca -l pl.UTF-8
+Katalońskie pliki językowe dla Thunderbirda.
+
+%package lang-cak
+Summary: Kaqchikel resources for Thunderbird
+Summary(pl.UTF-8): Pliki językowe kaqchikel dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-cak
+Kaqchikel resources for Thunderbird.
+
+%description lang-cak -l pl.UTF-8
+Pliki językowe kaqchikel 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
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-cs < 39
+Obsoletes: mozilla-thunderbird-lang-cs < 32
+BuildArch: noarch
+
+%description lang-cs
+Czech resources for Thunderbird.
+
+%description lang-cs -l pl.UTF-8
+Czeskie pliki językowe dla Thunderbirda.
+
+%package lang-da
+Summary: Danish resources for Thunderbird
+Summary(pl.UTF-8): Duńskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-da < 39
+Obsoletes: mozilla-thunderbird-lang-da < 32
+BuildArch: noarch
+
+%description lang-da
+Danish resources for Thunderbird.
+
+%description lang-da -l pl.UTF-8
+Duńskie pliki językowe dla Thunderbirda.
+
+%package lang-de
+Summary: German resources for Thunderbird
+Summary(pl.UTF-8): Niemieckie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-de < 39
+Obsoletes: mozilla-thunderbird-lang-de < 32
+BuildArch: noarch
+
+%description lang-de
+German resources for Thunderbird.
+
+%description lang-de -l pl.UTF-8
+Niemieckie pliki językowe dla Thunderbirda.
+
+%package lang-dsb
+Summary: Lower Sorbian resources for Thunderbird
+Summary(pl.UTF-8): Dolnołużyckie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-dsb
+Lower Sorbian resources for Thunderbird.
+
+%description lang-dsb -l pl.UTF-8
+Dolnołużyckie pliki językowe dla Thunderbirda.
+
+%package lang-el
+Summary: Greek resources for Thunderbird
+Summary(pl.UTF-8): Greckie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-el < 39
+Obsoletes: mozilla-thunderbird-lang-el < 32
+BuildArch: noarch
+
+%description lang-el
+Greek resources for Thunderbird.
+
+%description lang-el -l pl.UTF-8
+Greckie pliki językowe dla Thunderbirda.
+
+%package lang-en_CA
+Summary: English (Canadian) resources for Thunderbird
+Summary(pl.UTF-8): Angielskie (kanadyjskie) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-en_CA
+English (Canadian) resources for Thunderbird.
+
+%description lang-en_CA -l pl.UTF-8
+Angielskie (kanadyjskie) pliki językowe dla Thunderbirda.
+
+%package lang-en_GB
+Summary: English (British) resources for Thunderbird
+Summary(pl.UTF-8): Angielskie (brytyjskie) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-en_GB < 39
+Obsoletes: mozilla-thunderbird-lang-en_GB < 32
+BuildArch: noarch
+
+%description lang-en_GB
+English (British) resources for Thunderbird.
+
+%description lang-en_GB -l pl.UTF-8
+Angielskie (brytyjskie) pliki językowe dla Thunderbirda.
+
+%package lang-en_US
+Summary: English (American) resources for Thunderbird
+Summary(pl.UTF-8): Angielskie (amerykańskie) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-en_US < 39
+Obsoletes: mozilla-thunderbird-lang-en_US < 32
+BuildArch: noarch
+
+%description lang-en_US
+English (American) resources for Thunderbird.
+
+%description lang-en_US -l pl.UTF-8
+Angielskie (amerykańskie) pliki językowe dla Thunderbirda.
+
+%package lang-es_AR
+Summary: Spanish (Andorra) resources for Thunderbird
+Summary(pl.UTF-8): Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Andory)
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-es_AR < 39
+Obsoletes: mozilla-thunderbird-lang-es_AR < 32
+BuildArch: noarch
+
+%description lang-es_AR
+Spanish (Andorra) resources for Thunderbird.
+
+%description lang-es_AR -l pl.UTF-8
+Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Andory).
+
+%package lang-es
+Summary: Spanish (Spain) resources for Thunderbird
+Summary(pl.UTF-8): Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Hiszpanii)
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-es < 39
+Obsoletes: mozilla-thunderbird-lang-es < 32
+BuildArch: noarch
+
+%description lang-es
+Spanish (Spain) resources for Thunderbird.
+
+%description lang-es -l pl.UTF-8
+Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Hiszpanii).
+
+%package lang-et
+Summary: Estonian resources for Thunderbird
+Summary(pl.UTF-8): Estońskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-et < 39
+Obsoletes: mozilla-thunderbird-lang-et < 32
+BuildArch: noarch
+
+%description lang-et
+Estonian resources for Thunderbird.
+
+%description lang-et -l pl.UTF-8
+Estońskie pliki językowe dla Thunderbirda.
+
+%package lang-eu
+Summary: Basque resources for Thunderbird
+Summary(pl.UTF-8): Baskijskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-eu < 39
+Obsoletes: mozilla-thunderbird-lang-eu < 32
+BuildArch: noarch
+
+%description lang-eu
+Basque resources for Thunderbird.
+
+%description lang-eu -l pl.UTF-8
+Baskijskie pliki językowe dla Thunderbirda.
+
+%package lang-fa
+Summary: Persian resources for Thunderbird
+Summary(pl.UTF-8): Perskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-fa
+Persian resources for Thunderbird.
+
+%description lang-fa -l pl.UTF-8
+Perskie pliki językowe dla Thunderbirda.
+
+%package lang-fi
+Summary: Finnish resources for Thunderbird
+Summary(pl.UTF-8): Fińskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-fi < 39
+Obsoletes: mozilla-thunderbird-lang-fi < 32
+BuildArch: noarch
+
+%description lang-fi
+Finnish resources for Thunderbird.
+
+%description lang-fi -l pl.UTF-8
+Fińskie pliki językowe dla Thunderbirda.
+
+%package lang-fr
+Summary: French resources for Thunderbird
+Summary(pl.UTF-8): Francuskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-fr < 39
+Obsoletes: mozilla-thunderbird-lang-fr < 32
+BuildArch: noarch
+
+%description lang-fr
+French resources for Thunderbird.
+
+%description lang-fr -l pl.UTF-8
+Francuskie pliki językowe dla Thunderbirda.
+
+%package lang-fy
+Summary: Frisian resources for Thunderbird
+Summary(pl.UTF-8): Fryzyjskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-fy < 39
+Obsoletes: mozilla-thunderbird-lang-fy < 32
+BuildArch: noarch
+
+%description lang-fy
+Frisian resources for Thunderbird.
+
+%description lang-fy -l pl.UTF-8
+Fryzyjskie pliki językowe dla Thunderbirda.
+
+%package lang-ga
+Summary: Irish resources for Thunderbird
+Summary(pl.UTF-8): Irlandzkie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ga < 39
+Obsoletes: mozilla-thunderbird-lang-ga < 32
+BuildArch: noarch
+
+%description lang-ga
+Irish resources for Thunderbird.
+
+%description lang-ga -l pl.UTF-8
+Irlandzkie pliki językowe dla Thunderbirda.
+
+%package lang-gd
+Summary: Gaelic resources for Thunderbird
+Summary(pl.UTF-8): Szkockie (gaelickie) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-gd < 39
+Obsoletes: mozilla-thunderbird-lang-gd < 32
+BuildArch: noarch
+
+%description lang-gd
+Gaelic resources for Thunderbird.
+
+%description lang-gd -l pl.UTF-8
+Szkockie (gaelickie) pliki językowe dla Thunderbirda.
+
+%package lang-gl
+Summary: Galician resources for Thunderbird
+Summary(pl.UTF-8): Galicyjskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-gl < 39
+Obsoletes: mozilla-thunderbird-lang-gl < 32
+BuildArch: noarch
+
+%description lang-gl
+Galician resources for Thunderbird.
+
+%description lang-gl -l pl.UTF-8
+Galicyjskie pliki językowe dla Thunderbirda.
+
+%package lang-he
+Summary: Hebrew resources for Thunderbird
+Summary(pl.UTF-8): Hebrajskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-he < 39
+Obsoletes: mozilla-thunderbird-lang-he < 32
+BuildArch: noarch
+
+%description lang-he
+Hebrew resources for Thunderbird.
+
+%description lang-he -l pl.UTF-8
+Hebrajskie pliki językowe dla Thunderbirda.
+
+%package lang-hr
+Summary: Croatian resources for Thunderbird
+Summary(pl.UTF-8): Chorwackie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-hr < 39
+Obsoletes: mozilla-thunderbird-lang-hr < 32
+BuildArch: noarch
+
+%description lang-hr
+Croatian resources for Thunderbird.
+
+%description lang-hr -l pl.UTF-8
+Chorwackie pliki językowe dla Thunderbirda.
+
+%package lang-hsb
+Summary: Upper Sorbian resources for Thunderbird
+Summary(pl.UTF-8): Górnołużyckie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-hsb
+Upper Sorbian resources for Thunderbird.
+
+%description lang-hsb -l pl.UTF-8
+Górnołużyckie pliki językowe dla Thunderbirda.
+
+%package lang-hu
+Summary: Hungarian resources for Thunderbird
+Summary(pl.UTF-8): Węgierskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-hu < 39
+Obsoletes: mozilla-thunderbird-lang-hu < 32
+BuildArch: noarch
+
+%description lang-hu
+Hungarian resources for Thunderbird.
+
+%description lang-hu -l pl.UTF-8
+Węgierskie pliki językowe dla Thunderbirda.
+
+%package lang-hy
+Summary: Armenian resources for Thunderbird
+Summary(pl.UTF-8): Ormiańskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-hy < 39
+Obsoletes: mozilla-thunderbird-lang-hy < 32
+BuildArch: noarch
+
+%description lang-hy
+Armenian resources for Thunderbird.
+
+%description lang-hy -l pl.UTF-8
+Ormiańskie pliki językowe dla Thunderbirda.
+
+%package lang-id
+Summary: Indonesian resources for Thunderbird
+Summary(pl.UTF-8): Indonezyjskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-id < 39
+Obsoletes: mozilla-thunderbird-lang-id < 32
+BuildArch: noarch
+
+%description lang-id
+Indonesian resources for Thunderbird.
+
+%description lang-id -l pl.UTF-8
+Indonezyjskie pliki językowe dla Thunderbirda.
+
+%package lang-is
+Summary: Icelandic resources for Thunderbird
+Summary(pl.UTF-8): Islandzkie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-is < 39
+Obsoletes: mozilla-thunderbird-lang-is < 32
+BuildArch: noarch
+
+%description lang-is
+Icelandic resources for Thunderbird.
+
+%description lang-is -l pl.UTF-8
+Islandzkie pliki językowe dla Thunderbirda.
+
+%package lang-it
+Summary: Italian resources for Thunderbird
+Summary(pl.UTF-8): Włoskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-it < 39
+Obsoletes: mozilla-thunderbird-lang-it < 32
+BuildArch: noarch
+
+%description lang-it
+Italian resources for Thunderbird.
+
+%description lang-it -l pl.UTF-8
+Włoskie pliki językowe dla Thunderbirda.
+
+%package lang-ja
+Summary: Japanese resources for Thunderbird
+Summary(pl.UTF-8): Japońskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ja < 39
+Obsoletes: mozilla-thunderbird-lang-ja < 32
+BuildArch: noarch
+
+%description lang-ja
+Japanese resources for Thunderbird.
+
+%description lang-ja -l pl.UTF-8
+Japońskie pliki językowe dla Thunderbirda.
+
+%package lang-ka
+Summary: Georgian resources for Thunderbird
+Summary(pl.UTF-8): Gruzińskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-ka
+Georgian resources for Thunderbird.
+
+%description lang-ka -l pl.UTF-8
+Gruzińskie pliki językowe dla Thunderbirda.
+
+%package lang-kab
+Summary: Kabyle resources for Thunderbird
+Summary(pl.UTF-8): Kabylskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-kab
+Kabyle resources for Thunderbird.
+
+%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
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ko < 39
+Obsoletes: mozilla-thunderbird-lang-ko < 32
+BuildArch: noarch
+
+%description lang-ko
+Korean resources for Thunderbird.
+
+%description lang-ko -l pl.UTF-8
+Koreańskie pliki językowe dla Thunderbirda.
+
+%package lang-lt
+Summary: Lithuanian resources for Thunderbird
+Summary(pl.UTF-8): Litewskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-lt < 39
+Obsoletes: mozilla-thunderbird-lang-lt < 32
+BuildArch: noarch
+
+%description lang-lt
+Lithuanian resources for Thunderbird.
+
+%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
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-nb < 39
+Obsoletes: mozilla-thunderbird-lang-nb < 32
+BuildArch: noarch
+
+%description lang-nb
+Norwegian Bokmaal resources for Thunderbird.
+
+%description lang-nb -l pl.UTF-8
+Norweskie (bokmaal) pliki językowe dla Thunderbirda.
+
+%package lang-nl
+Summary: Dutch resources for Thunderbird
+Summary(pl.UTF-8): Holenderskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-nl < 39
+Obsoletes: mozilla-thunderbird-lang-nl < 32
+BuildArch: noarch
+
+%description lang-nl
+Dutch resources for Thunderbird.
+
+%description lang-nl -l pl.UTF-8
+Holenderskie pliki językowe dla Thunderbirda.
+
+%package lang-nn
+Summary: Norwegian Nynorsk resources for Thunderbird
+Summary(pl.UTF-8): Norweskie (nynorsk) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-nn < 39
+Obsoletes: mozilla-thunderbird-lang-nn < 32
+BuildArch: noarch
+
+%description lang-nn
+Norwegian Nynorsk resources for Thunderbird.
+
+%description lang-nn -l pl.UTF-8
+Norweskie (nynorsk) pliki językowe dla Thunderbirda.
+
+%package lang-pa
+Summary: Panjabi resources for Thunderbird
+Summary(pl.UTF-8): Pendżabskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-pa < 39
+Obsoletes: mozilla-thunderbird-lang-pa < 32
+BuildArch: noarch
+
+%description lang-pa
+Panjabi resources for Thunderbird.
+
+%description lang-pa -l pl.UTF-8
+Pendżabskie pliki językowe dla Thunderbirda.
+
+%package lang-pl
+Summary: Polish resources for Thunderbird
+Summary(pl.UTF-8): Polskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-pl < 39
+Obsoletes: mozilla-thunderbird-lang-pl < 32
+BuildArch: noarch
+
+%description lang-pl
+Polish resources for Thunderbird.
+
+%description lang-pl -l pl.UTF-8
+Polskie pliki językowe dla Thunderbirda.
+
+%package lang-pt_BR
+Summary: Portuguese (Brazil) resources for Thunderbird
+Summary(pl.UTF-8): Portugalskie (brazylijskie) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-pt_BR < 39
+Obsoletes: mozilla-thunderbird-lang-pt_BR < 32
+BuildArch: noarch
+
+%description lang-pt_BR
+Portuguese (Brazil) resources for Thunderbird.
+
+%description lang-pt_BR -l pl.UTF-8
+Portugalskie (brazylijskie) pliki językowe dla Thunderbirda.
+
+%package lang-pt
+Summary: Portuguese (Portugal) resources for Thunderbird
+Summary(pl.UTF-8): Portugalskie pliki językowe dla Thunderbirda (wersja dla Portugalii)
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-pt < 39
+Obsoletes: mozilla-thunderbird-lang-pt < 32
+BuildArch: noarch
+
+%description lang-pt
+Portuguese (Portugal) resources for Thunderbird.
+
+%description lang-pt -l pl.UTF-8
+Portugalskie pliki językowe dla Thunderbirda (wersja dla Portugalii).
+
+%package lang-rm
+Summary: Romansh resources for Thunderbird
+Summary(pl.UTF-8): Retoromańskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-rm < 39
+Obsoletes: mozilla-thunderbird-lang-rm < 32
+BuildArch: noarch
+
+%description lang-rm
+Romansh resources for Thunderbird.
+
+%description lang-rm -l pl.UTF-8
+Retoromańskie pliki językowe dla Thunderbirda.
+
+%package lang-ro
+Summary: Romanian resources for Thunderbird
+Summary(pl.UTF-8): Rumuńskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ro < 39
+Obsoletes: mozilla-thunderbird-lang-ro < 32
+BuildArch: noarch
+
+%description lang-ro
+Romanian resources for Thunderbird.
+
+%description lang-ro -l pl.UTF-8
+Rumuńskie pliki językowe dla Thunderbirda.
+
+%package lang-ru
+Summary: Russian resources for Thunderbird
+Summary(pl.UTF-8): Rosyjskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ru < 39
+Obsoletes: mozilla-thunderbird-lang-ru < 32
+BuildArch: noarch
+
+%description lang-ru
+Russian resources for Thunderbird.
+
+%description lang-ru -l pl.UTF-8
+Rosyjskie pliki językowe dla Thunderbirda.
+
+%package lang-si
+Summary: Sinhala resources for Thunderbird
+Summary(pl.UTF-8): Syngaleskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-si < 39
+Obsoletes: mozilla-thunderbird-lang-si < 32
+BuildArch: noarch
+
+%description lang-si
+Sinhala resources for Thunderbird.
+
+%description lang-si -l pl.UTF-8
+Syngaleskie pliki językowe dla Thunderbirda.
+
+%package lang-sk
+Summary: Slovak resources for Thunderbird
+Summary(pl.UTF-8): Słowackie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-sk < 39
+Obsoletes: mozilla-thunderbird-lang-sk < 32
+BuildArch: noarch
+
+%description lang-sk
+Slovak resources for Thunderbird.
+
+%description lang-sk -l pl.UTF-8
+Słowackie pliki językowe dla Thunderbirda.
+
+%package lang-sl
+Summary: Slovene resources for Thunderbird
+Summary(pl.UTF-8): Słoweńskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-sl < 39
+Obsoletes: mozilla-thunderbird-lang-sl < 32
+BuildArch: noarch
+
+%description lang-sl
+Slovene resources for Thunderbird.
+
+%description lang-sl -l pl.UTF-8
+Słoweńskie pliki językowe dla Thunderbirda.
+
+%package lang-sq
+Summary: Albanian resources for Thunderbird
+Summary(pl.UTF-8): Albańskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-sq < 39
+Obsoletes: mozilla-thunderbird-lang-sq < 32
+BuildArch: noarch
+
+%description lang-sq
+Albanian resources for Thunderbird.
+
+%description lang-sq -l pl.UTF-8
+Albańskie pliki językowe dla Thunderbirda.
+
+%package lang-sr
+Summary: Serbian resources for Thunderbird
+Summary(pl.UTF-8): Serbskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-sr < 39
+Obsoletes: mozilla-thunderbird-lang-sr < 32
+BuildArch: noarch
+
+%description lang-sr
+Serbian resources for Thunderbird.
+
+%description lang-sr -l pl.UTF-8
+Serbskie pliki językowe dla Thunderbirda.
+
+%package lang-sv
+Summary: Swedish resources for Thunderbird
+Summary(pl.UTF-8): Szwedzkie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-sv < 39
+Obsoletes: mozilla-thunderbird-lang-sv < 32
+BuildArch: noarch
+
+%description lang-sv
+Swedish resources for Thunderbird.
+
+%description lang-sv -l pl.UTF-8
+Szwedzkie pliki językowe dla Thunderbirda.
+
+%package lang-ta_LK
+Summary: Tamil (Sri Lanka) resources for Thunderbird
+Summary(pl.UTF-8): Tamilskie pliki językowe dla Thunderbirda (wersja dla Sri Lanki)
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-ta_LK < 39
+Obsoletes: mozilla-thunderbird-lang-ta_LK < 32
+BuildArch: noarch
+
+%description lang-ta_LK
+Tamil (Sri Lanka) resources for Thunderbird.
+
+%description lang-ta_LK -l pl.UTF-8
+Tamilskie pliki językowe dla Thunderbirda (wersja dla Sri Lanki).
+
+%package lang-th
+Summary: Thai resources for Thunderbird
+Summary(pl.UTF-8): Tajskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-th
+Thai resources for Thunderbird.
-%description addon-lightning
-Lightning is an calendar extension to Thunderbird email client.
+%description lang-th -l pl.UTF-8
+Tajskie pliki językowe dla Thunderbirda.
-%description addon-lightning -l pl.UTF-8
-Lightning to rozszerzenie do klienta poczty Thunderbird dodające
-funkcjonalność kalendarza.
+%package lang-tr
+Summary: Turkish resources for Thunderbird
+Summary(pl.UTF-8): Tureckie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-tr < 39
+Obsoletes: mozilla-thunderbird-lang-tr < 32
+BuildArch: noarch
+
+%description lang-tr
+Turkish resources for Thunderbird.
+
+%description lang-tr -l pl.UTF-8
+Tureckie pliki językowe dla Thunderbirda.
+
+%package lang-uk
+Summary: Ukrainian resources for Thunderbird
+Summary(pl.UTF-8): Ukraińskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-uk < 39
+Obsoletes: mozilla-thunderbird-lang-uk < 32
+BuildArch: noarch
+
+%description lang-uk
+Ukrainian resources for Thunderbird.
+
+%description lang-uk -l pl.UTF-8
+Ukraińskie pliki językowe dla Thunderbirda.
+
+%package lang-uz
+Summary: Uzbek resources for Thunderbird
+Summary(pl.UTF-8): Uzbeckie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+BuildArch: noarch
+
+%description lang-uz
+Uzbek resources for Thunderbird.
+
+%description lang-uz -l pl.UTF-8
+zbeckiee pliki językowe dla Thunderbirda.
+
+%package lang-vi
+Summary: Vietnamese resources for Thunderbird
+Summary(pl.UTF-8): Wietnamskie pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-vi < 39
+Obsoletes: mozilla-thunderbird-lang-vi < 32
+BuildArch: noarch
+
+%description lang-vi
+Vietnamese resources for Thunderbird.
+
+%description lang-vi -l pl.UTF-8
+Wietnamskie pliki językowe dla Thunderbirda.
+
+%package lang-zh_CN
+Summary: Simplified Chinese resources for Thunderbird
+Summary(pl.UTF-8): Chińskie (uproszczone) pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-zh_CN < 39
+Obsoletes: mozilla-thunderbird-lang-zh_CN < 32
+BuildArch: noarch
+
+%description lang-zh_CN
+Simplified Chinese resources for Thunderbird.
+
+%description lang-zh_CN -l pl.UTF-8
+Chińskie (uproszczone) pliki językowe dla Thunderbirda.
+
+%package lang-zh_TW
+Summary: Traditional Chinese resources for Thunderbird
+Summary(pl.UTF-8): Chińskie tradycyjne pliki językowe dla Thunderbirda
+Group: I18n
+Requires: thunderbird >= %{version}
+Provides: thunderbird-lang-resources = %{version}
+Obsoletes: icedove-lang-zh_TW < 39
+Obsoletes: mozilla-thunderbird-lang-zh_TW < 32
+BuildArch: noarch
+
+%description lang-zh_TW
+Traditional Chinese resources for Thunderbird.
+
+%description lang-zh_TW -l pl.UTF-8
+Chińskie tradycyjne pliki językowe dla Thunderbirda.
%prep
-%setup -q
-%patch2 -p1
-%patch6 -p1
-%patch8 -p1
-%patch9 -p1
+unpack() {
+ local args="$1" file="$2"
+ cp -p $file .
+}
+%define __unzip unpack
+%setup -q %(seq -f '-a %g' 100 165 | xargs)
+%patch0 -p1
+%patch1 -p1
+%patch2 -p0
+%patch3 -p2
%build
-cat << EOF > .mozconfig
+cp -p %{_datadir}/automake/config.* build/autoconf
+
+cat << 'EOF' > .mozconfig
+. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=%{objdir}
-export CFLAGS="%{rpmcflags}"
-export CXXFLAGS="%{rpmcflags}"
+%if %{with clang}
+export CC="clang"
+export CXX="clang++"
+%else
+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
%endif
# Options for 'configure' (same as command-line options).
+ac_add_options --host=%{_target_platform}
ac_add_options --prefix=%{_prefix}
-ac_add_options --exec-prefix=%{_exec_prefix}
-ac_add_options --bindir=%{_bindir}
-ac_add_options --sbindir=%{_sbindir}
-ac_add_options --sysconfdir=%{_sysconfdir}
-ac_add_options --datadir=%{_datadir}
-ac_add_options --includedir=%{_includedir}
-ac_add_options --libdir=%{_libdir}
-ac_add_options --libexecdir=%{_libexecdir}
-ac_add_options --localstatedir=%{_localstatedir}
-ac_add_options --sharedstatedir=%{_sharedstatedir}
-ac_add_options --mandir=%{_mandir}
-ac_add_options --infodir=%{_infodir}
%if %{?debug:1}0
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --enable-crash-on-assert
%else
ac_add_options --disable-debug
-ac_add_options --disable-debug-modules
-ac_add_options --disable-logging
-ac_add_options --enable-optimize="%{rpmcflags} -Os"
%endif
ac_add_options --disable-strip
-ac_add_options --disable-strip-libs
+ac_add_options --disable-install-strip
%if %{with tests}
ac_add_options --enable-tests
%else
%else
ac_add_options --disable-crashreporter
%endif
-ac_add_options --disable-elf-dynstr-gc
+%ifarch %{ix86} %{x8664} %{arm}
ac_add_options --disable-elf-hack
-ac_add_options --disable-gnomeui
-ac_add_options --disable-gnomevfs
-ac_add_options --disable-installer
-ac_add_options --disable-javaxpcom
-ac_add_options --disable-profilesharing
-ac_add_options --disable-updater
-ac_add_options --disable-xterm-updates
-ac_add_options --enable-application=mail
-ac_add_options --enable-crypto
-ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
-ac_add_options --enable-gio
-%if %{with ldap}
-ac_add_options --enable-ldap
-ac_add_options --with-system-ldap
-%else
-ac_add_options --disable-ldap
%endif
-ac_add_options --enable-libxul
-ac_add_options --enable-pango
-ac_add_options --enable-postscript
+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
+%{?with_official:ac_add_options --enable-official-branding}
+%{?with_gold:ac_add_options --enable-linker=gold}
%{?with_shared_js:ac_add_options --enable-shared-js}
-ac_add_options --enable-single-profile
-ac_add_options --enable-startup-notification
-ac_add_options --enable-system-cairo
-ac_add_options --enable-system-hunspell
-ac_add_options --enable-system-sqlite
-ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
+%{?with_system_cairo:ac_add_options --enable-system-cairo}
+ac_add_options --enable-system-pixman
ac_add_options --with-distribution-id=org.pld-linux
-%if %{with xulrunner}
-ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
-ac_add_options --with-system-libxul
-%endif
-ac_add_options --with-pthreads
-ac_add_options --with-system-bz2
ac_add_options --with-system-ffi
-ac_add_options --with-system-icu
+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-webp
ac_add_options --with-system-zlib
EOF
-mkdir -p %{objdir}/config
-ln -sf %{topdir}/mozilla/config/*.mk %{objdir}/config
+%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
-%{__make} -j1 -f client.mk build \
- STRIP="/bin/true" \
- MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
- installdir=%{_libdir}/%{name} \
- XLIBS="-lX11 -lXt" \
- CC="%{__cc}" \
- CXX="%{__cxx}"
+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},%{_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 -a dist/thunderbird/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
-%if %{with xulrunner}
-# needed to find mozilla runtime
-ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
-%endif
-
# Enable crash reporter for Thunderbird application
%if %{with crashreporter}
%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
%endif
-# move arch independant ones to datadir
-mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
-ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
-
-# dir for arch independant extensions besides arch dependant extensions
-# see mozilla/xpcom/build/nsXULAppAPI.h
-# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
-install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
+%{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -p dist/thunderbird/chrome/icons/default/default48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
-%if %{without xulrunner}
-%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
-ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
-%endif
-
-#%{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \
-# -e "s|%MOZ_APP_DISPLAYNAME%|Thunderbird|" \
-# %{topdir}/mozilla/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/thunderbird
-
-%{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/thunderbird
-ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird
-ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird
-
-cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
-
-# files created by regxpcom -register in post
-touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
-touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
-cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
-#!/bin/sh
-umask 022
-# 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.
-t=$(mktemp -d)
-%{__rm} -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
-TMPDIR= TMP= HOME=$t %{_libdir}/%{name}/thunderbird -register
-rm -rf $t
-EOF
-chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}/register
+# 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
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
+ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
+ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
+ln -s ../../share/%{name}/extensions $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
+ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
# mozldap
%{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so
+# remove unecessary stuff
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
+
+cd ..
+for a in *.xpi; do
+ basename=$(basename $a .xpi)
+ cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@thunderbird.mozilla.org.xpi
+done
+
%clean
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 searchplugins; do
+for d in chrome defaults icons isp modules res; do
if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
install -d %{_datadir}/%{name}
mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d
exit 0
%post
-%{_libdir}/%{name}/register || :
+%update_desktop_database_post
+
+%postun
+%update_desktop_database_postun
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/thunderbird
-%attr(755,root,root) %{_bindir}/mozilla-thunderbird
-%attr(755,root,root) %{_bindir}/thunderbird
+%attr(755,root,root) %{_bindir}/%{name}
%dir %{_libdir}/%{name}
-%{_libdir}/%{name}/application.ini
-%{_libdir}/%{name}/blocklist.xml
-%{_libdir}/%{name}/chrome.manifest
-%dir %{_libdir}/%{name}/components
-%{_libdir}/%{name}/components/components.manifest
-%attr(755,root,root) %{_libdir}/%{name}/*.sh
+%dir %{_libdir}/%{name}/plugins
+
+%dir %{_libdir}/%{name}/gtk2
+%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
+%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}/plugin-container
+%attr(755,root,root) %{_libdir}/%{name}/precomplete
%attr(755,root,root) %{_libdir}/%{name}/thunderbird
-%attr(755,root,root) %{_libdir}/%{name}/register
-%{_libdir}/%{name}/omni.ja
-%if %{without xulrunner}
+
+%{_libdir}/%{name}/application.ini
%{_libdir}/%{name}/dependentlibs.list
+%{_libdir}/%{name}/omni.ja
%{_libdir}/%{name}/platform.ini
-%attr(755,root,root) %{_libdir}/%{name}/components/*.so
-%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
-%{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so}
-%attr(755,root,root) %{_libdir}/%{name}/libxul.so
-%attr(755,root,root) %{_libdir}/%{name}/plugin-container
+%{!?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/TwemojiMozilla.ttf
+
+%if %{with crashreporter}
+%attr(755,root,root) %{_libdir}/%{name}/crashreporter
+%{_libdir}/%{name}/crashreporter.ini
+%{_libdir}/%{name}/Throbber-small.gif
%endif
# symlinks
%{_libdir}/%{name}/chrome
%{_libdir}/%{name}/defaults
+%{_libdir}/%{name}/extensions
%{_libdir}/%{name}/isp
-%{_libdir}/%{name}/searchplugins
-%if %{with xulrunner}
-%{_libdir}/%{name}/xulrunner
-%else
-%{_libdir}/%{name}/dictionaries
-%endif
%{_pixmapsdir}/thunderbird.png
%{_desktopdir}/thunderbird.desktop
%dir %{_datadir}/%{name}
-%dir %{_libdir}/%{name}/distribution
-%dir %{_libdir}/%{name}/distribution/extensions
-%{_datadir}/%{name}/extensions
-%{_datadir}/%{name}/searchplugins
+%{_datadir}/%{name}/chrome
+%{_datadir}/%{name}/defaults
+%dir %{_datadir}/%{name}/extensions
+%{_datadir}/%{name}/isp
-%if %{with crashreporter}
-%attr(755,root,root) %{_libdir}/%{name}/crashreporter
-%{_libdir}/%{name}/crashreporter.ini
-%{_libdir}/%{name}/Throbber-small.gif
-%endif
+%files lang-af
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-af@thunderbird.mozilla.org.xpi
+
+%files lang-ar
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ar@thunderbird.mozilla.org.xpi
+
+%files lang-ast
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ast@thunderbird.mozilla.org.xpi
-%dir %{_libdir}/%{name}/extensions
-%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
+%files lang-be
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-be@thunderbird.mozilla.org.xpi
-# files created by regxpcom -register
-%ghost %{_libdir}/%{name}/components/compreg.dat
-%ghost %{_libdir}/%{name}/components/xpti.dat
+%files lang-bg
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-bg@thunderbird.mozilla.org.xpi
-%{_iconsdir}/hicolor/*/apps/thunderbird.*
+%files lang-br
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-br@thunderbird.mozilla.org.xpi
-%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
-%attr(755,root,root) %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
-%{_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
-%endif
+%files lang-ca
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ca@thunderbird.mozilla.org.xpi
+
+%files lang-cak
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-cak@thunderbird.mozilla.org.xpi
+
+%files lang-cs
+%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
+
+%files lang-de
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-de@thunderbird.mozilla.org.xpi
+
+%files lang-dsb
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-dsb@thunderbird.mozilla.org.xpi
+
+%files lang-el
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-el@thunderbird.mozilla.org.xpi
+
+%files lang-en_CA
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-en-CA@thunderbird.mozilla.org.xpi
+
+%files lang-en_GB
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-en-GB@thunderbird.mozilla.org.xpi
+
+%files lang-en_US
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-en-US@thunderbird.mozilla.org.xpi
+
+%files lang-es_AR
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-es-AR@thunderbird.mozilla.org.xpi
+
+%files lang-es
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-es-ES@thunderbird.mozilla.org.xpi
+
+%files lang-et
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-et@thunderbird.mozilla.org.xpi
+
+%files lang-eu
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-eu@thunderbird.mozilla.org.xpi
+
+%files lang-fa
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-fa@thunderbird.mozilla.org.xpi
+
+%files lang-fi
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-fi@thunderbird.mozilla.org.xpi
+
+%files lang-fr
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-fr@thunderbird.mozilla.org.xpi
+
+%files lang-fy
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-fy-NL@thunderbird.mozilla.org.xpi
+
+%files lang-ga
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ga-IE@thunderbird.mozilla.org.xpi
+
+%files lang-gd
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-gd@thunderbird.mozilla.org.xpi
+
+%files lang-gl
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-gl@thunderbird.mozilla.org.xpi
+
+%files lang-he
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-he@thunderbird.mozilla.org.xpi
+
+%files lang-hr
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-hr@thunderbird.mozilla.org.xpi
+
+%files lang-hsb
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-hsb@thunderbird.mozilla.org.xpi
+
+%files lang-hu
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-hu@thunderbird.mozilla.org.xpi
+
+%files lang-hy
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-hy-AM@thunderbird.mozilla.org.xpi
+
+%files lang-id
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-id@thunderbird.mozilla.org.xpi
+
+%files lang-is
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-is@thunderbird.mozilla.org.xpi
+
+%files lang-it
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-it@thunderbird.mozilla.org.xpi
+
+%files lang-ja
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ja@thunderbird.mozilla.org.xpi
+
+%files lang-ka
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ka@thunderbird.mozilla.org.xpi
+
+%files lang-kab
+%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
+
+%files lang-lt
+%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
+
+%files lang-nl
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-nl@thunderbird.mozilla.org.xpi
+
+%files lang-nn
+%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
+
+%files lang-pt_BR
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-pt-BR@thunderbird.mozilla.org.xpi
+
+%files lang-pt
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-pt-PT@thunderbird.mozilla.org.xpi
+
+%files lang-rm
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-rm@thunderbird.mozilla.org.xpi
+
+%files lang-ro
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ro@thunderbird.mozilla.org.xpi
+
+%files lang-ru
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-ru@thunderbird.mozilla.org.xpi
+
+%files lang-si
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-si@thunderbird.mozilla.org.xpi
+
+%files lang-sk
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-sk@thunderbird.mozilla.org.xpi
+
+%files lang-sl
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-sl@thunderbird.mozilla.org.xpi
+
+%files lang-sq
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-sq@thunderbird.mozilla.org.xpi
+
+%files lang-sr
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-sr@thunderbird.mozilla.org.xpi
+
+%files lang-sv
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-sv-SE@thunderbird.mozilla.org.xpi
+
+%files lang-th
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-th@thunderbird.mozilla.org.xpi
+
+%files lang-tr
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-tr@thunderbird.mozilla.org.xpi
+
+%files lang-uk
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-uk@thunderbird.mozilla.org.xpi
+
+%files lang-uz
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-uz@thunderbird.mozilla.org.xpi
+
+%files lang-vi
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-vi@thunderbird.mozilla.org.xpi
+
+%files lang-zh_CN
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-zh-CN@thunderbird.mozilla.org.xpi
+
+%files lang-zh_TW
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-zh-TW@thunderbird.mozilla.org.xpi