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