up to 91.3.2
[packages/thunderbird.git] / thunderbird.spec
CommitLineData
c4ddd260 1# TODO:
283702b9 2# - build with system mozldap
b24ace7e 3# - do something with *.rdf file, there is file conflict with other lang packages
c4ddd260 4#
44be9ed4 5# Conditional builds
8b3db612 6%bcond_with tests # enable tests (whatever they check)
506cce80 7%bcond_without official # official Thunderbird branding
765a3a27 8%bcond_with crashreporter # report crashes to crash-stats.mozilla.com
1bb53eab 9%bcond_with gold # use gold instead of default linker
a97d3356
JR
10# - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
11%bcond_with shared_js # shared libmozjs library [broken]
aee5e672
JP
12%bcond_without system_icu # build without system ICU
13%bcond_with system_cairo # build with system cairo (not supported in 60.0)
a52336f6 14%bcond_without system_libvpx # build with system libvpx
6204873c 15%bcond_without clang # build using Clang/LLVM
3bdfd9af 16%bcond_with lowmem # lower memory requirements
88149483 17
b24ace7e
JR
18# UPDATING TRANSLATIONS:
19%if 0
20rm -vf *.xpi
21./builder -g
22V=31.4.0
e4a1fb9f 23U=https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/$V/linux-i686/
b24ace7e
JR
24curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p'
25%endif
26
f1e321c9
JP
27%define _enable_debug_packages 0
28
f4114a7f 29%if 0%{?_enable_debug_packages} != 1
765a3a27
ER
30%undefine crashreporter
31%endif
32
3bdfd9af
JP
33%ifarch %{ix86} %{arm} aarch64
34%define with_lowmem 1
35%endif
36
4b94956b
JP
37%define nspr_ver 4.32
38%define nss_ver 3.68
7d981f69 39
cae5b55b
JR
40Summary: Thunderbird - email client
41Summary(pl.UTF-8): Thunderbird - klient poczty
42Name: thunderbird
3dfbe147 43Version: 91.3.2
129b888f 44Release: 1
3366507a 45License: MPL v2.0
2d289b25 46Group: X11/Applications/Mail
e4a1fb9f 47Source0: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
3dfbe147 48# Source0-md5: 446a12da79f3f21e34542128f5b402ae
dd12359d
JR
49Source1: %{name}.desktop
50Source2: %{name}.sh
e4a1fb9f 51Source100: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/af.xpi
3dfbe147 52# Source100-md5: deead830ba2090334eedc45790aed173
e4a1fb9f 53Source101: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ar.xpi
3dfbe147 54# Source101-md5: 9c431f64cab4cfa7888a42c0480a1176
e4a1fb9f 55Source102: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ast.xpi
3dfbe147 56# Source102-md5: 84b1f69b71e42670c836ce2261506525
e4a1fb9f 57Source103: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/be.xpi
3dfbe147 58# Source103-md5: 3579d1c5ef3e34b1d0e91d534e175329
e4a1fb9f 59Source104: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/bg.xpi
3dfbe147 60# Source104-md5: 09f0a178755d6fc6b1e7b2809bb0df00
e4a1fb9f 61Source105: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/br.xpi
3dfbe147 62# Source105-md5: fff0d0f33701eec0d4293750fb09aef1
e4a1fb9f 63Source106: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ca.xpi
3dfbe147 64# Source106-md5: 7aea6eb0e49fed74246bbadd780fec98
e4a1fb9f 65Source107: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cak.xpi
3dfbe147 66# Source107-md5: 8e2703c42eb25b6f35b23370c5db408e
e4a1fb9f 67Source108: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cs.xpi
3dfbe147 68# Source108-md5: e32ce948a3f558d7c71d0c360aef9780
e4a1fb9f 69Source109: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/cy.xpi
3dfbe147 70# Source109-md5: 478830c20d1dcd7df9864a9a1f72dcd6
e4a1fb9f 71Source110: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/da.xpi
3dfbe147 72# Source110-md5: be240dff9f437c369849b411e68e10bf
e4a1fb9f 73Source111: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/de.xpi
3dfbe147 74# Source111-md5: cfe2e3c692463d6e4d1c8ee30309c60f
e4a1fb9f 75Source112: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/dsb.xpi
3dfbe147 76# Source112-md5: 8fb1f337712b2c9d86ebd25dbb53e5bc
e4a1fb9f 77Source113: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/el.xpi
3dfbe147 78# Source113-md5: 683b365dec1965aa19608ebc9e2b131a
e4a1fb9f 79Source114: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-CA.xpi
3dfbe147 80# Source114-md5: 996656831f759e124f23a9731fa1d7be
e4a1fb9f 81Source115: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-GB.xpi
3dfbe147 82# Source115-md5: 2657fdd1d4d403ac79b810022683daff
e4a1fb9f 83Source116: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/en-US.xpi
3dfbe147 84# Source116-md5: 4d02626ad5839e9889cf652fb1043388
e4a1fb9f 85Source117: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-AR.xpi
3dfbe147 86# Source117-md5: 0b843a7a605b269c9a0169659acc2e71
e4a1fb9f 87Source118: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/es-ES.xpi
3dfbe147 88# Source118-md5: 06cee32e05358be33c52dec6723bfb32
e4a1fb9f 89Source119: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/et.xpi
3dfbe147 90# Source119-md5: 658a013c669c9d3f7b2b6a08308da747
e4a1fb9f 91Source120: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/eu.xpi
3dfbe147 92# Source120-md5: 677410de4c11858c703fbb4f6e483ced
4b94956b 93Source121: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fi.xpi
3dfbe147 94# Source121-md5: 1cc049bae2d33ed9c5f8cd6424e21ab0
4b94956b 95Source122: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fr.xpi
3dfbe147 96# Source122-md5: 27c81098e6e84bafb6a479dd0b4c2275
4b94956b 97Source123: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/fy-NL.xpi
3dfbe147 98# Source123-md5: 1fba2e5ca58df88d5d35e0c4d3268536
4b94956b 99Source124: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ga-IE.xpi
3dfbe147 100# Source124-md5: a34205cb4a7cf0b854c50ef137918b65
4b94956b 101Source125: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gd.xpi
3dfbe147 102# Source125-md5: de28921c5b2f408cf395a332c3e889fc
4b94956b 103Source126: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/gl.xpi
3dfbe147 104# Source126-md5: d06ae3e6108f2290507e86e9484d5b39
4b94956b 105Source127: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/he.xpi
3dfbe147 106# Source127-md5: 390f74628a06109ea0cd9edbb6a76a4e
4b94956b 107Source128: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hr.xpi
3dfbe147 108# Source128-md5: 0247fa5f619b427f669120d01a0fb0ec
4b94956b 109Source129: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hsb.xpi
3dfbe147 110# Source129-md5: 14c5e2ae2dcd57fe17817487f6206df5
4b94956b 111Source130: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hu.xpi
3dfbe147 112# Source130-md5: 91edbb51d79c0881dac1f3c94ed80fcd
4b94956b 113Source131: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/hy-AM.xpi
3dfbe147 114# Source131-md5: 8c63fca5f917d28d235175af564b88b1
4b94956b 115Source132: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/id.xpi
3dfbe147 116# Source132-md5: e44e9a124910408172ba4e59a597425e
4b94956b 117Source133: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/is.xpi
3dfbe147 118# Source133-md5: 0c1fe97820af3f9d3f24ab215dbf3ff9
4b94956b 119Source134: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/it.xpi
3dfbe147 120# Source134-md5: 646f1e2bac856831eed8ff71422d78de
4b94956b 121Source135: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ja.xpi
3dfbe147 122# Source135-md5: bcfbc1a50c409237bc9fc248b83f89ba
4b94956b 123Source136: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ka.xpi
3dfbe147 124# Source136-md5: 8fdca74defc2fd75d725b0577896589c
4b94956b 125Source137: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kab.xpi
3dfbe147 126# Source137-md5: 2d42f0d8b4b7e83ad47da235b65fb680
4b94956b 127Source138: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/kk.xpi
3dfbe147 128# Source138-md5: 8b15cc1e87441b6437d7d6fa73a87ef3
4b94956b 129Source139: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ko.xpi
3dfbe147 130# Source139-md5: 169ff7ab975c6e8d27de57599f33570b
4b94956b 131Source140: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/lt.xpi
3dfbe147 132# Source140-md5: 78bda76571a5db5696693d37e771ad5d
4b94956b 133Source141: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/lv.xpi
3dfbe147 134# Source141-md5: 0d1fcbfa8616799775590661f3e71a28
e4a1fb9f 135Source142: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ms.xpi
3dfbe147 136# Source142-md5: fff106e037312cbe1b8d20ca3fe015ae
e4a1fb9f 137Source143: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nb-NO.xpi
3dfbe147 138# Source143-md5: 874b7fb44cbd368e42cd4a304276bab0
e4a1fb9f 139Source144: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nl.xpi
3dfbe147 140# Source144-md5: 3048e8a163288f87774a4e52285ce3d2
e4a1fb9f 141Source145: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/nn-NO.xpi
3dfbe147 142# Source145-md5: 25f7c8294ff1d9ae243267b358fa489a
e4a1fb9f 143Source146: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pa-IN.xpi
3dfbe147 144# Source146-md5: ad4e890a64971322267f077fe00178d9
e4a1fb9f 145Source147: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pl.xpi
3dfbe147 146# Source147-md5: 56f2439d71f8bfb1940dea2953771af4
e4a1fb9f 147Source148: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-BR.xpi
3dfbe147 148# Source148-md5: 5ed1eea3f2a41aeccf596fbcd7b0fd4f
e4a1fb9f 149Source149: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/pt-PT.xpi
3dfbe147 150# Source149-md5: b17b4d9b7e2ab6ff3c14e22519ee79b7
e4a1fb9f 151Source150: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/rm.xpi
3dfbe147 152# Source150-md5: 77081703c07cce710294c24d9821af81
e4a1fb9f 153Source151: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ro.xpi
3dfbe147 154# Source151-md5: b7591264d43b3ed03acf903f44cb12af
e4a1fb9f 155Source152: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/ru.xpi
3dfbe147 156# Source152-md5: 1c5073beb15286b12bfdd04c8f5f257f
4b94956b 157Source153: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sk.xpi
3dfbe147 158# Source153-md5: ddf51a3f204469e202acd673dc5c7ba6
4b94956b 159Source154: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sl.xpi
3dfbe147 160# Source154-md5: bbbd46074ee1fac1d78abbf688661fcf
4b94956b 161Source155: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sq.xpi
3dfbe147 162# Source155-md5: fd2b974713612485f722db6d1b9c2895
4b94956b 163Source156: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sr.xpi
3dfbe147 164# Source156-md5: e017fd0d92487daf816bff87be1bfd05
4b94956b 165Source157: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/sv-SE.xpi
3dfbe147 166# Source157-md5: 3b1056c2b99aa34bbf3027531d9160e5
4b94956b 167Source158: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/th.xpi
3dfbe147 168# Source158-md5: 2703bda1b69ed41bd0b33e6b8856c54a
4b94956b 169Source159: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/tr.xpi
3dfbe147 170# Source159-md5: c3f981e06e0101036954ee68ef29cec8
4b94956b 171Source160: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uk.xpi
3dfbe147 172# Source160-md5: 33e552d246212f26a3d40b09b897bed5
4b94956b 173Source161: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/uz.xpi
3dfbe147 174# Source161-md5: 5d1cb1b71346dabe51a8634fbbf54711
4b94956b 175Source162: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/vi.xpi
3dfbe147 176# Source162-md5: fedd683e030e53c6ab0003368b3df18a
4b94956b 177Source163: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-CN.xpi
3dfbe147 178# Source163-md5: 88d19822334f6595d823bce6d2c94c96
4b94956b 179Source164: https://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/linux-x86_64/xpi/zh-TW.xpi
3dfbe147 180# Source164-md5: bde09a42809d60d4d0489e7348dd8f42
dd12359d
JR
181Patch0: prefs.patch
182Patch1: no-subshell.patch
183Patch2: enable-addons.patch
356fd545 184Patch3: %{name}-system-virtualenv.patch
b44a8961 185Patch4: glibc-2.34.patch
cae5b55b 186URL: http://www.mozilla.org/projects/thunderbird/
51a3b6db 187BuildRequires: alsa-lib-devel
ea3df35f 188BuildRequires: autoconf2_13 >= 2.13
7fc0bf0b 189%{?with_gold:BuildRequires: binutils >= 3:2.20.51.0.7}
aee5e672 190%{?with_system_cairo:BuildRequires: cairo-devel >= 1.10.2-5}
4b94956b
JP
191BuildRequires: cargo >= 1.47.0
192%{?with_clang:BuildRequires: clang >= 5.0}
aee5e672 193BuildRequires: clang-devel
1747df62 194BuildRequires: dbus-devel >= 0.60
e820c55e 195BuildRequires: dbus-glib-devel >= 0.60
4b94956b 196BuildRequires: fontconfig-devel >= 1:2.7.0
44be9ed4 197BuildRequires: freetype-devel >= 1:2.1.8
4b94956b 198BuildRequires: glib2-devel >= 1:2.42
356fd545 199BuildRequires: gtk+3-devel >= 3.14.0
5b9c8e4c 200BuildRequires: libatomic-devel
1747df62 201BuildRequires: libdrm-devel >= 2.4
d0b96b40 202BuildRequires: libevent-devel
4b94956b
JP
203BuildRequires: libffi-devel > 6:3.0.9
204%{?with_system_icu:BuildRequires: libicu-devel >= 69.1}
51a3b6db 205BuildRequires: libiw-devel
e82da7a1 206# requires libjpeg-turbo implementing at least libjpeg 6b API
44be9ed4 207BuildRequires: libjpeg-devel >= 6b
e82da7a1 208BuildRequires: libjpeg-turbo-devel
159df8d0 209BuildRequires: libpng-devel >= 2:1.6.35
1747df62 210BuildRequires: libstdc++-devel >= 6:7
a52336f6
JP
211BuildRequires: libwebp-devel >= 1.0.2
212%{?with_system_libvpx:BuildRequires: libvpx-devel >= 1.8.0}
aee5e672 213BuildRequires: llvm-devel
d0b96b40 214BuildRequires: mozldap-devel
4b94956b 215BuildRequires: nodejs >= 10.23.1
f4114a7f
ER
216BuildRequires: nspr-devel >= 1:%{nspr_ver}
217BuildRequires: nss-devel >= 1:%{nss_ver}
62096d2c 218BuildRequires: pango-devel >= 1:1.22.0
e820c55e 219BuildRequires: perl-base >= 1:5.6
5b7bcd89 220BuildRequires: pixman-devel >= 0.19.2
4b94956b 221BuildRequires: pkgconfig >= 1:0.9.0
e1db5c9e 222BuildRequires: python3 >= 1:3.8.5-3
4b94956b 223BuildRequires: python3-simplejson
e1db5c9e 224BuildRequires: python3-virtualenv
53a4326b 225BuildRequires: rpm-build >= 4.6
4b94956b
JP
226BuildRequires: rust >= 1.47.0
227BuildRequires: rust-cbindgen >= 0.19.0
44be9ed4 228BuildRequires: sed >= 4.0
159df8d0 229BuildRequires: tar >= 1:1.22
ffb12c8e 230BuildRequires: virtualenv
ea3df35f
JB
231BuildRequires: xorg-lib-libX11-devel
232BuildRequires: xorg-lib-libXcomposite-devel
233BuildRequires: xorg-lib-libXdamage-devel
44be9ed4 234BuildRequires: xorg-lib-libXext-devel
ea3df35f 235BuildRequires: xorg-lib-libXfixes-devel
44be9ed4 236BuildRequires: xorg-lib-libXt-devel
1747df62 237BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.1
159df8d0 238BuildRequires: xz
ea3df35f
JB
239%ifarch %{ix86} %{x8664}
240BuildRequires: yasm >= 1.0.1
241%endif
1c62cadb 242BuildRequires: zip
ea3df35f
JB
243BuildRequires: zlib-devel >= 1.2.3
244Requires(post): mktemp >= 1.5-18
aee5e672 245%{?with_system_cairo:Requires: cairo >= 1.10.2-5}
ea3df35f 246Requires: dbus-glib >= 0.60
1747df62 247Requires: fontconfig >= 2.7.0
4b94956b 248Requires: glib2 >= 1:2.42
356fd545
JP
249Requires: glibc >= 6:2.17
250Requires: gtk+3 >= 3.14.0
1747df62 251Requires: libdrm >= 2.4
4b94956b 252%{?with_system_icu:Requires: libicu >= 69.1}
1747df62 253Requires: libjpeg-turbo
159df8d0 254Requires: libpng >= 2:1.6.35
356fd545 255Requires: libstdc++ >= 6:4.8.1
a52336f6
JP
256Requires: libwebp >= 1.0.2
257%{?with_system_libvpx:Requires: libvpx >= 1.8.0}
44be9ed4 258Requires: myspell-common
f4114a7f
ER
259Requires: nspr >= 1:%{nspr_ver}
260Requires: nss >= 1:%{nss_ver}
62096d2c 261Requires: pango >= 1:1.22.0
1747df62 262Requires: xorg-lib-libxkbcommon >= 0.4.1
53a4326b
JB
263Obsoletes: icedove < 39
264Obsoletes: mozilla-thunderbird < 32
265Obsoletes: mozilla-thunderbird-dictionary-en-US < 2.0
356fd545 266Obsoletes: thunderbird-addon-lightning < 78.0
4b94956b
JP
267Obsoletes: thunderbird-lang-fa < 91.0
268Obsoletes: thunderbird-lang-si < 91.0
cae5b55b 269Conflicts: thunderbird-lang-resources < %{version}
44be9ed4 270BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
271
9e366f18
AM
272%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
273
e9df532c
JR
274%if %{with clang}
275%define filterout -fvar-tracking-assignments
276%endif
277
cae5b55b 278# firefox/thunderbird/seamonkey provide their own versions
44be9ed4 279%define _noautoprovfiles %{_libdir}/%{name}/components
99b97bc4 280
356fd545 281%define moz_caps liblgpllibs.so libmozalloc.so libmozgtk.so libmozjs.so libmozsandbox.so libmozsqlite3.so libmozwayland.so librnp.so libxul.so
fb7d4f06 282# we don't want these to satisfy packages depending on xulrunner
fec0760f 283%define _noautoprov %{moz_caps}
44be9ed4 284# and as we don't provide them, don't require either
fec0760f 285%define _noautoreq %{moz_caps}
44be9ed4 286
7a5e9406 287%define topdir %{_builddir}/thunderbird-%{version}
9e7875fc
ER
288%define objdir %{topdir}/obj-%{_target_cpu}
289
44be9ed4 290%description
cae5b55b 291Thunderbird is an open-source, fast and portable email client.
44be9ed4 292
293%description -l pl.UTF-8
cae5b55b 294Thunderbird jest mającym otwarte źródła, szybkim i przenośnym klientem
6b327de6 295poczty.
44be9ed4 296
e1db5c9e
JB
297%package lang-af
298Summary: Afrikaans resources for Thunderbird
299Summary(pl.UTF-8): Afrykanerskie pliki językowe dla Thunderbirda
300Group: I18n
301Requires: thunderbird >= %{version}
302Provides: thunderbird-lang-resources = %{version}
303BuildArch: noarch
304
305%description lang-af
306Afrikaans resources for Thunderbird.
307
308%description lang-af -l pl.UTF-8
309Afrykanerskie pliki językowe dla Thunderbirda.
310
b24ace7e
JR
311%package lang-ar
312Summary: Arabic resources for Thunderbird
313Summary(pl.UTF-8): Arabskie pliki językowe dla Thunderbirda
314Group: I18n
315Requires: thunderbird >= %{version}
316Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
317Obsoletes: icedove-lang-ar < 39
318Obsoletes: mozilla-thunderbird-lang-ar < 32
b24ace7e
JR
319BuildArch: noarch
320
321%description lang-ar
322Arabic resources for Thunderbird.
323
324%description lang-ar -l pl.UTF-8
325Arabskie pliki językowe dla Thunderbirda.
326
327%package lang-ast
328Summary: Asturian resources for Thunderbird
329Summary(pl.UTF-8): Asturskie pliki językowe dla Thunderbirda
330Group: I18n
331Requires: thunderbird >= %{version}
332Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
333Obsoletes: icedove-lang-ast < 39
334Obsoletes: mozilla-thunderbird-lang-ast < 32
b24ace7e
JR
335BuildArch: noarch
336
337%description lang-ast
338Asturian resources for Thunderbird.
339
340%description lang-ast -l pl.UTF-8
341Asturskie pliki językowe dla Thunderbirda.
342
343%package lang-be
344Summary: Belarusian resources for Thunderbird
345Summary(pl.UTF-8): Białoruskie pliki językowe dla Thunderbirda
346Group: I18n
347Requires: thunderbird >= %{version}
348Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
349Obsoletes: icedove-lang-be < 39
350Obsoletes: mozilla-thunderbird-lang-be < 32
b24ace7e
JR
351BuildArch: noarch
352
353%description lang-be
354Belarusian resources for Thunderbird.
355
356%description lang-be -l pl.UTF-8
357Białoruskie pliki językowe dla Thunderbirda.
358
359%package lang-bg
360Summary: Bulgarian resources for Thunderbird
361Summary(pl.UTF-8): Bułgarskie pliki językowe dla Thunderbirda
362Group: I18n
363Requires: thunderbird >= %{version}
364Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
365Obsoletes: icedove-lang-bg < 39
366Obsoletes: mozilla-thunderbird-lang-bg < 32
b24ace7e
JR
367BuildArch: noarch
368
369%description lang-bg
370Bulgarian resources for Thunderbird.
371
372%description lang-bg -l pl.UTF-8
373Bułgarskie pliki językowe dla Thunderbirda.
374
375%package lang-bn
376Summary: Bengali (Bangladesh) resources for Thunderbird
377Summary(pl.UTF-8): Bengalskie pliki językowe dla Thunderbirda (wersja dla Bangladeszu)
378Group: I18n
379Requires: thunderbird >= %{version}
380Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
381Obsoletes: icedove-lang-bn < 39
382Obsoletes: mozilla-thunderbird-lang-bn < 32
b24ace7e
JR
383BuildArch: noarch
384
385%description lang-bn
386Bengali (Bangladesh) resources for Thunderbird.
387
388%description lang-bn -l pl.UTF-8
389Bengalskie pliki językowe dla Thunderbirda (wersja dla Bangladeszu).
390
391%package lang-br
392Summary: Breton resources for Thunderbird
393Summary(pl.UTF-8): Bretońskie pliki językowe dla Thunderbirda
394Group: I18n
395Requires: thunderbird >= %{version}
396Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
397Obsoletes: icedove-lang-br < 39
398Obsoletes: mozilla-thunderbird-lang-br < 32
b24ace7e
JR
399BuildArch: noarch
400
401%description lang-br
402Breton resources for Thunderbird.
403
404%description lang-br -l pl.UTF-8
405Bretońskie pliki językowe dla Thunderbirda.
406
407%package lang-ca
408Summary: Catalan resources for Thunderbird
409Summary(pl.UTF-8): Katalońskie pliki językowe dla Thunderbirda
410Group: I18n
411Requires: thunderbird >= %{version}
412Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
413Obsoletes: icedove-lang-ca < 39
414Obsoletes: mozilla-thunderbird-lang-ca < 32
b24ace7e
JR
415BuildArch: noarch
416
417%description lang-ca
418Catalan resources for Thunderbird.
419
420%description lang-ca -l pl.UTF-8
421Katalońskie pliki językowe dla Thunderbirda.
422
e1db5c9e
JB
423%package lang-cak
424Summary: Kaqchikel resources for Thunderbird
425Summary(pl.UTF-8): Pliki językowe kaqchikel dla Thunderbirda
426Group: I18n
427Requires: thunderbird >= %{version}
428Provides: thunderbird-lang-resources = %{version}
429BuildArch: noarch
430
431%description lang-cak
432Kaqchikel resources for Thunderbird.
433
434%description lang-cak -l pl.UTF-8
435Pliki językowe kaqchikel dla Thunderbirda.
436
aee5e672
JP
437%package lang-cy
438Summary: Welsh resources for Thunderbird
439Summary(pl.UTF-8): Walijskie pliki językowe dla Thunderbirda
440Group: I18n
441Requires: thunderbird >= %{version}
442Provides: thunderbird-lang-resources = %{version}
443BuildArch: noarch
444
445%description lang-cy
446Welsh resources for Thunderbird.
447
448%description lang-cy -l pl.UTF-8
449Walijskie pliki językowe dla Thunderbirda.
450
b24ace7e
JR
451%package lang-cs
452Summary: Czech resources for Thunderbird
453Summary(pl.UTF-8): Czeskie pliki językowe dla Thunderbirda
454Group: I18n
455Requires: thunderbird >= %{version}
456Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
457Obsoletes: icedove-lang-cs < 39
458Obsoletes: mozilla-thunderbird-lang-cs < 32
b24ace7e
JR
459BuildArch: noarch
460
461%description lang-cs
462Czech resources for Thunderbird.
463
464%description lang-cs -l pl.UTF-8
465Czeskie pliki językowe dla Thunderbirda.
466
467%package lang-da
468Summary: Danish resources for Thunderbird
469Summary(pl.UTF-8): Duńskie pliki językowe dla Thunderbirda
470Group: I18n
471Requires: thunderbird >= %{version}
472Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
473Obsoletes: icedove-lang-da < 39
474Obsoletes: mozilla-thunderbird-lang-da < 32
b24ace7e
JR
475BuildArch: noarch
476
477%description lang-da
478Danish resources for Thunderbird.
479
480%description lang-da -l pl.UTF-8
481Duńskie pliki językowe dla Thunderbirda.
482
483%package lang-de
484Summary: German resources for Thunderbird
485Summary(pl.UTF-8): Niemieckie pliki językowe dla Thunderbirda
486Group: I18n
487Requires: thunderbird >= %{version}
488Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
489Obsoletes: icedove-lang-de < 39
490Obsoletes: mozilla-thunderbird-lang-de < 32
b24ace7e
JR
491BuildArch: noarch
492
493%description lang-de
494German resources for Thunderbird.
495
496%description lang-de -l pl.UTF-8
497Niemieckie pliki językowe dla Thunderbirda.
498
499%package lang-dsb
500Summary: Lower Sorbian resources for Thunderbird
501Summary(pl.UTF-8): Dolnołużyckie pliki językowe dla Thunderbirda
502Group: I18n
503Requires: thunderbird >= %{version}
504Provides: thunderbird-lang-resources = %{version}
505BuildArch: noarch
506
507%description lang-dsb
508Lower Sorbian resources for Thunderbird.
509
510%description lang-dsb -l pl.UTF-8
511Dolnołużyckie pliki językowe dla Thunderbirda.
512
513%package lang-el
514Summary: Greek resources for Thunderbird
515Summary(pl.UTF-8): Greckie pliki językowe dla Thunderbirda
516Group: I18n
517Requires: thunderbird >= %{version}
518Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
519Obsoletes: icedove-lang-el < 39
520Obsoletes: mozilla-thunderbird-lang-el < 32
b24ace7e
JR
521BuildArch: noarch
522
523%description lang-el
524Greek resources for Thunderbird.
525
526%description lang-el -l pl.UTF-8
527Greckie pliki językowe dla Thunderbirda.
528
e1db5c9e
JB
529%package lang-en_CA
530Summary: English (Canadian) resources for Thunderbird
531Summary(pl.UTF-8): Angielskie (kanadyjskie) pliki językowe dla Thunderbirda
532Group: I18n
533Requires: thunderbird >= %{version}
534Provides: thunderbird-lang-resources = %{version}
535BuildArch: noarch
536
537%description lang-en_CA
538English (Canadian) resources for Thunderbird.
539
540%description lang-en_CA -l pl.UTF-8
541Angielskie (kanadyjskie) pliki językowe dla Thunderbirda.
542
b24ace7e
JR
543%package lang-en_GB
544Summary: English (British) resources for Thunderbird
545Summary(pl.UTF-8): Angielskie (brytyjskie) pliki językowe dla Thunderbirda
546Group: I18n
547Requires: thunderbird >= %{version}
548Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
549Obsoletes: icedove-lang-en_GB < 39
550Obsoletes: mozilla-thunderbird-lang-en_GB < 32
b24ace7e
JR
551BuildArch: noarch
552
553%description lang-en_GB
554English (British) resources for Thunderbird.
555
556%description lang-en_GB -l pl.UTF-8
557Angielskie (brytyjskie) pliki językowe dla Thunderbirda.
558
559%package lang-en_US
560Summary: English (American) resources for Thunderbird
561Summary(pl.UTF-8): Angielskie (amerykańskie) pliki językowe dla Thunderbirda
562Group: I18n
563Requires: thunderbird >= %{version}
564Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
565Obsoletes: icedove-lang-en_US < 39
566Obsoletes: mozilla-thunderbird-lang-en_US < 32
b24ace7e
JR
567BuildArch: noarch
568
569%description lang-en_US
570English (American) resources for Thunderbird.
571
572%description lang-en_US -l pl.UTF-8
573Angielskie (amerykańskie) pliki językowe dla Thunderbirda.
574
575%package lang-es_AR
576Summary: Spanish (Andorra) resources for Thunderbird
577Summary(pl.UTF-8): Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Andory)
578Group: I18n
579Requires: thunderbird >= %{version}
580Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
581Obsoletes: icedove-lang-es_AR < 39
582Obsoletes: mozilla-thunderbird-lang-es_AR < 32
b24ace7e
JR
583BuildArch: noarch
584
585%description lang-es_AR
586Spanish (Andorra) resources for Thunderbird.
587
588%description lang-es_AR -l pl.UTF-8
589Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Andory).
590
591%package lang-es
592Summary: Spanish (Spain) resources for Thunderbird
593Summary(pl.UTF-8): Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Hiszpanii)
594Group: I18n
595Requires: thunderbird >= %{version}
596Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
597Obsoletes: icedove-lang-es < 39
598Obsoletes: mozilla-thunderbird-lang-es < 32
b24ace7e
JR
599BuildArch: noarch
600
601%description lang-es
602Spanish (Spain) resources for Thunderbird.
603
604%description lang-es -l pl.UTF-8
605Hiszpańskie pliki językowe dla Thunderbirda (wersja dla Hiszpanii).
606
607%package lang-et
608Summary: Estonian resources for Thunderbird
609Summary(pl.UTF-8): Estońskie pliki językowe dla Thunderbirda
610Group: I18n
611Requires: thunderbird >= %{version}
612Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
613Obsoletes: icedove-lang-et < 39
614Obsoletes: mozilla-thunderbird-lang-et < 32
b24ace7e
JR
615BuildArch: noarch
616
617%description lang-et
618Estonian resources for Thunderbird.
619
620%description lang-et -l pl.UTF-8
621Estońskie pliki językowe dla Thunderbirda.
622
623%package lang-eu
624Summary: Basque resources for Thunderbird
625Summary(pl.UTF-8): Baskijskie pliki językowe dla Thunderbirda
626Group: I18n
627Requires: thunderbird >= %{version}
628Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
629Obsoletes: icedove-lang-eu < 39
630Obsoletes: mozilla-thunderbird-lang-eu < 32
b24ace7e
JR
631BuildArch: noarch
632
633%description lang-eu
634Basque resources for Thunderbird.
635
636%description lang-eu -l pl.UTF-8
637Baskijskie pliki językowe dla Thunderbirda.
638
639%package lang-fi
640Summary: Finnish resources for Thunderbird
641Summary(pl.UTF-8): Fińskie pliki językowe dla Thunderbirda
642Group: I18n
643Requires: thunderbird >= %{version}
644Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
645Obsoletes: icedove-lang-fi < 39
646Obsoletes: mozilla-thunderbird-lang-fi < 32
b24ace7e
JR
647BuildArch: noarch
648
649%description lang-fi
650Finnish resources for Thunderbird.
651
652%description lang-fi -l pl.UTF-8
653Fińskie pliki językowe dla Thunderbirda.
654
655%package lang-fr
656Summary: French resources for Thunderbird
657Summary(pl.UTF-8): Francuskie pliki językowe dla Thunderbirda
658Group: I18n
659Requires: thunderbird >= %{version}
660Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
661Obsoletes: icedove-lang-fr < 39
662Obsoletes: mozilla-thunderbird-lang-fr < 32
b24ace7e
JR
663BuildArch: noarch
664
665%description lang-fr
666French resources for Thunderbird.
667
668%description lang-fr -l pl.UTF-8
669Francuskie pliki językowe dla Thunderbirda.
670
671%package lang-fy
672Summary: Frisian resources for Thunderbird
673Summary(pl.UTF-8): Fryzyjskie pliki językowe dla Thunderbirda
674Group: I18n
675Requires: thunderbird >= %{version}
676Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
677Obsoletes: icedove-lang-fy < 39
678Obsoletes: mozilla-thunderbird-lang-fy < 32
b24ace7e
JR
679BuildArch: noarch
680
681%description lang-fy
682Frisian resources for Thunderbird.
683
684%description lang-fy -l pl.UTF-8
685Fryzyjskie pliki językowe dla Thunderbirda.
686
687%package lang-ga
688Summary: Irish resources for Thunderbird
689Summary(pl.UTF-8): Irlandzkie pliki językowe dla Thunderbirda
690Group: I18n
691Requires: thunderbird >= %{version}
692Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
693Obsoletes: icedove-lang-ga < 39
694Obsoletes: mozilla-thunderbird-lang-ga < 32
b24ace7e
JR
695BuildArch: noarch
696
697%description lang-ga
698Irish resources for Thunderbird.
699
700%description lang-ga -l pl.UTF-8
701Irlandzkie pliki językowe dla Thunderbirda.
702
703%package lang-gd
704Summary: Gaelic resources for Thunderbird
705Summary(pl.UTF-8): Szkockie (gaelickie) pliki językowe dla Thunderbirda
706Group: I18n
707Requires: thunderbird >= %{version}
708Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
709Obsoletes: icedove-lang-gd < 39
710Obsoletes: mozilla-thunderbird-lang-gd < 32
b24ace7e
JR
711BuildArch: noarch
712
713%description lang-gd
714Gaelic resources for Thunderbird.
715
716%description lang-gd -l pl.UTF-8
717Szkockie (gaelickie) pliki językowe dla Thunderbirda.
718
719%package lang-gl
720Summary: Galician resources for Thunderbird
721Summary(pl.UTF-8): Galicyjskie pliki językowe dla Thunderbirda
722Group: I18n
723Requires: thunderbird >= %{version}
724Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
725Obsoletes: icedove-lang-gl < 39
726Obsoletes: mozilla-thunderbird-lang-gl < 32
b24ace7e
JR
727BuildArch: noarch
728
729%description lang-gl
730Galician resources for Thunderbird.
731
732%description lang-gl -l pl.UTF-8
733Galicyjskie pliki językowe dla Thunderbirda.
734
735%package lang-he
736Summary: Hebrew resources for Thunderbird
737Summary(pl.UTF-8): Hebrajskie pliki językowe dla Thunderbirda
738Group: I18n
739Requires: thunderbird >= %{version}
740Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
741Obsoletes: icedove-lang-he < 39
742Obsoletes: mozilla-thunderbird-lang-he < 32
b24ace7e
JR
743BuildArch: noarch
744
745%description lang-he
746Hebrew resources for Thunderbird.
747
748%description lang-he -l pl.UTF-8
749Hebrajskie pliki językowe dla Thunderbirda.
750
751%package lang-hr
752Summary: Croatian resources for Thunderbird
753Summary(pl.UTF-8): Chorwackie pliki językowe dla Thunderbirda
754Group: I18n
755Requires: thunderbird >= %{version}
756Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
757Obsoletes: icedove-lang-hr < 39
758Obsoletes: mozilla-thunderbird-lang-hr < 32
b24ace7e
JR
759BuildArch: noarch
760
761%description lang-hr
762Croatian resources for Thunderbird.
763
764%description lang-hr -l pl.UTF-8
765Chorwackie pliki językowe dla Thunderbirda.
766
767%package lang-hsb
768Summary: Upper Sorbian resources for Thunderbird
769Summary(pl.UTF-8): Górnołużyckie pliki językowe dla Thunderbirda
770Group: I18n
771Requires: thunderbird >= %{version}
772Provides: thunderbird-lang-resources = %{version}
773BuildArch: noarch
774
775%description lang-hsb
776Upper Sorbian resources for Thunderbird.
777
778%description lang-hsb -l pl.UTF-8
779Górnołużyckie pliki językowe dla Thunderbirda.
780
781%package lang-hu
782Summary: Hungarian resources for Thunderbird
783Summary(pl.UTF-8): Węgierskie pliki językowe dla Thunderbirda
784Group: I18n
785Requires: thunderbird >= %{version}
786Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
787Obsoletes: icedove-lang-hu < 39
788Obsoletes: mozilla-thunderbird-lang-hu < 32
b24ace7e
JR
789BuildArch: noarch
790
791%description lang-hu
792Hungarian resources for Thunderbird.
793
794%description lang-hu -l pl.UTF-8
795Węgierskie pliki językowe dla Thunderbirda.
796
797%package lang-hy
798Summary: Armenian resources for Thunderbird
799Summary(pl.UTF-8): Ormiańskie pliki językowe dla Thunderbirda
800Group: I18n
801Requires: thunderbird >= %{version}
802Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
803Obsoletes: icedove-lang-hy < 39
804Obsoletes: mozilla-thunderbird-lang-hy < 32
b24ace7e
JR
805BuildArch: noarch
806
807%description lang-hy
808Armenian resources for Thunderbird.
809
810%description lang-hy -l pl.UTF-8
811Ormiańskie pliki językowe dla Thunderbirda.
812
813%package lang-id
814Summary: Indonesian resources for Thunderbird
815Summary(pl.UTF-8): Indonezyjskie pliki językowe dla Thunderbirda
816Group: I18n
817Requires: thunderbird >= %{version}
818Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
819Obsoletes: icedove-lang-id < 39
820Obsoletes: mozilla-thunderbird-lang-id < 32
b24ace7e
JR
821BuildArch: noarch
822
823%description lang-id
824Indonesian resources for Thunderbird.
825
826%description lang-id -l pl.UTF-8
827Indonezyjskie pliki językowe dla Thunderbirda.
828
829%package lang-is
830Summary: Icelandic resources for Thunderbird
831Summary(pl.UTF-8): Islandzkie pliki językowe dla Thunderbirda
832Group: I18n
833Requires: thunderbird >= %{version}
834Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
835Obsoletes: icedove-lang-is < 39
836Obsoletes: mozilla-thunderbird-lang-is < 32
b24ace7e
JR
837BuildArch: noarch
838
839%description lang-is
840Icelandic resources for Thunderbird.
841
842%description lang-is -l pl.UTF-8
843Islandzkie pliki językowe dla Thunderbirda.
844
845%package lang-it
846Summary: Italian resources for Thunderbird
847Summary(pl.UTF-8): Włoskie pliki językowe dla Thunderbirda
848Group: I18n
849Requires: thunderbird >= %{version}
850Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
851Obsoletes: icedove-lang-it < 39
852Obsoletes: mozilla-thunderbird-lang-it < 32
b24ace7e
JR
853BuildArch: noarch
854
855%description lang-it
856Italian resources for Thunderbird.
857
858%description lang-it -l pl.UTF-8
859Włoskie pliki językowe dla Thunderbirda.
860
861%package lang-ja
862Summary: Japanese resources for Thunderbird
863Summary(pl.UTF-8): Japońskie pliki językowe dla Thunderbirda
864Group: I18n
865Requires: thunderbird >= %{version}
866Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
867Obsoletes: icedove-lang-ja < 39
868Obsoletes: mozilla-thunderbird-lang-ja < 32
b24ace7e
JR
869BuildArch: noarch
870
871%description lang-ja
872Japanese resources for Thunderbird.
873
874%description lang-ja -l pl.UTF-8
875Japońskie pliki językowe dla Thunderbirda.
876
e1db5c9e
JB
877%package lang-ka
878Summary: Georgian resources for Thunderbird
879Summary(pl.UTF-8): Gruzińskie pliki językowe dla Thunderbirda
880Group: I18n
881Requires: thunderbird >= %{version}
882Provides: thunderbird-lang-resources = %{version}
883BuildArch: noarch
884
885%description lang-ka
886Georgian resources for Thunderbird.
887
888%description lang-ka -l pl.UTF-8
889Gruzińskie pliki językowe dla Thunderbirda.
890
b24ace7e
JR
891%package lang-kab
892Summary: Kabyle resources for Thunderbird
893Summary(pl.UTF-8): Kabylskie pliki językowe dla Thunderbirda
894Group: I18n
895Requires: thunderbird >= %{version}
896Provides: thunderbird-lang-resources = %{version}
897BuildArch: noarch
898
899%description lang-kab
900Kabyle resources for Thunderbird.
901
902%description lang-kab -l pl.UTF-8
903Kabylskie pliki językowe dla Thunderbirda.
904
aee5e672
JP
905%package lang-kk
906Summary: Kazakh resources for Thunderbird
907Summary(pl.UTF-8): Kazachskie pliki językowe dla Thunderbirda
908Group: I18n
909Requires: thunderbird >= %{version}
910Provides: thunderbird-lang-resources = %{version}
911BuildArch: noarch
912
913%description lang-kk
914Kazakh resources for Thunderbird.
915
916%description lang-kk -l pl.UTF-8
917Kazachskie pliki językowe dla Thunderbirda.
918
b24ace7e
JR
919%package lang-ko
920Summary: Korean resources for Thunderbird
921Summary(pl.UTF-8): Koreańskie pliki językowe dla Thunderbirda
922Group: I18n
923Requires: thunderbird >= %{version}
924Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
925Obsoletes: icedove-lang-ko < 39
926Obsoletes: mozilla-thunderbird-lang-ko < 32
b24ace7e
JR
927BuildArch: noarch
928
929%description lang-ko
930Korean resources for Thunderbird.
931
932%description lang-ko -l pl.UTF-8
933Koreańskie pliki językowe dla Thunderbirda.
934
935%package lang-lt
936Summary: Lithuanian resources for Thunderbird
937Summary(pl.UTF-8): Litewskie pliki językowe dla Thunderbirda
938Group: I18n
939Requires: thunderbird >= %{version}
940Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
941Obsoletes: icedove-lang-lt < 39
942Obsoletes: mozilla-thunderbird-lang-lt < 32
b24ace7e
JR
943BuildArch: noarch
944
945%description lang-lt
946Lithuanian resources for Thunderbird.
947
948%description lang-lt -l pl.UTF-8
949Litewskie pliki językowe dla Thunderbirda.
950
4b94956b
JP
951%package lang-lv
952Summary: Latvian resources for Thunderbird
953Summary(pl.UTF-8): Łotewskie pliki językowe dla Thunderbirda
954Group: I18n
955Requires: thunderbird >= %{version}
956Provides: thunderbird-lang-resources = %{version}
957BuildArch: noarch
958
959%description lang-lv
960Latvian resources for Thunderbird.
961
962%description lang-lv -l pl.UTF-8
963Łotewskie pliki językowe dla Thunderbirda.
964
aee5e672
JP
965%package lang-ms
966Summary: Malay resources for Thunderbird
967Summary(pl.UTF-8): Malajskie pliki językowe dla Thunderbirda
968Group: I18n
969Requires: thunderbird >= %{version}
970Provides: thunderbird-lang-resources = %{version}
971BuildArch: noarch
972
973%description lang-ms
974Malay resources for Thunderbird.
975
976%description lang-ms -l pl.UTF-8
977Malajskie pliki językowe dla Thunderbirda.
978
b24ace7e
JR
979%package lang-nb
980Summary: Norwegian Bokmaal resources for Thunderbird
981Summary(pl.UTF-8): Norweskie (bokmaal) pliki językowe dla Thunderbirda
982Group: I18n
983Requires: thunderbird >= %{version}
984Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
985Obsoletes: icedove-lang-nb < 39
986Obsoletes: mozilla-thunderbird-lang-nb < 32
b24ace7e
JR
987BuildArch: noarch
988
989%description lang-nb
990Norwegian Bokmaal resources for Thunderbird.
991
992%description lang-nb -l pl.UTF-8
993Norweskie (bokmaal) pliki językowe dla Thunderbirda.
994
995%package lang-nl
996Summary: Dutch resources for Thunderbird
997Summary(pl.UTF-8): Holenderskie pliki językowe dla Thunderbirda
998Group: I18n
999Requires: thunderbird >= %{version}
1000Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1001Obsoletes: icedove-lang-nl < 39
1002Obsoletes: mozilla-thunderbird-lang-nl < 32
b24ace7e
JR
1003BuildArch: noarch
1004
1005%description lang-nl
1006Dutch resources for Thunderbird.
1007
1008%description lang-nl -l pl.UTF-8
1009Holenderskie pliki językowe dla Thunderbirda.
1010
1011%package lang-nn
1012Summary: Norwegian Nynorsk resources for Thunderbird
1013Summary(pl.UTF-8): Norweskie (nynorsk) pliki językowe dla Thunderbirda
1014Group: I18n
1015Requires: thunderbird >= %{version}
1016Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1017Obsoletes: icedove-lang-nn < 39
1018Obsoletes: mozilla-thunderbird-lang-nn < 32
b24ace7e
JR
1019BuildArch: noarch
1020
1021%description lang-nn
1022Norwegian Nynorsk resources for Thunderbird.
1023
1024%description lang-nn -l pl.UTF-8
1025Norweskie (nynorsk) pliki językowe dla Thunderbirda.
1026
1027%package lang-pa
1028Summary: Panjabi resources for Thunderbird
1029Summary(pl.UTF-8): Pendżabskie pliki językowe dla Thunderbirda
1030Group: I18n
1031Requires: thunderbird >= %{version}
1032Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1033Obsoletes: icedove-lang-pa < 39
1034Obsoletes: mozilla-thunderbird-lang-pa < 32
b24ace7e
JR
1035BuildArch: noarch
1036
1037%description lang-pa
1038Panjabi resources for Thunderbird.
1039
1040%description lang-pa -l pl.UTF-8
1041Pendżabskie pliki językowe dla Thunderbirda.
1042
1043%package lang-pl
1044Summary: Polish resources for Thunderbird
1045Summary(pl.UTF-8): Polskie pliki językowe dla Thunderbirda
1046Group: I18n
b24ace7e
JR
1047Requires: thunderbird >= %{version}
1048Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1049Obsoletes: icedove-lang-pl < 39
1050Obsoletes: mozilla-thunderbird-lang-pl < 32
b24ace7e
JR
1051BuildArch: noarch
1052
1053%description lang-pl
1054Polish resources for Thunderbird.
1055
1056%description lang-pl -l pl.UTF-8
1057Polskie pliki językowe dla Thunderbirda.
1058
1059%package lang-pt_BR
1060Summary: Portuguese (Brazil) resources for Thunderbird
1061Summary(pl.UTF-8): Portugalskie (brazylijskie) pliki językowe dla Thunderbirda
1062Group: I18n
1063Requires: thunderbird >= %{version}
1064Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1065Obsoletes: icedove-lang-pt_BR < 39
1066Obsoletes: mozilla-thunderbird-lang-pt_BR < 32
b24ace7e
JR
1067BuildArch: noarch
1068
1069%description lang-pt_BR
1070Portuguese (Brazil) resources for Thunderbird.
1071
1072%description lang-pt_BR -l pl.UTF-8
1073Portugalskie (brazylijskie) pliki językowe dla Thunderbirda.
1074
1075%package lang-pt
1076Summary: Portuguese (Portugal) resources for Thunderbird
1077Summary(pl.UTF-8): Portugalskie pliki językowe dla Thunderbirda (wersja dla Portugalii)
1078Group: I18n
1079Requires: thunderbird >= %{version}
1080Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1081Obsoletes: icedove-lang-pt < 39
1082Obsoletes: mozilla-thunderbird-lang-pt < 32
b24ace7e
JR
1083BuildArch: noarch
1084
1085%description lang-pt
1086Portuguese (Portugal) resources for Thunderbird.
1087
1088%description lang-pt -l pl.UTF-8
1089Portugalskie pliki językowe dla Thunderbirda (wersja dla Portugalii).
1090
1091%package lang-rm
1092Summary: Romansh resources for Thunderbird
1093Summary(pl.UTF-8): Retoromańskie pliki językowe dla Thunderbirda
1094Group: I18n
1095Requires: thunderbird >= %{version}
1096Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1097Obsoletes: icedove-lang-rm < 39
1098Obsoletes: mozilla-thunderbird-lang-rm < 32
b24ace7e
JR
1099BuildArch: noarch
1100
1101%description lang-rm
1102Romansh resources for Thunderbird.
1103
1104%description lang-rm -l pl.UTF-8
1105Retoromańskie pliki językowe dla Thunderbirda.
1106
1107%package lang-ro
1108Summary: Romanian resources for Thunderbird
1109Summary(pl.UTF-8): Rumuńskie pliki językowe dla Thunderbirda
1110Group: I18n
1111Requires: thunderbird >= %{version}
1112Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1113Obsoletes: icedove-lang-ro < 39
1114Obsoletes: mozilla-thunderbird-lang-ro < 32
b24ace7e
JR
1115BuildArch: noarch
1116
1117%description lang-ro
1118Romanian resources for Thunderbird.
1119
1120%description lang-ro -l pl.UTF-8
1121Rumuńskie pliki językowe dla Thunderbirda.
1122
1123%package lang-ru
1124Summary: Russian resources for Thunderbird
1125Summary(pl.UTF-8): Rosyjskie pliki językowe dla Thunderbirda
1126Group: I18n
1127Requires: thunderbird >= %{version}
1128Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1129Obsoletes: icedove-lang-ru < 39
1130Obsoletes: mozilla-thunderbird-lang-ru < 32
b24ace7e
JR
1131BuildArch: noarch
1132
1133%description lang-ru
1134Russian resources for Thunderbird.
1135
1136%description lang-ru -l pl.UTF-8
1137Rosyjskie pliki językowe dla Thunderbirda.
1138
b24ace7e
JR
1139%package lang-sk
1140Summary: Slovak resources for Thunderbird
1141Summary(pl.UTF-8): Słowackie pliki językowe dla Thunderbirda
1142Group: I18n
1143Requires: thunderbird >= %{version}
1144Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1145Obsoletes: icedove-lang-sk < 39
1146Obsoletes: mozilla-thunderbird-lang-sk < 32
b24ace7e
JR
1147BuildArch: noarch
1148
1149%description lang-sk
1150Slovak resources for Thunderbird.
1151
1152%description lang-sk -l pl.UTF-8
1153Słowackie pliki językowe dla Thunderbirda.
1154
1155%package lang-sl
1156Summary: Slovene resources for Thunderbird
1157Summary(pl.UTF-8): Słoweńskie pliki językowe dla Thunderbirda
1158Group: I18n
1159Requires: thunderbird >= %{version}
1160Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1161Obsoletes: icedove-lang-sl < 39
1162Obsoletes: mozilla-thunderbird-lang-sl < 32
b24ace7e
JR
1163BuildArch: noarch
1164
1165%description lang-sl
1166Slovene resources for Thunderbird.
1167
1168%description lang-sl -l pl.UTF-8
1169Słoweńskie pliki językowe dla Thunderbirda.
1170
1171%package lang-sq
1172Summary: Albanian resources for Thunderbird
1173Summary(pl.UTF-8): Albańskie pliki językowe dla Thunderbirda
1174Group: I18n
1175Requires: thunderbird >= %{version}
1176Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1177Obsoletes: icedove-lang-sq < 39
1178Obsoletes: mozilla-thunderbird-lang-sq < 32
b24ace7e
JR
1179BuildArch: noarch
1180
1181%description lang-sq
1182Albanian resources for Thunderbird.
1183
1184%description lang-sq -l pl.UTF-8
1185Albańskie pliki językowe dla Thunderbirda.
1186
1187%package lang-sr
1188Summary: Serbian resources for Thunderbird
1189Summary(pl.UTF-8): Serbskie pliki językowe dla Thunderbirda
1190Group: I18n
1191Requires: thunderbird >= %{version}
1192Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1193Obsoletes: icedove-lang-sr < 39
1194Obsoletes: mozilla-thunderbird-lang-sr < 32
b24ace7e
JR
1195BuildArch: noarch
1196
1197%description lang-sr
1198Serbian resources for Thunderbird.
1199
1200%description lang-sr -l pl.UTF-8
1201Serbskie pliki językowe dla Thunderbirda.
1202
1203%package lang-sv
1204Summary: Swedish resources for Thunderbird
1205Summary(pl.UTF-8): Szwedzkie pliki językowe dla Thunderbirda
1206Group: I18n
1207Requires: thunderbird >= %{version}
1208Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1209Obsoletes: icedove-lang-sv < 39
1210Obsoletes: mozilla-thunderbird-lang-sv < 32
b24ace7e
JR
1211BuildArch: noarch
1212
1213%description lang-sv
1214Swedish resources for Thunderbird.
1215
1216%description lang-sv -l pl.UTF-8
1217Szwedzkie pliki językowe dla Thunderbirda.
1218
1219%package lang-ta_LK
1220Summary: Tamil (Sri Lanka) resources for Thunderbird
1221Summary(pl.UTF-8): Tamilskie pliki językowe dla Thunderbirda (wersja dla Sri Lanki)
1222Group: I18n
1223Requires: thunderbird >= %{version}
1224Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1225Obsoletes: icedove-lang-ta_LK < 39
1226Obsoletes: mozilla-thunderbird-lang-ta_LK < 32
b24ace7e
JR
1227BuildArch: noarch
1228
1229%description lang-ta_LK
1230Tamil (Sri Lanka) resources for Thunderbird.
1231
1232%description lang-ta_LK -l pl.UTF-8
1233Tamilskie pliki językowe dla Thunderbirda (wersja dla Sri Lanki).
1234
e1db5c9e
JB
1235%package lang-th
1236Summary: Thai resources for Thunderbird
1237Summary(pl.UTF-8): Tajskie pliki językowe dla Thunderbirda
1238Group: I18n
1239Requires: thunderbird >= %{version}
1240Provides: thunderbird-lang-resources = %{version}
1241BuildArch: noarch
1242
1243%description lang-th
1244Thai resources for Thunderbird.
1245
1246%description lang-th -l pl.UTF-8
1247Tajskie pliki językowe dla Thunderbirda.
1248
b24ace7e
JR
1249%package lang-tr
1250Summary: Turkish resources for Thunderbird
1251Summary(pl.UTF-8): Tureckie pliki językowe dla Thunderbirda
1252Group: I18n
1253Requires: thunderbird >= %{version}
1254Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1255Obsoletes: icedove-lang-tr < 39
1256Obsoletes: mozilla-thunderbird-lang-tr < 32
b24ace7e
JR
1257BuildArch: noarch
1258
1259%description lang-tr
1260Turkish resources for Thunderbird.
1261
1262%description lang-tr -l pl.UTF-8
1263Tureckie pliki językowe dla Thunderbirda.
1264
1265%package lang-uk
1266Summary: Ukrainian resources for Thunderbird
1267Summary(pl.UTF-8): Ukraińskie pliki językowe dla Thunderbirda
1268Group: I18n
1269Requires: thunderbird >= %{version}
1270Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1271Obsoletes: icedove-lang-uk < 39
1272Obsoletes: mozilla-thunderbird-lang-uk < 32
b24ace7e
JR
1273BuildArch: noarch
1274
1275%description lang-uk
1276Ukrainian resources for Thunderbird.
1277
1278%description lang-uk -l pl.UTF-8
1279Ukraińskie pliki językowe dla Thunderbirda.
1280
e1db5c9e
JB
1281%package lang-uz
1282Summary: Uzbek resources for Thunderbird
1283Summary(pl.UTF-8): Uzbeckie pliki językowe dla Thunderbirda
1284Group: I18n
1285Requires: thunderbird >= %{version}
1286Provides: thunderbird-lang-resources = %{version}
1287BuildArch: noarch
1288
1289%description lang-uz
1290Uzbek resources for Thunderbird.
1291
1292%description lang-uz -l pl.UTF-8
1293zbeckiee pliki językowe dla Thunderbirda.
1294
b24ace7e
JR
1295%package lang-vi
1296Summary: Vietnamese resources for Thunderbird
1297Summary(pl.UTF-8): Wietnamskie pliki językowe dla Thunderbirda
1298Group: I18n
1299Requires: thunderbird >= %{version}
1300Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1301Obsoletes: icedove-lang-vi < 39
1302Obsoletes: mozilla-thunderbird-lang-vi < 32
b24ace7e
JR
1303BuildArch: noarch
1304
1305%description lang-vi
1306Vietnamese resources for Thunderbird.
1307
1308%description lang-vi -l pl.UTF-8
1309Wietnamskie pliki językowe dla Thunderbirda.
1310
1311%package lang-zh_CN
1312Summary: Simplified Chinese resources for Thunderbird
1313Summary(pl.UTF-8): Chińskie (uproszczone) pliki językowe dla Thunderbirda
1314Group: I18n
1315Requires: thunderbird >= %{version}
1316Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1317Obsoletes: icedove-lang-zh_CN < 39
1318Obsoletes: mozilla-thunderbird-lang-zh_CN < 32
b24ace7e
JR
1319BuildArch: noarch
1320
1321%description lang-zh_CN
1322Simplified Chinese resources for Thunderbird.
1323
1324%description lang-zh_CN -l pl.UTF-8
1325Chińskie (uproszczone) pliki językowe dla Thunderbirda.
1326
1327%package lang-zh_TW
1328Summary: Traditional Chinese resources for Thunderbird
1329Summary(pl.UTF-8): Chińskie tradycyjne pliki językowe dla Thunderbirda
1330Group: I18n
1331Requires: thunderbird >= %{version}
1332Provides: thunderbird-lang-resources = %{version}
53a4326b
JB
1333Obsoletes: icedove-lang-zh_TW < 39
1334Obsoletes: mozilla-thunderbird-lang-zh_TW < 32
b24ace7e
JR
1335BuildArch: noarch
1336
1337%description lang-zh_TW
1338Traditional Chinese resources for Thunderbird.
1339
1340%description lang-zh_TW -l pl.UTF-8
1341Chińskie tradycyjne pliki językowe dla Thunderbirda.
1342
44be9ed4 1343%prep
b24ace7e
JR
1344unpack() {
1345 local args="$1" file="$2"
1346 cp -p $file .
1347}
1348%define __unzip unpack
4b94956b 1349%setup -q %(seq -f '-a %g' 100 164 | xargs)
dd12359d
JR
1350%patch0 -p1
1351%patch1 -p1
aee5e672 1352%patch2 -p0
356fd545 1353%patch3 -p2
b44a8961 1354%patch4 -p1
d0b96b40 1355
44be9ed4 1356%build
aee5e672
JP
1357cp -p %{_datadir}/automake/config.* build/autoconf
1358
1359cat << 'EOF' > .mozconfig
1360. $topsrcdir/browser/config/mozconfig
9e7875fc 1361mk_add_options MOZ_OBJDIR=%{objdir}
cb0e4412 1362
19f2dc46
JR
1363%if %{with clang}
1364export CC="clang"
1365export CXX="clang++"
1366%else
1367export CC="%{__cc}"
1368export CXX="%{__cxx}"
1369%endif
92411103 1370%ifarch %{ix86}
3bdfd9af
JP
1371export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
1372export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
1373%else
1374export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
1375export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
1376%endif
1377
1378%if %{with lowmem}
1379export CFLAGS="$CFLAGS -g0"
1380export CXXFLAGS="$CXXFLAGS -g0"
92411103
JP
1381export MOZ_DEBUG_FLAGS=" "
1382export LLVM_USE_SPLIT_DWARF=1
1383export LLVM_PARALLEL_LINK_JOBS=1
1384export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
1385export RUSTFLAGS="-Cdebuginfo=0"
92411103 1386%endif
19f2dc46 1387
765a3a27
ER
1388%if %{with crashreporter}
1389export MOZ_DEBUG_SYMBOLS=1
1390%endif
1391
59c5a0e8 1392# Options for 'configure' (same as command-line options).
e41327ce 1393ac_add_options --host=%{_target_platform}
44be9ed4 1394ac_add_options --prefix=%{_prefix}
44be9ed4 1395%if %{?debug:1}0
59c5a0e8 1396ac_add_options --disable-optimize
44be9ed4 1397ac_add_options --enable-debug
1398ac_add_options --enable-debug-modules
59c5a0e8
SP
1399ac_add_options --enable-debugger-info-modules
1400ac_add_options --enable-crash-on-assert
44be9ed4 1401%else
1402ac_add_options --disable-debug
44be9ed4 1403%endif
88149483 1404ac_add_options --disable-strip
210a9feb 1405ac_add_options --disable-install-strip
44be9ed4 1406%if %{with tests}
1407ac_add_options --enable-tests
1408%else
1409ac_add_options --disable-tests
1410%endif
765a3a27
ER
1411%if %{with crashreporter}
1412ac_add_options --enable-crashreporter
1413%else
59c5a0e8 1414ac_add_options --disable-crashreporter
765a3a27 1415%endif
94496c4a 1416%ifarch %{ix86} %{x8664} %{arm}
1593d26c 1417ac_add_options --disable-elf-hack
94496c4a 1418%endif
8b3db612 1419ac_add_options --disable-necko-wifi
88149483 1420ac_add_options --disable-updater
8b3db612 1421ac_add_options --enable-alsa
aee5e672 1422ac_add_options --enable-application=comm/mail
ea3df35f 1423ac_add_options --enable-chrome-format=omni
aee5e672 1424ac_add_options --enable-default-toolkit=cairo-gtk3
ea3df35f 1425%{?with_official:ac_add_options --enable-official-branding}
7fc0bf0b 1426%{?with_gold:ac_add_options --enable-linker=gold}
a97d3356 1427%{?with_shared_js:ac_add_options --enable-shared-js}
aee5e672 1428%{?with_system_cairo:ac_add_options --enable-system-cairo}
a52336f6 1429ac_add_options --enable-system-pixman
3366507a 1430ac_add_options --with-distribution-id=org.pld-linux
a52336f6 1431ac_add_options --with-system-ffi
99b97bc4 1432ac_add_options --with%{!?with_system_icu:out}-system-icu
44be9ed4 1433ac_add_options --with-system-jpeg
d0b96b40 1434ac_add_options --with-system-libevent
7cc53bbd 1435ac_add_options --with%{!?with_system_libvpx:out}-system-libvpx
44be9ed4 1436ac_add_options --with-system-nspr
1437ac_add_options --with-system-nss
1438ac_add_options --with-system-png
a52336f6 1439ac_add_options --with-system-webp
44be9ed4 1440ac_add_options --with-system-zlib
44be9ed4 1441EOF
1442
a7ed76ab
AM
1443%if ! %{with clang}
1444# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
1445# however builds tend to fail on other arches when building in parallel.
4d8e1d33 1446MOZ_PARALLEL_BUILD=1
a7ed76ab 1447%ifarch %{x8664}
4d8e1d33
JP
1448jobs="%{__jobs}"
1449[ -n "$jobs" -a "$jobs" -gt 4 ] && MOZ_PARALLEL_BUILD=4 || MOZ_PARALLEL_BUILD="$jobs"
a7ed76ab 1450%endif
4d8e1d33
JP
1451export MOZ_PARALLEL_BUILD
1452%else
1453%{?__jobs:export MOZ_PARALLEL_BUILD="%__jobs"}
a7ed76ab 1454%endif
fed9e019 1455
4b94956b 1456AUTOCONF=/usr/bin/autoconf2_13 MACH_USE_SYSTEM_PYTHON=1 ./mach build
44be9ed4 1457
765a3a27
ER
1458%if %{with crashreporter}
1459# create debuginfo for crash-stats.mozilla.com
1460%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
1461%endif
1462
44be9ed4 1463%install
1464rm -rf $RPM_BUILD_ROOT
fbf39762 1465install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{extensions,plugins},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}
44be9ed4 1466
9e7875fc 1467cd %{objdir}
aee5e672 1468%{__make} -C comm/mail/installer stage-package \
44be9ed4 1469 DESTDIR=$RPM_BUILD_ROOT \
d0b96b40 1470 installdir=%{_libdir}/%{name} \
44be9ed4 1471 PKG_SKIP_STRIP=1
1472
cae5b55b 1473cp -a dist/thunderbird/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
d0b96b40 1474
9b40a2c3 1475# Enable crash reporter for Thunderbird application
765a3a27
ER
1476%if %{with crashreporter}
1477%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
1478
1479# Add debuginfo for crash-stats.mozilla.com
51a3b6db 1480install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
3a30e2d7 1481cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
765a3a27
ER
1482%endif
1483
99b97bc4
JR
1484%{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{name}
1485cp -p dist/thunderbird/chrome/icons/default/default48.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
78c9ef4f 1486cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
c6ec3c1c 1487
99b97bc4 1488# move arch independant ones to datadir
b24ace7e
JR
1489%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
1490%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
1491%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
1492%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
99b97bc4
JR
1493ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
1494ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
b24ace7e 1495ln -s ../../share/%{name}/extensions $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
99b97bc4 1496ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
52fc61e6 1497
283702b9 1498# mozldap
d0b96b40
JR
1499%{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
1500%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so
283702b9 1501
99b97bc4
JR
1502# remove unecessary stuff
1503%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
1504
b24ace7e
JR
1505cd ..
1506for a in *.xpi; do
1507 basename=$(basename $a .xpi)
2aea4435 1508 cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@thunderbird.mozilla.org.xpi
b24ace7e
JR
1509done
1510
44be9ed4 1511%clean
1512rm -rf $RPM_BUILD_ROOT
1513
1514%pretrans
5f035038
JR
1515if [ -d %{_libdir}/%{name}/extensions ] && [ ! -L %{_libdir}/%{name}/extensions ]; then
1516 install -d %{_datadir}/%{name}
1517 if [ -e %{_datadir}/%{name}/extensions ]; then
1518 mv %{_datadir}/%{name}/extensions{,.rpmsave}
1519 fi
1520 mv -v %{_libdir}/%{name}/extensions %{_datadir}/%{name}/extensions
1521fi
99b97bc4 1522for d in chrome defaults icons isp modules res; do
44be9ed4 1523 if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
1524 install -d %{_datadir}/%{name}
1525 mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d
1526 fi
1527done
1528exit 0
1529
e8f4ba81 1530%post
99b97bc4 1531%update_desktop_database_post
99b97bc4
JR
1532
1533%postun
1534%update_desktop_database_postun
e8f4ba81 1535
44be9ed4 1536%files
1537%defattr(644,root,root,755)
99b97bc4 1538%attr(755,root,root) %{_bindir}/%{name}
44be9ed4 1539%dir %{_libdir}/%{name}
99b97bc4
JR
1540%dir %{_libdir}/%{name}/plugins
1541
99b97bc4 1542%attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
99b97bc4
JR
1543%attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
1544%{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so}
fb04d265 1545%ifarch %{ix86} %{x8664} %{arm} aarch64
210a9feb 1546%attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so
f8beaab1 1547%endif
356fd545 1548%attr(755,root,root) %{_libdir}/%{name}/libmozsqlite3.so
fbf39762 1549%attr(755,root,root) %{_libdir}/%{name}/libmozwayland.so
356fd545 1550%attr(755,root,root) %{_libdir}/%{name}/librnp.so
99b97bc4 1551%attr(755,root,root) %{_libdir}/%{name}/libxul.so
73d54cb2 1552%attr(755,root,root) %{_libdir}/%{name}/*-bin
aee5e672 1553%attr(755,root,root) %{_libdir}/%{name}/pingsender
99b97bc4 1554%attr(755,root,root) %{_libdir}/%{name}/plugin-container
aee5e672 1555%attr(755,root,root) %{_libdir}/%{name}/precomplete
cae5b55b 1556%attr(755,root,root) %{_libdir}/%{name}/thunderbird
99b97bc4
JR
1557
1558%{_libdir}/%{name}/application.ini
a367af64 1559%{_libdir}/%{name}/dependentlibs.list
99b97bc4 1560%{_libdir}/%{name}/omni.ja
73d54cb2 1561%{_libdir}/%{name}/platform.ini
210a9feb
JR
1562%{!?with_system_icu:%{_libdir}/%{name}/icudt58l.dat}
1563
1564%dir %{_libdir}/%{name}/fonts
fbf39762 1565%{_libdir}/%{name}/fonts/TwemojiMozilla.ttf
44be9ed4 1566
765a3a27
ER
1567%if %{with crashreporter}
1568%attr(755,root,root) %{_libdir}/%{name}/crashreporter
1569%{_libdir}/%{name}/crashreporter.ini
1570%{_libdir}/%{name}/Throbber-small.gif
1571%endif
1572
99b97bc4
JR
1573# symlinks
1574%{_libdir}/%{name}/chrome
1575%{_libdir}/%{name}/defaults
b24ace7e 1576%{_libdir}/%{name}/extensions
99b97bc4 1577%{_libdir}/%{name}/isp
6578c165 1578
e1db5c9e
JB
1579%{_pixmapsdir}/thunderbird.png
1580%{_desktopdir}/thunderbird.desktop
52fc61e6 1581
99b97bc4
JR
1582%dir %{_datadir}/%{name}
1583%{_datadir}/%{name}/chrome
1584%{_datadir}/%{name}/defaults
cb5ff89c 1585%dir %{_datadir}/%{name}/extensions
99b97bc4 1586%{_datadir}/%{name}/isp
d0b96b40 1587
e1db5c9e
JB
1588%files lang-af
1589%defattr(644,root,root,755)
1590%{_datadir}/%{name}/extensions/langpack-af@thunderbird.mozilla.org.xpi
1591
b24ace7e
JR
1592%files lang-ar
1593%defattr(644,root,root,755)
2aea4435 1594%{_datadir}/%{name}/extensions/langpack-ar@thunderbird.mozilla.org.xpi
b24ace7e
JR
1595
1596%files lang-ast
1597%defattr(644,root,root,755)
2aea4435 1598%{_datadir}/%{name}/extensions/langpack-ast@thunderbird.mozilla.org.xpi
b24ace7e
JR
1599
1600%files lang-be
1601%defattr(644,root,root,755)
2aea4435 1602%{_datadir}/%{name}/extensions/langpack-be@thunderbird.mozilla.org.xpi
b24ace7e
JR
1603
1604%files lang-bg
1605%defattr(644,root,root,755)
2aea4435 1606%{_datadir}/%{name}/extensions/langpack-bg@thunderbird.mozilla.org.xpi
b24ace7e 1607
b24ace7e
JR
1608%files lang-br
1609%defattr(644,root,root,755)
2aea4435 1610%{_datadir}/%{name}/extensions/langpack-br@thunderbird.mozilla.org.xpi
b24ace7e
JR
1611
1612%files lang-ca
1613%defattr(644,root,root,755)
2aea4435 1614%{_datadir}/%{name}/extensions/langpack-ca@thunderbird.mozilla.org.xpi
b24ace7e 1615
e1db5c9e
JB
1616%files lang-cak
1617%defattr(644,root,root,755)
1618%{_datadir}/%{name}/extensions/langpack-cak@thunderbird.mozilla.org.xpi
1619
b24ace7e
JR
1620%files lang-cs
1621%defattr(644,root,root,755)
2aea4435 1622%{_datadir}/%{name}/extensions/langpack-cs@thunderbird.mozilla.org.xpi
b24ace7e 1623
aee5e672
JP
1624%files lang-cy
1625%defattr(644,root,root,755)
2aea4435 1626%{_datadir}/%{name}/extensions/langpack-cy@thunderbird.mozilla.org.xpi
aee5e672 1627
b24ace7e
JR
1628%files lang-da
1629%defattr(644,root,root,755)
2aea4435 1630%{_datadir}/%{name}/extensions/langpack-da@thunderbird.mozilla.org.xpi
b24ace7e
JR
1631
1632%files lang-de
1633%defattr(644,root,root,755)
2aea4435 1634%{_datadir}/%{name}/extensions/langpack-de@thunderbird.mozilla.org.xpi
b24ace7e
JR
1635
1636%files lang-dsb
1637%defattr(644,root,root,755)
2aea4435 1638%{_datadir}/%{name}/extensions/langpack-dsb@thunderbird.mozilla.org.xpi
b24ace7e
JR
1639
1640%files lang-el
1641%defattr(644,root,root,755)
2aea4435 1642%{_datadir}/%{name}/extensions/langpack-el@thunderbird.mozilla.org.xpi
b24ace7e 1643
e1db5c9e
JB
1644%files lang-en_CA
1645%defattr(644,root,root,755)
1646%{_datadir}/%{name}/extensions/langpack-en-CA@thunderbird.mozilla.org.xpi
1647
b24ace7e
JR
1648%files lang-en_GB
1649%defattr(644,root,root,755)
2aea4435 1650%{_datadir}/%{name}/extensions/langpack-en-GB@thunderbird.mozilla.org.xpi
b24ace7e
JR
1651
1652%files lang-en_US
1653%defattr(644,root,root,755)
2aea4435 1654%{_datadir}/%{name}/extensions/langpack-en-US@thunderbird.mozilla.org.xpi
b24ace7e
JR
1655
1656%files lang-es_AR
1657%defattr(644,root,root,755)
2aea4435 1658%{_datadir}/%{name}/extensions/langpack-es-AR@thunderbird.mozilla.org.xpi
b24ace7e
JR
1659
1660%files lang-es
1661%defattr(644,root,root,755)
2aea4435 1662%{_datadir}/%{name}/extensions/langpack-es-ES@thunderbird.mozilla.org.xpi
b24ace7e
JR
1663
1664%files lang-et
1665%defattr(644,root,root,755)
2aea4435 1666%{_datadir}/%{name}/extensions/langpack-et@thunderbird.mozilla.org.xpi
b24ace7e
JR
1667
1668%files lang-eu
1669%defattr(644,root,root,755)
2aea4435 1670%{_datadir}/%{name}/extensions/langpack-eu@thunderbird.mozilla.org.xpi
b24ace7e
JR
1671
1672%files lang-fi
1673%defattr(644,root,root,755)
2aea4435 1674%{_datadir}/%{name}/extensions/langpack-fi@thunderbird.mozilla.org.xpi
b24ace7e
JR
1675
1676%files lang-fr
1677%defattr(644,root,root,755)
2aea4435 1678%{_datadir}/%{name}/extensions/langpack-fr@thunderbird.mozilla.org.xpi
b24ace7e
JR
1679
1680%files lang-fy
1681%defattr(644,root,root,755)
2aea4435 1682%{_datadir}/%{name}/extensions/langpack-fy-NL@thunderbird.mozilla.org.xpi
b24ace7e
JR
1683
1684%files lang-ga
1685%defattr(644,root,root,755)
2aea4435 1686%{_datadir}/%{name}/extensions/langpack-ga-IE@thunderbird.mozilla.org.xpi
b24ace7e
JR
1687
1688%files lang-gd
1689%defattr(644,root,root,755)
2aea4435 1690%{_datadir}/%{name}/extensions/langpack-gd@thunderbird.mozilla.org.xpi
b24ace7e
JR
1691
1692%files lang-gl
1693%defattr(644,root,root,755)
2aea4435 1694%{_datadir}/%{name}/extensions/langpack-gl@thunderbird.mozilla.org.xpi
b24ace7e
JR
1695
1696%files lang-he
1697%defattr(644,root,root,755)
2aea4435 1698%{_datadir}/%{name}/extensions/langpack-he@thunderbird.mozilla.org.xpi
b24ace7e
JR
1699
1700%files lang-hr
1701%defattr(644,root,root,755)
2aea4435 1702%{_datadir}/%{name}/extensions/langpack-hr@thunderbird.mozilla.org.xpi
b24ace7e
JR
1703
1704%files lang-hsb
1705%defattr(644,root,root,755)
2aea4435 1706%{_datadir}/%{name}/extensions/langpack-hsb@thunderbird.mozilla.org.xpi
b24ace7e
JR
1707
1708%files lang-hu
1709%defattr(644,root,root,755)
2aea4435 1710%{_datadir}/%{name}/extensions/langpack-hu@thunderbird.mozilla.org.xpi
b24ace7e
JR
1711
1712%files lang-hy
1713%defattr(644,root,root,755)
2aea4435 1714%{_datadir}/%{name}/extensions/langpack-hy-AM@thunderbird.mozilla.org.xpi
b24ace7e
JR
1715
1716%files lang-id
1717%defattr(644,root,root,755)
2aea4435 1718%{_datadir}/%{name}/extensions/langpack-id@thunderbird.mozilla.org.xpi
b24ace7e
JR
1719
1720%files lang-is
1721%defattr(644,root,root,755)
2aea4435 1722%{_datadir}/%{name}/extensions/langpack-is@thunderbird.mozilla.org.xpi
b24ace7e
JR
1723
1724%files lang-it
1725%defattr(644,root,root,755)
2aea4435 1726%{_datadir}/%{name}/extensions/langpack-it@thunderbird.mozilla.org.xpi
b24ace7e
JR
1727
1728%files lang-ja
1729%defattr(644,root,root,755)
2aea4435 1730%{_datadir}/%{name}/extensions/langpack-ja@thunderbird.mozilla.org.xpi
b24ace7e 1731
e1db5c9e
JB
1732%files lang-ka
1733%defattr(644,root,root,755)
1734%{_datadir}/%{name}/extensions/langpack-ka@thunderbird.mozilla.org.xpi
1735
b24ace7e
JR
1736%files lang-kab
1737%defattr(644,root,root,755)
2aea4435 1738%{_datadir}/%{name}/extensions/langpack-kab@thunderbird.mozilla.org.xpi
b24ace7e 1739
aee5e672
JP
1740%files lang-kk
1741%defattr(644,root,root,755)
2aea4435 1742%{_datadir}/%{name}/extensions/langpack-kk@thunderbird.mozilla.org.xpi
aee5e672 1743
b24ace7e
JR
1744%files lang-ko
1745%defattr(644,root,root,755)
2aea4435 1746%{_datadir}/%{name}/extensions/langpack-ko@thunderbird.mozilla.org.xpi
b24ace7e
JR
1747
1748%files lang-lt
1749%defattr(644,root,root,755)
2aea4435 1750%{_datadir}/%{name}/extensions/langpack-lt@thunderbird.mozilla.org.xpi
b24ace7e 1751
4b94956b
JP
1752%files lang-lv
1753%defattr(644,root,root,755)
1754%{_datadir}/%{name}/extensions/langpack-lv@thunderbird.mozilla.org.xpi
1755
aee5e672
JP
1756%files lang-ms
1757%defattr(644,root,root,755)
2aea4435 1758%{_datadir}/%{name}/extensions/langpack-ms@thunderbird.mozilla.org.xpi
aee5e672 1759
b24ace7e
JR
1760%files lang-nb
1761%defattr(644,root,root,755)
2aea4435 1762%{_datadir}/%{name}/extensions/langpack-nb-NO@thunderbird.mozilla.org.xpi
b24ace7e
JR
1763
1764%files lang-nl
1765%defattr(644,root,root,755)
2aea4435 1766%{_datadir}/%{name}/extensions/langpack-nl@thunderbird.mozilla.org.xpi
b24ace7e
JR
1767
1768%files lang-nn
1769%defattr(644,root,root,755)
2aea4435 1770%{_datadir}/%{name}/extensions/langpack-nn-NO@thunderbird.mozilla.org.xpi
b24ace7e 1771
e1db5c9e
JB
1772%files lang-pa
1773%defattr(644,root,root,755)
1774%{_datadir}/%{name}/extensions/langpack-pa-IN@thunderbird.mozilla.org.xpi
1775
b24ace7e
JR
1776%files lang-pl
1777%defattr(644,root,root,755)
2aea4435 1778%{_datadir}/%{name}/extensions/langpack-pl@thunderbird.mozilla.org.xpi
b24ace7e
JR
1779
1780%files lang-pt_BR
1781%defattr(644,root,root,755)
2aea4435 1782%{_datadir}/%{name}/extensions/langpack-pt-BR@thunderbird.mozilla.org.xpi
b24ace7e
JR
1783
1784%files lang-pt
1785%defattr(644,root,root,755)
2aea4435 1786%{_datadir}/%{name}/extensions/langpack-pt-PT@thunderbird.mozilla.org.xpi
b24ace7e
JR
1787
1788%files lang-rm
1789%defattr(644,root,root,755)
2aea4435 1790%{_datadir}/%{name}/extensions/langpack-rm@thunderbird.mozilla.org.xpi
b24ace7e
JR
1791
1792%files lang-ro
1793%defattr(644,root,root,755)
2aea4435 1794%{_datadir}/%{name}/extensions/langpack-ro@thunderbird.mozilla.org.xpi
b24ace7e
JR
1795
1796%files lang-ru
1797%defattr(644,root,root,755)
2aea4435 1798%{_datadir}/%{name}/extensions/langpack-ru@thunderbird.mozilla.org.xpi
b24ace7e 1799
b24ace7e
JR
1800%files lang-sk
1801%defattr(644,root,root,755)
2aea4435 1802%{_datadir}/%{name}/extensions/langpack-sk@thunderbird.mozilla.org.xpi
b24ace7e
JR
1803
1804%files lang-sl
1805%defattr(644,root,root,755)
2aea4435 1806%{_datadir}/%{name}/extensions/langpack-sl@thunderbird.mozilla.org.xpi
b24ace7e
JR
1807
1808%files lang-sq
1809%defattr(644,root,root,755)
2aea4435 1810%{_datadir}/%{name}/extensions/langpack-sq@thunderbird.mozilla.org.xpi
b24ace7e
JR
1811
1812%files lang-sr
1813%defattr(644,root,root,755)
2aea4435 1814%{_datadir}/%{name}/extensions/langpack-sr@thunderbird.mozilla.org.xpi
b24ace7e
JR
1815
1816%files lang-sv
1817%defattr(644,root,root,755)
2aea4435 1818%{_datadir}/%{name}/extensions/langpack-sv-SE@thunderbird.mozilla.org.xpi
b24ace7e 1819
e1db5c9e
JB
1820%files lang-th
1821%defattr(644,root,root,755)
1822%{_datadir}/%{name}/extensions/langpack-th@thunderbird.mozilla.org.xpi
1823
b24ace7e
JR
1824%files lang-tr
1825%defattr(644,root,root,755)
2aea4435 1826%{_datadir}/%{name}/extensions/langpack-tr@thunderbird.mozilla.org.xpi
b24ace7e
JR
1827
1828%files lang-uk
1829%defattr(644,root,root,755)
2aea4435 1830%{_datadir}/%{name}/extensions/langpack-uk@thunderbird.mozilla.org.xpi
b24ace7e 1831
e1db5c9e
JB
1832%files lang-uz
1833%defattr(644,root,root,755)
1834%{_datadir}/%{name}/extensions/langpack-uz@thunderbird.mozilla.org.xpi
1835
b24ace7e
JR
1836%files lang-vi
1837%defattr(644,root,root,755)
2aea4435 1838%{_datadir}/%{name}/extensions/langpack-vi@thunderbird.mozilla.org.xpi
b24ace7e
JR
1839
1840%files lang-zh_CN
1841%defattr(644,root,root,755)
2aea4435 1842%{_datadir}/%{name}/extensions/langpack-zh-CN@thunderbird.mozilla.org.xpi
b24ace7e
JR
1843
1844%files lang-zh_TW
1845%defattr(644,root,root,755)
2aea4435 1846%{_datadir}/%{name}/extensions/langpack-zh-TW@thunderbird.mozilla.org.xpi
This page took 0.542616 seconds and 4 git commands to generate.