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