]> git.pld-linux.org Git - packages/seamonkey.git/blame - seamonkey.spec
- updated to 2.49.4 (constains Firefox ESR 52.9.0 security fixes)
[packages/seamonkey.git] / seamonkey.spec
CommitLineData
048deb2d
JR
1# TODO:
2# - consider --enable-libproxy
3# - do something with *.rdf file, there if file conflict with other lang packages
b19e17d8
JB
4#
5# Conditional build:
ceb753a6 6%bcond_without gtk3 # GTK+ 3.x instead of 2.x
7c87af2b 7%bcond_without ldap # disable e-mail address lookups in LDAP directories
c7d608a7 8%bcond_without kerberos # disable krb5 support
c7d608a7 9%bcond_with crashreporter # report crashes to crash-stats.mozilla.com
bd8dbb8a 10%bcond_with tests # enable tests (whatever they check)
24441e9c 11
5a870fa3
JB
12%define nspr_ver 4.13.1
13%define nss_ver 3.28.6
24441e9c 14
24441e9c
JR
15# The actual sqlite version (see RHBZ#480989):
16%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
24441e9c 17
048deb2d
JR
18# UPDATING TRANSALTIONS:
19%if 0
20rm -vf *.xpi
21./builder -g
5a870fa3 22V=2.49.4
048deb2d
JR
23U=http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$V/langpack/
24curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p'
25%endif
26
dc51aa63 27Summary: SeaMonkey Community Edition - web browser
fda067df
ER
28Summary(es.UTF-8): Navegador de Internet SeaMonkey Community Edition
29Summary(pl.UTF-8): SeaMonkey Community Edition - przeglądarka WWW
30Summary(pt_BR.UTF-8): Navegador SeaMonkey Community Edition
b19e17d8 31Name: seamonkey
5a870fa3 32Version: 2.49.4
5d0f79b7 33Release: 1
c7d608a7 34License: MPL v2.0
b19e17d8 35Group: X11/Applications/Networking
ceb753a6 36Source0: http://ftp.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz
5a870fa3 37# Source0-md5: 5868179112ff4b2562f0ca22f4091bf0
16e155ba
JB
38Source4: %{name}.desktop
39Source5: %{name}-composer.desktop
16e155ba 40Source7: %{name}-mail.desktop
16e155ba 41Source9: %{name}.sh
048deb2d 42Source100: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.cs.langpack.xpi
5a870fa3 43# Source100-md5: ea8679b0a53005194ba37aa93cc6d96c
048deb2d 44Source101: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.de.langpack.xpi
5a870fa3 45# Source101-md5: a9ea700071e46d2dbe0f20f2b89d14b6
048deb2d 46Source102: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-GB.langpack.xpi
5a870fa3 47# Source102-md5: bc952e49d2dc0023ad6a02006b3fadfb
048deb2d 48Source103: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-US.langpack.xpi
5a870fa3 49# Source103-md5: 70f716bcf052f85d93cc9c31d3485dea
048deb2d 50Source104: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-AR.langpack.xpi
5a870fa3 51# Source104-md5: 566895bf9344555e257c1329193b4599
048deb2d 52Source105: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-ES.langpack.xpi
5a870fa3 53# Source105-md5: 3cebddc6561154279ee990e11039e989
048deb2d 54Source106: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fr.langpack.xpi
5a870fa3 55# Source106-md5: b6648e11df5de5085eb096e282a9c32d
048deb2d 56Source107: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.hu.langpack.xpi
5a870fa3 57# Source107-md5: 489985e4589075d283d283d4d15f7a7e
048deb2d 58Source108: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.it.langpack.xpi
5a870fa3 59# Source108-md5: fb58032d2d8b220c5d5fca596abc9cd6
048deb2d 60Source109: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ja.langpack.xpi
5a870fa3 61# Source109-md5: ad1eb989acca2d410df20634001cfff9
048deb2d 62Source110: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.lt.langpack.xpi
5a870fa3
JB
63# Source110-md5: cbc7e1b0b7836e93e3ddabd285c124ca
64Source111: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nb-NO.langpack.xpi
65# Source111-md5: 53ff9320263f2b2ef614434035bb8638
66Source112: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nl.langpack.xpi
67# Source112-md5: 3af79ab368d303e1531e379e609e08a9
68Source113: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pl.langpack.xpi
69# Source113-md5: c281366d869a3bf064fa5e1ffc2f9e53
70Source114: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-PT.langpack.xpi
71# Source114-md5: 648adb05f8f154840b3e86a2af26e2a2
72Source115: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ru.langpack.xpi
73# Source115-md5: 56a98a56ab775cf483eb3f3eb2fe96a5
74Source116: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sk.langpack.xpi
75# Source116-md5: 1fa532a10a90706918713f8c879e3a30
76Source117: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sv-SE.langpack.xpi
77# Source117-md5: 17e5f8e0a0368ec95df9fd0bcbfc5ee4
78Source118: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-CN.langpack.xpi
79# Source118-md5: 47dce13104db366e90b34d6d9b91db39
80Source119: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-TW.langpack.xpi
81# Source119-md5: 00b3d856b7eec77ed1fe60abb2956ec2
16e155ba
JB
82Patch1: %{name}-pld-branding.patch
83Patch2: %{name}-agent.patch
c7d608a7 84Patch3: %{name}-enable-addons.patch
16e155ba 85# Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade
ceb753a6
JB
86Patch4: %{name}-system-virtualenv.patch
87Patch5: %{name}-icu-detect.patch
ceb753a6 88URL: https://www.seamonkey-project.org/
bd8dbb8a 89BuildRequires: GConf2-devel >= 1.2.1
7c87af2b
JR
90BuildRequires: OpenGL-devel
91BuildRequires: alsa-lib-devel
ceb753a6 92BuildRequires: autoconf2_13 >= 2.13
7c87af2b
JR
93BuildRequires: bzip2-devel
94BuildRequires: cairo-devel >= 1.10.2-5
95BuildRequires: dbus-glib-devel >= 0.60
ceb753a6 96BuildRequires: fontconfig-devel >= 1:2.7.0
b19e17d8 97BuildRequires: freetype-devel >= 1:2.1.8
ceb753a6 98BuildRequires: glib2-devel >= 1:2.22
c7d608a7 99%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18}
ceb753a6 100%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.4.0}
7c87af2b
JR
101%{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
102BuildRequires: hunspell-devel
ceb753a6
JB
103# DECnet (dnprogs.spec), not dummy net (libdnet.spec)
104#BuildRequires: libdnet-devel
7c87af2b 105BuildRequires: libevent-devel >= 1.4.7
bd8dbb8a
JR
106# standalone libffi 3.0.9 or gcc's from 4.5(?)+
107BuildRequires: libffi-devel >= 6:3.0.9
c7d608a7 108BuildRequires: libicu-devel >= 50.1
16e155ba 109# requires libjpeg-turbo implementing at least libjpeg 6b API
b19e17d8 110BuildRequires: libjpeg-devel >= 6b
16e155ba 111BuildRequires: libjpeg-turbo-devel
7c87af2b
JR
112BuildRequires: libnotify-devel >= 0.4
113BuildRequires: libpng(APNG)-devel >= 0.10
ceb753a6
JB
114BuildRequires: libpng-devel >= 2:1.6.21
115BuildRequires: libstdc++-devel >= 6:4.7
116BuildRequires: libvpx-devel >= 1.5.0
757edfb3 117BuildRequires: mozldap-devel >= 6.0
7c87af2b
JR
118BuildRequires: nspr-devel >= 1:%{nspr_ver}
119BuildRequires: nss-devel >= 1:%{nss_ver}
757edfb3 120BuildRequires: pango-devel >= 1:1.22.0
bd8dbb8a 121BuildRequires: perl-base >= 1:5.6
7c87af2b 122BuildRequires: perl-modules >= 5.004
ceb753a6 123BuildRequires: pixman-devel >= 0.19.2
b19e17d8 124BuildRequires: pkgconfig
ceb753a6
JB
125BuildRequires: python >= 1:2.7
126BuildRequires: python-modules >= 1:2.7
80e2f4a2 127BuildRequires: python-virtualenv >= 15
c1527db1 128BuildRequires: rpm >= 4.4.9-56
7c87af2b 129BuildRequires: rpmbuild(macros) >= 1.601
b19e17d8 130BuildRequires: sed >= 4.0
5a870fa3 131BuildRequires: sqlite3-devel >= 3.17.0
7c87af2b 132BuildRequires: startup-notification-devel >= 0.8
ceb753a6 133BuildRequires: tar >= 1:1.22
c7d608a7 134BuildRequires: xorg-lib-libX11-devel
ceb753a6
JB
135BuildRequires: xorg-lib-libXcomposite-devel
136BuildRequires: xorg-lib-libXdamage-devel
f5fed05a 137BuildRequires: xorg-lib-libXext-devel
ceb753a6 138BuildRequires: xorg-lib-libXfixes-devel
f5fed05a 139BuildRequires: xorg-lib-libXt-devel
ceb753a6
JB
140BuildRequires: xz
141%ifarch %{ix86} %{x8664}
142BuildRequires: yasm >= 1.0.1
7c87af2b
JR
143%endif
144BuildRequires: zip
510dc0c3 145BuildRequires: zlib-devel >= 1.2.3
7c87af2b
JR
146Requires(post): mktemp >= 1.5-18
147Requires: desktop-file-utils
ceb753a6 148Requires: fontconfig >= 1:2.7.0
7c87af2b 149Requires: hicolor-icon-theme
6d3a5031 150Requires: browser-plugins >= 2.0
7c87af2b
JR
151Requires: cairo >= 1.10.2-5
152Requires: dbus-glib >= 0.60
ceb753a6 153Requires: glib2 >= 1:2.22
c7d608a7 154%{!?with_gtk3:Requires: gtk+2 >= 2:2.18}
ceb753a6 155%{?with_gtk3:Requires: gtk+3 >= 3.4.0}
16e155ba 156Requires: libjpeg-turbo
ceb753a6 157Requires: libpng >= 2:1.6.21
7c87af2b 158Requires: libpng(APNG) >= 0.10
ceb753a6 159Requires: libvpx >= 1.5.0
7c87af2b
JR
160Requires: myspell-common
161Requires: nspr >= 1:%{nspr_ver}
162Requires: nss >= 1:%{nss_ver}
757edfb3 163Requires: pango >= 1:1.22.0
ceb753a6 164Requires: pixman >= 0.19.2
7c87af2b
JR
165Requires: sqlite3 >= %{sqlite_build_version}
166Requires: startup-notification >= 0.8
488e9642 167Provides: seamonkey-embedded = %{version}-%{release}
b19e17d8 168Provides: wwwbrowser
80e2f4a2
JR
169Obsoletes: iceape
170Obsoletes: iceape-addon-lightning
171Obsoletes: iceape-chat
172Obsoletes: iceape-dom-inspector
173Obsoletes: iceape-js-debugger
174Obsoletes: iceape-mailnews
175Obsoletes: iceape-gnomevfs
b19e17d8 176Obsoletes: light
f27b291c 177Obsoletes: mozilla
5d0f79b7 178Obsoletes: mozilla-gnomevfs
ceb753a6
JB
179Obsoletes: seamonkey-addon-lightning < 2.46
180Obsoletes: seamonkey-char < 2.46
68683ec1 181Obsoletes: seamonkey-calendar
ceb753a6 182Obsoletes: seamonkey-dom-inspector < 2.46
757edfb3 183Obsoletes: seamonkey-js-debugger
d6a799e8 184Obsoletes: seamonkey-libs
2607f7aa 185Obsoletes: seamonkey-mailnews
5d0f79b7 186Obsoletes: seamonkey-gnomevfs
16e155ba 187Conflicts: seamonkey-lang-resources < %{version}
b19e17d8
JB
188BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
189
bd8dbb8a
JR
190%define topdir %{_builddir}/%{name}-%{version}
191%define objdir %{topdir}/obj-%{_target_cpu}
192
193%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
7c87af2b
JR
194
195# don't satisfy other packages
196%define _noautoprovfiles %{_libdir}/%{name}
92482a22 197# and as we don't provide them, don't require either
5a870fa3 198%define _noautoreq liblgpllibs.so libmozavcodec.so libmozavutil.so libmozgtk.so libmozsandbox.so libxul.so
92482a22 199
b19e17d8 200%description
dc51aa63
ER
201SeaMonkey Community Edition is an open-source web browser, designed
202for standards compliance, performance and portability.
b19e17d8 203
97d18aeb 204%description -l es.UTF-8
dc51aa63 205SeaMonkey Community Edition es un navegador de Internet que se basa en
97d18aeb 206una versión inicial de Netscape Communicator.
b19e17d8 207
97d18aeb
JR
208%description -l pl.UTF-8
209SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW,
210która jest następcą Mozilli, która następnie była następczynią
dc51aa63 211Netscape Communikatora.
b19e17d8 212
97d18aeb
JR
213%description -l pt_BR.UTF-8
214O SeaMonkey Community Edition é um web browser baseado numa versão
dc51aa63 215inicial do Netscape Communicator.
b19e17d8 216
97d18aeb
JR
217%description -l ru.UTF-8
218SeaMonkey Community Edition - полнофункциональный web-browser с
219открытыми исходными текстами, разработанный для максимального
220соотвествия стандартам, максмимальной переносимости и скорости работы
b19e17d8 221
048deb2d
JR
222%package lang-cs
223Summary: Czech resources for SeaMonkey
224Summary(pl.UTF-8): Czeskie pliki językowe dla SeaMonkeya
225Group: I18n
226Requires: seamonkey >= %{version}
227Provides: seamonkey-lang-resources = %{version}
228BuildArch: noarch
229
230%description lang-cs
231Czech resources for SeaMonkey.
232
233%description lang-cs -l pl.UTF-8
234Czeskie pliki językowe dla SeaMonkeya.
235
236%package lang-de
237Summary: German resources for SeaMonkey
238Summary(pl.UTF-8): Niemieckie pliki językowe dla SeaMonkeya
239Group: I18n
240Requires: seamonkey >= %{version}
241Provides: seamonkey-lang-resources = %{version}
242BuildArch: noarch
243
244%description lang-de
245German resources for SeaMonkey.
246
247%description lang-de -l pl.UTF-8
248Niemieckie pliki językowe dla SeaMonkeya.
249
250%package lang-en_GB
251Summary: English (British) resources for SeaMonkey
252Summary(pl.UTF-8): Angielskie (brytyjskie) pliki językowe dla SeaMonkeya
253Group: I18n
254Requires: seamonkey >= %{version}
255Provides: seamonkey-lang-resources = %{version}
256BuildArch: noarch
257
258%description lang-en_GB
259English (British) resources for SeaMonkey.
260
261%description lang-en_GB -l pl.UTF-8
262Angielskie (brytyjskie) pliki językowe dla SeaMonkeya.
263
264%package lang-en_US
265Summary: English (American) resources for SeaMonkey
266Summary(pl.UTF-8): Angielskie (amerykańskie) pliki językowe dla SeaMonkeya
267Group: I18n
268Requires: seamonkey >= %{version}
269Provides: seamonkey-lang-resources = %{version}
270BuildArch: noarch
271
272%description lang-en_US
273English (American) resources for SeaMonkey.
274
275%description lang-en_US -l pl.UTF-8
276Angielskie (amerykańskie) pliki językowe dla SeaMonkeya.
277
278%package lang-es_AR
279Summary: Spanish (Andorra) resources for SeaMonkey
280Summary(ca.UTF-8): Recursos espanyols (Andorra) per SeaMonkey
281Summary(es.UTF-8): Recursos españoles (Andorra) para SeaMonkey
282Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory)
283Group: I18n
284Requires: seamonkey >= %{version}
285Provides: seamonkey-lang-resources = %{version}
286BuildArch: noarch
287
288%description lang-es_AR
289Spanish (Spain) resources for SeaMonkey.
290
291%description lang-es_AR -l ca.UTF-8
292Recursos espanyols (Andorra) per SeaMonkey.
293
294%description lang-es_AR -l es.UTF-8
295Recursos españoles (Andorra) para SeaMonkey.
296
297%description lang-es_AR -l pl.UTF-8
298Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory).
299
300%package lang-es
301Summary: Spanish (Spain) resources for SeaMonkey
302Summary(ca.UTF-8): Recursos espanyols (Espanya) per SeaMonkey
303Summary(es.UTF-8): Recursos españoles (España) para SeaMonkey
304Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii)
305Group: I18n
306Requires: seamonkey >= %{version}
307Provides: seamonkey-lang-resources = %{version}
308BuildArch: noarch
309
310%description lang-es
311Spanish (Spain) resources for SeaMonkey.
312
313%description lang-es -l ca.UTF-8
314Recursos espanyols (Espanya) per SeaMonkey.
315
316%description lang-es -l es.UTF-8
317Recursos españoles (España) para SeaMonkey.
318
319%description lang-es -l pl.UTF-8
320Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii).
321
322%package lang-fr
323Summary: French resources for SeaMonkey
324Summary(pl.UTF-8): Francuskie pliki językowe dla SeaMonkeya
325Group: I18n
326Requires: seamonkey >= %{version}
327Provides: seamonkey-lang-resources = %{version}
328BuildArch: noarch
329
330%description lang-fr
331French resources for SeaMonkey.
332
333%description lang-fr -l pl.UTF-8
334Francuskie pliki językowe dla SeaMonkeya.
335
336%package lang-hu
337Summary: Hungarian resources for SeaMonkey
338Summary(hu.UTF-8): Magyar nyelv SeaMonkey-hez
339Summary(pl.UTF-8): Węgierskie pliki językowe dla SeaMonkeya
340Group: I18n
341Requires: seamonkey >= %{version}
342Provides: seamonkey-lang-resources = %{version}
343BuildArch: noarch
344
345%description lang-hu
346Hungarian resources for SeaMonkey.
347
348%description lang-hu -l hu.UTF-8
349Magyar nyelv SeaMonkey-hez.
350
351%description lang-hu -l pl.UTF-8
352Węgierskie pliki językowe dla SeaMonkeya.
353
354%package lang-it
355Summary: Italian resources for SeaMonkey
356Summary(pl.UTF-8): Włoskie pliki językowe dla SeaMonkeya
357Group: I18n
358Requires: seamonkey >= %{version}
359Provides: seamonkey-lang-resources = %{version}
360BuildArch: noarch
361
362%description lang-it
363Italian resources for SeaMonkey.
364
365%description lang-it -l pl.UTF-8
366Włoskie pliki językowe dla SeaMonkeya.
367
368%package lang-ja
369Summary: Japanese resources for SeaMonkey
370Summary(pl.UTF-8): Japońskie pliki językowe dla SeaMonkeya
371Group: I18n
372Requires: seamonkey >= %{version}
373Provides: seamonkey-lang-resources = %{version}
374BuildArch: noarch
375
376%description lang-ja
377Japanese resources for SeaMonkey.
378
379%description lang-ja -l pl.UTF-8
380Japońskie pliki językowe dla SeaMonkeya.
381
382%package lang-lt
383Summary: Lithuanian resources for SeaMonkey
384Summary(pl.UTF-8): Litewskie pliki językowe dla SeaMonkeya
385Group: I18n
386Requires: seamonkey >= %{version}
387Provides: seamonkey-lang-resources = %{version}
388BuildArch: noarch
389
390%description lang-lt
391Lithuanian resources for SeaMonkey.
392
393%description lang-lt -l pl.UTF-8
394Litewskie pliki językowe dla SeaMonkeya.
395
5a870fa3
JB
396%package lang-nb
397Summary: Norwegian Bokmaal resources for SeaMonkey
398Summary(pl.UTF-8): Norweskie (bokmaal) pliki językowe dla SeaMonkeya
399Group: I18n
400Requires: seamonkey >= %{version}
401Provides: seamonkey-lang-resources = %{version}
402BuildArch: noarch
403
404%description lang-nb
405Norwegian Bokmaal resources for SeaMonkey.
406
407%description lang-nb -l pl.UTF-8
408Norweskie (bokmaal) pliki językowe dla SeaMonkeya.
409
048deb2d
JR
410%package lang-nl
411Summary: Dutch resources for SeaMonkey
412Summary(pl.UTF-8): Holenderskie pliki językowe dla SeaMonkeya
413Group: I18n
414Requires: seamonkey >= %{version}
415Provides: seamonkey-lang-resources = %{version}
416BuildArch: noarch
417
418%description lang-nl
419Dutch resources for SeaMonkey.
420
421%description lang-nl -l pl.UTF-8
422Holenderskie pliki językowe dla SeaMonkeya.
423
424%package lang-pl
425Summary: Polish resources for SeaMonkey
426Summary(pl.UTF-8): Polskie pliki językowe dla SeaMonkeya
427Group: I18n
428Requires: seamonkey >= %{version}
429Provides: seamonkey-lang-resources = %{version}
430BuildArch: noarch
431
432%description lang-pl
433Polish resources for SeaMonkey.
434
435%description lang-pl -l pl.UTF-8
436Polskie pliki językowe dla SeaMonkeya.
437
438%package lang-pt
439Summary: Portuguese (Portugal) resources for SeaMonkey
440Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii)
441Group: I18n
442Requires: seamonkey >= %{version}
443Provides: seamonkey-lang-resources = %{version}
444BuildArch: noarch
445
446%description lang-pt
447Portuguese (Portugal) resources for SeaMonkey.
448
449%description lang-pt -l pl.UTF-8
450Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii).
451
452%package lang-ru
453Summary: Russian resources for SeaMonkey
454Summary(pl.UTF-8): Rosyjskie pliki językowe dla SeaMonkeya
455Group: I18n
456Requires: seamonkey >= %{version}
457Provides: seamonkey-lang-resources = %{version}
458BuildArch: noarch
459
460%description lang-ru
461Russian resources for SeaMonkey.
462
463%description lang-ru -l pl.UTF-8
464Rosyjskie pliki językowe dla SeaMonkeya.
465
466%package lang-sk
467Summary: Slovak resources for SeaMonkey
468Summary(pl.UTF-8): Słowackie pliki językowe dla SeaMonkeya
469Group: I18n
470Requires: seamonkey >= %{version}
471Provides: seamonkey-lang-resources = %{version}
472BuildArch: noarch
473
474%description lang-sk
475Slovak resources for SeaMonkey.
476
477%description lang-sk -l pl.UTF-8
478Słowackie pliki językowe dla SeaMonkeya.
479
480%package lang-sv
481Summary: Swedish resources for SeaMonkey
482Summary(pl.UTF-8): Szwedzkie pliki językowe dla SeaMonkeya
483Group: I18n
484Requires: seamonkey >= %{version}
485Provides: seamonkey-lang-resources = %{version}
486BuildArch: noarch
487
488%description lang-sv
489Swedish resources for SeaMonkey.
490
491%description lang-sv -l pl.UTF-8
492Szwedzkie pliki językowe dla SeaMonkeya.
493
494%package lang-zh_CN
495Summary: Simplified Chinese resources for SeaMonkey
496Summary(pl.UTF-8): Chińskie (uproszczone) pliki językowe dla SeaMonkeya
497Group: I18n
498Requires: seamonkey >= %{version}
499Provides: seamonkey-lang-resources = %{version}
500BuildArch: noarch
501
502%description lang-zh_CN
503Simplified Chinese resources for SeaMonkey.
504
505%description lang-zh_CN -l pl.UTF-8
506Chińskie uproszczone pliki językowe dla SeaMonkeya.
507
508%package lang-zh_TW
509Summary: Traditional Chinese resources for SeaMonkey
510Summary(pl.UTF-8): Chińskie tradycyjne pliki językowe dla SeaMonkeya
511Group: I18n
512Requires: seamonkey >= %{version}
513Provides: seamonkey-lang-resources = %{version}
514BuildArch: noarch
515
516%description lang-zh_TW
517Traditional Chinese resources for SeaMonkey.
518
519%description lang-zh_TW -l pl.UTF-8
520Chińskie tradycyjne pliki językowe dla SeaMonkeya.
521
b19e17d8 522%prep
048deb2d
JR
523unpack() {
524 local args="$1" file="$2"
525 cp -p $file .
526}
527%define __unzip unpack
5a870fa3 528%setup -q %(seq -f '-a %g' 100 119 | xargs)
bd8dbb8a
JR
529%patch1 -p1
530%patch2 -p1
757edfb3 531%patch3 -p1
bd8dbb8a 532%patch4 -p1
2f09c133 533%patch5 -p1
bd8dbb8a
JR
534
535%build
bd8dbb8a
JR
536cat << EOF > .mozconfig
537mk_add_options MOZ_OBJDIR=%{objdir}
538
bd8dbb8a
JR
539%if %{with crashreporter}
540export MOZ_DEBUG_SYMBOLS=1
541%endif
542
543# Options for 'configure' (same as command-line options).
544ac_add_options --prefix=%{_prefix}
bd8dbb8a
JR
545%if %{?debug:1}0
546ac_add_options --disable-optimize
5a870fa3 547ac_add_options --enable-crash-on-assert
bd8dbb8a
JR
548ac_add_options --enable-debug
549ac_add_options --enable-debug-modules
550ac_add_options --enable-debugger-info-modules
c1527db1 551%else
bd8dbb8a 552ac_add_options --disable-debug
bd8dbb8a 553ac_add_options --enable-optimize="%{rpmcflags} -Os"
c1527db1 554%endif
bd8dbb8a 555ac_add_options --disable-strip
bd8dbb8a
JR
556%if %{with tests}
557ac_add_options --enable-tests
558%else
559ac_add_options --disable-tests
560%endif
bd8dbb8a
JR
561%if %{with crashreporter}
562ac_add_options --enable-crashreporter
563%else
564ac_add_options --disable-crashreporter
565%endif
ceb753a6 566ac_add_options --disable-elf-hack
c7d608a7 567ac_add_options --disable-gnomeui
ceb753a6 568ac_add_options --disable-necko-wifi
bd8dbb8a 569ac_add_options --disable-updater
c7d608a7 570ac_add_options --enable-application=suite
ceb753a6 571ac_add_options --enable-chrome-format=omni
c7d608a7 572ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
ceb753a6 573ac_add_options --enable-extensions=default,irc
c7d608a7
JB
574ac_add_options --enable-gio
575%if %{with ldap}
576ac_add_options --enable-ldap
c7d608a7
JB
577%else
578ac_add_options --disable-ldap
579%endif
ceb753a6
JB
580ac_add_options --enable-safe-browsing
581# breaks build
582#ac_add_options --enable-shared-js
bd8dbb8a 583ac_add_options --enable-startup-notification
bd8dbb8a
JR
584ac_add_options --enable-system-cairo
585ac_add_options --enable-system-hunspell
586ac_add_options --enable-system-sqlite
c7d608a7 587ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
bd8dbb8a 588ac_add_options --with-distribution-id=org.pld-linux
bd8dbb8a
JR
589ac_add_options --with-pthreads
590ac_add_options --with-system-bz2
591ac_add_options --with-system-ffi
757edfb3 592ac_add_options --with-system-icu
bd8dbb8a
JR
593ac_add_options --with-system-jpeg
594ac_add_options --with-system-libevent
595ac_add_options --with-system-libvpx
596ac_add_options --with-system-nspr
597ac_add_options --with-system-nss
598ac_add_options --with-system-png
599ac_add_options --with-system-zlib
bd8dbb8a 600EOF
b19e17d8 601
bd8dbb8a 602%{__make} -j1 -f client.mk build \
ceb753a6 603 AUTOCONF=/usr/bin/autoconf2_13 \
bd8dbb8a
JR
604 STRIP="/bin/true" \
605 MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
2607f7aa 606 installdir=%{_libdir}/%{name} \
16e155ba 607 XLIBS="-lX11 -lXt" \
bd8dbb8a 608 CC="%{__cc}" \
ceb753a6 609 CXX="%{__cxx} -std=gnu++11"
b19e17d8 610
bd8dbb8a
JR
611%if %{with crashreporter}
612# create debuginfo for crash-stats.mozilla.com
613%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
614%endif
615
b19e17d8
JB
616%install
617rm -rf $RPM_BUILD_ROOT
618install -d \
2607f7aa 619 $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
b19e17d8 620 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
bd8dbb8a 621 $RPM_BUILD_ROOT%{_datadir}/%{name} \
757edfb3
JB
622 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \
623 $RPM_BUILD_ROOT%{_mandir}/man1
b19e17d8 624
bd8dbb8a 625%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
b19e17d8 626
d7cc109a 627cd %{objdir}
c7d608a7 628cwd=`pwd`
2607f7aa 629%{__make} -C suite/installer stage-package \
bd8dbb8a 630 DESTDIR=$RPM_BUILD_ROOT \
bd8dbb8a 631 installdir=%{_libdir}/%{name} \
2607f7aa
JR
632 PKG_SKIP_STRIP=1
633
757edfb3
JB
634cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
635cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1
b19e17d8 636
d7cc109a
JR
637# Enable crash reporter for Thunderbird application
638%if %{with crashreporter}
639%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
640
641# Add debuginfo for crash-stats.mozilla.com
642install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
ceb753a6 643cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
d7cc109a
JR
644%endif
645
5a870fa3 646# move arch independent ones to datadir
ceb753a6
JB
647%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
648%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
5a870fa3 649%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
ceb753a6 650%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
b19e17d8 651
bd8dbb8a
JR
652ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
653ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
5a870fa3 654ln -s ../../share/%{name}/fonts $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts
bd8dbb8a 655ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
c7d608a7 656
ceb753a6 657%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
eebfc2d2 658ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
bd8dbb8a 659
d7cc109a
JR
660# dir for arch independant extensions besides arch dependant extensions
661# see mozilla/xpcom/build/nsXULAppAPI.h
662# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
663install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
664
bd8dbb8a
JR
665%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
666ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
b19e17d8 667
16e155ba 668sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey
bd8dbb8a 669chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey
b19e17d8 670
ceb753a6 671install %{SOURCE4} %{SOURCE5} %{SOURCE7} \
824eb755 672 $RPM_BUILD_ROOT%{_desktopdir}
b19e17d8 673
ceb753a6
JB
674for d in 32 48 64 ; do
675install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps
676cp -p %{topdir}/suite/branding/nightly/content/icon${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png
677done
b19e17d8 678
2607f7aa 679# files created by seamonkey -register
d7cc109a
JR
680touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
681touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
b19e17d8 682
d7cc109a 683cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
b19e17d8
JB
684#!/bin/sh
685umask 022
d7cc109a
JR
686rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
687
688# it attempts to touch files in $HOME/.mozilla
689# beware if you run this with sudo!!!
690export HOME=$(mktemp -d)
691# also TMPDIR could be pointing to sudo user's homedir
692unset TMPDIR TMP || :
acf8815d 693
d7cc109a 694%{_libdir}/%{name}/seamonkey -register
acf8815d 695
d7cc109a 696rm -rf $HOME
b19e17d8 697EOF
d7cc109a 698chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
b19e17d8 699
ceb753a6
JB
700# don't package, rely on system mozldap libraries
701%{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
702%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so
703
048deb2d
JR
704cd ..
705for a in *.xpi; do
706 basename=$(basename $a .langpack.xpi)
707 basename=${basename##seamonkey-%{version}.}
708 cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@seamonkey.mozilla.org.xpi
709done
710
b19e17d8
JB
711%clean
712rm -rf $RPM_BUILD_ROOT
713
6d3a5031 714%post
d7cc109a 715%{_libdir}/%{name}/register || :
6d3a5031 716%update_browser_plugins
ceb753a6 717%update_icon_cache hicolor
d7cc109a 718%update_desktop_database
6d3a5031
ER
719
720%postun
6d3a5031
ER
721if [ "$1" = 0 ]; then
722 %update_browser_plugins
ceb753a6 723 %update_icon_cache hicolor
6d3a5031 724fi
b19e17d8 725
b19e17d8
JB
726%files
727%defattr(644,root,root,755)
ceb753a6 728%doc AUTHORS
acf8815d 729%attr(755,root,root) %{_bindir}/seamonkey
757edfb3 730%{_mandir}/man1/seamonkey.1*
b19e17d8 731
6d3a5031
ER
732# browser plugins v2
733%{_browserpluginsconfdir}/browsers.d/%{name}.*
734%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
735
d7cc109a 736%dir %{_libdir}/%{name}
ceb753a6 737%attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
5a870fa3
JB
738%attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so
739%attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so
ceb753a6 740%attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
5a870fa3 741%attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so
2607f7aa 742%attr(755,root,root) %{_libdir}/%{name}/libxul.so
ceb753a6
JB
743%dir %{_libdir}/%{name}/gtk2
744%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
d7cc109a 745
2607f7aa 746%{_libdir}/%{name}/blocklist.xml
c7d608a7 747%{_libdir}/%{name}/omni.ja
2607f7aa 748%attr(755,root,root) %{_libdir}/%{name}/register
d7cc109a 749
2607f7aa
JR
750%if %{with crashreporter}
751%{_libdir}/%{name}/crashreporter
752%{_libdir}/%{name}/crashreporter-override.ini
753%{_libdir}/%{name}/crashreporter.ini
754%{_libdir}/%{name}/Throbber-small.gif
755%endif
756
757# config?
758%{_libdir}/%{name}/application.ini
759%{_libdir}/%{name}/chrome.manifest
760
761%dir %{_libdir}/%{name}/components
2607f7aa 762%{_libdir}/%{name}/components/components.manifest
16e155ba
JB
763%attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so
764
16e155ba 765%{_libdir}/%{name}/dependentlibs.list
2607f7aa 766%{_libdir}/%{name}/platform.ini
2607f7aa
JR
767%attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
768%attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin
2607f7aa 769%attr(755,root,root) %{_libdir}/%{name}/plugin-container
2607f7aa 770
16e155ba
JB
771%attr(755,root,root) %{_libdir}/%{name}/seamonkey
772%dir %{_libdir}/%{name}/plugins
773
2607f7aa
JR
774# symlinks
775%{_libdir}/%{name}/chrome
776%{_libdir}/%{name}/defaults
5a870fa3 777%{_libdir}/%{name}/fonts
2607f7aa 778%{_libdir}/%{name}/dictionaries
5a870fa3 779%{_libdir}/%{name}/searchplugins
b19e17d8 780
2607f7aa
JR
781%dir %{_datadir}/%{name}
782%{_datadir}/%{name}/chrome
b19e17d8 783%{_datadir}/%{name}/defaults
5a870fa3 784%{_datadir}/%{name}/fonts
b19e17d8 785%{_datadir}/%{name}/searchplugins
b19e17d8 786
2607f7aa
JR
787%dir %{_datadir}/%{name}/extensions
788%dir %{_libdir}/%{name}/extensions
789# the signature of the default theme
790%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
791%{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
b19e17d8 792
2607f7aa
JR
793# files created by seamonkey -register
794%ghost %{_libdir}/%{name}/components/compreg.dat
795%ghost %{_libdir}/%{name}/components/xpti.dat
d7cc109a 796
2607f7aa
JR
797%{_libdir}/%{name}/isp
798%dir %{_datadir}/%{name}/isp
799%{_datadir}/%{name}/isp/Bogofilter.sfd
800%{_datadir}/%{name}/isp/DSPAM.sfd
801%{_datadir}/%{name}/isp/POPFile.sfd
802%{_datadir}/%{name}/isp/SpamAssassin.sfd
803%{_datadir}/%{name}/isp/SpamPal.sfd
804%{_datadir}/%{name}/isp/movemail.rdf
805%{_datadir}/%{name}/isp/rss.rdf
b19e17d8 806
ceb753a6 807%{_iconsdir}/hicolor/*x*/apps/seamonkey.png
2607f7aa
JR
808%{_desktopdir}/%{name}.desktop
809%{_desktopdir}/%{name}-composer.desktop
824eb755 810%{_desktopdir}/%{name}-mail.desktop
048deb2d
JR
811
812%files lang-cs
813%defattr(644,root,root,755)
814%{_datadir}/%{name}/extensions/langpack-cs@seamonkey.mozilla.org.xpi
815
816%files lang-de
817%defattr(644,root,root,755)
818%{_datadir}/%{name}/extensions/langpack-de@seamonkey.mozilla.org.xpi
819
820%files lang-en_GB
821%defattr(644,root,root,755)
822%{_datadir}/%{name}/extensions/langpack-en-GB@seamonkey.mozilla.org.xpi
823
824%files lang-en_US
825%defattr(644,root,root,755)
826%{_datadir}/%{name}/extensions/langpack-en-US@seamonkey.mozilla.org.xpi
827
828%files lang-es_AR
829%defattr(644,root,root,755)
830%{_datadir}/%{name}/extensions/langpack-es-AR@seamonkey.mozilla.org.xpi
831
832%files lang-es
833%defattr(644,root,root,755)
834%{_datadir}/%{name}/extensions/langpack-es-ES@seamonkey.mozilla.org.xpi
835
836%files lang-fr
837%defattr(644,root,root,755)
838%{_datadir}/%{name}/extensions/langpack-fr@seamonkey.mozilla.org.xpi
839
840%files lang-hu
841%defattr(644,root,root,755)
842%{_datadir}/%{name}/extensions/langpack-hu@seamonkey.mozilla.org.xpi
843
844%files lang-it
845%defattr(644,root,root,755)
846%{_datadir}/%{name}/extensions/langpack-it@seamonkey.mozilla.org.xpi
847
848%files lang-ja
849%defattr(644,root,root,755)
850%{_datadir}/%{name}/extensions/langpack-ja@seamonkey.mozilla.org.xpi
851
852%files lang-lt
853%defattr(644,root,root,755)
854%{_datadir}/%{name}/extensions/langpack-lt@seamonkey.mozilla.org.xpi
855
5a870fa3
JB
856%files lang-nb
857%defattr(644,root,root,755)
858%{_datadir}/%{name}/extensions/langpack-nb-NO@seamonkey.mozilla.org.xpi
859
048deb2d
JR
860%files lang-nl
861%defattr(644,root,root,755)
862%{_datadir}/%{name}/extensions/langpack-nl@seamonkey.mozilla.org.xpi
863
864%files lang-pl
865%defattr(644,root,root,755)
866%{_datadir}/%{name}/extensions/langpack-pl@seamonkey.mozilla.org.xpi
867
868%files lang-pt
869%defattr(644,root,root,755)
870%{_datadir}/%{name}/extensions/langpack-pt-PT@seamonkey.mozilla.org.xpi
871
872%files lang-ru
873%defattr(644,root,root,755)
874%{_datadir}/%{name}/extensions/langpack-ru@seamonkey.mozilla.org.xpi
875
876%files lang-sk
877%defattr(644,root,root,755)
878%{_datadir}/%{name}/extensions/langpack-sk@seamonkey.mozilla.org.xpi
879
880%files lang-sv
881%defattr(644,root,root,755)
882%{_datadir}/%{name}/extensions/langpack-sv-SE@seamonkey.mozilla.org.xpi
883
884%files lang-zh_CN
885%defattr(644,root,root,755)
886%{_datadir}/%{name}/extensions/langpack-zh-CN@seamonkey.mozilla.org.xpi
887
888%files lang-zh_TW
889%defattr(644,root,root,755)
890%{_datadir}/%{name}/extensions/langpack-zh-TW@seamonkey.mozilla.org.xpi
This page took 0.29031 seconds and 4 git commands to generate.