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