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