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