]> git.pld-linux.org Git - packages/thunderbird.git/blobdiff - thunderbird.spec
up to 91.0.3
[packages/thunderbird.git] / thunderbird.spec
index 8bd79e32230d5acd8958f44fa4130ae6853fb01f..ce231b2c1dccabc63a6635d2720def9bd101c469 100644 (file)
 # TODO:
 # - build with system mozldap
-# - fix startup crash "TypeError: a is null"
+# - do something with *.rdf file, there is file conflict with other lang packages
 #
 # Conditional builds
 %bcond_with    tests           # enable tests (whatever they check)
-%bcond_without gtk3            # GTK+ 3.x instead of 2.x
-%bcond_without ldap            # disable e-mail address lookups in LDAP directories
-%bcond_without lightning       # disable Sunbird/Lightning calendar
 %bcond_without official        # official Thunderbird branding
 %bcond_with    crashreporter   # report crashes to crash-stats.mozilla.com
+%bcond_with    gold            # use gold instead of default linker
 # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
 %bcond_with    shared_js       # shared libmozjs library [broken]
-%bcond_with    system_icu      # build with system ICU (disabled due to crashes with system icu 58.2)
-%bcond_with    clang           # build using Clang/LLVM
+%bcond_without system_icu      # build without system ICU
+%bcond_with    system_cairo    # build with system cairo (not supported in 60.0)
+%bcond_without system_libvpx   # build with system libvpx
+%bcond_without clang           # build using Clang/LLVM
+%bcond_with    lowmem          # lower memory requirements
+
+# 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                _enable_debug_packages  0
 
 %if 0%{?_enable_debug_packages} != 1
 %undefine      crashreporter
 %endif
 
-%define                nspr_ver        4.13.1
-%define                nss_ver         3.28.5
+%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.32
+%define                nss_ver         3.68
 
 Summary:       Thunderbird - email client
 Summary(pl.UTF-8):     Thunderbird - klient poczty
 Name:          thunderbird
-Version:       52.3.0
+Version:       91.0.3
 Release:       1
 License:       MPL v2.0
 Group:         X11/Applications/Mail
-Source0:       http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
-# Source0-md5: 5841ee1a70423b9385110c82b78bef47
+Source0:       https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
+# Source0-md5: f08dd55b8b1b0baf2c38a88aa3734cf8
 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:       8c26155e464ca88ea2c0c74956e0d5ee
+Source101:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ar.xpi
+# Source101-md5:       ff33bc0a9095b27505787ea015cea399
+Source102:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ast.xpi
+# Source102-md5:       1b75ef26977b02ae97eef2c1a0e79f6d
+Source103:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/be.xpi
+# Source103-md5:       a41a7539b8badf6dea5af0e8778bcb50
+Source104:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/bg.xpi
+# Source104-md5:       ffd5f9a35bca0359ff5045a04bcaba5a
+Source105:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/br.xpi
+# Source105-md5:       40732d248d3335f4274a90087dcd0e7d
+Source106:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ca.xpi
+# Source106-md5:       9ac7fc77b2619c04a6adf94c83f0b077
+Source107:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cak.xpi
+# Source107-md5:       b9055068007d6963e59efb9b188b637a
+Source108:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cs.xpi
+# Source108-md5:       d3612a226161c6942625c3fb0a012b64
+Source109:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cy.xpi
+# Source109-md5:       caa2ee8ef2383468913940dca48575d0
+Source110:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/da.xpi
+# Source110-md5:       1273d53f81c67d002d26c022eeac2b1a
+Source111:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/de.xpi
+# Source111-md5:       8b9a86c8a92331cc535534e557f2493c
+Source112:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/dsb.xpi
+# Source112-md5:       eb9619d68b6d7ef209af2da9729459a6
+Source113:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/el.xpi
+# Source113-md5:       03a6592b02061b5420742c95e6924e97
+Source114:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-CA.xpi
+# Source114-md5:       74d6c70b16fbd433dd3a60e1f2c7923b
+Source115:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-GB.xpi
+# Source115-md5:       49de3db6ea7777eb9f52b2910edb7c28
+Source116:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-US.xpi
+# Source116-md5:       b3a2c4bd1572f6f7db5d3709330d13a9
+Source117:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-AR.xpi
+# Source117-md5:       29c99b48807aa6e1b681180abff80179
+Source118:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-ES.xpi
+# Source118-md5:       b17b6b48ac746f13e61b1518470208d7
+Source119:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/et.xpi
+# Source119-md5:       1d9af59b573c556482e5aa00fb73d1d0
+Source120:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/eu.xpi
+# Source120-md5:       fefb8a9738a35fce6d51e8509a1aee1c
+Source121:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fi.xpi
+# Source121-md5:       fa270f7443b597b05234c00eb2f044bb
+Source122:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fr.xpi
+# Source122-md5:       cf3af56014df5cac9cf688f133e9828d
+Source123:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fy-NL.xpi
+# Source123-md5:       c0f1d89fefba749499e47f0d9aade9ca
+Source124:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ga-IE.xpi
+# Source124-md5:       3978769e548b44ac9405930d36524130
+Source125:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gd.xpi
+# Source125-md5:       d8ae58c6e5a918688ce135566efe51bd
+Source126:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gl.xpi
+# Source126-md5:       4d6bf9de2051af88b4f6f8f85c91dceb
+Source127:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/he.xpi
+# Source127-md5:       30c0fcf28ce814930cf0a5434e4274f0
+Source128:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hr.xpi
+# Source128-md5:       b09f54d20d9dfe578d689a5ea4d62484
+Source129:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hsb.xpi
+# Source129-md5:       58eec8505bc9f83fe5b950f1449c38d2
+Source130:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hu.xpi
+# Source130-md5:       8b993af3bc6aba91eceb74eb9ab3f025
+Source131:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hy-AM.xpi
+# Source131-md5:       95ffa5fb79603d8df98a37694c4aaf31
+Source132:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/id.xpi
+# Source132-md5:       37fb41de368f53effebf3f3697105076
+Source133:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/is.xpi
+# Source133-md5:       fdc1b5de6244792605d3275f8eb0f0ed
+Source134:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/it.xpi
+# Source134-md5:       9ffb17d750f1784b90820b3911afd3fa
+Source135:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ja.xpi
+# Source135-md5:       a5ad26516f2b0632e81665907b45742a
+Source136:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ka.xpi
+# Source136-md5:       5742d1f15d4bc5c7b58e5f55c1453dca
+Source137:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kab.xpi
+# Source137-md5:       0c68c9c92a9ab7c28486cd349af96b30
+Source138:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kk.xpi
+# Source138-md5:       898d0761893447c1901ae505001c22ee
+Source139:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ko.xpi
+# Source139-md5:       a5e99dedfddefe2143d19f7fcc8ff87c
+Source140:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/lt.xpi
+# Source140-md5:       65af2af9b445615d90eac32b7e1028c4
+Source141:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/lv.xpi
+# Source141-md5:       fa1dda570f6584a9d12c3ddaf00819ad
+Source142:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ms.xpi
+# Source142-md5:       54e102c25e11ed55f331d88eebd0f7ec
+Source143:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nb-NO.xpi
+# Source143-md5:       498c0805b7fe86cc887218f04d2ff1ec
+Source144:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nl.xpi
+# Source144-md5:       76e392e8e468619dca65997cf5c03a5b
+Source145:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nn-NO.xpi
+# Source145-md5:       68296bb8a717267f67a0275553e976ec
+Source146:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pa-IN.xpi
+# Source146-md5:       84a9832484113cf2b05ad950b1d21997
+Source147:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pl.xpi
+# Source147-md5:       0f9657b710331c4ca8b7c9ed5a0f363a
+Source148:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-BR.xpi
+# Source148-md5:       b1e16df20a82c46512a25684483ab670
+Source149:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-PT.xpi
+# Source149-md5:       7708643b2537e79e8666489e79932b41
+Source150:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/rm.xpi
+# Source150-md5:       f9863d30d9a4566f9c4ee28b85a4c2f1
+Source151:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ro.xpi
+# Source151-md5:       0353016abc0689cb46a26dc16b33c51c
+Source152:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ru.xpi
+# Source152-md5:       157a3efd4f5fac520187a9f8f4b0078d
+Source153:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sk.xpi
+# Source153-md5:       5d77d8d282df4d897231b814c0ee6f28
+Source154:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sl.xpi
+# Source154-md5:       ea8f5505a86a00f18eb8c275787e0fc3
+Source155:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sq.xpi
+# Source155-md5:       380be38bc6b74d70ec65f41fd1633a25
+Source156:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sr.xpi
+# Source156-md5:       1b10775cb33994974ff7a61ba9e4e693
+Source157:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sv-SE.xpi
+# Source157-md5:       86915b560abf199ec1d814a1b2c46fc0
+Source158:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/th.xpi
+# Source158-md5:       6af8e7b10d34d9672b0301e42f2877e2
+Source159:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/tr.xpi
+# Source159-md5:       6a5f7120f128e129a4121141e6edaa37
+Source160:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uk.xpi
+# Source160-md5:       9afe6a619c99e8b8f231bc7ce5ce2e8d
+Source161:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uz.xpi
+# Source161-md5:       008dcde312441b63722aef580d1ddcc6
+Source162:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/vi.xpi
+# Source162-md5:       79d524fdcc69d2dd9eba7a122bf6a11a
+Source163:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-CN.xpi
+# Source163-md5:       4dbcacff89def5b05f333e4999d51903
+Source164:     https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-TW.xpi
+# Source164-md5:       d7d739081b6361d2e1c659e0f746ccc4
 Patch0:                prefs.patch
 Patch1:                no-subshell.patch
 Patch2:                enable-addons.patch
-Patch3:                mozilla-1245783.patch
+Patch3:                %{name}-system-virtualenv.patch
+Patch4:                glibc2.34.patch
 URL:           http://www.mozilla.org/projects/thunderbird/
 BuildRequires: alsa-lib-devel
 BuildRequires: autoconf2_13 >= 2.13
-BuildRequires: bzip2-devel
-BuildRequires: cairo-devel >= 1.10
+%{?with_gold:BuildRequires:    binutils >= 3:2.20.51.0.7}
+%{?with_system_cairo:BuildRequires:    cairo-devel >= 1.10.2-5}
+BuildRequires: cargo >= 1.47.0
+%{?with_clang:BuildRequires:   clang >= 5.0}
+BuildRequires: clang-devel
+BuildRequires: dbus-devel >= 0.60
 BuildRequires: dbus-glib-devel >= 0.60
-BuildRequires: fontconfig-devel >= 2.7.0
+BuildRequires: fontconfig-devel >= 1:2.7.0
 BuildRequires: freetype-devel >= 1:2.1.8
-BuildRequires: glib2-devel >= 1:2.22
-%{!?with_gtk3:BuildRequires:   gtk+2-devel >= 2:2.18.0}
-%{?with_gtk3:BuildRequires:    gtk+3-devel >= 3.4.0}
-BuildRequires: hunspell-devel
+BuildRequires: glib2-devel >= 1:2.42
+BuildRequires: gtk+3-devel >= 3.14.0
 BuildRequires: libatomic-devel
+BuildRequires: libdrm-devel >= 2.4
 BuildRequires: libevent-devel
-BuildRequires: libffi-devel > 3.0.9
-%{?with_system_icu:BuildRequires:      libicu-devel >= 58.1}
+BuildRequires: libffi-devel > 6:3.0.9
+%{?with_system_icu:BuildRequires:      libicu-devel >= 69.1}
 BuildRequires: libiw-devel
 # requires libjpeg-turbo implementing at least libjpeg 6b API
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libjpeg-turbo-devel
-BuildRequires: libpng-devel >= 2:1.6.25
-BuildRequires: libstdc++-devel
-BuildRequires: libvpx-devel >= 1.5.0
+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.23.1
 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.7
-BuildRequires: python-virtualenv
+BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: python3 >= 1:3.8.5-3
+BuildRequires: python3-simplejson
+BuildRequires: python3-virtualenv
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rust >= 1.47.0
+BuildRequires: rust-cbindgen >= 0.19.0
 BuildRequires: sed >= 4.0
-BuildRequires: sqlite3-devel >= 3.17.0
-BuildRequires: startup-notification-devel >= 0.8
+BuildRequires: tar >= 1:1.22
 BuildRequires: virtualenv
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXcomposite-devel
@@ -81,28 +234,38 @@ BuildRequires:     xorg-lib-libXdamage-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libXfixes-devel
 BuildRequires: xorg-lib-libXt-devel
+BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.1
+BuildRequires: xz
 %ifarch %{ix86} %{x8664}
 BuildRequires: yasm >= 1.0.1
 %endif
 BuildRequires: zip
 BuildRequires: zlib-devel >= 1.2.3
 Requires(post):        mktemp >= 1.5-18
+%{?with_system_cairo:Requires: cairo >= 1.10.2-5}
 Requires:      dbus-glib >= 0.60
-Requires:      glib2 >= 1:2.22
-%{!?with_gtk3:Requires:        gtk+2 >= 2:2.18.0}
-%{?with_gtk3:Requires: gtk+3 >= 3.4.0}
-Requires:      libpng >= 2:1.6.25
-Requires:      libvpx >= 1.5.0
+Requires:      fontconfig >= 2.7.0
+Requires:      glib2 >= 1:2.42
+Requires:      glibc >= 6:2.17
+Requires:      gtk+3 >= 3.14.0
+Requires:      libdrm >= 2.4
+%{?with_system_icu:Requires:   libicu >= 69.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}
-Requires:      startup-notification >= 0.8
-Requires:      libjpeg-turbo
-Obsoletes:     icedove
-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
+Obsoletes:     thunderbird-lang-fa < 91.0
+Obsoletes:     thunderbird-lang-si < 91.0
 Conflicts:     thunderbird-lang-resources < %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -115,10 +278,11 @@ 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}
@@ -130,30 +294,1070 @@ Thunderbird is an open-source, fast and portable email client.
 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
+%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-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-lv
+Summary:       Latvian resources for Thunderbird
+Summary(pl.UTF-8):     Łotewskie pliki językowe dla Thunderbirda
+Group:         I18n
+Requires:      thunderbird >= %{version}
+Provides:      thunderbird-lang-resources = %{version}
+BuildArch:     noarch
+
+%description lang-lv
+Latvian resources for Thunderbird.
+
+%description lang-lv -l pl.UTF-8
+Łotewskie 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-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.
 
-%description addon-lightning
-Lightning is an calendar extension to Thunderbird email client.
+%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 addon-lightning -l pl.UTF-8
-Lightning to rozszerzenie do klienta poczty Thunderbird dodające
-funkcjonalność kalendarza.
+%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 lang-th -l pl.UTF-8
+Tajskie pliki językowe dla Thunderbirda.
+
+%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
+unpack() {
+       local args="$1" file="$2"
+       cp -p $file .
+}
+%define __unzip unpack
+%setup -q %(seq -f '-a %g' 100 164 | xargs)
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%patch2 -p0
+%patch3 -p2
+%patch4 -p1
 
 %build
-cat << EOF > .mozconfig
+cp -p %{_datadir}/automake/config.* build/autoconf
+
+cat << 'EOF' > .mozconfig
+. $topsrcdir/browser/config/mozconfig
 mk_add_options MOZ_OBJDIR=%{objdir}
 
 %if %{with clang}
@@ -163,14 +1367,30 @@ export CXX="clang++"
 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}
 %if %{?debug:1}0
 ac_add_options --disable-optimize
@@ -180,71 +1400,60 @@ ac_add_options --enable-debugger-info-modules
 ac_add_options --enable-crash-on-assert
 %else
 ac_add_options --disable-debug
-ac_add_options --enable-optimize="%{rpmcflags} -Os"
 %endif
 ac_add_options --disable-strip
 ac_add_options --disable-install-strip
 %if %{with tests}
 ac_add_options --enable-tests
-ac_add_options --enable-mochitest
 %else
 ac_add_options --disable-tests
 %endif
-%if %{with lightning}
-ac_add_options --enable-calendar
-%else
-ac_add_options --disable-calendar
-%endif
 %if %{with crashreporter}
 ac_add_options --enable-crashreporter
 %else
 ac_add_options --disable-crashreporter
 %endif
-#ac_add_options --disable-elf-hack
-ac_add_options --disable-gconf
-ac_add_options --disable-gnomeui
+%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=mail
+ac_add_options --enable-application=comm/mail
 ac_add_options --enable-chrome-format=omni
-ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
-ac_add_options --enable-gio
-%if %{with ldap}
-ac_add_options --enable-ldap
-%else
-ac_add_options --disable-ldap
-%endif
+ac_add_options --enable-default-toolkit=cairo-gtk3
 %{?with_official:ac_add_options --enable-official-branding}
-ac_add_options --enable-readline
+%{?with_gold:ac_add_options --enable-linker=gold}
 %{?with_shared_js:ac_add_options --enable-shared-js}
-ac_add_options --enable-startup-notification
-ac_add_options --enable-system-cairo
-ac_add_options --enable-system-ffi
-ac_add_options --enable-system-hunspell
-ac_add_options --enable-system-sqlite
-ac_add_options --enable-url-classifier
-ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
+%{?with_system_cairo:ac_add_options --enable-system-cairo}
+ac_add_options --enable-system-pixman
 ac_add_options --with-distribution-id=org.pld-linux
-ac_add_options --with-pthreads
-ac_add_options --with-system-bz2
+ac_add_options --with-system-ffi
 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
-ac_add_options --with-x
 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 \
-       AUTOCONF=/usr/bin/autoconf2_13 \
-       MOZ_MAKE_FLAGS="%{_smp_mflags}"
+AUTOCONF=/usr/bin/autoconf2_13 MACH_USE_SYSTEM_PYTHON=1 ./mach build
 
 %if %{with crashreporter}
 # create debuginfo for crash-stats.mozilla.com
@@ -253,10 +1462,10 @@ ln -sf %{topdir}/mozilla/config/*.mk %{objdir}/config
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/plugins,%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{extensions,plugins},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
 
 cd %{objdir}
-%{__make} -C mail/installer stage-package \
+%{__make} -C comm/mail/installer stage-package \
        DESTDIR=$RPM_BUILD_ROOT \
        installdir=%{_libdir}/%{name} \
        PKG_SKIP_STRIP=1
@@ -276,17 +1485,14 @@ cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD
 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
-mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
+%{__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
@@ -296,12 +1502,22 @@ ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
 # 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; do
        if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
@@ -313,14 +1529,6 @@ exit 0
 
 %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
@@ -331,29 +1539,30 @@ rm -rf $HOME
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/plugins
 
-%if %{with gtk3}
-%dir %{_libdir}/%{name}/gtk2
-%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
 %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
-%endif
 %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
 %{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so}
+%ifarch %{ix86} %{x8664} %{arm} aarch64
 %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}/*.sh
 %attr(755,root,root) %{_libdir}/%{name}/*-bin
+%attr(755,root,root) %{_libdir}/%{name}/pingsender
 %attr(755,root,root) %{_libdir}/%{name}/plugin-container
+%attr(755,root,root) %{_libdir}/%{name}/precomplete
 %attr(755,root,root) %{_libdir}/%{name}/thunderbird
 
 %{_libdir}/%{name}/application.ini
-%{_libdir}/%{name}/blocklist.xml
 %{_libdir}/%{name}/dependentlibs.list
 %{_libdir}/%{name}/omni.ja
 %{_libdir}/%{name}/platform.ini
 %{!?with_system_icu:%{_libdir}/%{name}/icudt58l.dat}
 
 %dir %{_libdir}/%{name}/fonts
-%{_libdir}/%{name}/fonts/EmojiOneMozilla.ttf
+%{_libdir}/%{name}/fonts/TwemojiMozilla.ttf
 
 %if %{with crashreporter}
 %attr(755,root,root) %{_libdir}/%{name}/crashreporter
@@ -361,42 +1570,277 @@ rm -rf $HOME
 %{_libdir}/%{name}/Throbber-small.gif
 %endif
 
-%dir %{_libdir}/%{name}/extensions
-%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
-
-%dir %{_libdir}/%{name}/distribution
-%dir %{_libdir}/%{name}/distribution/extensions
-
 # symlinks
 %{_libdir}/%{name}/chrome
 %{_libdir}/%{name}/defaults
-%{_libdir}/%{name}/dictionaries
-%{_libdir}/%{name}/hyphenation
+%{_libdir}/%{name}/extensions
 %{_libdir}/%{name}/isp
 
-%{_pixmapsdir}/*.png
-%{_desktopdir}/*.desktop
+%{_pixmapsdir}/thunderbird.png
+%{_desktopdir}/thunderbird.desktop
 
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/chrome
 %{_datadir}/%{name}/defaults
+%dir %{_datadir}/%{name}/extensions
 %{_datadir}/%{name}/isp
 
-%if %{with lightning}
-%files addon-lightning
-%defattr(644,root,root,755)
-%dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/app.ini
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.jar
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
-%dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*manifest
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
-%dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones/zones.json
-%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
+
+%files lang-be
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-be@thunderbird.mozilla.org.xpi
+
+%files lang-bg
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-bg@thunderbird.mozilla.org.xpi
+
+%files lang-br
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-br@thunderbird.mozilla.org.xpi
+
+%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-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-lv
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/extensions/langpack-lv@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-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
This page took 0.125739 seconds and 4 git commands to generate.