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