]> git.pld-linux.org Git - packages/seamonkey.git/blob - seamonkey.spec
6c66a4612b613b7db1d4c27c66c1877da7fccc59
[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_without  lightning       # disable Lightning calendar
10 %bcond_with     crashreporter   # report crashes to crash-stats.mozilla.com
11 %bcond_with     tests           # enable tests (whatever they check)
12
13 %define         nspr_ver        4.13.1
14 %define         nss_ver         3.28.6
15
16 # The actual sqlite version (see RHBZ#480989):
17 %define         sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
18
19 # UPDATING TRANSALTIONS:
20 %if 0
21 rm -vf *.xpi
22 ./builder -g
23 V=2.49.5
24 U=http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$V/langpacks/linux-i686/
25 curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p'
26 %endif
27
28 Summary:        SeaMonkey Community Edition - web browser
29 Summary(es.UTF-8):      Navegador de Internet SeaMonkey Community Edition
30 Summary(pl.UTF-8):      SeaMonkey Community Edition - przeglądarka WWW
31 Summary(pt_BR.UTF-8):   Navegador SeaMonkey Community Edition
32 Name:           seamonkey
33 Version:        2.49.5
34 Release:        1
35 License:        MPL v2.0
36 Group:          X11/Applications/Networking
37 Source0:        http://ftp.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz
38 # Source0-md5:  91f60a7aca6f8bc053ffddc7259ae4ec
39 Source4:        %{name}.desktop
40 Source5:        %{name}-composer.desktop
41 Source7:        %{name}-mail.desktop
42 Source9:        %{name}.sh
43 Source100:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.cs.langpack.xpi
44 # Source100-md5:        1e0b73887e5d80589c5b2fd5d8538d7f
45 Source101:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.de.langpack.xpi
46 # Source101-md5:        eb4bf2ab50756280d1a39c1547129ced
47 Source102:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.en-GB.langpack.xpi
48 # Source102-md5:        c9bea7471fabf225009a5340733e4ce2
49 Source103:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.en-US.langpack.xpi
50 # Source103-md5:        42f234f11bcb6a127462caaf664dc21b
51 Source104:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.es-AR.langpack.xpi
52 # Source104-md5:        5fdf01f31dd24c06bc0c51a74d9673a6
53 Source105:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.es-ES.langpack.xpi
54 # Source105-md5:        948d3dbf4452e7e46f1a0d5026d2200c
55 Source106:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.fr.langpack.xpi
56 # Source106-md5:        5dbd832a5d4d81aa52f7435123ade06e
57 Source107:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.hu.langpack.xpi
58 # Source107-md5:        b002ed727428960d34ded53ec290667b
59 Source108:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.it.langpack.xpi
60 # Source108-md5:        12d37399fda4202144a82b458f75d27c
61 Source109:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.ja.langpack.xpi
62 # Source109-md5:        f5e304d3ba8d526b28e92693f23154c9
63 Source110:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.lt.langpack.xpi
64 # Source110-md5:        40db7b6ee7b1ddd5723e51c335f73eec
65 Source111:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.nb-NO.langpack.xpi
66 # Source111-md5:        cfde049afaaba0afe9f8b85ac704ba85
67 Source112:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.nl.langpack.xpi
68 # Source112-md5:        21a733c0b344840a2d81958a0fe72bc1
69 Source113:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.pl.langpack.xpi
70 # Source113-md5:        1a2646b993dc540f09c8b04fc4107c45
71 Source114:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.pt-PT.langpack.xpi
72 # Source114-md5:        0e54c214e673c474400c36a934f946a8
73 Source115:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.ru.langpack.xpi
74 # Source115-md5:        c24ff5c5bafbfce18b0333ef31735f54
75 Source116:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.sk.langpack.xpi
76 # Source116-md5:        5ab1d6ebf6cee6dc822fc91e1ced4443
77 Source117:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.sv-SE.langpack.xpi
78 # Source117-md5:        e471259f0afcdb159ce5f0a8f24cfd5b
79 Source118:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.zh-CN.langpack.xpi
80 # Source118-md5:        7160e0ea724c68c6457bb5a76b996255
81 Source119:      http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpacks/linux-i686/seamonkey-%{version}.zh-TW.langpack.xpi
82 # Source119-md5:        5370bfa849ea4af22e6ef8d1500279c8
83 Patch1:         %{name}-pld-branding.patch
84 Patch2:         %{name}-agent.patch
85 Patch3:         %{name}-enable-addons.patch
86 # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade
87 Patch4:         %{name}-system-virtualenv.patch
88 Patch5:         %{name}-icu-detect.patch
89 Patch6:         %{name}-glibc2.30.patch
90 Patch7:         %{name}-crmf.patch
91 URL:            https://www.seamonkey-project.org/
92 BuildRequires:  GConf2-devel >= 1.2.1
93 BuildRequires:  OpenGL-devel
94 BuildRequires:  alsa-lib-devel
95 BuildRequires:  autoconf2_13 >= 2.13
96 BuildRequires:  bzip2-devel
97 BuildRequires:  cairo-devel >= 1.10.2-5
98 BuildRequires:  dbus-glib-devel >= 0.60
99 BuildRequires:  fontconfig-devel >= 1:2.7.0
100 BuildRequires:  freetype-devel >= 1:2.1.8
101 BuildRequires:  glib2-devel >= 1:2.22
102 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.18}
103 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.4.0}
104 %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
105 BuildRequires:  hunspell-devel
106 # DECnet (dnprogs.spec), not dummy net (libdnet.spec)
107 #BuildRequires: libdnet-devel
108 BuildRequires:  libevent-devel >= 1.4.7
109 # standalone libffi 3.0.9 or gcc's from 4.5(?)+
110 BuildRequires:  libffi-devel >= 6:3.0.9
111 BuildRequires:  libicu-devel >= 50.1
112 # requires libjpeg-turbo implementing at least libjpeg 6b API
113 BuildRequires:  libjpeg-devel >= 6b
114 BuildRequires:  libjpeg-turbo-devel
115 BuildRequires:  libnotify-devel >= 0.4
116 BuildRequires:  libpng(APNG)-devel >= 0.10
117 BuildRequires:  libpng-devel >= 2:1.6.21
118 BuildRequires:  libstdc++-devel >= 6:4.7
119 BuildRequires:  libvpx-devel >= 1.5.0
120 BuildRequires:  mozldap-devel >= 6.0
121 BuildRequires:  nspr-devel >= 1:%{nspr_ver}
122 BuildRequires:  nss-devel >= 1:%{nss_ver}
123 BuildRequires:  pango-devel >= 1:1.22.0
124 BuildRequires:  perl-base >= 1:5.6
125 BuildRequires:  perl-modules >= 5.004
126 BuildRequires:  pixman-devel >= 0.19.2
127 BuildRequires:  pkgconfig
128 BuildRequires:  python >= 1:2.7
129 BuildRequires:  python-modules >= 1:2.7
130 BuildRequires:  python-virtualenv >= 15
131 BuildRequires:  rpm >= 4.4.9-56
132 BuildRequires:  rpmbuild(macros) >= 1.601
133 BuildRequires:  sed >= 4.0
134 BuildRequires:  sqlite3-devel >= 3.17.0
135 BuildRequires:  startup-notification-devel >= 0.8
136 BuildRequires:  tar >= 1:1.22
137 BuildRequires:  xorg-lib-libX11-devel
138 BuildRequires:  xorg-lib-libXcomposite-devel
139 BuildRequires:  xorg-lib-libXdamage-devel
140 BuildRequires:  xorg-lib-libXext-devel
141 BuildRequires:  xorg-lib-libXfixes-devel
142 BuildRequires:  xorg-lib-libXt-devel
143 BuildRequires:  xz
144 %ifarch %{ix86} %{x8664}
145 BuildRequires:  yasm >= 1.0.1
146 %endif
147 BuildRequires:  zip
148 BuildRequires:  zlib-devel >= 1.2.3
149 Requires(post): mktemp >= 1.5-18
150 Requires:       desktop-file-utils
151 Requires:       fontconfig >= 1:2.7.0
152 Requires:       hicolor-icon-theme
153 Requires:       browser-plugins >= 2.0
154 Requires:       cairo >= 1.10.2-5
155 Requires:       dbus-glib >= 0.60
156 Requires:       glib2 >= 1:2.22
157 %{!?with_gtk3:Requires: gtk+2 >= 2:2.18}
158 %{?with_gtk3:Requires:  gtk+3 >= 3.4.0}
159 Requires:       libjpeg-turbo
160 Requires:       libpng >= 2:1.6.21
161 Requires:       libpng(APNG) >= 0.10
162 Requires:       libvpx >= 1.5.0
163 Requires:       myspell-common
164 Requires:       nspr >= 1:%{nspr_ver}
165 Requires:       nss >= 1:%{nss_ver}
166 Requires:       pango >= 1:1.22.0
167 Requires:       pixman >= 0.19.2
168 Requires:       sqlite3 >= %{sqlite_build_version}
169 Requires:       startup-notification >= 0.8
170 Provides:       seamonkey-embedded = %{version}-%{release}
171 Provides:       wwwbrowser
172 Obsoletes:      iceape
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-chat < 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 addon-lightning
223 Summary:        An integrated calendar for SeaMonkey
224 Summary(pl.UTF-8):      Zintegrowany kalendarz dla SeaMonkey
225 Group:          Applications/Networking
226 Requires:       %{name} = %{version}-%{release}
227 Obsoletes:      iceape-addon-lightning
228
229 %description addon-lightning
230 Lightning is an calendar extension to Icedove email client.
231
232 %description addon-lightning -l pl.UTF-8
233 Lightning to rozszerzenie do klienta poczty Icedove dodające
234 funkcjonalność kalendarza.
235
236 %package chat
237 Summary:        SeaMonkey Community Edition Chat - integrated IRC client
238 Summary(pl.UTF-8):      SeaMonkey Community Edition Chat - zintegrowany klient IRC-a
239 Group:          X11/Applications/Networking
240 Requires(post,postun):  %{name} = %{version}-%{release}
241 Requires:       %{name} = %{version}-%{release}
242 Obsoletes:      iceape-chat
243 Obsoletes:      mozilla-chat
244
245 %description chat
246 SeaMonkey Community Edition Chat - IRC client that is integrated with
247 the SeaMonkey Community Edition web browser.
248
249 %description chat -l pl.UTF-8
250 SeaMonkey Community Edition Chat - klient IRC-a zintegrowany z
251 przeglądarką SeaMonkey Community Edition.
252
253 %package dom-inspector
254 Summary:        A tool for inspecting the DOM of pages in SeaMonkey Community Edition
255 Summary(pl.UTF-8):      Narzędzie do oglądania DOM stron w SeaMonkey Community Edition
256 Group:          X11/Applications/Networking
257 Requires(post,postun):  %{name} = %{version}-%{release}
258 Requires:       %{name} = %{version}-%{release}
259 Obsoletes:      iceape-dom-inspector
260 Obsoletes:      mozilla-dom-inspector
261
262 %description dom-inspector
263 This is a tool that allows you to inspect the DOM for web pages in
264 SeaMonkey Community Edition. This is of great use to people who are
265 doing SeaMonkey Community Edition chrome development or web page
266 development.
267
268 %description dom-inspector -l pl.UTF-8
269 To narzędzie pozwala na oglądanie DOM dla stron WWW w SeaMonkey
270 Community Edition. Jest bardzo przydatne dla ludzi rozwijających
271 chrome w SeaMonkey Community Edition lub tworzących strony WWW.
272
273 %package lang-cs
274 Summary:        Czech resources for SeaMonkey
275 Summary(pl.UTF-8):      Czeskie pliki językowe dla SeaMonkeya
276 Group:          I18n
277 Requires:       seamonkey >= %{version}
278 Provides:       seamonkey-lang-resources = %{version}
279 BuildArch:      noarch
280
281 %description lang-cs
282 Czech resources for SeaMonkey.
283
284 %description lang-cs -l pl.UTF-8
285 Czeskie pliki językowe dla SeaMonkeya.
286
287 %package lang-de
288 Summary:        German resources for SeaMonkey
289 Summary(pl.UTF-8):      Niemieckie pliki językowe dla SeaMonkeya
290 Group:          I18n
291 Requires:       seamonkey >= %{version}
292 Provides:       seamonkey-lang-resources = %{version}
293 BuildArch:      noarch
294
295 %description lang-de
296 German resources for SeaMonkey.
297
298 %description lang-de -l pl.UTF-8
299 Niemieckie pliki językowe dla SeaMonkeya.
300
301 %package lang-en_GB
302 Summary:        English (British) resources for SeaMonkey
303 Summary(pl.UTF-8):      Angielskie (brytyjskie) pliki językowe dla SeaMonkeya
304 Group:          I18n
305 Requires:       seamonkey >= %{version}
306 Provides:       seamonkey-lang-resources = %{version}
307 BuildArch:      noarch
308
309 %description lang-en_GB
310 English (British) resources for SeaMonkey.
311
312 %description lang-en_GB -l pl.UTF-8
313 Angielskie (brytyjskie) pliki językowe dla SeaMonkeya.
314
315 %package lang-en_US
316 Summary:        English (American) resources for SeaMonkey
317 Summary(pl.UTF-8):      Angielskie (amerykańskie) pliki językowe dla SeaMonkeya
318 Group:          I18n
319 Requires:       seamonkey >= %{version}
320 Provides:       seamonkey-lang-resources = %{version}
321 BuildArch:      noarch
322
323 %description lang-en_US
324 English (American) resources for SeaMonkey.
325
326 %description lang-en_US -l pl.UTF-8
327 Angielskie (amerykańskie) pliki językowe dla SeaMonkeya.
328
329 %package lang-es_AR
330 Summary:        Spanish (Andorra) resources for SeaMonkey
331 Summary(ca.UTF-8):      Recursos espanyols (Andorra) per SeaMonkey
332 Summary(es.UTF-8):      Recursos españoles (Andorra) para SeaMonkey
333 Summary(pl.UTF-8):      Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory)
334 Group:          I18n
335 Requires:       seamonkey >= %{version}
336 Provides:       seamonkey-lang-resources = %{version}
337 BuildArch:      noarch
338
339 %description lang-es_AR
340 Spanish (Spain) resources for SeaMonkey.
341
342 %description lang-es_AR -l ca.UTF-8
343 Recursos espanyols (Andorra) per SeaMonkey.
344
345 %description lang-es_AR -l es.UTF-8
346 Recursos españoles (Andorra) para SeaMonkey.
347
348 %description lang-es_AR -l pl.UTF-8
349 Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory).
350
351 %package lang-es
352 Summary:        Spanish (Spain) resources for SeaMonkey
353 Summary(ca.UTF-8):      Recursos espanyols (Espanya) per SeaMonkey
354 Summary(es.UTF-8):      Recursos españoles (España) para SeaMonkey
355 Summary(pl.UTF-8):      Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii)
356 Group:          I18n
357 Requires:       seamonkey >= %{version}
358 Provides:       seamonkey-lang-resources = %{version}
359 BuildArch:      noarch
360
361 %description lang-es
362 Spanish (Spain) resources for SeaMonkey.
363
364 %description lang-es -l ca.UTF-8
365 Recursos espanyols (Espanya) per SeaMonkey.
366
367 %description lang-es -l es.UTF-8
368 Recursos españoles (España) para SeaMonkey.
369
370 %description lang-es -l pl.UTF-8
371 Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii).
372
373 %package lang-fr
374 Summary:        French resources for SeaMonkey
375 Summary(pl.UTF-8):      Francuskie pliki językowe dla SeaMonkeya
376 Group:          I18n
377 Requires:       seamonkey >= %{version}
378 Provides:       seamonkey-lang-resources = %{version}
379 BuildArch:      noarch
380
381 %description lang-fr
382 French resources for SeaMonkey.
383
384 %description lang-fr -l pl.UTF-8
385 Francuskie pliki językowe dla SeaMonkeya.
386
387 %package lang-hu
388 Summary:        Hungarian resources for SeaMonkey
389 Summary(hu.UTF-8):      Magyar nyelv SeaMonkey-hez
390 Summary(pl.UTF-8):      Węgierskie pliki językowe dla SeaMonkeya
391 Group:          I18n
392 Requires:       seamonkey >= %{version}
393 Provides:       seamonkey-lang-resources = %{version}
394 BuildArch:      noarch
395
396 %description lang-hu
397 Hungarian resources for SeaMonkey.
398
399 %description lang-hu -l hu.UTF-8
400 Magyar nyelv SeaMonkey-hez.
401
402 %description lang-hu -l pl.UTF-8
403 Węgierskie pliki językowe dla SeaMonkeya.
404
405 %package lang-it
406 Summary:        Italian resources for SeaMonkey
407 Summary(pl.UTF-8):      Włoskie pliki językowe dla SeaMonkeya
408 Group:          I18n
409 Requires:       seamonkey >= %{version}
410 Provides:       seamonkey-lang-resources = %{version}
411 BuildArch:      noarch
412
413 %description lang-it
414 Italian resources for SeaMonkey.
415
416 %description lang-it -l pl.UTF-8
417 Włoskie pliki językowe dla SeaMonkeya.
418
419 %package lang-ja
420 Summary:        Japanese resources for SeaMonkey
421 Summary(pl.UTF-8):      Japońskie pliki językowe dla SeaMonkeya
422 Group:          I18n
423 Requires:       seamonkey >= %{version}
424 Provides:       seamonkey-lang-resources = %{version}
425 BuildArch:      noarch
426
427 %description lang-ja
428 Japanese resources for SeaMonkey.
429
430 %description lang-ja -l pl.UTF-8
431 Japońskie pliki językowe dla SeaMonkeya.
432
433 %package lang-lt
434 Summary:        Lithuanian resources for SeaMonkey
435 Summary(pl.UTF-8):      Litewskie pliki językowe dla SeaMonkeya
436 Group:          I18n
437 Requires:       seamonkey >= %{version}
438 Provides:       seamonkey-lang-resources = %{version}
439 BuildArch:      noarch
440
441 %description lang-lt
442 Lithuanian resources for SeaMonkey.
443
444 %description lang-lt -l pl.UTF-8
445 Litewskie pliki językowe dla SeaMonkeya.
446
447 %package lang-nb
448 Summary:        Norwegian Bokmaal resources for SeaMonkey
449 Summary(pl.UTF-8):      Norweskie (bokmaal) pliki językowe dla SeaMonkeya
450 Group:          I18n
451 Requires:       seamonkey >= %{version}
452 Provides:       seamonkey-lang-resources = %{version}
453 BuildArch:      noarch
454
455 %description lang-nb
456 Norwegian Bokmaal resources for SeaMonkey.
457
458 %description lang-nb -l pl.UTF-8
459 Norweskie (bokmaal) pliki językowe dla SeaMonkeya.
460
461 %package lang-nl
462 Summary:        Dutch resources for SeaMonkey
463 Summary(pl.UTF-8):      Holenderskie pliki językowe dla SeaMonkeya
464 Group:          I18n
465 Requires:       seamonkey >= %{version}
466 Provides:       seamonkey-lang-resources = %{version}
467 BuildArch:      noarch
468
469 %description lang-nl
470 Dutch resources for SeaMonkey.
471
472 %description lang-nl -l pl.UTF-8
473 Holenderskie pliki językowe dla SeaMonkeya.
474
475 %package lang-pl
476 Summary:        Polish resources for SeaMonkey
477 Summary(pl.UTF-8):      Polskie pliki językowe dla SeaMonkeya
478 Group:          I18n
479 Requires:       seamonkey >= %{version}
480 Provides:       seamonkey-lang-resources = %{version}
481 BuildArch:      noarch
482
483 %description lang-pl
484 Polish resources for SeaMonkey.
485
486 %description lang-pl -l pl.UTF-8
487 Polskie pliki językowe dla SeaMonkeya.
488
489 %package lang-pt
490 Summary:        Portuguese (Portugal) resources for SeaMonkey
491 Summary(pl.UTF-8):      Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii)
492 Group:          I18n
493 Requires:       seamonkey >= %{version}
494 Provides:       seamonkey-lang-resources = %{version}
495 BuildArch:      noarch
496
497 %description lang-pt
498 Portuguese (Portugal) resources for SeaMonkey.
499
500 %description lang-pt -l pl.UTF-8
501 Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii).
502
503 %package lang-ru
504 Summary:        Russian resources for SeaMonkey
505 Summary(pl.UTF-8):      Rosyjskie pliki językowe dla SeaMonkeya
506 Group:          I18n
507 Requires:       seamonkey >= %{version}
508 Provides:       seamonkey-lang-resources = %{version}
509 BuildArch:      noarch
510
511 %description lang-ru
512 Russian resources for SeaMonkey.
513
514 %description lang-ru -l pl.UTF-8
515 Rosyjskie pliki językowe dla SeaMonkeya.
516
517 %package lang-sk
518 Summary:        Slovak resources for SeaMonkey
519 Summary(pl.UTF-8):      Słowackie pliki językowe dla SeaMonkeya
520 Group:          I18n
521 Requires:       seamonkey >= %{version}
522 Provides:       seamonkey-lang-resources = %{version}
523 BuildArch:      noarch
524
525 %description lang-sk
526 Slovak resources for SeaMonkey.
527
528 %description lang-sk -l pl.UTF-8
529 Słowackie pliki językowe dla SeaMonkeya.
530
531 %package lang-sv
532 Summary:        Swedish resources for SeaMonkey
533 Summary(pl.UTF-8):      Szwedzkie pliki językowe dla SeaMonkeya
534 Group:          I18n
535 Requires:       seamonkey >= %{version}
536 Provides:       seamonkey-lang-resources = %{version}
537 BuildArch:      noarch
538
539 %description lang-sv
540 Swedish resources for SeaMonkey.
541
542 %description lang-sv -l pl.UTF-8
543 Szwedzkie pliki językowe dla SeaMonkeya.
544
545 %package lang-zh_CN
546 Summary:        Simplified Chinese resources for SeaMonkey
547 Summary(pl.UTF-8):      Chińskie (uproszczone) pliki językowe dla SeaMonkeya
548 Group:          I18n
549 Requires:       seamonkey >= %{version}
550 Provides:       seamonkey-lang-resources = %{version}
551 BuildArch:      noarch
552
553 %description lang-zh_CN
554 Simplified Chinese resources for SeaMonkey.
555
556 %description lang-zh_CN -l pl.UTF-8
557 Chińskie uproszczone pliki językowe dla SeaMonkeya.
558
559 %package lang-zh_TW
560 Summary:        Traditional Chinese resources for SeaMonkey
561 Summary(pl.UTF-8):      Chińskie tradycyjne pliki językowe dla SeaMonkeya
562 Group:          I18n
563 Requires:       seamonkey >= %{version}
564 Provides:       seamonkey-lang-resources = %{version}
565 BuildArch:      noarch
566
567 %description lang-zh_TW
568 Traditional Chinese resources for SeaMonkey.
569
570 %description lang-zh_TW -l pl.UTF-8
571 Chińskie tradycyjne pliki językowe dla SeaMonkeya.
572
573 %prep
574 unpack() {
575         local args="$1" file="$2"
576         cp -p $file .
577 }
578 %define __unzip unpack
579 %setup -q %(seq -f '-a %g' 100 119 | xargs)
580 %patch1 -p1
581 %patch2 -p1
582 %patch3 -p1
583 %patch4 -p1
584 %patch5 -p1
585 %patch6 -p1
586 %patch7 -p1
587
588 %build
589 cat << EOF > .mozconfig
590 mk_add_options MOZ_OBJDIR=%{objdir}
591
592 %if %{with crashreporter}
593 export MOZ_DEBUG_SYMBOLS=1
594 %endif
595
596 # Options for 'configure' (same as command-line options).
597 ac_add_options --prefix=%{_prefix}
598 %if %{?debug:1}0
599 ac_add_options --disable-optimize
600 ac_add_options --enable-crash-on-assert
601 ac_add_options --enable-debug
602 ac_add_options --enable-debug-modules
603 ac_add_options --enable-debugger-info-modules
604 %else
605 ac_add_options --disable-debug
606 ac_add_options --enable-optimize="%{rpmcflags} -Os"
607 %endif
608 ac_add_options --disable-strip
609 %if %{with tests}
610 ac_add_options --enable-tests
611 %else
612 ac_add_options --disable-tests
613 %endif
614 %if %{with crashreporter}
615 ac_add_options --enable-crashreporter
616 %else
617 ac_add_options --disable-crashreporter
618 %endif
619 ac_add_options --disable-elf-hack
620 ac_add_options --disable-gnomeui
621 ac_add_options --disable-necko-wifi
622 ac_add_options --disable-updater
623 ac_add_options --enable-application=suite
624 %if %{with lightning}
625 ac_add_options --enable-calendar
626 %endif
627 ac_add_options --enable-chrome-format=omni
628 ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
629 ac_add_options --enable-extensions=default
630 ac_add_options --enable-gio
631 %if %{with ldap}
632 ac_add_options --enable-ldap
633 %else
634 ac_add_options --disable-ldap
635 %endif
636 ac_add_options --enable-safe-browsing
637 # breaks build
638 #ac_add_options --enable-shared-js
639 ac_add_options --enable-startup-notification
640 ac_add_options --enable-system-cairo
641 ac_add_options --enable-system-hunspell
642 ac_add_options --enable-system-sqlite
643 ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
644 ac_add_options --with-distribution-id=org.pld-linux
645 ac_add_options --with-pthreads
646 ac_add_options --with-system-bz2
647 ac_add_options --with-system-ffi
648 ac_add_options --with-system-icu
649 ac_add_options --with-system-jpeg
650 ac_add_options --with-system-libevent
651 ac_add_options --with-system-libvpx
652 ac_add_options --with-system-nspr
653 ac_add_options --with-system-nss
654 ac_add_options --with-system-png
655 ac_add_options --with-system-zlib
656 EOF
657
658 %{__make} -j1 -f client.mk build \
659         AUTOCONF=/usr/bin/autoconf2_13 \
660         STRIP="/bin/true" \
661         MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
662         installdir=%{_libdir}/%{name} \
663         XLIBS="-lX11 -lXt" \
664         CC="%{__cc}" \
665         CXX="%{__cxx} -std=gnu++11"
666
667 %if %{with crashreporter}
668 # create debuginfo for crash-stats.mozilla.com
669 %{__make} -j1 -C obj-%{_target_cpu} buildsymbols
670 %endif
671
672 %install
673 rm -rf $RPM_BUILD_ROOT
674 install -d \
675         $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
676         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
677         $RPM_BUILD_ROOT%{_datadir}/%{name} \
678         $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \
679         $RPM_BUILD_ROOT%{_mandir}/man1
680
681 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
682
683 cd %{objdir}
684 cwd=`pwd`
685 %{__make} -C suite/installer stage-package \
686         DESTDIR=$RPM_BUILD_ROOT \
687         installdir=%{_libdir}/%{name} \
688         PKG_SKIP_STRIP=1
689
690 cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
691 cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1
692
693 # Enable crash reporter for Thunderbird application
694 %if %{with crashreporter}
695 %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
696
697 # Add debuginfo for crash-stats.mozilla.com
698 install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
699 cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
700 %endif
701
702 # move arch independent ones to datadir
703 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
704 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
705 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
706 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
707
708 ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
709 ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
710 ln -s ../../share/%{name}/fonts $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts
711 ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
712
713 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
714 ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
715
716 # dir for arch independant extensions besides arch dependant extensions
717 # see mozilla/xpcom/build/nsXULAppAPI.h
718 # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
719 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
720  
721 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
722 ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
723
724 sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey
725 chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey
726
727 install %{SOURCE4} %{SOURCE5} %{SOURCE7} \
728         $RPM_BUILD_ROOT%{_desktopdir}
729
730 for d in 32 48 64 ; do
731 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps
732 cp -p %{topdir}/suite/branding/nightly/content/icon${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png
733 done
734
735 # files created by seamonkey -register
736 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
737 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
738
739 cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
740 #!/bin/sh
741 umask 022
742 rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
743
744 # it attempts to touch files in $HOME/.mozilla
745 # beware if you run this with sudo!!!
746 export HOME=$(mktemp -d)
747 # also TMPDIR could be pointing to sudo user's homedir
748 unset TMPDIR TMP || :
749
750 %{_libdir}/%{name}/seamonkey -register
751
752 rm -rf $HOME
753 EOF
754 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
755
756 # don't package, rely on system mozldap libraries
757 %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
758 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so
759
760 cd ..
761 for a in *.xpi; do
762         basename=$(basename $a .langpack.xpi)
763         basename=${basename##seamonkey-%{version}.}
764         cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@seamonkey.mozilla.org.xpi
765 done
766
767 %clean
768 rm -rf $RPM_BUILD_ROOT
769
770 %post
771 %{_libdir}/%{name}/register || :
772 %update_browser_plugins
773 %update_icon_cache hicolor
774 %update_desktop_database
775
776 %postun
777 if [ "$1" = 0 ]; then
778         %update_browser_plugins
779         %update_icon_cache hicolor
780 fi
781
782 %files
783 %defattr(644,root,root,755)
784 %doc AUTHORS
785 %attr(755,root,root) %{_bindir}/seamonkey
786 %{_mandir}/man1/seamonkey.1*
787
788 # browser plugins v2
789 %{_browserpluginsconfdir}/browsers.d/%{name}.*
790 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
791
792 %dir %{_libdir}/%{name}
793 %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so
794 %attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so
795 %attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so
796 %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so
797 %attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so
798 %attr(755,root,root) %{_libdir}/%{name}/libxul.so
799 %dir %{_libdir}/%{name}/gtk2
800 %attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
801
802 %{_libdir}/%{name}/blocklist.xml
803 %{_libdir}/%{name}/omni.ja
804 %attr(755,root,root) %{_libdir}/%{name}/register
805
806 %if %{with crashreporter}
807 %{_libdir}/%{name}/crashreporter
808 %{_libdir}/%{name}/crashreporter-override.ini
809 %{_libdir}/%{name}/crashreporter.ini
810 %{_libdir}/%{name}/Throbber-small.gif
811 %endif
812
813 # config?
814 %{_libdir}/%{name}/application.ini
815 %{_libdir}/%{name}/chrome.manifest
816
817 %dir %{_libdir}/%{name}/components
818 %{_libdir}/%{name}/components/components.manifest
819 %attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so
820
821 %{_libdir}/%{name}/dependentlibs.list
822 %{_libdir}/%{name}/platform.ini
823 %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
824 %attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin
825 %attr(755,root,root) %{_libdir}/%{name}/plugin-container
826
827 %attr(755,root,root) %{_libdir}/%{name}/seamonkey
828 %dir %{_libdir}/%{name}/plugins
829
830 # symlinks
831 %{_libdir}/%{name}/chrome
832 %{_libdir}/%{name}/defaults
833 %{_libdir}/%{name}/fonts
834 %{_libdir}/%{name}/dictionaries
835 %{_libdir}/%{name}/searchplugins
836
837 %dir %{_datadir}/%{name}
838 %{_datadir}/%{name}/chrome
839 %{_datadir}/%{name}/defaults
840 %{_datadir}/%{name}/fonts
841 %{_datadir}/%{name}/searchplugins
842
843 %dir %{_libdir}/%{name}/distribution
844 %dir %{_libdir}/%{name}/distribution/extensions
845
846 %dir %{_datadir}/%{name}/extensions
847 %dir %{_libdir}/%{name}/extensions
848 # the signature of the default theme
849 %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
850 %{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
851
852 # files created by seamonkey -register
853 %ghost %{_libdir}/%{name}/components/compreg.dat
854 %ghost %{_libdir}/%{name}/components/xpti.dat
855
856 %{_libdir}/%{name}/isp
857 %dir %{_datadir}/%{name}/isp
858 %{_datadir}/%{name}/isp/Bogofilter.sfd
859 %{_datadir}/%{name}/isp/DSPAM.sfd
860 %{_datadir}/%{name}/isp/POPFile.sfd
861 %{_datadir}/%{name}/isp/SpamAssassin.sfd
862 %{_datadir}/%{name}/isp/SpamPal.sfd
863 %{_datadir}/%{name}/isp/movemail.rdf
864 %{_datadir}/%{name}/isp/rss.rdf
865
866 %{_iconsdir}/hicolor/*x*/apps/seamonkey.png
867 %{_desktopdir}/%{name}.desktop
868 %{_desktopdir}/%{name}-composer.desktop
869 %{_desktopdir}/%{name}-mail.desktop
870
871 %if %{with lightning}
872 %files addon-lightning
873 %defattr(644,root,root,755)
874 %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
875 %endif
876
877 %files chat
878 %defattr(644,root,root,755)
879 %{_libdir}/%{name}/distribution/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
880
881 %files dom-inspector
882 %defattr(644,root,root,755)
883 %{_libdir}/%{name}/distribution/extensions/inspector@mozilla.org.xpi
884
885 %files lang-cs
886 %defattr(644,root,root,755)
887 %{_datadir}/%{name}/extensions/langpack-cs@seamonkey.mozilla.org.xpi
888
889 %files lang-de
890 %defattr(644,root,root,755)
891 %{_datadir}/%{name}/extensions/langpack-de@seamonkey.mozilla.org.xpi
892
893 %files lang-en_GB
894 %defattr(644,root,root,755)
895 %{_datadir}/%{name}/extensions/langpack-en-GB@seamonkey.mozilla.org.xpi
896
897 %files lang-en_US
898 %defattr(644,root,root,755)
899 %{_datadir}/%{name}/extensions/langpack-en-US@seamonkey.mozilla.org.xpi
900
901 %files lang-es_AR
902 %defattr(644,root,root,755)
903 %{_datadir}/%{name}/extensions/langpack-es-AR@seamonkey.mozilla.org.xpi
904
905 %files lang-es
906 %defattr(644,root,root,755)
907 %{_datadir}/%{name}/extensions/langpack-es-ES@seamonkey.mozilla.org.xpi
908
909 %files lang-fr
910 %defattr(644,root,root,755)
911 %{_datadir}/%{name}/extensions/langpack-fr@seamonkey.mozilla.org.xpi
912
913 %files lang-hu
914 %defattr(644,root,root,755)
915 %{_datadir}/%{name}/extensions/langpack-hu@seamonkey.mozilla.org.xpi
916
917 %files lang-it
918 %defattr(644,root,root,755)
919 %{_datadir}/%{name}/extensions/langpack-it@seamonkey.mozilla.org.xpi
920
921 %files lang-ja
922 %defattr(644,root,root,755)
923 %{_datadir}/%{name}/extensions/langpack-ja@seamonkey.mozilla.org.xpi
924
925 %files lang-lt
926 %defattr(644,root,root,755)
927 %{_datadir}/%{name}/extensions/langpack-lt@seamonkey.mozilla.org.xpi
928
929 %files lang-nb
930 %defattr(644,root,root,755)
931 %{_datadir}/%{name}/extensions/langpack-nb-NO@seamonkey.mozilla.org.xpi
932
933 %files lang-nl
934 %defattr(644,root,root,755)
935 %{_datadir}/%{name}/extensions/langpack-nl@seamonkey.mozilla.org.xpi
936
937 %files lang-pl
938 %defattr(644,root,root,755)
939 %{_datadir}/%{name}/extensions/langpack-pl@seamonkey.mozilla.org.xpi
940
941 %files lang-pt
942 %defattr(644,root,root,755)
943 %{_datadir}/%{name}/extensions/langpack-pt-PT@seamonkey.mozilla.org.xpi
944
945 %files lang-ru
946 %defattr(644,root,root,755)
947 %{_datadir}/%{name}/extensions/langpack-ru@seamonkey.mozilla.org.xpi
948
949 %files lang-sk
950 %defattr(644,root,root,755)
951 %{_datadir}/%{name}/extensions/langpack-sk@seamonkey.mozilla.org.xpi
952
953 %files lang-sv
954 %defattr(644,root,root,755)
955 %{_datadir}/%{name}/extensions/langpack-sv-SE@seamonkey.mozilla.org.xpi
956
957 %files lang-zh_CN
958 %defattr(644,root,root,755)
959 %{_datadir}/%{name}/extensions/langpack-zh-CN@seamonkey.mozilla.org.xpi
960
961 %files lang-zh_TW
962 %defattr(644,root,root,755)
963 %{_datadir}/%{name}/extensions/langpack-zh-TW@seamonkey.mozilla.org.xpi
This page took 0.134066 seconds and 2 git commands to generate.