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