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