]>
Commit | Line | Data |
---|---|---|
048deb2d JR |
1 | # TODO: |
2 | # - consider --enable-libproxy | |
3 | # - do something with *.rdf file, there if file conflict with other lang packages | |
b19e17d8 JB |
4 | # |
5 | # Conditional build: | |
f1319b72 JB |
6 | %bcond_without kerberos # krb5 support |
7 | %bcond_without lightning # Lightning calendar | |
b8379d78 | 8 | %bcond_without gold # gold linker |
c7d608a7 | 9 | %bcond_with crashreporter # report crashes to crash-stats.mozilla.com |
b8379d78 | 10 | %bcond_with system_cairo # build with system cairo (not supported in 2.53.9+) |
bd8dbb8a | 11 | %bcond_with tests # enable tests (whatever they check) |
6930f277 JB |
12 | %bcond_with lowmem # lower memory requirements |
13 | ||
14 | %ifarch %{ix86} %{arm} aarch64 | |
15 | %define with_lowmem 1 | |
16 | %endif | |
b8379d78 JB |
17 | %ifarch %{ix86} |
18 | # /usr/bin/ld.gold: internal error in relocate_section, at i386.cc:3683 (seamonkey 2.53.9, binutils 2.37-1) | |
19 | %undefine with_gold | |
20 | %endif | |
24441e9c | 21 | |
b8379d78 JB |
22 | %define nspr_ver 4.25 |
23 | %define nss_ver 3.53.1 | |
24441e9c | 24 | |
048deb2d JR |
25 | # UPDATING TRANSALTIONS: |
26 | %if 0 | |
27 | rm -vf *.xpi | |
28 | ./builder -g | |
50d95fcd | 29 | V=2.49.5 |
2d864b15 | 30 | U=https://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$V/langpacks/linux-i686/ |
048deb2d JR |
31 | curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p' |
32 | %endif | |
33 | ||
dc51aa63 | 34 | Summary: SeaMonkey Community Edition - web browser |
fda067df ER |
35 | Summary(es.UTF-8): Navegador de Internet SeaMonkey Community Edition |
36 | Summary(pl.UTF-8): SeaMonkey Community Edition - przeglądarka WWW | |
37 | Summary(pt_BR.UTF-8): Navegador SeaMonkey Community Edition | |
b19e17d8 | 38 | Name: seamonkey |
2d864b15 | 39 | Version: 2.53.14 |
12e4c80c | 40 | Release: 4 |
c7d608a7 | 41 | License: MPL v2.0 |
b19e17d8 | 42 | Group: X11/Applications/Networking |
2d864b15 JB |
43 | Source0: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz |
44 | # Source0-md5: a179b07515ba05d33d111ee89fe2dbe5 | |
16e155ba JB |
45 | Source4: %{name}.desktop |
46 | Source5: %{name}-composer.desktop | |
16e155ba | 47 | Source7: %{name}-mail.desktop |
16e155ba | 48 | Source9: %{name}.sh |
2d864b15 JB |
49 | Source100: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.cs.langpack.xpi |
50 | # Source100-md5: cbfb41ef79e2607c4a8758f58f897af4 | |
51 | Source101: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.de.langpack.xpi | |
52 | # Source101-md5: 7c6a314783a142ab0f3a23c3896cd60f | |
53 | Source102: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.el.langpack.xpi | |
54 | # Source102-md5: bc87b5aff54e6e098a1a32d24458ebfe | |
55 | Source103: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-GB.langpack.xpi | |
56 | # Source103-md5: f9305ff0dac528fed55b4daae95264d0 | |
57 | Source104: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-US.langpack.xpi | |
58 | # Source104-md5: 3f62facc256cd0df0750a8b874d7910a | |
59 | Source105: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-AR.langpack.xpi | |
60 | # Source105-md5: f8465a851f6132d74dab8e2cb818d549 | |
61 | Source106: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-ES.langpack.xpi | |
62 | # Source106-md5: 6cae3d656b4a1ea3327ff0ed2f8b1608 | |
63 | Source107: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fi.langpack.xpi | |
64 | # Source107-md5: 6b6cbd0b6309d101d9d6c08136358404 | |
65 | Source108: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fr.langpack.xpi | |
66 | # Source108-md5: c0455217f768251bc6b9ff5931ff1d2c | |
67 | Source109: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.hu.langpack.xpi | |
68 | # Source109-md5: f3d69d8232bfed1527f839725e662c1b | |
69 | Source110: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.it.langpack.xpi | |
70 | # Source110-md5: 1f3086f533f7efb17f6682d56709fe87 | |
71 | Source111: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ja.langpack.xpi | |
72 | # Source111-md5: 0452da66c8592fca6bb0198ec0a8f0fc | |
73 | Source112: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ka.langpack.xpi | |
74 | # Source112-md5: cee509c45bd8863418b836d1933380bc | |
75 | Source113: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nb-NO.langpack.xpi | |
76 | # Source113-md5: b0806bbe5560e02b391f7d18952e3f2f | |
77 | Source114: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nl.langpack.xpi | |
78 | # Source114-md5: 3cba69d7790a31ca95146b6b503e5fc5 | |
79 | Source115: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pl.langpack.xpi | |
80 | # Source115-md5: 153273241fc2eb39e2e87a4a0ae5ba30 | |
81 | Source116: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-BR.langpack.xpi | |
82 | # Source116-md5: ef407c3aa81107273b08956a2dc4c171 | |
83 | Source117: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-PT.langpack.xpi | |
84 | # Source117-md5: 63a10528532dffbf455a176f39b9795b | |
85 | Source118: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ru.langpack.xpi | |
86 | # Source118-md5: 5da9700e3b1c041e5cc6613b926e3512 | |
87 | Source119: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sk.langpack.xpi | |
88 | # Source119-md5: 34fe56ff7d6c528a22d595c79ad493e0 | |
89 | Source120: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sv-SE.langpack.xpi | |
90 | # Source120-md5: 87b0ff471f85b0675c66b9e91d2d8b6b | |
91 | Source121: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-CN.langpack.xpi | |
92 | # Source121-md5: ee9225f98b8ff912e4cc26a652818baf | |
93 | Source122: https://releases.mozilla.org/pub/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-TW.langpack.xpi | |
94 | # Source122-md5: fad29e94332f2f311c54d0f9ff57cf21 | |
6930f277 JB |
95 | Patch1: %{name}-mozilla-revert-1332139.patch |
96 | Patch2: %{name}-pld-branding.patch | |
c7d608a7 | 97 | Patch3: %{name}-enable-addons.patch |
16e155ba | 98 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
ceb753a6 JB |
99 | Patch4: %{name}-system-virtualenv.patch |
100 | Patch5: %{name}-icu-detect.patch | |
2d864b15 | 101 | Patch6: %{name}-cyclic-include.patch |
ceb753a6 | 102 | URL: https://www.seamonkey-project.org/ |
bd8dbb8a | 103 | BuildRequires: GConf2-devel >= 1.2.1 |
ceb753a6 | 104 | BuildRequires: autoconf2_13 >= 2.13 |
b8379d78 JB |
105 | %{?with_system_cairo:BuildRequires: cairo-devel >= 1.10.2-5} |
106 | BuildRequires: cargo | |
7c87af2b | 107 | BuildRequires: dbus-glib-devel >= 0.60 |
ceb753a6 | 108 | BuildRequires: fontconfig-devel >= 1:2.7.0 |
2d864b15 JB |
109 | # pkgconfig(freetype2) >= 9.10.3 |
110 | BuildRequires: freetype-devel >= 1:2.2.1 | |
ceb753a6 | 111 | BuildRequires: glib2-devel >= 1:2.22 |
2d864b15 | 112 | BuildRequires: gn |
6930f277 | 113 | BuildRequires: gtk+3-devel >= 3.4.0 |
7c87af2b JR |
114 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
115 | BuildRequires: hunspell-devel | |
ceb753a6 JB |
116 | # DECnet (dnprogs.spec), not dummy net (libdnet.spec) |
117 | #BuildRequires: libdnet-devel | |
7c87af2b | 118 | BuildRequires: libevent-devel >= 1.4.7 |
bd8dbb8a JR |
119 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ |
120 | BuildRequires: libffi-devel >= 6:3.0.9 | |
c7d608a7 | 121 | BuildRequires: libicu-devel >= 50.1 |
16e155ba | 122 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
b19e17d8 | 123 | BuildRequires: libjpeg-devel >= 6b |
16e155ba | 124 | BuildRequires: libjpeg-turbo-devel |
7c87af2b JR |
125 | BuildRequires: libnotify-devel >= 0.4 |
126 | BuildRequires: libpng(APNG)-devel >= 0.10 | |
b8379d78 | 127 | BuildRequires: libpng-devel >= 2:1.6.35 |
ceb753a6 JB |
128 | BuildRequires: libstdc++-devel >= 6:4.7 |
129 | BuildRequires: libvpx-devel >= 1.5.0 | |
757edfb3 | 130 | BuildRequires: mozldap-devel >= 6.0 |
7c87af2b JR |
131 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
132 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
757edfb3 | 133 | BuildRequires: pango-devel >= 1:1.22.0 |
bd8dbb8a | 134 | BuildRequires: perl-base >= 1:5.6 |
7c87af2b | 135 | BuildRequires: perl-modules >= 5.004 |
ceb753a6 | 136 | BuildRequires: pixman-devel >= 0.19.2 |
b19e17d8 | 137 | BuildRequires: pkgconfig |
2d864b15 JB |
138 | BuildRequires: python >= 1:2.7.3 |
139 | BuildRequires: python-modules >= 1:2.7.3 | |
80e2f4a2 | 140 | BuildRequires: python-virtualenv >= 15 |
2d864b15 | 141 | BuildRequires: python3 >= 1:3.5.0 |
f1319b72 | 142 | BuildRequires: rpm-build >= 4.6 |
7c87af2b | 143 | BuildRequires: rpmbuild(macros) >= 1.601 |
b8379d78 | 144 | BuildRequires: rust >= 1.47.0 |
2d864b15 | 145 | BuildRequires: rust-cbindgen |
b19e17d8 | 146 | BuildRequires: sed >= 4.0 |
7c87af2b | 147 | BuildRequires: startup-notification-devel >= 0.8 |
ceb753a6 | 148 | BuildRequires: tar >= 1:1.22 |
c7d608a7 | 149 | BuildRequires: xorg-lib-libX11-devel |
ceb753a6 JB |
150 | BuildRequires: xorg-lib-libXcomposite-devel |
151 | BuildRequires: xorg-lib-libXdamage-devel | |
f5fed05a | 152 | BuildRequires: xorg-lib-libXext-devel |
ceb753a6 | 153 | BuildRequires: xorg-lib-libXfixes-devel |
f5fed05a | 154 | BuildRequires: xorg-lib-libXt-devel |
ceb753a6 JB |
155 | BuildRequires: xz |
156 | %ifarch %{ix86} %{x8664} | |
157 | BuildRequires: yasm >= 1.0.1 | |
7c87af2b JR |
158 | %endif |
159 | BuildRequires: zip | |
510dc0c3 | 160 | BuildRequires: zlib-devel >= 1.2.3 |
7c87af2b JR |
161 | Requires(post): mktemp >= 1.5-18 |
162 | Requires: desktop-file-utils | |
ceb753a6 | 163 | Requires: fontconfig >= 1:2.7.0 |
7c87af2b | 164 | Requires: hicolor-icon-theme |
6d3a5031 | 165 | Requires: browser-plugins >= 2.0 |
b8379d78 | 166 | %{?with_system_cairo:Requires: cairo >= 1.10.2-5} |
7c87af2b | 167 | Requires: dbus-glib >= 0.60 |
ceb753a6 | 168 | Requires: glib2 >= 1:2.22 |
6930f277 | 169 | Requires: gtk+3 >= 3.4.0 |
16e155ba | 170 | Requires: libjpeg-turbo |
b8379d78 | 171 | Requires: libpng >= 2:1.6.35 |
7c87af2b | 172 | Requires: libpng(APNG) >= 0.10 |
ceb753a6 | 173 | Requires: libvpx >= 1.5.0 |
7c87af2b JR |
174 | Requires: myspell-common |
175 | Requires: nspr >= 1:%{nspr_ver} | |
176 | Requires: nss >= 1:%{nss_ver} | |
757edfb3 | 177 | Requires: pango >= 1:1.22.0 |
ceb753a6 | 178 | Requires: pixman >= 0.19.2 |
7c87af2b | 179 | Requires: startup-notification >= 0.8 |
488e9642 | 180 | Provides: seamonkey-embedded = %{version}-%{release} |
b19e17d8 | 181 | Provides: wwwbrowser |
010d2414 JB |
182 | Obsoletes: iceape < 2.47 |
183 | Obsoletes: iceape-js-debugger < 2.40 | |
184 | Obsoletes: iceape-lang-be < 2.47 | |
185 | Obsoletes: iceape-lang-ca < 2.47 | |
186 | Obsoletes: iceape-lang-gl < 2.47 | |
187 | Obsoletes: iceape-lang-lt < 2.47 | |
188 | Obsoletes: iceape-lang-tr < 2.47 | |
189 | Obsoletes: iceape-lang-uk < 2.47 | |
190 | Obsoletes: iceape-mailnews < 2.9 | |
191 | Obsoletes: iceape-gnomevfs < 2.9 | |
192 | Obsoletes: light < 1.4.13 | |
193 | Obsoletes: mozilla < 1.8 | |
194 | Obsoletes: mozilla-gnomevfs < 1.8 | |
195 | Obsoletes: mozilla-js-debugger < 1.8 | |
196 | Obsoletes: mozilla-mailnews < 1.8 | |
197 | Obsoletes: seamonkey-calendar < 1.1 | |
198 | Obsoletes: seamonkey-js-debugger < 2.31 | |
199 | Obsoletes: seamonkey-lang-be < 2.47 | |
200 | Obsoletes: seamonkey-lang-ca < 2.47 | |
201 | Obsoletes: seamonkey-lang-gl < 2.47 | |
6930f277 | 202 | Obsoletes: seamonkey-lang-lt < 2.53 |
010d2414 JB |
203 | Obsoletes: seamonkey-lang-tr < 2.47 |
204 | Obsoletes: seamonkey-lang-uk < 2.47 | |
205 | Obsoletes: seamonkey-libs < 1.1.8-2 | |
206 | Obsoletes: seamonkey-mailnews < 2.9.1 | |
207 | Obsoletes: seamonkey-gnomevfs < 2.9.1 | |
16e155ba | 208 | Conflicts: seamonkey-lang-resources < %{version} |
cf1b00fe JB |
209 | # TODO: change to supported archs list |
210 | ExcludeArch: x32 | |
b19e17d8 JB |
211 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
212 | ||
bd8dbb8a JR |
213 | %define topdir %{_builddir}/%{name}-%{version} |
214 | %define objdir %{topdir}/obj-%{_target_cpu} | |
215 | ||
216 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ | |
7c87af2b JR |
217 | |
218 | # don't satisfy other packages | |
219 | %define _noautoprovfiles %{_libdir}/%{name} | |
92482a22 | 220 | # and as we don't provide them, don't require either |
f1319b72 | 221 | %define _noautoreq liblgpllibs.so libmozavcodec.so libmozavutil.so libmozgtk.so libmozsandbox.so libmozsqlite3.so libxul.so |
92482a22 | 222 | |
b19e17d8 | 223 | %description |
dc51aa63 ER |
224 | SeaMonkey Community Edition is an open-source web browser, designed |
225 | for standards compliance, performance and portability. | |
b19e17d8 | 226 | |
97d18aeb | 227 | %description -l es.UTF-8 |
dc51aa63 | 228 | SeaMonkey Community Edition es un navegador de Internet que se basa en |
97d18aeb | 229 | una versión inicial de Netscape Communicator. |
b19e17d8 | 230 | |
97d18aeb JR |
231 | %description -l pl.UTF-8 |
232 | SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW, | |
233 | która jest następcą Mozilli, która następnie była następczynią | |
dc51aa63 | 234 | Netscape Communikatora. |
b19e17d8 | 235 | |
97d18aeb JR |
236 | %description -l pt_BR.UTF-8 |
237 | O SeaMonkey Community Edition é um web browser baseado numa versão | |
dc51aa63 | 238 | inicial do Netscape Communicator. |
b19e17d8 | 239 | |
97d18aeb JR |
240 | %description -l ru.UTF-8 |
241 | SeaMonkey Community Edition - полнофункциональный web-browser с | |
242 | открытыми исходными текстами, разработанный для максимального | |
243 | соотвествия стандартам, максмимальной переносимости и скорости работы | |
b19e17d8 | 244 | |
50d95fcd JB |
245 | %package addon-lightning |
246 | Summary: An integrated calendar for SeaMonkey | |
247 | Summary(pl.UTF-8): Zintegrowany kalendarz dla SeaMonkey | |
248 | Group: Applications/Networking | |
249 | Requires: %{name} = %{version}-%{release} | |
010d2414 | 250 | Obsoletes: iceape-addon-lightning < 2.46 |
50d95fcd JB |
251 | |
252 | %description addon-lightning | |
253 | Lightning is an calendar extension to Icedove email client. | |
254 | ||
255 | %description addon-lightning -l pl.UTF-8 | |
256 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
257 | funkcjonalność kalendarza. | |
258 | ||
259 | %package chat | |
260 | Summary: SeaMonkey Community Edition Chat - integrated IRC client | |
261 | Summary(pl.UTF-8): SeaMonkey Community Edition Chat - zintegrowany klient IRC-a | |
262 | Group: X11/Applications/Networking | |
263 | Requires(post,postun): %{name} = %{version}-%{release} | |
264 | Requires: %{name} = %{version}-%{release} | |
010d2414 JB |
265 | Obsoletes: iceape-chat < 2.46 |
266 | Obsoletes: mozilla-chat < 1.8 | |
50d95fcd JB |
267 | |
268 | %description chat | |
269 | SeaMonkey Community Edition Chat - IRC client that is integrated with | |
270 | the SeaMonkey Community Edition web browser. | |
271 | ||
272 | %description chat -l pl.UTF-8 | |
273 | SeaMonkey Community Edition Chat - klient IRC-a zintegrowany z | |
274 | przeglądarką SeaMonkey Community Edition. | |
275 | ||
276 | %package dom-inspector | |
277 | Summary: A tool for inspecting the DOM of pages in SeaMonkey Community Edition | |
278 | Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w SeaMonkey Community Edition | |
279 | Group: X11/Applications/Networking | |
280 | Requires(post,postun): %{name} = %{version}-%{release} | |
281 | Requires: %{name} = %{version}-%{release} | |
010d2414 JB |
282 | Obsoletes: iceape-dom-inspector < 2.46 |
283 | Obsoletes: mozilla-dom-inspector < 1.8 | |
50d95fcd JB |
284 | |
285 | %description dom-inspector | |
286 | This is a tool that allows you to inspect the DOM for web pages in | |
287 | SeaMonkey Community Edition. This is of great use to people who are | |
288 | doing SeaMonkey Community Edition chrome development or web page | |
289 | development. | |
290 | ||
291 | %description dom-inspector -l pl.UTF-8 | |
292 | To narzędzie pozwala na oglądanie DOM dla stron WWW w SeaMonkey | |
293 | Community Edition. Jest bardzo przydatne dla ludzi rozwijających | |
294 | chrome w SeaMonkey Community Edition lub tworzących strony WWW. | |
295 | ||
048deb2d JR |
296 | %package lang-cs |
297 | Summary: Czech resources for SeaMonkey | |
298 | Summary(pl.UTF-8): Czeskie pliki językowe dla SeaMonkeya | |
299 | Group: I18n | |
300 | Requires: seamonkey >= %{version} | |
301 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 302 | Obsoletes: iceape-lang-cs < 2.47 |
048deb2d JR |
303 | BuildArch: noarch |
304 | ||
305 | %description lang-cs | |
306 | Czech resources for SeaMonkey. | |
307 | ||
308 | %description lang-cs -l pl.UTF-8 | |
309 | Czeskie pliki językowe dla SeaMonkeya. | |
310 | ||
311 | %package lang-de | |
312 | Summary: German resources for SeaMonkey | |
313 | Summary(pl.UTF-8): Niemieckie pliki językowe dla SeaMonkeya | |
314 | Group: I18n | |
315 | Requires: seamonkey >= %{version} | |
316 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 317 | Obsoletes: iceape-lang-de < 2.47 |
048deb2d JR |
318 | BuildArch: noarch |
319 | ||
320 | %description lang-de | |
321 | German resources for SeaMonkey. | |
322 | ||
323 | %description lang-de -l pl.UTF-8 | |
324 | Niemieckie pliki językowe dla SeaMonkeya. | |
325 | ||
f1319b72 JB |
326 | %package lang-el |
327 | Summary: Greek resources for SeaMonkey | |
328 | Summary(pl.UTF-8): Greckie pliki językowe dla SeaMonkeya | |
329 | Group: I18n | |
330 | Requires: seamonkey >= %{version} | |
331 | Provides: seamonkey-lang-resources = %{version} | |
332 | BuildArch: noarch | |
333 | ||
334 | %description lang-el | |
335 | Greek resources for SeaMonkey. | |
336 | ||
337 | %description lang-el -l pl.UTF-8 | |
338 | Greckie pliki językowe dla SeaMonkeya. | |
339 | ||
048deb2d JR |
340 | %package lang-en_GB |
341 | Summary: English (British) resources for SeaMonkey | |
342 | Summary(pl.UTF-8): Angielskie (brytyjskie) pliki językowe dla SeaMonkeya | |
343 | Group: I18n | |
344 | Requires: seamonkey >= %{version} | |
345 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 346 | Obsoletes: iceape-lang-en_GB < 2.47 |
048deb2d JR |
347 | BuildArch: noarch |
348 | ||
349 | %description lang-en_GB | |
350 | English (British) resources for SeaMonkey. | |
351 | ||
352 | %description lang-en_GB -l pl.UTF-8 | |
353 | Angielskie (brytyjskie) pliki językowe dla SeaMonkeya. | |
354 | ||
355 | %package lang-en_US | |
356 | Summary: English (American) resources for SeaMonkey | |
357 | Summary(pl.UTF-8): Angielskie (amerykańskie) pliki językowe dla SeaMonkeya | |
358 | Group: I18n | |
359 | Requires: seamonkey >= %{version} | |
360 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 361 | Obsoletes: iceape-lang-en_US < 2.47 |
048deb2d JR |
362 | BuildArch: noarch |
363 | ||
364 | %description lang-en_US | |
365 | English (American) resources for SeaMonkey. | |
366 | ||
367 | %description lang-en_US -l pl.UTF-8 | |
368 | Angielskie (amerykańskie) pliki językowe dla SeaMonkeya. | |
369 | ||
370 | %package lang-es_AR | |
371 | Summary: Spanish (Andorra) resources for SeaMonkey | |
372 | Summary(ca.UTF-8): Recursos espanyols (Andorra) per SeaMonkey | |
373 | Summary(es.UTF-8): Recursos españoles (Andorra) para SeaMonkey | |
374 | Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory) | |
375 | Group: I18n | |
376 | Requires: seamonkey >= %{version} | |
377 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 378 | Obsoletes: iceape-lang-es_AR < 2.47 |
048deb2d JR |
379 | BuildArch: noarch |
380 | ||
381 | %description lang-es_AR | |
382 | Spanish (Spain) resources for SeaMonkey. | |
383 | ||
384 | %description lang-es_AR -l ca.UTF-8 | |
385 | Recursos espanyols (Andorra) per SeaMonkey. | |
386 | ||
387 | %description lang-es_AR -l es.UTF-8 | |
388 | Recursos españoles (Andorra) para SeaMonkey. | |
389 | ||
390 | %description lang-es_AR -l pl.UTF-8 | |
391 | Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory). | |
392 | ||
393 | %package lang-es | |
394 | Summary: Spanish (Spain) resources for SeaMonkey | |
395 | Summary(ca.UTF-8): Recursos espanyols (Espanya) per SeaMonkey | |
396 | Summary(es.UTF-8): Recursos españoles (España) para SeaMonkey | |
397 | Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii) | |
398 | Group: I18n | |
399 | Requires: seamonkey >= %{version} | |
400 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 401 | Obsoletes: iceape-lang-es < 2.47 |
048deb2d JR |
402 | BuildArch: noarch |
403 | ||
404 | %description lang-es | |
405 | Spanish (Spain) resources for SeaMonkey. | |
406 | ||
407 | %description lang-es -l ca.UTF-8 | |
408 | Recursos espanyols (Espanya) per SeaMonkey. | |
409 | ||
410 | %description lang-es -l es.UTF-8 | |
411 | Recursos españoles (España) para SeaMonkey. | |
412 | ||
413 | %description lang-es -l pl.UTF-8 | |
414 | Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii). | |
415 | ||
6930f277 JB |
416 | %package lang-fi |
417 | Summary: Finnish resources for SeaMonkey | |
418 | Summary(pl.UTF-8): Fińskie pliki językowe dla SeaMonkeya | |
419 | Group: I18n | |
420 | Requires: seamonkey >= %{version} | |
421 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 422 | Obsoletes: iceape-lang-fi < 2.47 |
6930f277 JB |
423 | BuildArch: noarch |
424 | ||
425 | %description lang-fi | |
426 | Finnish resources for SeaMonkey. | |
427 | ||
428 | %description lang-fi -l pl.UTF-8 | |
429 | Fińskie pliki językowe dla SeaMonkeya. | |
430 | ||
048deb2d JR |
431 | %package lang-fr |
432 | Summary: French resources for SeaMonkey | |
433 | Summary(pl.UTF-8): Francuskie pliki językowe dla SeaMonkeya | |
434 | Group: I18n | |
435 | Requires: seamonkey >= %{version} | |
436 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 437 | Obsoletes: iceape-lang-fr < 2.47 |
048deb2d JR |
438 | BuildArch: noarch |
439 | ||
440 | %description lang-fr | |
441 | French resources for SeaMonkey. | |
442 | ||
443 | %description lang-fr -l pl.UTF-8 | |
444 | Francuskie pliki językowe dla SeaMonkeya. | |
445 | ||
446 | %package lang-hu | |
447 | Summary: Hungarian resources for SeaMonkey | |
448 | Summary(hu.UTF-8): Magyar nyelv SeaMonkey-hez | |
449 | Summary(pl.UTF-8): Węgierskie pliki językowe dla SeaMonkeya | |
450 | Group: I18n | |
451 | Requires: seamonkey >= %{version} | |
452 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 453 | Obsoletes: iceape-lang-hu < 2.47 |
048deb2d JR |
454 | BuildArch: noarch |
455 | ||
456 | %description lang-hu | |
457 | Hungarian resources for SeaMonkey. | |
458 | ||
459 | %description lang-hu -l hu.UTF-8 | |
460 | Magyar nyelv SeaMonkey-hez. | |
461 | ||
462 | %description lang-hu -l pl.UTF-8 | |
463 | Węgierskie pliki językowe dla SeaMonkeya. | |
464 | ||
465 | %package lang-it | |
466 | Summary: Italian resources for SeaMonkey | |
467 | Summary(pl.UTF-8): Włoskie pliki językowe dla SeaMonkeya | |
468 | Group: I18n | |
469 | Requires: seamonkey >= %{version} | |
470 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 471 | Obsoletes: iceape-lang-it < 2.47 |
048deb2d JR |
472 | BuildArch: noarch |
473 | ||
474 | %description lang-it | |
475 | Italian resources for SeaMonkey. | |
476 | ||
477 | %description lang-it -l pl.UTF-8 | |
478 | Włoskie pliki językowe dla SeaMonkeya. | |
479 | ||
480 | %package lang-ja | |
481 | Summary: Japanese resources for SeaMonkey | |
482 | Summary(pl.UTF-8): Japońskie pliki językowe dla SeaMonkeya | |
483 | Group: I18n | |
484 | Requires: seamonkey >= %{version} | |
485 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 486 | Obsoletes: iceape-lang-ja < 2.47 |
048deb2d JR |
487 | BuildArch: noarch |
488 | ||
489 | %description lang-ja | |
490 | Japanese resources for SeaMonkey. | |
491 | ||
492 | %description lang-ja -l pl.UTF-8 | |
493 | Japońskie pliki językowe dla SeaMonkeya. | |
494 | ||
6930f277 JB |
495 | %package lang-ka |
496 | Summary: Georgian resources for SeaMonkey | |
497 | Summary(pl.UTF-8): Gruzińskie pliki językowe dla SeaMonkeya | |
498 | Group: I18n | |
499 | Requires: seamonkey >= %{version} | |
500 | Provides: seamonkey-lang-resources = %{version} | |
501 | BuildArch: noarch | |
502 | ||
503 | %description lang-ka | |
504 | Georgian resources for SeaMonkey. | |
505 | ||
506 | %description lang-ka -l pl.UTF-8 | |
507 | Gruzińskie pliki językowe dla SeaMonkeya. | |
508 | ||
048deb2d JR |
509 | %package lang-lt |
510 | Summary: Lithuanian resources for SeaMonkey | |
511 | Summary(pl.UTF-8): Litewskie pliki językowe dla SeaMonkeya | |
512 | Group: I18n | |
513 | Requires: seamonkey >= %{version} | |
514 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 515 | Obsoletes: iceape-lang-lt < 2.47 |
048deb2d JR |
516 | BuildArch: noarch |
517 | ||
518 | %description lang-lt | |
519 | Lithuanian resources for SeaMonkey. | |
520 | ||
521 | %description lang-lt -l pl.UTF-8 | |
522 | Litewskie pliki językowe dla SeaMonkeya. | |
523 | ||
5a870fa3 JB |
524 | %package lang-nb |
525 | Summary: Norwegian Bokmaal resources for SeaMonkey | |
526 | Summary(pl.UTF-8): Norweskie (bokmaal) pliki językowe dla SeaMonkeya | |
527 | Group: I18n | |
528 | Requires: seamonkey >= %{version} | |
529 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 530 | Obsoletes: iceape-lang-nb < 2.47 |
5a870fa3 JB |
531 | BuildArch: noarch |
532 | ||
533 | %description lang-nb | |
534 | Norwegian Bokmaal resources for SeaMonkey. | |
535 | ||
536 | %description lang-nb -l pl.UTF-8 | |
537 | Norweskie (bokmaal) pliki językowe dla SeaMonkeya. | |
538 | ||
048deb2d JR |
539 | %package lang-nl |
540 | Summary: Dutch resources for SeaMonkey | |
541 | Summary(pl.UTF-8): Holenderskie pliki językowe dla SeaMonkeya | |
542 | Group: I18n | |
543 | Requires: seamonkey >= %{version} | |
544 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 545 | Obsoletes: iceape-lang-nl < 2.47 |
048deb2d JR |
546 | BuildArch: noarch |
547 | ||
548 | %description lang-nl | |
549 | Dutch resources for SeaMonkey. | |
550 | ||
551 | %description lang-nl -l pl.UTF-8 | |
552 | Holenderskie pliki językowe dla SeaMonkeya. | |
553 | ||
554 | %package lang-pl | |
555 | Summary: Polish resources for SeaMonkey | |
556 | Summary(pl.UTF-8): Polskie pliki językowe dla SeaMonkeya | |
557 | Group: I18n | |
558 | Requires: seamonkey >= %{version} | |
559 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 560 | Obsoletes: iceape-lang-pl < 2.47 |
048deb2d JR |
561 | BuildArch: noarch |
562 | ||
563 | %description lang-pl | |
564 | Polish resources for SeaMonkey. | |
565 | ||
566 | %description lang-pl -l pl.UTF-8 | |
567 | Polskie pliki językowe dla SeaMonkeya. | |
568 | ||
6930f277 JB |
569 | %package lang-pt_BR |
570 | Summary: Portuguese (Brazilian) resources for SeaMonkey | |
571 | Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Brazylii) | |
572 | Group: I18n | |
573 | Requires: seamonkey >= %{version} | |
574 | Provides: seamonkey-lang-resources = %{version} | |
575 | BuildArch: noarch | |
576 | ||
577 | %description lang-pt_BR | |
578 | Portuguese (Brazilian) resources for SeaMonkey. | |
579 | ||
580 | %description lang-pt_BR -l pl.UTF-8 | |
581 | Portugalskie pliki językowe dla SeaMonkeya (wersja dla Brazylii). | |
582 | ||
048deb2d JR |
583 | %package lang-pt |
584 | Summary: Portuguese (Portugal) resources for SeaMonkey | |
585 | Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii) | |
586 | Group: I18n | |
587 | Requires: seamonkey >= %{version} | |
588 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 589 | Obsoletes: iceape-lang-pt < 2.47 |
048deb2d JR |
590 | BuildArch: noarch |
591 | ||
592 | %description lang-pt | |
593 | Portuguese (Portugal) resources for SeaMonkey. | |
594 | ||
595 | %description lang-pt -l pl.UTF-8 | |
596 | Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii). | |
597 | ||
598 | %package lang-ru | |
599 | Summary: Russian resources for SeaMonkey | |
600 | Summary(pl.UTF-8): Rosyjskie pliki językowe dla SeaMonkeya | |
601 | Group: I18n | |
602 | Requires: seamonkey >= %{version} | |
603 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 604 | Obsoletes: iceape-lang-ru < 2.47 |
048deb2d JR |
605 | BuildArch: noarch |
606 | ||
607 | %description lang-ru | |
608 | Russian resources for SeaMonkey. | |
609 | ||
610 | %description lang-ru -l pl.UTF-8 | |
611 | Rosyjskie pliki językowe dla SeaMonkeya. | |
612 | ||
613 | %package lang-sk | |
614 | Summary: Slovak resources for SeaMonkey | |
615 | Summary(pl.UTF-8): Słowackie pliki językowe dla SeaMonkeya | |
616 | Group: I18n | |
617 | Requires: seamonkey >= %{version} | |
618 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 619 | Obsoletes: iceape-lang-sk < 2.47 |
048deb2d JR |
620 | BuildArch: noarch |
621 | ||
622 | %description lang-sk | |
623 | Slovak resources for SeaMonkey. | |
624 | ||
625 | %description lang-sk -l pl.UTF-8 | |
626 | Słowackie pliki językowe dla SeaMonkeya. | |
627 | ||
628 | %package lang-sv | |
629 | Summary: Swedish resources for SeaMonkey | |
630 | Summary(pl.UTF-8): Szwedzkie pliki językowe dla SeaMonkeya | |
631 | Group: I18n | |
632 | Requires: seamonkey >= %{version} | |
633 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 634 | Obsoletes: iceape-lang-sv < 2.47 |
048deb2d JR |
635 | BuildArch: noarch |
636 | ||
637 | %description lang-sv | |
638 | Swedish resources for SeaMonkey. | |
639 | ||
640 | %description lang-sv -l pl.UTF-8 | |
641 | Szwedzkie pliki językowe dla SeaMonkeya. | |
642 | ||
643 | %package lang-zh_CN | |
644 | Summary: Simplified Chinese resources for SeaMonkey | |
645 | Summary(pl.UTF-8): Chińskie (uproszczone) pliki językowe dla SeaMonkeya | |
646 | Group: I18n | |
647 | Requires: seamonkey >= %{version} | |
648 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 649 | Obsoletes: iceape-lang-zh_CN < 2.47 |
048deb2d JR |
650 | BuildArch: noarch |
651 | ||
652 | %description lang-zh_CN | |
653 | Simplified Chinese resources for SeaMonkey. | |
654 | ||
655 | %description lang-zh_CN -l pl.UTF-8 | |
656 | Chińskie uproszczone pliki językowe dla SeaMonkeya. | |
657 | ||
658 | %package lang-zh_TW | |
659 | Summary: Traditional Chinese resources for SeaMonkey | |
660 | Summary(pl.UTF-8): Chińskie tradycyjne pliki językowe dla SeaMonkeya | |
661 | Group: I18n | |
662 | Requires: seamonkey >= %{version} | |
663 | Provides: seamonkey-lang-resources = %{version} | |
010d2414 | 664 | Obsoletes: iceape-lang-zh_TW < 2.47 |
048deb2d JR |
665 | BuildArch: noarch |
666 | ||
667 | %description lang-zh_TW | |
668 | Traditional Chinese resources for SeaMonkey. | |
669 | ||
670 | %description lang-zh_TW -l pl.UTF-8 | |
671 | Chińskie tradycyjne pliki językowe dla SeaMonkeya. | |
672 | ||
b19e17d8 | 673 | %prep |
048deb2d JR |
674 | unpack() { |
675 | local args="$1" file="$2" | |
676 | cp -p $file . | |
677 | } | |
678 | %define __unzip unpack | |
f1319b72 | 679 | %setup -q %(seq -f '-a %g' 100 122 | xargs) |
bd8dbb8a JR |
680 | %patch1 -p1 |
681 | %patch2 -p1 | |
757edfb3 | 682 | %patch3 -p1 |
bd8dbb8a | 683 | %patch4 -p1 |
2f09c133 | 684 | %patch5 -p1 |
2d864b15 | 685 | %patch6 -p1 |
bd8dbb8a JR |
686 | |
687 | %build | |
bd8dbb8a JR |
688 | cat << EOF > .mozconfig |
689 | mk_add_options MOZ_OBJDIR=%{objdir} | |
690 | ||
6930f277 JB |
691 | export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" |
692 | export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64" | |
693 | ||
694 | %if %{with lowmem} | |
695 | export CFLAGS="$CFLAGS -g0" | |
696 | export CXXFLAGS="$CXXFLAGS -g0" | |
697 | export MOZ_DEBUG_FLAGS=" " | |
698 | export LLVM_USE_SPLIT_DWARF=1 | |
699 | export LLVM_PARALLEL_LINK_JOBS=1 | |
700 | export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" | |
701 | export RUSTFLAGS="-Cdebuginfo=0" | |
702 | %endif | |
703 | ||
bd8dbb8a JR |
704 | %if %{with crashreporter} |
705 | export MOZ_DEBUG_SYMBOLS=1 | |
706 | %endif | |
707 | ||
708 | # Options for 'configure' (same as command-line options). | |
709 | ac_add_options --prefix=%{_prefix} | |
6930f277 | 710 | ac_add_options --libdir=%{_libdir} |
bd8dbb8a JR |
711 | %if %{?debug:1}0 |
712 | ac_add_options --disable-optimize | |
5a870fa3 | 713 | ac_add_options --enable-crash-on-assert |
bd8dbb8a JR |
714 | ac_add_options --enable-debug |
715 | ac_add_options --enable-debug-modules | |
716 | ac_add_options --enable-debugger-info-modules | |
c1527db1 | 717 | %else |
bd8dbb8a | 718 | ac_add_options --disable-debug |
c1527db1 | 719 | %endif |
bd8dbb8a | 720 | ac_add_options --disable-strip |
6930f277 | 721 | ac_add_options --disable-install-strip |
bd8dbb8a JR |
722 | %if %{with tests} |
723 | ac_add_options --enable-tests | |
724 | %else | |
725 | ac_add_options --disable-tests | |
726 | %endif | |
bd8dbb8a JR |
727 | %if %{with crashreporter} |
728 | ac_add_options --enable-crashreporter | |
729 | %else | |
730 | ac_add_options --disable-crashreporter | |
731 | %endif | |
ceb753a6 | 732 | ac_add_options --disable-elf-hack |
ceb753a6 | 733 | ac_add_options --disable-necko-wifi |
bd8dbb8a | 734 | ac_add_options --disable-updater |
f1319b72 | 735 | ac_add_options --enable-application=comm/suite |
50d95fcd JB |
736 | %if %{with lightning} |
737 | ac_add_options --enable-calendar | |
738 | %endif | |
ceb753a6 | 739 | ac_add_options --enable-chrome-format=omni |
6930f277 JB |
740 | ac_add_options --enable-default-toolkit=cairo-gtk3 |
741 | ac_add_options --enable-dominspector | |
6930f277 | 742 | ac_add_options --enable-irc |
b8379d78 JB |
743 | %if %{without gold} |
744 | ac_add_options --enable-linker=bfd | |
745 | %endif | |
ceb753a6 JB |
746 | # breaks build |
747 | #ac_add_options --enable-shared-js | |
bd8dbb8a | 748 | ac_add_options --enable-startup-notification |
b8379d78 | 749 | %if %{with system_cairo} |
bd8dbb8a | 750 | ac_add_options --enable-system-cairo |
b8379d78 | 751 | %endif |
bd8dbb8a | 752 | ac_add_options --enable-system-hunspell |
bd8dbb8a | 753 | ac_add_options --with-distribution-id=org.pld-linux |
bd8dbb8a JR |
754 | ac_add_options --with-system-bz2 |
755 | ac_add_options --with-system-ffi | |
757edfb3 | 756 | ac_add_options --with-system-icu |
bd8dbb8a JR |
757 | ac_add_options --with-system-jpeg |
758 | ac_add_options --with-system-libevent | |
759 | ac_add_options --with-system-libvpx | |
760 | ac_add_options --with-system-nspr | |
761 | ac_add_options --with-system-nss | |
6930f277 | 762 | ac_add_options --with-system-pixman |
bd8dbb8a JR |
763 | ac_add_options --with-system-png |
764 | ac_add_options --with-system-zlib | |
bd8dbb8a | 765 | EOF |
b19e17d8 | 766 | |
509394b9 | 767 | %{__make} -j1 build \ |
ceb753a6 | 768 | AUTOCONF=/usr/bin/autoconf2_13 \ |
bd8dbb8a JR |
769 | STRIP="/bin/true" \ |
770 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ | |
2607f7aa | 771 | installdir=%{_libdir}/%{name} \ |
16e155ba | 772 | XLIBS="-lX11 -lXt" \ |
bd8dbb8a | 773 | CC="%{__cc}" \ |
6930f277 | 774 | CXX="%{__cxx}" |
b19e17d8 | 775 | |
bd8dbb8a JR |
776 | %if %{with crashreporter} |
777 | # create debuginfo for crash-stats.mozilla.com | |
778 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
779 | %endif | |
780 | ||
b19e17d8 JB |
781 | %install |
782 | rm -rf $RPM_BUILD_ROOT | |
783 | install -d \ | |
2607f7aa | 784 | $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ |
b19e17d8 | 785 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ |
bd8dbb8a | 786 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
757edfb3 JB |
787 | $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \ |
788 | $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 789 | |
bd8dbb8a | 790 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins |
b19e17d8 | 791 | |
d7cc109a | 792 | cd %{objdir} |
c7d608a7 | 793 | cwd=`pwd` |
f1319b72 | 794 | %{__make} -C comm/suite/installer stage-package \ |
bd8dbb8a | 795 | DESTDIR=$RPM_BUILD_ROOT \ |
bd8dbb8a | 796 | installdir=%{_libdir}/%{name} \ |
2607f7aa JR |
797 | PKG_SKIP_STRIP=1 |
798 | ||
757edfb3 JB |
799 | cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
800 | cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 801 | |
d7cc109a JR |
802 | # Enable crash reporter for Thunderbird application |
803 | %if %{with crashreporter} | |
804 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
805 | ||
806 | # Add debuginfo for crash-stats.mozilla.com | |
807 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} | |
ceb753a6 | 808 | cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
d7cc109a JR |
809 | %endif |
810 | ||
5a870fa3 | 811 | # move arch independent ones to datadir |
ceb753a6 JB |
812 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome |
813 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
5a870fa3 | 814 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts |
b19e17d8 | 815 | |
bd8dbb8a JR |
816 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome |
817 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
5a870fa3 | 818 | ln -s ../../share/%{name}/fonts $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts |
c7d608a7 | 819 | |
ceb753a6 | 820 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp |
eebfc2d2 | 821 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp |
bd8dbb8a | 822 | |
d7cc109a JR |
823 | # dir for arch independant extensions besides arch dependant extensions |
824 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
825 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
826 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
827 | ||
bd8dbb8a JR |
828 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
829 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
b19e17d8 | 830 | |
16e155ba | 831 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey |
bd8dbb8a | 832 | chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey |
b19e17d8 | 833 | |
ceb753a6 | 834 | install %{SOURCE4} %{SOURCE5} %{SOURCE7} \ |
824eb755 | 835 | $RPM_BUILD_ROOT%{_desktopdir} |
b19e17d8 | 836 | |
6930f277 | 837 | for d in 16 32 48 64 128 ; do |
ceb753a6 | 838 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps |
f1319b72 | 839 | cp -p %{topdir}/comm/suite/branding/seamonkey/default${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png |
ceb753a6 | 840 | done |
b19e17d8 | 841 | |
ceb753a6 JB |
842 | # don't package, rely on system mozldap libraries |
843 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list | |
844 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
845 | ||
048deb2d JR |
846 | cd .. |
847 | for a in *.xpi; do | |
848 | basename=$(basename $a .langpack.xpi) | |
849 | basename=${basename##seamonkey-%{version}.} | |
850 | cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@seamonkey.mozilla.org.xpi | |
851 | done | |
852 | ||
6930f277 JB |
853 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{license.txt,precomplete,removed-files} |
854 | ||
b19e17d8 JB |
855 | %clean |
856 | rm -rf $RPM_BUILD_ROOT | |
857 | ||
6d3a5031 | 858 | %post |
6d3a5031 | 859 | %update_browser_plugins |
ceb753a6 | 860 | %update_icon_cache hicolor |
d7cc109a | 861 | %update_desktop_database |
6d3a5031 ER |
862 | |
863 | %postun | |
6d3a5031 ER |
864 | if [ "$1" = 0 ]; then |
865 | %update_browser_plugins | |
ceb753a6 | 866 | %update_icon_cache hicolor |
6d3a5031 | 867 | fi |
b19e17d8 | 868 | |
b19e17d8 JB |
869 | %files |
870 | %defattr(644,root,root,755) | |
ceb753a6 | 871 | %doc AUTHORS |
acf8815d | 872 | %attr(755,root,root) %{_bindir}/seamonkey |
757edfb3 | 873 | %{_mandir}/man1/seamonkey.1* |
b19e17d8 | 874 | |
6d3a5031 ER |
875 | # browser plugins v2 |
876 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
877 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
878 | ||
d7cc109a | 879 | %dir %{_libdir}/%{name} |
ceb753a6 | 880 | %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so |
5a870fa3 JB |
881 | %attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so |
882 | %attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so | |
ceb753a6 | 883 | %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so |
5a870fa3 | 884 | %attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so |
f1319b72 | 885 | %attr(755,root,root) %{_libdir}/%{name}/libmozsqlite3.so |
2607f7aa | 886 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
d7cc109a | 887 | |
2607f7aa | 888 | %{_libdir}/%{name}/blocklist.xml |
c7d608a7 | 889 | %{_libdir}/%{name}/omni.ja |
d7cc109a | 890 | |
2607f7aa JR |
891 | %if %{with crashreporter} |
892 | %{_libdir}/%{name}/crashreporter | |
893 | %{_libdir}/%{name}/crashreporter-override.ini | |
894 | %{_libdir}/%{name}/crashreporter.ini | |
895 | %{_libdir}/%{name}/Throbber-small.gif | |
896 | %endif | |
897 | ||
898 | # config? | |
899 | %{_libdir}/%{name}/application.ini | |
900 | %{_libdir}/%{name}/chrome.manifest | |
901 | ||
16e155ba | 902 | %{_libdir}/%{name}/dependentlibs.list |
2607f7aa | 903 | %{_libdir}/%{name}/platform.ini |
2607f7aa JR |
904 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh |
905 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin | |
2607f7aa | 906 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
2607f7aa | 907 | |
16e155ba JB |
908 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey |
909 | %dir %{_libdir}/%{name}/plugins | |
910 | ||
2607f7aa JR |
911 | # symlinks |
912 | %{_libdir}/%{name}/chrome | |
913 | %{_libdir}/%{name}/defaults | |
5a870fa3 | 914 | %{_libdir}/%{name}/fonts |
2607f7aa | 915 | %{_libdir}/%{name}/dictionaries |
b19e17d8 | 916 | |
2607f7aa JR |
917 | %dir %{_datadir}/%{name} |
918 | %{_datadir}/%{name}/chrome | |
b19e17d8 | 919 | %{_datadir}/%{name}/defaults |
5a870fa3 | 920 | %{_datadir}/%{name}/fonts |
b19e17d8 | 921 | |
2607f7aa JR |
922 | %dir %{_datadir}/%{name}/extensions |
923 | %dir %{_libdir}/%{name}/extensions | |
924 | # the signature of the default theme | |
925 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi | |
926 | %{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi | |
b19e17d8 | 927 | |
2607f7aa JR |
928 | %{_libdir}/%{name}/isp |
929 | %dir %{_datadir}/%{name}/isp | |
930 | %{_datadir}/%{name}/isp/Bogofilter.sfd | |
931 | %{_datadir}/%{name}/isp/DSPAM.sfd | |
932 | %{_datadir}/%{name}/isp/POPFile.sfd | |
933 | %{_datadir}/%{name}/isp/SpamAssassin.sfd | |
934 | %{_datadir}/%{name}/isp/SpamPal.sfd | |
935 | %{_datadir}/%{name}/isp/movemail.rdf | |
936 | %{_datadir}/%{name}/isp/rss.rdf | |
b19e17d8 | 937 | |
ceb753a6 | 938 | %{_iconsdir}/hicolor/*x*/apps/seamonkey.png |
2607f7aa JR |
939 | %{_desktopdir}/%{name}.desktop |
940 | %{_desktopdir}/%{name}-composer.desktop | |
824eb755 | 941 | %{_desktopdir}/%{name}-mail.desktop |
048deb2d | 942 | |
50d95fcd JB |
943 | %if %{with lightning} |
944 | %files addon-lightning | |
945 | %defattr(644,root,root,755) | |
98697bc5 | 946 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi |
50d95fcd JB |
947 | %endif |
948 | ||
949 | %files chat | |
950 | %defattr(644,root,root,755) | |
98697bc5 | 951 | %{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi |
50d95fcd JB |
952 | |
953 | %files dom-inspector | |
954 | %defattr(644,root,root,755) | |
98697bc5 | 955 | %{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi |
50d95fcd | 956 | |
048deb2d JR |
957 | %files lang-cs |
958 | %defattr(644,root,root,755) | |
959 | %{_datadir}/%{name}/extensions/langpack-cs@seamonkey.mozilla.org.xpi | |
960 | ||
961 | %files lang-de | |
962 | %defattr(644,root,root,755) | |
963 | %{_datadir}/%{name}/extensions/langpack-de@seamonkey.mozilla.org.xpi | |
964 | ||
f1319b72 JB |
965 | %files lang-el |
966 | %defattr(644,root,root,755) | |
967 | %{_datadir}/%{name}/extensions/langpack-el@seamonkey.mozilla.org.xpi | |
968 | ||
048deb2d JR |
969 | %files lang-en_GB |
970 | %defattr(644,root,root,755) | |
971 | %{_datadir}/%{name}/extensions/langpack-en-GB@seamonkey.mozilla.org.xpi | |
972 | ||
973 | %files lang-en_US | |
974 | %defattr(644,root,root,755) | |
975 | %{_datadir}/%{name}/extensions/langpack-en-US@seamonkey.mozilla.org.xpi | |
976 | ||
977 | %files lang-es_AR | |
978 | %defattr(644,root,root,755) | |
979 | %{_datadir}/%{name}/extensions/langpack-es-AR@seamonkey.mozilla.org.xpi | |
980 | ||
981 | %files lang-es | |
982 | %defattr(644,root,root,755) | |
983 | %{_datadir}/%{name}/extensions/langpack-es-ES@seamonkey.mozilla.org.xpi | |
984 | ||
6930f277 JB |
985 | %files lang-fi |
986 | %defattr(644,root,root,755) | |
987 | %{_datadir}/%{name}/extensions/langpack-fi@seamonkey.mozilla.org.xpi | |
988 | ||
048deb2d JR |
989 | %files lang-fr |
990 | %defattr(644,root,root,755) | |
991 | %{_datadir}/%{name}/extensions/langpack-fr@seamonkey.mozilla.org.xpi | |
992 | ||
993 | %files lang-hu | |
994 | %defattr(644,root,root,755) | |
995 | %{_datadir}/%{name}/extensions/langpack-hu@seamonkey.mozilla.org.xpi | |
996 | ||
997 | %files lang-it | |
998 | %defattr(644,root,root,755) | |
999 | %{_datadir}/%{name}/extensions/langpack-it@seamonkey.mozilla.org.xpi | |
1000 | ||
1001 | %files lang-ja | |
1002 | %defattr(644,root,root,755) | |
1003 | %{_datadir}/%{name}/extensions/langpack-ja@seamonkey.mozilla.org.xpi | |
1004 | ||
6930f277 | 1005 | %files lang-ka |
048deb2d | 1006 | %defattr(644,root,root,755) |
6930f277 JB |
1007 | %{_datadir}/%{name}/extensions/langpack-ka@seamonkey.mozilla.org.xpi |
1008 | ||
1009 | #%files lang-lt | |
1010 | #%defattr(644,root,root,755) | |
1011 | #%{_datadir}/%{name}/extensions/langpack-lt@seamonkey.mozilla.org.xpi | |
048deb2d | 1012 | |
5a870fa3 JB |
1013 | %files lang-nb |
1014 | %defattr(644,root,root,755) | |
1015 | %{_datadir}/%{name}/extensions/langpack-nb-NO@seamonkey.mozilla.org.xpi | |
1016 | ||
048deb2d JR |
1017 | %files lang-nl |
1018 | %defattr(644,root,root,755) | |
1019 | %{_datadir}/%{name}/extensions/langpack-nl@seamonkey.mozilla.org.xpi | |
1020 | ||
1021 | %files lang-pl | |
1022 | %defattr(644,root,root,755) | |
1023 | %{_datadir}/%{name}/extensions/langpack-pl@seamonkey.mozilla.org.xpi | |
1024 | ||
6930f277 JB |
1025 | %files lang-pt_BR |
1026 | %defattr(644,root,root,755) | |
1027 | %{_datadir}/%{name}/extensions/langpack-pt-BR@seamonkey.mozilla.org.xpi | |
1028 | ||
048deb2d JR |
1029 | %files lang-pt |
1030 | %defattr(644,root,root,755) | |
1031 | %{_datadir}/%{name}/extensions/langpack-pt-PT@seamonkey.mozilla.org.xpi | |
1032 | ||
1033 | %files lang-ru | |
1034 | %defattr(644,root,root,755) | |
1035 | %{_datadir}/%{name}/extensions/langpack-ru@seamonkey.mozilla.org.xpi | |
1036 | ||
1037 | %files lang-sk | |
1038 | %defattr(644,root,root,755) | |
1039 | %{_datadir}/%{name}/extensions/langpack-sk@seamonkey.mozilla.org.xpi | |
1040 | ||
1041 | %files lang-sv | |
1042 | %defattr(644,root,root,755) | |
1043 | %{_datadir}/%{name}/extensions/langpack-sv-SE@seamonkey.mozilla.org.xpi | |
1044 | ||
1045 | %files lang-zh_CN | |
1046 | %defattr(644,root,root,755) | |
1047 | %{_datadir}/%{name}/extensions/langpack-zh-CN@seamonkey.mozilla.org.xpi | |
1048 | ||
1049 | %files lang-zh_TW | |
1050 | %defattr(644,root,root,755) | |
1051 | %{_datadir}/%{name}/extensions/langpack-zh-TW@seamonkey.mozilla.org.xpi |