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