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