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