]>
Commit | Line | Data |
---|---|---|
1d0185d8 | 1 | # |
2 | # Conditional build: | |
2ded22a1 | 3 | %bcond_with gtk3 # GTK+ 3.x instead of 2.x |
dae07f1c JR |
4 | %bcond_without ldap # disable e-mail address lookups in LDAP directories |
5 | %bcond_without lightning # disable Sunbird/Lightning calendar | |
2ded22a1 | 6 | %bcond_without kerberos # disable krb5 support |
dae07f1c | 7 | %bcond_with xulrunner # build with system xulrunner |
2ded22a1 | 8 | %bcond_with crashreporter # report crashes to crash-stats.mozilla.com |
dae07f1c | 9 | %bcond_with tests # enable tests (whatever they check) |
05361369 | 10 | |
2ded22a1 JB |
11 | %define nspr_ver 4.10.3 |
12 | %define nss_ver 3.16 | |
13 | %define xulrunner_ver 29.0 | |
dae07f1c JR |
14 | |
15 | %if %{without xulrunner} | |
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 | %endif | |
19 | ||
1d0185d8 | 20 | Summary: Iceape - web browser |
21 | Summary(es.UTF-8): Navegador de Internet Iceape | |
22 | Summary(pl.UTF-8): Iceape - przeglądarka WWW | |
23 | Summary(pt_BR.UTF-8): Navegador Iceape | |
24 | Name: iceape | |
1090913d | 25 | Version: 2.26.1 |
88326db5 | 26 | Release: 5 |
e429291d | 27 | License: MPL v2.0 |
1d0185d8 | 28 | Group: X11/Applications/Networking |
9d5ee07b | 29 | Source0: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.bz2 |
1090913d | 30 | # Source0-md5: 4bfa46b370b4d211eef56b90277a9517 |
1d0185d8 | 31 | Source2: %{name}-branding.tar.bz2 |
505c350f | 32 | # Source2-md5: 3feee544ef515f1dbf19b14479916784 |
1d0185d8 | 33 | Source3: %{name}-rm_nonfree.sh |
34 | Source4: %{name}.desktop | |
35 | Source5: %{name}-composer.desktop | |
36 | Source6: %{name}-chat.desktop | |
37 | Source7: %{name}-mail.desktop | |
38 | Source8: %{name}-venkman.desktop | |
03e92ac3 | 39 | Source9: %{name}.sh |
1d0185d8 | 40 | Patch0: %{name}-branding.patch |
dae07f1c JR |
41 | Patch1: %{name}-pld-branding.patch |
42 | Patch2: %{name}-agent.patch | |
2c28e650 | 43 | Patch3: enable-addons.patch |
dae07f1c JR |
44 | Patch4: system-mozldap.patch |
45 | Patch5: makefile.patch | |
2ded22a1 | 46 | Patch6: %{name}-pixman.patch |
888f80ab JR |
47 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
48 | Patch7: system-virtualenv.patch | |
04b516f5 | 49 | Patch8: libvpx2.patch |
740e5f43 | 50 | Patch9: %{name}-system-xulrunner.patch |
e9beda3e | 51 | Patch10: gcc5.patch |
e99fd609 | 52 | URL: http://www.pld-linux.org/Packages/Iceape |
dae07f1c JR |
53 | BuildRequires: GConf2-devel >= 1.2.1 |
54 | BuildRequires: OpenGL-devel | |
55 | BuildRequires: alsa-lib-devel | |
1d0185d8 | 56 | BuildRequires: automake |
dae07f1c JR |
57 | BuildRequires: bzip2-devel |
58 | BuildRequires: cairo-devel >= 1.10.2-5 | |
59 | BuildRequires: dbus-glib-devel >= 0.60 | |
1d0185d8 | 60 | BuildRequires: freetype-devel >= 1:2.1.8 |
2ded22a1 JB |
61 | BuildRequires: glib2-devel >= 1:2.20 |
62 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18} | |
63 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
dae07f1c JR |
64 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
65 | BuildRequires: hunspell-devel | |
1d0185d8 | 66 | BuildRequires: libIDL-devel >= 0.8.0 |
dae07f1c JR |
67 | BuildRequires: libdnet-devel |
68 | BuildRequires: libevent-devel >= 1.4.7 | |
69 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ | |
70 | BuildRequires: libffi-devel >= 6:3.0.9 | |
2ded22a1 | 71 | BuildRequires: libicu-devel >= 50.1 |
f7c8750c | 72 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
1d0185d8 | 73 | BuildRequires: libjpeg-devel >= 6b |
f7c8750c | 74 | BuildRequires: libjpeg-turbo-devel |
dae07f1c JR |
75 | BuildRequires: libnotify-devel >= 0.4 |
76 | BuildRequires: libpng(APNG)-devel >= 0.10 | |
2ded22a1 | 77 | BuildRequires: libpng-devel >= 2:1.6.7 |
03e92ac3 JR |
78 | # rsvg-convert for iceape/branding |
79 | BuildRequires: librsvg | |
1d0185d8 | 80 | BuildRequires: libstdc++-devel |
2ded22a1 | 81 | BuildRequires: libvpx-devel >= 1.3.0 |
505c350f | 82 | BuildRequires: mozldap-devel |
dae07f1c JR |
83 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
84 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
85 | BuildRequires: pango-devel >= 1:1.14.0 | |
86 | BuildRequires: perl-base >= 1:5.6 | |
87 | BuildRequires: perl-modules >= 5.004 | |
1d0185d8 | 88 | BuildRequires: pkgconfig |
dae07f1c JR |
89 | BuildRequires: python >= 1:2.5 |
90 | BuildRequires: python-modules | |
888f80ab | 91 | BuildRequires: python-virtualenv |
1d0185d8 | 92 | BuildRequires: rpm >= 4.4.9-56 |
dae07f1c | 93 | BuildRequires: rpmbuild(macros) >= 1.601 |
1d0185d8 | 94 | BuildRequires: sed >= 4.0 |
2ded22a1 | 95 | BuildRequires: sqlite3-devel >= 3.8.2 |
dae07f1c | 96 | BuildRequires: startup-notification-devel >= 0.8 |
2ded22a1 | 97 | BuildRequires: xorg-lib-libX11-devel |
dae07f1c | 98 | BuildRequires: xorg-lib-libXScrnSaver-devel |
1d0185d8 | 99 | BuildRequires: xorg-lib-libXext-devel |
1d0185d8 | 100 | BuildRequires: xorg-lib-libXinerama-devel |
1d0185d8 | 101 | BuildRequires: xorg-lib-libXt-devel |
dae07f1c JR |
102 | %if %{with xulrunner} |
103 | BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver} | |
2ded22a1 | 104 | BuildRequires: xulrunner-devel < 2:30 |
dae07f1c JR |
105 | %endif |
106 | BuildRequires: yasm | |
107 | BuildRequires: zip | |
1d0185d8 | 108 | BuildRequires: zlib-devel >= 1.2.3 |
dae07f1c JR |
109 | Requires(post): mktemp >= 1.5-18 |
110 | Requires: desktop-file-utils | |
111 | Requires: hicolor-icon-theme | |
112 | %if %{with xulrunner} | |
113 | %requires_eq_to xulrunner xulrunner-devel | |
114 | %else | |
1d0185d8 | 115 | Requires: browser-plugins >= 2.0 |
dae07f1c JR |
116 | Requires: cairo >= 1.10.2-5 |
117 | Requires: dbus-glib >= 0.60 | |
2ded22a1 JB |
118 | Requires: glib2 >= 1:2.20 |
119 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.18} | |
120 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
f7c8750c | 121 | Requires: libjpeg-turbo |
2ded22a1 | 122 | Requires: libpng >= 2:1.6.7 |
dae07f1c | 123 | Requires: libpng(APNG) >= 0.10 |
2ded22a1 | 124 | Requires: libvpx >= 1.3.0 |
dae07f1c JR |
125 | Requires: myspell-common |
126 | Requires: nspr >= 1:%{nspr_ver} | |
127 | Requires: nss >= 1:%{nss_ver} | |
128 | Requires: pango >= 1:1.14.0 | |
129 | Requires: sqlite3 >= %{sqlite_build_version} | |
130 | Requires: startup-notification >= 0.8 | |
131 | %endif | |
293a7e1c | 132 | Provides: iceape-embedded = %{version}-%{release} |
1d0185d8 | 133 | Provides: wwwbrowser |
75dcd787 JR |
134 | Obsoletes: iceape-mailnews |
135 | Obsoletes: iceape-gnomevfs | |
1d0185d8 | 136 | Obsoletes: light |
137 | Obsoletes: mozilla | |
03504870 | 138 | Obsoletes: mozilla-gnomevfs |
1d0185d8 | 139 | Obsoletes: seamonkey |
140 | Obsoletes: seamonkey-calendar | |
141 | Obsoletes: seamonkey-libs | |
03504870 JR |
142 | Obsoletes: seamonkey-mailnews |
143 | Obsoletes: seamonkey-gnomevfs | |
b289d808 | 144 | Conflicts: iceape-lang-resources < %{version} |
1d0185d8 | 145 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
146 | ||
dae07f1c JR |
147 | %define topdir %{_builddir}/%{name}-%{version} |
148 | %define objdir %{topdir}/obj-%{_target_cpu} | |
1d0185d8 | 149 | |
dea9725e AM |
150 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
151 | ||
dae07f1c JR |
152 | # don't satisfy other packages |
153 | %define _noautoprovfiles %{_libdir}/%{name} | |
1d0185d8 | 154 | # and as we don't provide them, don't require either |
dae07f1c JR |
155 | %define _noautoreq libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so} |
156 | %define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so | |
1d0185d8 | 157 | |
158 | %description | |
159 | Iceape is an open-source web browser, designed for standards | |
160 | compliance, performance and portability. | |
161 | ||
162 | %description -l es.UTF-8 | |
163 | Iceape es un navegador de Internet que se basa en una versión inicial | |
164 | de Netscape Communicator. | |
165 | ||
166 | %description -l pl.UTF-8 | |
71fda434 ER |
167 | Iceape jest potężną graficzną przeglądarką WWW, która jest następcą |
168 | Mozilli, która następnie była następczynią Netscape Communikatora. | |
1d0185d8 | 169 | |
170 | %description -l pt_BR.UTF-8 | |
171 | O Iceape é um web browser baseado numa versão inicial do Netscape | |
172 | Communicator. | |
173 | ||
174 | %description -l ru.UTF-8 | |
71fda434 ER |
175 | Iceape - полнофункциональный web-browser с открытыми исходными |
176 | текстами, разработанный для максимального соотвествия стандартам, | |
177 | максмимальной переносимости и скорости работы | |
1d0185d8 | 178 | |
dae07f1c JR |
179 | %package addon-lightning |
180 | Summary: An integrated calendar for Iceape | |
181 | Summary(pl.UTF-8): Zintegrowany kalendarz dla Iceape | |
182 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ | |
183 | Group: Applications/Networking | |
184 | Requires: %{name} = %{version}-%{release} | |
185 | Obsoletes: seamonkey-addon-lightning | |
186 | ||
187 | %description addon-lightning | |
188 | Lightning is an calendar extension to Icedove email client. | |
189 | ||
190 | %description addon-lightning -l pl.UTF-8 | |
191 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
192 | funkcjonalność kalendarza. | |
193 | ||
1d0185d8 | 194 | %package chat |
195 | Summary: Iceape Chat - integrated IRC client | |
196 | Summary(pl.UTF-8): Iceape Chat - zintegrowany klient IRC-a | |
197 | Group: X11/Applications/Networking | |
293a7e1c JB |
198 | Requires(post,postun): %{name} = %{version}-%{release} |
199 | Requires: %{name} = %{version}-%{release} | |
1d0185d8 | 200 | Obsoletes: mozilla-chat |
201 | Obsoletes: seamonkey-chat | |
202 | ||
203 | %description chat | |
204 | Iceape Chat - IRC client that is integrated with the Iceape web | |
205 | browser. | |
206 | ||
207 | %description chat -l pl.UTF-8 | |
208 | Iceape - klient IRC-a zintegrowany z przeglądarką Iceape. | |
209 | ||
210 | %package js-debugger | |
211 | Summary: JavaScript debugger for use with Iceape | |
212 | Summary(pl.UTF-8): Odpluskwiacz JavaScriptu do używania z Iceape | |
213 | Group: X11/Applications/Networking | |
293a7e1c JB |
214 | Requires(post,postun): %{name} = %{version}-%{release} |
215 | Requires: %{name} = %{version}-%{release} | |
1d0185d8 | 216 | Obsoletes: mozilla-js-debugger |
217 | Obsoletes: seamonkey-js-debugger | |
218 | ||
219 | %description js-debugger | |
220 | JavaScript debugger for use with Iceape. | |
221 | ||
222 | %description js-debugger -l pl.UTF-8 | |
223 | Odpluskwiacz JavaScriptu do używania z Iceape. | |
224 | ||
225 | %package dom-inspector | |
226 | Summary: A tool for inspecting the DOM of pages in Iceape | |
227 | Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w Iceape | |
228 | Group: X11/Applications/Networking | |
293a7e1c JB |
229 | Requires(post,postun): %{name} = %{version}-%{release} |
230 | Requires: %{name} = %{version}-%{release} | |
1d0185d8 | 231 | Obsoletes: mozilla-dom-inspector |
232 | Obsoletes: seamonkey-dom-inspector | |
233 | ||
234 | %description dom-inspector | |
235 | This is a tool that allows you to inspect the DOM for web pages in | |
236 | Iceape. This is of great use to people who are doing Iceape chrome | |
237 | development or web page development. | |
238 | ||
239 | %description dom-inspector -l pl.UTF-8 | |
240 | To narzędzie pozwala na oglądanie DOM dla stron WWW w Iceape. Jest | |
241 | bardzo przydatne dla ludzi rozwijających chrome w Iceape lub | |
242 | tworzących strony WWW. | |
243 | ||
1d0185d8 | 244 | %prep |
245 | %setup -qc | |
dae07f1c | 246 | cd comm-release |
03e92ac3 | 247 | tar -jxf %{SOURCE2} |
1d0185d8 | 248 | %patch0 -p1 |
249 | %patch1 -p1 | |
250 | %patch2 -p1 | |
2c28e650 | 251 | %patch3 -p2 |
505c350f | 252 | %patch4 -p1 |
1d0185d8 | 253 | %patch5 -p1 |
2ded22a1 | 254 | %patch6 -p1 |
888f80ab | 255 | %patch7 -p1 |
04b516f5 | 256 | %patch8 -p1 |
740e5f43 | 257 | %patch9 -p2 |
e9beda3e | 258 | %patch10 -p2 |
1d0185d8 | 259 | |
260 | %build | |
dae07f1c JR |
261 | cd comm-release |
262 | %if %{with xulrunner} | |
263 | if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then | |
264 | echo >&2 | |
265 | echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!" | |
266 | echo >&2 | |
267 | exit 1 | |
268 | fi | |
269 | %endif | |
270 | ||
271 | cp -f %{_datadir}/automake/config.* build/autoconf | |
272 | cp -f %{_datadir}/automake/config.* mozilla/build/autoconf | |
273 | cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf | |
274 | cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf | |
275 | ||
276 | cat << EOF > .mozconfig | |
277 | mk_add_options MOZ_OBJDIR=%{objdir} | |
278 | ||
279 | export CFLAGS="%{rpmcflags}" | |
280 | export CXXFLAGS="%{rpmcflags}" | |
281 | ||
282 | %if %{with crashreporter} | |
283 | export MOZ_DEBUG_SYMBOLS=1 | |
284 | %endif | |
285 | ||
286 | # Options for 'configure' (same as command-line options). | |
287 | ac_add_options --prefix=%{_prefix} | |
288 | ac_add_options --exec-prefix=%{_exec_prefix} | |
289 | ac_add_options --bindir=%{_bindir} | |
290 | ac_add_options --sbindir=%{_sbindir} | |
291 | ac_add_options --sysconfdir=%{_sysconfdir} | |
292 | ac_add_options --datadir=%{_datadir} | |
293 | ac_add_options --includedir=%{_includedir} | |
294 | ac_add_options --libdir=%{_libdir} | |
295 | ac_add_options --libexecdir=%{_libexecdir} | |
296 | ac_add_options --localstatedir=%{_localstatedir} | |
297 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
298 | ac_add_options --mandir=%{_mandir} | |
299 | ac_add_options --infodir=%{_infodir} | |
dae07f1c JR |
300 | %if %{?debug:1}0 |
301 | ac_add_options --disable-optimize | |
302 | ac_add_options --enable-debug | |
303 | ac_add_options --enable-debug-modules | |
304 | ac_add_options --enable-debugger-info-modules | |
305 | ac_add_options --enable-crash-on-assert | |
306 | %else | |
307 | ac_add_options --disable-debug | |
308 | ac_add_options --disable-debug-modules | |
309 | ac_add_options --disable-logging | |
310 | ac_add_options --enable-optimize="%{rpmcflags} -Os" | |
311 | %endif | |
312 | ac_add_options --disable-strip | |
313 | ac_add_options --disable-strip-libs | |
314 | %if %{with tests} | |
315 | ac_add_options --enable-tests | |
316 | %else | |
317 | ac_add_options --disable-tests | |
318 | %endif | |
2ded22a1 JB |
319 | %if %{with lightning} |
320 | ac_add_options --enable-calendar | |
dae07f1c | 321 | %else |
2ded22a1 | 322 | ac_add_options --disable-calendar |
dae07f1c JR |
323 | %endif |
324 | %if %{with crashreporter} | |
325 | ac_add_options --enable-crashreporter | |
326 | %else | |
327 | ac_add_options --disable-crashreporter | |
328 | %endif | |
505c350f | 329 | ac_add_options --disable-elf-dynstr-gc |
3abac748 | 330 | ac_add_options --disable-elf-hack |
2ded22a1 JB |
331 | ac_add_options --disable-gnomeui |
332 | ac_add_options --disable-gnomevfs | |
dae07f1c JR |
333 | ac_add_options --disable-installer |
334 | ac_add_options --disable-javaxpcom | |
335 | ac_add_options --disable-updater | |
2ded22a1 JB |
336 | ac_add_options --disable-xterm-updates |
337 | ac_add_options --enable-application=suite | |
dae07f1c | 338 | ac_add_options --enable-crypto |
2ded22a1 JB |
339 | ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2} |
340 | ac_add_options --enable-gio | |
341 | %if %{with ldap} | |
342 | ac_add_options --enable-ldap | |
343 | ac_add_options --with-system-ldap | |
344 | %else | |
345 | ac_add_options --disable-ldap | |
346 | %endif | |
dae07f1c JR |
347 | ac_add_options --enable-libxul |
348 | ac_add_options --enable-pango | |
2ded22a1 | 349 | ac_add_options --enable-postscript |
dae07f1c JR |
350 | ac_add_options --enable-shared-js |
351 | ac_add_options --enable-startup-notification | |
352 | ac_add_options --enable-system-cairo | |
353 | ac_add_options --enable-system-hunspell | |
354 | ac_add_options --enable-system-sqlite | |
03e92ac3 | 355 | ac_add_options --with-branding=iceape/branding |
2ded22a1 JB |
356 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
357 | ac_add_options --with-distribution-id=org.pld-linux | |
dae07f1c | 358 | %if %{with xulrunner} |
dae07f1c | 359 | ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul) |
2ded22a1 | 360 | ac_add_options --with-system-libxul |
dae07f1c JR |
361 | %endif |
362 | ac_add_options --with-pthreads | |
363 | ac_add_options --with-system-bz2 | |
364 | ac_add_options --with-system-ffi | |
365 | ac_add_options --with-system-jpeg | |
366 | ac_add_options --with-system-libevent | |
367 | ac_add_options --with-system-libvpx | |
368 | ac_add_options --with-system-nspr | |
369 | ac_add_options --with-system-nss | |
370 | ac_add_options --with-system-png | |
371 | ac_add_options --with-system-zlib | |
dae07f1c JR |
372 | EOF |
373 | ||
374 | %{__make} -j1 -f client.mk build \ | |
375 | STRIP="/bin/true" \ | |
376 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ | |
377 | installdir=%{_libdir}/%{name} \ | |
a089ecfd | 378 | XLIBS="-lX11 -lXt" \ |
dae07f1c JR |
379 | CC="%{__cc}" \ |
380 | CXX="%{__cxx}" | |
1d0185d8 | 381 | |
dae07f1c JR |
382 | %if %{with crashreporter} |
383 | # create debuginfo for crash-stats.mozilla.com | |
384 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
385 | %endif | |
386 | ||
1d0185d8 | 387 | %install |
388 | rm -rf $RPM_BUILD_ROOT | |
dae07f1c | 389 | cd comm-release |
1d0185d8 | 390 | install -d \ |
dae07f1c | 391 | $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ |
1d0185d8 | 392 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ |
dae07f1c JR |
393 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
394 | $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins | |
1d0185d8 | 395 | |
dae07f1c | 396 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins |
1d0185d8 | 397 | |
dae07f1c | 398 | cd %{objdir} |
738e838e | 399 | cwd=`pwd` |
dae07f1c | 400 | %{__make} -C suite/installer stage-package \ |
738e838e | 401 | LD_LIBRARY_PATH=$cwd/mozilla/dist/lib \ |
dae07f1c JR |
402 | DESTDIR=$RPM_BUILD_ROOT \ |
403 | installdir=%{_libdir}/%{name} \ | |
404 | PKG_SKIP_STRIP=1 | |
1d0185d8 | 405 | |
fcecc2a1 JR |
406 | %{__make} -C iceape/branding install \ |
407 | DESTDIR=$RPM_BUILD_ROOT | |
408 | ||
dae07f1c | 409 | cp -a mozilla/dist/iceape/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
1d0185d8 | 410 | |
dae07f1c JR |
411 | %if %{with xulrunner} |
412 | # >= 5.0 seems to require this | |
413 | ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner | |
414 | %endif | |
1d0185d8 | 415 | |
dae07f1c JR |
416 | # Enable crash reporter for Thunderbird application |
417 | %if %{with crashreporter} | |
418 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
1d0185d8 | 419 | |
dae07f1c JR |
420 | # Add debuginfo for crash-stats.mozilla.com |
421 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} | |
422 | cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} | |
423 | %endif | |
1d0185d8 | 424 | |
dae07f1c | 425 | # copy manually lightning files, somewhy they are not installed by make |
505c350f | 426 | cp -a mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \ |
dae07f1c | 427 | $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions |
35486651 | 428 | |
dae07f1c JR |
429 | # move arch independant ones to datadir |
430 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome | |
431 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
dae07f1c | 432 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins |
1d0185d8 | 433 | |
dae07f1c JR |
434 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome |
435 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
dae07f1c | 436 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins |
dae07f1c | 437 | |
2ded22a1 JB |
438 | %if %{without xulrunner} |
439 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp | |
440 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp | |
441 | %endif | |
442 | ||
dae07f1c JR |
443 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/* \ |
444 | $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/ | |
445 | ||
446 | # dir for arch independant extensions besides arch dependant extensions | |
447 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
448 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
449 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
450 | ||
451 | %if %{without xulrunner} | |
452 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
453 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
dae07f1c | 454 | %endif |
1d0185d8 | 455 | |
afec21d4 JR |
456 | %{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \ |
457 | -e "s|%MOZ_APP_DISPLAYNAME%|Iceape|" \ | |
458 | %{topdir}/comm-release/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/iceape | |
459 | ||
03e92ac3 | 460 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/iceape |
dae07f1c | 461 | chmod a+rx $RPM_BUILD_ROOT%{_bindir}/iceape |
1d0185d8 | 462 | |
03e92ac3 | 463 | install %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \ |
dae07f1c | 464 | $RPM_BUILD_ROOT%{_desktopdir} |
1d0185d8 | 465 | |
dae07f1c JR |
466 | # files created by iceape -register |
467 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat | |
468 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
1d0185d8 | 469 | |
dae07f1c | 470 | cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
1d0185d8 | 471 | #!/bin/sh |
472 | umask 022 | |
dae07f1c JR |
473 | rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
474 | ||
475 | # it attempts to touch files in $HOME/.mozilla | |
476 | # beware if you run this with sudo!!! | |
477 | export HOME=$(mktemp -d) | |
478 | # also TMPDIR could be pointing to sudo user's homedir | |
479 | unset TMPDIR TMP || : | |
1d0185d8 | 480 | |
dae07f1c | 481 | %{_libdir}/%{name}/iceape -register |
1d0185d8 | 482 | |
dae07f1c | 483 | rm -rf $HOME |
1d0185d8 | 484 | EOF |
dae07f1c JR |
485 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
486 | ||
2ded22a1 | 487 | %if %{without xulrunner} |
dae07f1c | 488 | # never package these. always remove |
dae07f1c | 489 | # mozldap |
2c28e650 | 490 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list |
505c350f | 491 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so |
2ded22a1 | 492 | %endif |
1d0185d8 | 493 | |
494 | %clean | |
495 | rm -rf $RPM_BUILD_ROOT | |
496 | ||
497 | %post | |
dae07f1c | 498 | %{_libdir}/%{name}/register || : |
1d0185d8 | 499 | %update_browser_plugins |
fcecc2a1 | 500 | %update_icon_cache hicolor |
dae07f1c | 501 | %update_desktop_database |
1d0185d8 | 502 | |
503 | %postun | |
1d0185d8 | 504 | if [ "$1" = 0 ]; then |
505 | %update_browser_plugins | |
fcecc2a1 | 506 | %update_icon_cache hicolor |
1d0185d8 | 507 | fi |
508 | ||
1d0185d8 | 509 | %files |
510 | %defattr(644,root,root,755) | |
511 | %attr(755,root,root) %{_bindir}/iceape | |
1d0185d8 | 512 | |
513 | # browser plugins v2 | |
514 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
515 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
516 | ||
dae07f1c JR |
517 | %dir %{_libdir}/%{name} |
518 | %if %{without xulrunner} | |
519 | %attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so | |
520 | %attr(755,root,root) %{_libdir}/%{name}/libmozjs.so | |
dae07f1c JR |
521 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
522 | %endif | |
1d0185d8 | 523 | |
dae07f1c | 524 | %{_libdir}/%{name}/blocklist.xml |
505c350f | 525 | %{_libdir}/%{name}/omni.ja |
dae07f1c | 526 | %attr(755,root,root) %{_libdir}/%{name}/register |
1d0185d8 | 527 | |
dae07f1c JR |
528 | %if %{with crashreporter} |
529 | %{_libdir}/%{name}/crashreporter | |
530 | %{_libdir}/%{name}/crashreporter-override.ini | |
531 | %{_libdir}/%{name}/crashreporter.ini | |
532 | %{_libdir}/%{name}/Throbber-small.gif | |
533 | %endif | |
1d0185d8 | 534 | |
dae07f1c JR |
535 | # config? |
536 | %{_libdir}/%{name}/application.ini | |
537 | %{_libdir}/%{name}/chrome.manifest | |
538 | ||
539 | %dir %{_libdir}/%{name}/components | |
dae07f1c | 540 | %{_libdir}/%{name}/components/components.manifest |
978e314f JR |
541 | %attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so |
542 | ||
dae07f1c | 543 | %if %{without xulrunner} |
9d5ee07b | 544 | %{_libdir}/%{name}/dependentlibs.list |
dae07f1c | 545 | %{_libdir}/%{name}/platform.ini |
dae07f1c | 546 | %attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so |
dae07f1c | 547 | %attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so |
dae07f1c JR |
548 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh |
549 | %attr(755,root,root) %{_libdir}/%{name}/iceape-bin | |
550 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client | |
551 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container | |
552 | %endif | |
553 | ||
978e314f JR |
554 | %attr(755,root,root) %{_libdir}/%{name}/iceape |
555 | %dir %{_libdir}/%{name}/plugins | |
556 | ||
dae07f1c JR |
557 | # symlinks |
558 | %{_libdir}/%{name}/chrome | |
559 | %{_libdir}/%{name}/defaults | |
dae07f1c JR |
560 | %{_libdir}/%{name}/searchplugins |
561 | %if %{with xulrunner} | |
562 | %{_libdir}/%{name}/xulrunner | |
563 | %else | |
564 | %{_libdir}/%{name}/dictionaries | |
dae07f1c JR |
565 | %endif |
566 | ||
567 | %dir %{_datadir}/%{name} | |
568 | %{_datadir}/%{name}/chrome | |
569 | %{_datadir}/%{name}/defaults | |
dae07f1c | 570 | %{_datadir}/%{name}/searchplugins |
1d0185d8 | 571 | |
dae07f1c JR |
572 | %dir %{_datadir}/%{name}/extensions |
573 | %dir %{_libdir}/%{name}/extensions | |
574 | # the signature of the default theme | |
575 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi | |
576 | %{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi | |
577 | ||
578 | # files created by iceape -register | |
579 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
580 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
581 | ||
2ded22a1 | 582 | %if %{without xulrunner} |
dae07f1c JR |
583 | %{_libdir}/%{name}/isp |
584 | %dir %{_datadir}/%{name}/isp | |
585 | %{_datadir}/%{name}/isp/Bogofilter.sfd | |
586 | %{_datadir}/%{name}/isp/DSPAM.sfd | |
587 | %{_datadir}/%{name}/isp/POPFile.sfd | |
588 | %{_datadir}/%{name}/isp/SpamAssassin.sfd | |
589 | %{_datadir}/%{name}/isp/SpamPal.sfd | |
590 | %{_datadir}/%{name}/isp/movemail.rdf | |
591 | %{_datadir}/%{name}/isp/rss.rdf | |
2ded22a1 | 592 | %endif |
1d0185d8 | 593 | |
fcecc2a1 JR |
594 | %{_iconsdir}/hicolor/*/apps/iceape.png |
595 | %{_iconsdir}/hicolor/scalable/apps/iceape.svg | |
dae07f1c JR |
596 | %{_desktopdir}/%{name}.desktop |
597 | %{_desktopdir}/%{name}-composer.desktop | |
1d0185d8 | 598 | %{_desktopdir}/%{name}-mail.desktop |
599 | ||
dae07f1c JR |
600 | %if %{with lightning} |
601 | %files addon-lightning | |
602 | %defattr(644,root,root,755) | |
603 | %dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} | |
604 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini | |
605 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome | |
606 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest | |
607 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults | |
608 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf | |
609 | %dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components | |
610 | %attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so | |
611 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js | |
612 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest | |
613 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt | |
614 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules | |
615 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js | |
616 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite | |
dae07f1c JR |
617 | %endif |
618 | ||
1d0185d8 | 619 | %files chat |
620 | %defattr(644,root,root,755) | |
dae07f1c | 621 | %{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi |
1d0185d8 | 622 | %{_desktopdir}/%{name}-chat.desktop |
623 | ||
624 | %files js-debugger | |
625 | %defattr(644,root,root,755) | |
dae07f1c | 626 | %{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi |
1d0185d8 | 627 | %{_desktopdir}/%{name}-venkman.desktop |
628 | ||
629 | %files dom-inspector | |
630 | %defattr(644,root,root,755) | |
dae07f1c | 631 | %{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi |