]> git.pld-linux.org Git - packages/thunderbird.git/blobdiff - thunderbird.spec
up to 78.0
[packages/thunderbird.git] / thunderbird.spec
index ca572dc2730006f172e5b1f16c4abfa106ce1279..9cc0b228c62fa11dcc18524fbb6c7c2f21b66483 100644 (file)
@@ -4,16 +4,17 @@
 #
 # Conditional builds
 %bcond_with    tests           # enable tests (whatever they check)
-%bcond_without ldap            # disable e-mail address lookups in LDAP directories
 %bcond_without lightning       # disable Sunbird/Lightning calendar
 %bcond_without official        # official Thunderbird branding
 %bcond_with    crashreporter   # report crashes to crash-stats.mozilla.com
-%bcond_without gold            # use default linker instead of gold
+%bcond_with    gold            # use gold instead of default linker
 # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
 %bcond_with    shared_js       # shared libmozjs library [broken]
 %bcond_without system_icu      # build without system ICU
 %bcond_with    system_cairo    # build with system cairo (not supported in 60.0)
-%bcond_without clang           # build using Clang/LLVM
+%bcond_with    system_libvpx   # build with system libvpx (60.7.0 does not build with libvpx 1.8)
+%bcond_with    clang           # build using Clang/LLVM
+%bcond_with    lowmem          # lower memory requirements
 
 # UPDATING TRANSLATIONS:
 %if 0
@@ -24,151 +25,154 @@ U=http://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.19
-%define                nss_ver         3.36.7
+%ifarch %{ix86} %{arm} aarch64
+%define                with_lowmem     1
+%endif
 
-# The actual sqlite version (see RHBZ#480989):
-%define                sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
+%define                nspr_ver        4.25
+%define                nss_ver         3.53.1
 
 Summary:       Thunderbird - email client
 Summary(pl.UTF-8):     Thunderbird - klient poczty
 Name:          thunderbird
-Version:       60.5.1
+Version:       78.0
 Release:       1
 License:       MPL v2.0
 Group:         X11/Applications/Mail
 Source0:       http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
-# Source0-md5: d0f7a7d878febe2f776d9b79e2dd5552
+# Source0-md5: b92652deac6adc0be11f5e4f09c62842
 Source1:       %{name}.desktop
 Source2:       %{name}.sh
 Source100:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ar.xpi
-# Source100-md5:       9faee3ed60de9c8269de4248c06b6cd9
+# Source100-md5:       118fbd5d93c0e9f02c0b31ea3e585c5d
 Source101:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ast.xpi
-# Source101-md5:       0fc2c381143cdb052c85cb0f59e43f80
+# Source101-md5:       7ae61d51439a95e01bea0b96ce01d91b
 Source102:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/be.xpi
-# Source102-md5:       33b1cffedab84cd20150d2d63f6db1ee
+# Source102-md5:       1f532fe311382311a3fefb973cb119f8
 Source103:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/bg.xpi
-# Source103-md5:       b00419961fcdca8840d37113637340b0
+# Source103-md5:       b72f6d4a642320258c7811adda02497d
 Source104:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/br.xpi
-# Source104-md5:       784f059a2502029210ac824286d232f3
+# Source104-md5:       e6ca8aa7d10c6056d9cff9011e450b51
 Source105:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ca.xpi
-# Source105-md5:       5f7331ff95527147e55c393f12927093
+# Source105-md5:       f26cff8102423ea1a166991ce9687395
 Source106:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cs.xpi
-# Source106-md5:       a06762f812b2d9a585cc215b9be0c844
+# Source106-md5:       c794c8e0327128c11e0195f4a2eceb5f
 Source107:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/cy.xpi
-# Source107-md5:       982323dce921cf9aa3359f34b5e5bcaf
+# Source107-md5:       d5d8574148f2e4f0bb224791fbd68a85
 Source108:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/da.xpi
-# Source108-md5:       815420ee70836f05acefa0ec2d8feacf
+# Source108-md5:       8c7f52b4e021f5c36444efaf383a8fbb
 Source109:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/de.xpi
-# Source109-md5:       fe27848fdb67dcc9710fe5d47e27bd07
+# Source109-md5:       a0a142963bf5398366e36eee3f6c083c
 Source110:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/dsb.xpi
-# Source110-md5:       4ccd0b52bbfb21adeecf3597a3fd2982
+# Source110-md5:       846759f7c07bc2f389ef0c3c04f2931c
 Source111:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/el.xpi
-# Source111-md5:       b6707aa7eedb2c4f9e0a8c2672f7be25
+# Source111-md5:       0235010648a2f556030a9d98ad14a9ae
 Source112:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-GB.xpi
-# Source112-md5:       eb46ef82b9a5b44d993fc381bebc7c61
+# Source112-md5:       7cc3b33dc623d7c0264cbce948a598b0
 Source113:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/en-US.xpi
-# Source113-md5:       c79542ac44305ffb50015b4a75c61115
+# Source113-md5:       48dbeac337d10d5f16834206c5b2d167
 Source114:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-AR.xpi
-# Source114-md5:       a60a6f636e133b7b439e93c70c18b5b4
+# Source114-md5:       1a6b7922f6e7e2d409e35477bb42d8e6
 Source115:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/es-ES.xpi
-# Source115-md5:       a52b5650e973827c0065273165e965ad
+# Source115-md5:       0f1afb00eae407a543a62adb7adc6cc7
 Source116:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/et.xpi
-# Source116-md5:       784b559b83653a9af16294e6d1e20b8c
+# Source116-md5:       40d34b85dd8035669b6c5ce38a2fa51f
 Source117:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/eu.xpi
-# Source117-md5:       91aff50d24a25e8dffcd1f755cd54881
+# Source117-md5:       49281d722aa066698391499800a46673
 Source118:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fi.xpi
-# Source118-md5:       52b13d4d527ac8a8f04f59be1a6af4b6
+# Source118-md5:       450d0eac20d93cbb2d651f3e4d98cfbe
 Source119:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fr.xpi
-# Source119-md5:       75c38dd369dd8da0c5ae0941b17e491b
+# Source119-md5:       f7a184cd3d71659a904d56ae10b0ce77
 Source120:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/fy-NL.xpi
-# Source120-md5:       363565ebf6540a7cf82e6f1c7cb9b2b6
+# Source120-md5:       a3e0ebe751e1ba0671e2ee7ff63b2a5f
 Source121:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ga-IE.xpi
-# Source121-md5:       33d2f16c11575953a0df6ec0acd887fd
+# Source121-md5:       6ec19d4888c53f7b6be32f68b6488b63
 Source122:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gd.xpi
-# Source122-md5:       eda3ee157bf768ba628aa17fbb253cd4
+# Source122-md5:       527cc616203983adcdb0b964f49ab3c0
 Source123:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/gl.xpi
-# Source123-md5:       4546cd2664d881d390abcfda91fe3311
+# Source123-md5:       5fcba685d568891a6e64ee34e5538bee
 Source124:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/he.xpi
-# Source124-md5:       7d81d4d182d3ee978b8fb32105e9da38
+# Source124-md5:       d300cd6b595a74b1b64794fd943dba87
 Source125:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hr.xpi
-# Source125-md5:       c2fd45e71239e990900483face066b5e
+# Source125-md5:       b0e85c552ca61774ac888fda8af35a52
 Source126:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hsb.xpi
-# Source126-md5:       95baa7cb715a1c59ec47d029a9c3b192
+# Source126-md5:       1533dc046f7a18077f42e0269e9abc29
 Source127:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hu.xpi
-# Source127-md5:       6f7c63a05f724536ec9e864b6b81c083
+# Source127-md5:       c009e6f3dd0fee6f3f772e1d3e911279
 Source128:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/hy-AM.xpi
-# Source128-md5:       5c9dfa748984c2e3c1c3783e7f6f9493
+# Source128-md5:       6dd9e5d7caa7997d061f638317b50499
 Source129:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/id.xpi
-# Source129-md5:       89e39ed19dac816f7fca3541879b51e5
+# Source129-md5:       0754d40956ce41926892d7376c85656f
 Source130:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/is.xpi
-# Source130-md5:       3b3f5b468bded6994347e007e1fe9c12
+# Source130-md5:       45d9759e48e6a00c3210e984f155d434
 Source131:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/it.xpi
-# Source131-md5:       e364a19d4dbc3dec18d130bf88588f90
+# Source131-md5:       db984a7c991557d5823b7460af97dcc7
 Source132:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ja.xpi
-# Source132-md5:       c7c58bcaef589ade59929b3ed96792e1
+# Source132-md5:       d8b5e3492f92371154ad5b7b0da2a254
 Source133:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kab.xpi
-# Source133-md5:       afce3aaca7f89b896ff28331c348d8ec
+# Source133-md5:       d1cbd5e2c29bc43c9a78948be5a8f1a6
 Source134:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/kk.xpi
-# Source134-md5:       46d3e87449530cd4fcadfa9dfa5c2af5
+# Source134-md5:       1e865dc62184a93d96a4251ae3a71502
 Source135:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ko.xpi
-# Source135-md5:       5fb4edb9fcd2f44f8da4275e04979ae5
+# Source135-md5:       151e6d23ba4d8300999e522b05bc608b
 Source136:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/lt.xpi
-# Source136-md5:       83d37df1039b65e2912e8fd86f0b6c72
+# Source136-md5:       b69e5094da8554ad201dec973ddcf0ba
 Source137:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ms.xpi
-# Source137-md5:       5fc434b972aab946863f9d92a02423b5
+# Source137-md5:       7cba6d4b7779cac279af733fbaacb0f8
 Source138:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nb-NO.xpi
-# Source138-md5:       7df5fad4647703417ec2e0a6d9058fad
+# Source138-md5:       9c646d7eb23992944da88f8b1a12e943
 Source139:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nl.xpi
-# Source139-md5:       0360a8797e448459d77f11f40a5cd51b
+# Source139-md5:       1007dfd318ce739dff09907684165024
 Source140:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/nn-NO.xpi
-# Source140-md5:       928d35e00e9867b7850b4d7b4f4b4325
+# Source140-md5:       720ca21eca6bf39400e46078d06465d2
 Source141:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pl.xpi
-# Source141-md5:       c77127af983d7800194b1c86982aed37
+# Source141-md5:       13b61495009ec4c1e2d84370b8c0c6b4
 Source142:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-BR.xpi
-# Source142-md5:       26b0e7d5b591184e4ab3c8bfcae68d2e
+# Source142-md5:       966248d90ac488a48f95e23c095b304c
 Source143:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/pt-PT.xpi
-# Source143-md5:       27e23299eada8d6a765be40ba429c908
+# Source143-md5:       094bf7eccce6af1b560266712f683c2a
 Source144:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/rm.xpi
-# Source144-md5:       ba5b4094a9d99753342d7e3c1c47a64c
+# Source144-md5:       b7c1ca944327ac06b12dbb39cadf0d23
 Source145:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ro.xpi
-# Source145-md5:       9e111aca88bc87051ad9a55f9a215d16
+# Source145-md5:       812ff1820ec63e7f7d69479a197e5736
 Source146:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/ru.xpi
-# Source146-md5:       94053c93f6ad6f7a0cf6dd100a3f57c1
+# Source146-md5:       1251d9fdaf87f5e5e630be236538951f
 Source147:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/si.xpi
-# Source147-md5:       a98eced3d28c8311f765b233305f7124
+# Source147-md5:       315b320ad8d82cd088717ad8596213c4
 Source148:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sk.xpi
-# Source148-md5:       e2b811e81278fbb2471a786a1acb6452
+# Source148-md5:       6bc29bdade03c7fc64faa5b61d1a8c48
 Source149:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sl.xpi
-# Source149-md5:       ee5a0b06e02891ea4467c879f9ec2efe
+# Source149-md5:       fbcb70fdc5dad53a092d98190ad94f21
 Source150:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sq.xpi
-# Source150-md5:       4700085ee6b43ba590cb1c129064bfb5
+# Source150-md5:       d4bb2c940f1beeb7448f810e34c44e10
 Source151:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sr.xpi
-# Source151-md5:       8d34491c77586a5fdaa95d4e1081ec83
+# Source151-md5:       2afb6aba183daae059c1de47e64e765f
 Source152:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/sv-SE.xpi
-# Source152-md5:       afe6790da433c38ec6b26373ca31d3ce
+# Source152-md5:       7ffc4446fe13e940836505fd65fcebc0
 Source153:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/tr.xpi
-# Source153-md5:       77d394b459f2b999ac0a92bf1af8a9d1
+# Source153-md5:       e07cb1dc4904ae15b7c3e44de1d73ee8
 Source154:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/uk.xpi
-# Source154-md5:       d3dffbc223e492b3448b3629af62a841
+# Source154-md5:       200b8047f8f35cfad639587f0f3baa1d
 Source155:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/vi.xpi
-# Source155-md5:       779a5878ae6e2c859ed4753e7ebbf2b9
+# Source155-md5:       f10e1141ab9c949d3ef4646b05c3fb67
 Source156:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-CN.xpi
-# Source156-md5:       f1a61fd18cd9d98e6952f069b6ec68e6
+# Source156-md5:       88f39549548cdffff3732fb74b6569e7
 Source157:     http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-i686/xpi/zh-TW.xpi
-# Source157-md5:       77c5e7ebba4a1d81d8cc8810dbc326b0
+# Source157-md5:       63fe0cf8b4baf78a0da9b2e8124dfd96
 Patch0:                prefs.patch
 Patch1:                no-subshell.patch
 Patch2:                enable-addons.patch
+Patch3:                %{name}-system-virtualenv.patch
 URL:           http://www.mozilla.org/projects/thunderbird/
 BuildRequires: alsa-lib-devel
 BuildRequires: autoconf2_13 >= 2.13
 %{?with_gold:BuildRequires:    binutils >= 3:2.20.51.0.7}
-BuildRequires: bzip2-devel
 %{?with_system_cairo:BuildRequires:    cairo-devel >= 1.10.2-5}
 BuildRequires: cargo
 %{?with_clang:BuildRequires:   clang}
@@ -177,21 +181,21 @@ BuildRequires:    dbus-glib-devel >= 0.60
 BuildRequires: fontconfig-devel >= 2.7.0
 BuildRequires: freetype-devel >= 1:2.1.8
 BuildRequires: glib2-devel >= 1:2.22
-BuildRequires: gtk+3-devel >= 3.4.0
-BuildRequires: hunspell-devel
+BuildRequires: gtk+3-devel >= 3.14.0
 BuildRequires: libatomic-devel
 BuildRequires: libevent-devel
 BuildRequires: libffi-devel > 3.0.9
-%{?with_system_icu:BuildRequires:      libicu-devel >= 58.1}
+%{?with_system_icu:BuildRequires:      libicu-devel >= 63.1}
 BuildRequires: libiw-devel
 # requires libjpeg-turbo implementing at least libjpeg 6b API
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libjpeg-turbo-devel
 BuildRequires: libpng-devel >= 2:1.6.25
-BuildRequires: libstdc++-devel
-BuildRequires: libvpx-devel >= 1.5.0
+BuildRequires: libstdc++-devel >= 6:4.8.1
+%{?with_system_libvpx:BuildRequires:   libvpx-devel >= 1.5.0}
 BuildRequires: llvm-devel
 BuildRequires: mozldap-devel
+BuildRequires: nodejs >= 8.11
 BuildRequires: nspr-devel >= 1:%{nspr_ver}
 BuildRequires: nss-devel >= 1:%{nss_ver}
 BuildRequires: pango-devel >= 1:1.22.0
@@ -200,10 +204,9 @@ BuildRequires:     pixman-devel >= 0.19.2
 BuildRequires: pkgconfig
 BuildRequires: python >= 1:2.7
 BuildRequires: python-virtualenv
-BuildRequires: rust
+BuildRequires: rust >= 1.34.0
+BuildRequires: rust-cbindgen >= 0.14.1
 BuildRequires: sed >= 4.0
-BuildRequires: sqlite3-devel >= 3.22.0
-BuildRequires: startup-notification-devel >= 0.8
 BuildRequires: virtualenv
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXcomposite-devel
@@ -220,19 +223,20 @@ 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
-Requires:      gtk+3 >= 3.4.0
+Requires:      glibc >= 6:2.17
+Requires:      gtk+3 >= 3.14.0
 Requires:      libpng >= 2:1.6.25
-Requires:      libvpx >= 1.5.0
+Requires:      libstdc++ >= 6:4.8.1
+%{?with_system_libvpx:Requires:        libvpx >= 1.5.0}
 Requires:      myspell-common
 Requires:      nspr >= 1:%{nspr_ver}
 Requires:      nss >= 1:%{nss_ver}
 Requires:      pango >= 1:1.22.0
-Requires:      sqlite3 >= %{sqlite_build_version}
-Requires:      startup-notification >= 0.8
 Requires:      libjpeg-turbo
 Obsoletes:     icedove
 Obsoletes:     mozilla-thunderbird
 Obsoletes:     mozilla-thunderbird-dictionary-en-US
+Obsoletes:     thunderbird-addon-lightning < 78.0
 Conflicts:     thunderbird-lang-resources < %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -245,10 +249,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}
@@ -260,21 +265,6 @@ 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
-
-%description addon-lightning
-Lightning is an calendar extension to Thunderbird email client.
-
-%description addon-lightning -l pl.UTF-8
-Lightning to rozszerzenie do klienta poczty Thunderbird dodające
-funkcjonalność kalendarza.
-
 %package lang-ar
 Summary:       Arabic resources for Thunderbird
 Summary(pl.UTF-8):     Arabskie pliki językowe dla Thunderbirda
@@ -1250,6 +1240,7 @@ unpack() {
 %patch0 -p1
 %patch1 -p1
 %patch2 -p0
+%patch3 -p2
 
 %build
 cp -p %{_datadir}/automake/config.* build/autoconf
@@ -1265,8 +1256,23 @@ 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
@@ -1301,43 +1307,45 @@ ac_add_options --enable-crashreporter
 %else
 ac_add_options --disable-crashreporter
 %endif
-#ac_add_options --disable-elf-hack
-ac_add_options --disable-gconf
+%ifarch %{ix86} %{x8664} %{arm}
+ac_add_options --disable-elf-hack
+%endif
 ac_add_options --disable-necko-wifi
 ac_add_options --disable-updater
 ac_add_options --enable-alsa
 ac_add_options --enable-application=comm/mail
 ac_add_options --enable-chrome-format=omni
 ac_add_options --enable-default-toolkit=cairo-gtk3
-%if %{with ldap}
-ac_add_options --enable-ldap
-%else
-ac_add_options --disable-ldap
-%endif
 %{?with_official:ac_add_options --enable-official-branding}
 %{?with_gold:ac_add_options --enable-linker=gold}
-ac_add_options --enable-readline
 %{?with_shared_js:ac_add_options --enable-shared-js}
-ac_add_options --enable-startup-notification
 %{?with_system_cairo:ac_add_options --enable-system-cairo}
 ac_add_options --enable-system-ffi
-ac_add_options --enable-system-hunspell
-ac_add_options --enable-system-sqlite
 ac_add_options --with-distribution-id=org.pld-linux
-ac_add_options --with-pthreads
-ac_add_options --with-system-bz2
 ac_add_options --with%{!?with_system_icu:out}-system-icu
 ac_add_options --with-system-jpeg
 ac_add_options --with-system-libevent
-ac_add_options --with-system-libvpx
+ac_add_options --with%{!?with_system_libvpx:out}-system-libvpx
 ac_add_options --with-system-nspr
 ac_add_options --with-system-nss
 ac_add_options --with-system-png
 ac_add_options --with-system-zlib
-ac_add_options --with-x
 EOF
 
-AUTOCONF=/usr/bin/autoconf2_13 ./mach build -v
+%if ! %{with clang}
+# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
+# however builds tend to fail on other arches when building in parallel.
+MOZ_PARALLEL_BUILD=1
+%ifarch %{x8664}
+jobs="%{__jobs}"
+[ -n "$jobs" -a "$jobs" -gt 4 ] && MOZ_PARALLEL_BUILD=4 || MOZ_PARALLEL_BUILD="$jobs"
+%endif
+export MOZ_PARALLEL_BUILD
+%else
+%{?__jobs:export MOZ_PARALLEL_BUILD="%__jobs"}
+%endif
+
+AUTOCONF=/usr/bin/autoconf2_13 ./mach build
 
 %if %{with crashreporter}
 # create debuginfo for crash-stats.mozilla.com
@@ -1346,7 +1354,7 @@ AUTOCONF=/usr/bin/autoconf2_13 ./mach build -v
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/plugins,%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{extensions,plugins},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
 
 cd %{objdir}
 %{__make} -C comm/mail/installer stage-package \
@@ -1369,11 +1377,6 @@ 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
@@ -1408,9 +1411,6 @@ if [ -d %{_libdir}/%{name}/extensions ] && [ ! -L %{_libdir}/%{name}/extensions
        fi
        mv -v %{_libdir}/%{name}/extensions %{_datadir}/%{name}/extensions
 fi
-if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
-       mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
-fi
 for d in chrome defaults icons isp modules res; do
        if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
                install -d %{_datadir}/%{name}
@@ -1421,14 +1421,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
@@ -1444,7 +1436,12 @@ rm -rf $HOME
 %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
@@ -1453,15 +1450,16 @@ rm -rf $HOME
 %attr(755,root,root) %{_libdir}/%{name}/thunderbird
 
 %{_libdir}/%{name}/application.ini
-%{_libdir}/%{name}/blocklist.xml
-%{_libdir}/%{name}/chrome.manifest
 %{_libdir}/%{name}/dependentlibs.list
 %{_libdir}/%{name}/omni.ja
 %{_libdir}/%{name}/platform.ini
 %{!?with_system_icu:%{_libdir}/%{name}/icudt58l.dat}
 
+%dir %{_libdir}/%{name}/features
+%{_libdir}/%{name}/features/wetransfer@extensions.thunderbird.net.xpi
+
 %dir %{_libdir}/%{name}/fonts
-%{_libdir}/%{name}/fonts/EmojiOneMozilla.ttf
+%{_libdir}/%{name}/fonts/TwemojiMozilla.ttf
 
 %if %{with crashreporter}
 %attr(755,root,root) %{_libdir}/%{name}/crashreporter
@@ -1469,15 +1467,10 @@ rm -rf $HOME
 %{_libdir}/%{name}/Throbber-small.gif
 %endif
 
-%dir %{_libdir}/%{name}/distribution
-%dir %{_libdir}/%{name}/distribution/extensions
-
 # symlinks
 %{_libdir}/%{name}/chrome
 %{_libdir}/%{name}/defaults
-%{_libdir}/%{name}/dictionaries
 %{_libdir}/%{name}/extensions
-%{_libdir}/%{name}/hyphenation
 %{_libdir}/%{name}/isp
 
 %{_pixmapsdir}/*.png
@@ -1486,16 +1479,8 @@ rm -rf $HOME
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/chrome
 %{_datadir}/%{name}/defaults
-%{_datadir}/%{name}/isp
-
 %dir %{_datadir}/%{name}/extensions
-%{_datadir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
-
-%if %{with lightning}
-%files addon-lightning
-%defattr(644,root,root,755)
-%{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi
-%endif
+%{_datadir}/%{name}/isp
 
 %files lang-ar
 %defattr(644,root,root,755)
This page took 0.11713 seconds and 4 git commands to generate.