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