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