]> git.pld-linux.org Git - packages/iceape.git/blame - iceape.spec
- copied from seamonkey package
[packages/iceape.git] / iceape.spec
CommitLineData
1d0185d8 1#
2# Conditional build:
dae07f1c
JR
3%bcond_without enigmail # don't build enigmail - GPG/PGP support
4%bcond_without gnomeui # disable gnomeui support
03504870 5%bcond_without gnome # disable gnomeui (alias)
dae07f1c
JR
6%bcond_without ldap # disable e-mail address lookups in LDAP directories
7%bcond_without lightning # disable Sunbird/Lightning calendar
8%bcond_with xulrunner # build with system xulrunner
9%bcond_with tests # enable tests (whatever they check)
10%bcond_without kerberos # disable krb5 support
05361369 11
1d0185d8 12%if %{without gnome}
03504870 13%undefine with_gnomeui
1d0185d8 14%endif
dae07f1c
JR
15
16%define enigmail_ver 1.4.1
17%define nspr_ver 4.9
18%define nss_ver 3.13.3
19%define xulrunner_ver 12.0
20
21%if %{without xulrunner}
22# The actual sqlite version (see RHBZ#480989):
23%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
24%endif
25
1d0185d8 26Summary: Iceape - web browser
27Summary(es.UTF-8): Navegador de Internet Iceape
28Summary(pl.UTF-8): Iceape - przeglądarka WWW
29Summary(pt_BR.UTF-8): Navegador Iceape
30Name: iceape
03504870
JR
31Version: 2.9.1
32Release: 0.1
1d0185d8 33License: MPL 1.1 or GPL v2+ or LGPL v2.1+
34Group: X11/Applications/Networking
03504870
JR
35Source0: ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.bz2
36# Source0-md5: 8dd18d93a6570c3c9f3873bb177ccc6b
1d0185d8 37Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
03504870 38# Source1-md5: 0eba75fbcf8f0bb32d538df102fbb8e9
1d0185d8 39Source2: %{name}-branding.tar.bz2
03e92ac3 40# Source2-md5: 6cbf2f0e62c042946bf351f1e2d1b256
1d0185d8 41Source3: %{name}-rm_nonfree.sh
42Source4: %{name}.desktop
43Source5: %{name}-composer.desktop
44Source6: %{name}-chat.desktop
45Source7: %{name}-mail.desktop
46Source8: %{name}-venkman.desktop
03e92ac3 47Source9: %{name}.sh
1d0185d8 48Patch0: %{name}-branding.patch
dae07f1c
JR
49Patch1: %{name}-pld-branding.patch
50Patch2: %{name}-agent.patch
51Patch3: %{name}-glueload-fix.patch
52Patch4: system-mozldap.patch
53Patch5: makefile.patch
54Patch6: system-cairo.patch
e99fd609 55URL: http://www.pld-linux.org/Packages/Iceape
dae07f1c
JR
56BuildRequires: GConf2-devel >= 1.2.1
57BuildRequires: OpenGL-devel
58BuildRequires: alsa-lib-devel
1d0185d8 59BuildRequires: automake
dae07f1c
JR
60BuildRequires: bzip2-devel
61BuildRequires: cairo-devel >= 1.10.2-5
62BuildRequires: dbus-glib-devel >= 0.60
1d0185d8 63BuildRequires: freetype-devel >= 1:2.1.8
dae07f1c
JR
64BuildRequires: glib2-devel >= 1:2.18
65BuildRequires: gtk+2-devel >= 2:2.10
66%{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
67BuildRequires: hunspell-devel
1d0185d8 68BuildRequires: libIDL-devel >= 0.8.0
dae07f1c
JR
69BuildRequires: libdnet-devel
70BuildRequires: libevent-devel >= 1.4.7
71# standalone libffi 3.0.9 or gcc's from 4.5(?)+
72BuildRequires: libffi-devel >= 6:3.0.9
73%{?with_gnomeui:BuildRequires: libgnome-devel >= 2.0}
74%{?with_gnomeui:BuildRequires: libgnome-keyring-devel}
75%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
76BuildRequires: libiw-devel
1d0185d8 77BuildRequires: libjpeg-devel >= 6b
dae07f1c
JR
78BuildRequires: libnotify-devel >= 0.4
79BuildRequires: libpng(APNG)-devel >= 0.10
80BuildRequires: libpng-devel >= 1.4.1
03e92ac3
JR
81# rsvg-convert for iceape/branding
82BuildRequires: librsvg
1d0185d8 83BuildRequires: libstdc++-devel
03e92ac3 84BuildRequires: libvpx-devel >= 1.0.0
dae07f1c
JR
85BuildRequires: nspr-devel >= 1:%{nspr_ver}
86BuildRequires: nss-devel >= 1:%{nss_ver}
87BuildRequires: pango-devel >= 1:1.14.0
88BuildRequires: perl-base >= 1:5.6
89BuildRequires: perl-modules >= 5.004
1d0185d8 90BuildRequires: pkgconfig
dae07f1c
JR
91BuildRequires: python >= 1:2.5
92BuildRequires: python-modules
1d0185d8 93BuildRequires: rpm >= 4.4.9-56
dae07f1c 94BuildRequires: rpmbuild(macros) >= 1.601
1d0185d8 95BuildRequires: sed >= 4.0
dae07f1c
JR
96BuildRequires: sqlite3-devel >= 3.7.10
97BuildRequires: startup-notification-devel >= 0.8
98BuildRequires: xorg-lib-libXScrnSaver-devel
1d0185d8 99BuildRequires: xorg-lib-libXext-devel
1d0185d8 100BuildRequires: xorg-lib-libXinerama-devel
1d0185d8 101BuildRequires: xorg-lib-libXt-devel
dae07f1c
JR
102%if %{with xulrunner}
103BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver}
104%endif
105BuildRequires: yasm
106BuildRequires: zip
1d0185d8 107BuildRequires: zlib-devel >= 1.2.3
dae07f1c
JR
108Requires(post): mktemp >= 1.5-18
109Requires: desktop-file-utils
110Requires: hicolor-icon-theme
111%if %{with xulrunner}
112%requires_eq_to xulrunner xulrunner-devel
113%else
1d0185d8 114Requires: browser-plugins >= 2.0
dae07f1c
JR
115Requires: cairo >= 1.10.2-5
116Requires: dbus-glib >= 0.60
117Requires: gtk+2 >= 2:2.18
118Requires: libpng >= 1.4.1
119Requires: libpng(APNG) >= 0.10
120Requires: myspell-common
121Requires: nspr >= 1:%{nspr_ver}
122Requires: nss >= 1:%{nss_ver}
123Requires: pango >= 1:1.14.0
124Requires: sqlite3 >= %{sqlite_build_version}
125Requires: startup-notification >= 0.8
126%endif
1d0185d8 127Provides: iceape-embedded = %{epoch}:%{version}-%{release}
128Provides: wwwbrowser
129Obsoletes: light
130Obsoletes: mozilla
03504870 131Obsoletes: mozilla-gnomevfs
1d0185d8 132Obsoletes: seamonkey
133Obsoletes: seamonkey-calendar
134Obsoletes: seamonkey-libs
03504870
JR
135Obsoletes: seamonkey-mailnews
136Obsoletes: seamonkey-gnomevfs
1d0185d8 137BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
138
dae07f1c
JR
139%define topdir %{_builddir}/%{name}-%{version}
140%define objdir %{topdir}/obj-%{_target_cpu}
1d0185d8 141
dea9725e
AM
142%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
143
dae07f1c
JR
144# don't satisfy other packages
145%define _noautoprovfiles %{_libdir}/%{name}
1d0185d8 146# and as we don't provide them, don't require either
dae07f1c
JR
147%define _noautoreq libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so}
148%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so
1d0185d8 149
150%description
151Iceape is an open-source web browser, designed for standards
152compliance, performance and portability.
153
154%description -l es.UTF-8
155Iceape es un navegador de Internet que se basa en una versión inicial
156de Netscape Communicator.
157
158%description -l pl.UTF-8
71fda434
ER
159Iceape jest potężną graficzną przeglądarką WWW, która jest następcą
160Mozilli, która następnie była następczynią Netscape Communikatora.
1d0185d8 161
162%description -l pt_BR.UTF-8
163O Iceape é um web browser baseado numa versão inicial do Netscape
164Communicator.
165
166%description -l ru.UTF-8
71fda434
ER
167Iceape - полнофункциональный web-browser с открытыми исходными
168текстами, разработанный для максимального соотвествия стандартам,
169максмимальной переносимости и скорости работы
1d0185d8 170
dae07f1c
JR
171%package addon-lightning
172Summary: An integrated calendar for Iceape
173Summary(pl.UTF-8): Zintegrowany kalendarz dla Iceape
174License: MPL 1.1 or GPL v2+ or LGPL v2.1+
175Group: Applications/Networking
176Requires: %{name} = %{version}-%{release}
177Obsoletes: seamonkey-addon-lightning
178
179%description addon-lightning
180Lightning is an calendar extension to Icedove email client.
181
182%description addon-lightning -l pl.UTF-8
183Lightning to rozszerzenie do klienta poczty Icedove dodające
184funkcjonalność kalendarza.
185
1d0185d8 186%package addon-enigmail
187Summary: Enigmail %{enigmail_ver} - PGP/GPG support for Iceape
188Summary(pl.UTF-8): Enigmail %{enigmail_ver} - obsługa PGP/GPG dla Iceape
189Group: X11/Applications/Networking
dae07f1c 190Requires: %{name} = %{epoch}:%{version}-%{release}
1d0185d8 191Requires: gnupg >= 1.4.2.2
5a8ef4bc 192Obsoletes: seamonkey-addon-enigmail
1d0185d8 193
194%description addon-enigmail
195Enigmail is an extension to the mail client of Iceape / SeaMonkey /
196Mozilla / Netscape and Mozilla Thunderbird which allows users to
197access the authentication and encryption features provided by GnuPG.
198
199%description addon-enigmail -l pl.UTF-8
200Enigmail jest rozszerzeniem dla klienta pocztowego Iceape, SeaMonkey,
71fda434
ER
201Mozilla i Mozilla Thunderdbird pozwalającym użytkownikowi korzystać z
202funkcjonalności GnuPG.
1d0185d8 203
204%package chat
205Summary: Iceape Chat - integrated IRC client
206Summary(pl.UTF-8): Iceape Chat - zintegrowany klient IRC-a
207Group: X11/Applications/Networking
208Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
209Requires: %{name} = %{epoch}:%{version}-%{release}
210Obsoletes: mozilla-chat
211Obsoletes: seamonkey-chat
212
213%description chat
214Iceape Chat - IRC client that is integrated with the Iceape web
215browser.
216
217%description chat -l pl.UTF-8
218Iceape - klient IRC-a zintegrowany z przeglądarką Iceape.
219
220%package js-debugger
221Summary: JavaScript debugger for use with Iceape
222Summary(pl.UTF-8): Odpluskwiacz JavaScriptu do używania z Iceape
223Group: X11/Applications/Networking
224Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
225Requires: %{name} = %{epoch}:%{version}-%{release}
226Obsoletes: mozilla-js-debugger
227Obsoletes: seamonkey-js-debugger
228
229%description js-debugger
230JavaScript debugger for use with Iceape.
231
232%description js-debugger -l pl.UTF-8
233Odpluskwiacz JavaScriptu do używania z Iceape.
234
235%package dom-inspector
236Summary: A tool for inspecting the DOM of pages in Iceape
237Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w Iceape
238Group: X11/Applications/Networking
239Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
240Requires: %{name} = %{epoch}:%{version}-%{release}
241Obsoletes: mozilla-dom-inspector
242Obsoletes: seamonkey-dom-inspector
243
244%description dom-inspector
245This is a tool that allows you to inspect the DOM for web pages in
246Iceape. This is of great use to people who are doing Iceape chrome
247development or web page development.
248
249%description dom-inspector -l pl.UTF-8
250To narzędzie pozwala na oglądanie DOM dla stron WWW w Iceape. Jest
251bardzo przydatne dla ludzi rozwijających chrome w Iceape lub
252tworzących strony WWW.
253
1d0185d8 254%prep
255%setup -qc
dae07f1c 256cd comm-release
1d0185d8 257tar -C mailnews/extensions -zxf %{SOURCE1}
03e92ac3 258tar -jxf %{SOURCE2}
1d0185d8 259%patch0 -p1
260%patch1 -p1
261%patch2 -p1
262%patch3 -p1
263%patch4 -p1
1d0185d8 264%patch5 -p1
1d0185d8 265%patch6 -p1
1d0185d8 266
267%build
dae07f1c
JR
268cd comm-release
269%if %{with xulrunner}
270if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then
271 echo >&2
272 echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!"
273 echo >&2
274 exit 1
275fi
276%endif
277
278cp -f %{_datadir}/automake/config.* build/autoconf
279cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
280cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
281cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
282
283cat << EOF > .mozconfig
284mk_add_options MOZ_OBJDIR=%{objdir}
285
286export CFLAGS="%{rpmcflags}"
287export CXXFLAGS="%{rpmcflags}"
288
289%if %{with crashreporter}
290export MOZ_DEBUG_SYMBOLS=1
291%endif
292
293# Options for 'configure' (same as command-line options).
294ac_add_options --prefix=%{_prefix}
295ac_add_options --exec-prefix=%{_exec_prefix}
296ac_add_options --bindir=%{_bindir}
297ac_add_options --sbindir=%{_sbindir}
298ac_add_options --sysconfdir=%{_sysconfdir}
299ac_add_options --datadir=%{_datadir}
300ac_add_options --includedir=%{_includedir}
301ac_add_options --libdir=%{_libdir}
302ac_add_options --libexecdir=%{_libexecdir}
303ac_add_options --localstatedir=%{_localstatedir}
304ac_add_options --sharedstatedir=%{_sharedstatedir}
305ac_add_options --mandir=%{_mandir}
306ac_add_options --infodir=%{_infodir}
307ac_add_options --disable-elf-hack
308%if %{?debug:1}0
309ac_add_options --disable-optimize
310ac_add_options --enable-debug
311ac_add_options --enable-debug-modules
312ac_add_options --enable-debugger-info-modules
313ac_add_options --enable-crash-on-assert
314%else
315ac_add_options --disable-debug
316ac_add_options --disable-debug-modules
317ac_add_options --disable-logging
318ac_add_options --enable-optimize="%{rpmcflags} -Os"
319%endif
320ac_add_options --disable-strip
321ac_add_options --disable-strip-libs
322%if %{with tests}
323ac_add_options --enable-tests
324%else
325ac_add_options --disable-tests
326%endif
327ac_add_options --enable-gio
328%if %{with gnomeui}
329ac_add_options --enable-gnomeui
330%else
331ac_add_options --disable-gnomeui
332%endif
333ac_add_options --disable-gnomevfs
334%if %{with ldap}
335ac_add_options --enable-ldap
336ac_add_options --with-system-ldap
337%else
338ac_add_options --disable-ldap
339%endif
340%if %{with crashreporter}
341ac_add_options --enable-crashreporter
342%else
343ac_add_options --disable-crashreporter
344%endif
345ac_add_options --disable-xterm-updates
346ac_add_options --enable-postscript
347%if %{with lightning}
348ac_add_options --enable-calendar
349%else
350ac_add_options --disable-calendar
351%endif
352ac_add_options --disable-installer
353ac_add_options --disable-javaxpcom
354ac_add_options --disable-updater
355ac_add_options --enable-crypto
356ac_add_options --enable-libxul
357ac_add_options --enable-pango
358ac_add_options --enable-shared-js
359ac_add_options --enable-startup-notification
360ac_add_options --enable-system-cairo
361ac_add_options --enable-system-hunspell
362ac_add_options --enable-system-sqlite
363ac_add_options --enable-application=suite
364ac_add_options --with-distribution-id=org.pld-linux
03e92ac3 365ac_add_options --with-branding=iceape/branding
dae07f1c
JR
366%if %{with xulrunner}
367ac_add_options --with-system-libxul
368ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
369%endif
370ac_add_options --with-pthreads
371ac_add_options --with-system-bz2
372ac_add_options --with-system-ffi
373ac_add_options --with-system-jpeg
374ac_add_options --with-system-libevent
375ac_add_options --with-system-libvpx
376ac_add_options --with-system-nspr
377ac_add_options --with-system-nss
378ac_add_options --with-system-png
379ac_add_options --with-system-zlib
380ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
381EOF
382
383%{__make} -j1 -f client.mk build \
384 STRIP="/bin/true" \
385 MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
386 installdir=%{_libdir}/%{name} \
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 396cd 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}"
402%endif
1d0185d8 403
404%install
405rm -rf $RPM_BUILD_ROOT
dae07f1c 406cd comm-release
1d0185d8 407install -d \
dae07f1c 408 $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
1d0185d8 409 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
dae07f1c
JR
410 $RPM_BUILD_ROOT%{_datadir}/%{name} \
411 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
1d0185d8 412
dae07f1c 413%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
1d0185d8 414
dae07f1c
JR
415cd %{objdir}
416%{__make} -C suite/installer stage-package \
417 DESTDIR=$RPM_BUILD_ROOT \
418 installdir=%{_libdir}/%{name} \
419 PKG_SKIP_STRIP=1
1d0185d8 420
dae07f1c 421cp -a mozilla/dist/iceape/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
1d0185d8 422
dae07f1c
JR
423%if %{with xulrunner}
424# >= 5.0 seems to require this
425ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
426%endif
1d0185d8 427
dae07f1c
JR
428# Enable crash reporter for Thunderbird application
429%if %{with crashreporter}
430%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
1d0185d8 431
dae07f1c
JR
432# Add debuginfo for crash-stats.mozilla.com
433install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
434cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
435%endif
1d0185d8 436
dae07f1c
JR
437# copy manually lightning files, somewhy they are not installed by make
438cp -a mozilla/dist/bin/extensions/calendar-timezones@mozilla.org \
439 mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
440 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
441
442# move arch independant ones to datadir
443mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
444mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
445mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
446mv $RPM_BUILD_ROOT%{_libdir}/%{name}/modules $RPM_BUILD_ROOT%{_datadir}/%{name}/modules
447mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
448%if %{without xulrunner}
449mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs.js
450mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res
451%endif
1d0185d8 452
dae07f1c
JR
453ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
454ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
455ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
456ln -s ../../share/%{name}/modules $RPM_BUILD_ROOT%{_libdir}/%{name}/modules
457ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
458%if %{without xulrunner}
459ln -s ../../share/%{name}/greprefs.js $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js
460ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res
461%endif
462
463mv $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/* \
464 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/
465
466# dir for arch independant extensions besides arch dependant extensions
467# see mozilla/xpcom/build/nsXULAppAPI.h
468# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
469install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
470
471%if %{without xulrunner}
472%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
473ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
474%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
475ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
476%endif
1d0185d8 477
03e92ac3 478sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/iceape
dae07f1c 479chmod a+rx $RPM_BUILD_ROOT%{_bindir}/iceape
1d0185d8 480
03e92ac3 481install %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \
dae07f1c 482 $RPM_BUILD_ROOT%{_desktopdir}
1d0185d8 483
dae07f1c 484cp -p %{topdir}/comm-release/suite/branding/nightly/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
1d0185d8 485
dae07f1c
JR
486# files created by iceape -register
487touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
488touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
1d0185d8 489
dae07f1c 490cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
1d0185d8 491#!/bin/sh
492umask 022
dae07f1c
JR
493rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
494
495# it attempts to touch files in $HOME/.mozilla
496# beware if you run this with sudo!!!
497export HOME=$(mktemp -d)
498# also TMPDIR could be pointing to sudo user's homedir
499unset TMPDIR TMP || :
1d0185d8 500
dae07f1c 501%{_libdir}/%{name}/iceape -register
1d0185d8 502
dae07f1c 503rm -rf $HOME
1d0185d8 504EOF
dae07f1c
JR
505chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
506
507%if %{with enigmail}
508ext_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
509install -d $ext_dir/{chrome,components,defaults/preferences}
510cd mozilla/dist/bin
511#cp -rfLp chrome/enigmail.jar $ext_dir/chrome
512#cp -rfLp chrome/enigmime.jar $ext_dir/chrome
513cp -rfLp components/enig* $ext_dir/components
514cp -rfLp components/libenigmime.so $ext_dir/components
515cp -rfLp components/libipc.so $ext_dir/components
516cp -rfLp components/ipc.xpt $ext_dir/components
517cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences
518cd -
519cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/install.rdf $ext_dir
520cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/chrome.manifest $ext_dir/chrome.manifest
521%endif
1d0185d8 522
dae07f1c
JR
523# never package these. always remove
524# nss
525%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
526# nspr
527%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
528# mozldap
529%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
530# testpilot quiz
531%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/tbtestpilot@labs.mozilla.com.xpi
1d0185d8 532
533%clean
534rm -rf $RPM_BUILD_ROOT
535
536%post
dae07f1c 537%{_libdir}/%{name}/register || :
1d0185d8 538%update_browser_plugins
dae07f1c 539%update_desktop_database
1d0185d8 540
541%postun
1d0185d8 542if [ "$1" = 0 ]; then
543 %update_browser_plugins
544fi
545
1d0185d8 546%files
547%defattr(644,root,root,755)
548%attr(755,root,root) %{_bindir}/iceape
1d0185d8 549
550# browser plugins v2
551%{_browserpluginsconfdir}/browsers.d/%{name}.*
552%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
553
dae07f1c
JR
554%dir %{_libdir}/%{name}
555%if %{without xulrunner}
556%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
557%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so
558%attr(755,root,root) %{_libdir}/%{name}/libxpcom.so
559%attr(755,root,root) %{_libdir}/%{name}/libxul.so
560%endif
1d0185d8 561
dae07f1c
JR
562%{_libdir}/%{name}/blocklist.xml
563%attr(755,root,root) %{_libdir}/%{name}/register
1d0185d8 564
dae07f1c
JR
565%if %{with crashreporter}
566%{_libdir}/%{name}/crashreporter
567%{_libdir}/%{name}/crashreporter-override.ini
568%{_libdir}/%{name}/crashreporter.ini
569%{_libdir}/%{name}/Throbber-small.gif
570%endif
1d0185d8 571
dae07f1c
JR
572# config?
573%{_libdir}/%{name}/application.ini
574%{_libdir}/%{name}/chrome.manifest
575
576%dir %{_libdir}/%{name}/components
577
578%{_libdir}/%{name}/components/FeedConverter.js
579%{_libdir}/%{name}/components/FeedWriter.js
580%{_libdir}/%{name}/components/Weave.js
581%{_libdir}/%{name}/components/WebContentConverter.js
582%{_libdir}/%{name}/components/browser.xpt
583%{_libdir}/%{name}/components/nsBrowserContentHandler.js
584%{_libdir}/%{name}/components/nsSessionStartup.js
585%{_libdir}/%{name}/components/nsSessionStore.js
586%{_libdir}/%{name}/components/nsSidebar.js
587
588%{_libdir}/%{name}/components/components.manifest
589%{_libdir}/%{name}/components/interfaces.manifest
590
591%if %{without xulrunner}
592%{_libdir}/%{name}/platform.ini
593%{_libdir}/%{name}/components/ConsoleAPI.js
594%{_libdir}/%{name}/components/FeedProcessor.js
595%{_libdir}/%{name}/components/GPSDGeolocationProvider.js
596%{_libdir}/%{name}/components/NetworkGeolocationProvider.js
597%{_libdir}/%{name}/components/PlacesCategoriesStarter.js
598%{_libdir}/%{name}/components/TelemetryPing.js
599%{_libdir}/%{name}/components/addonManager.js
600%{_libdir}/%{name}/components/amContentHandler.js
601%{_libdir}/%{name}/components/amWebInstallListener.js
602%{_libdir}/%{name}/components/contentAreaDropListener.js
603%{_libdir}/%{name}/components/contentSecurityPolicy.js
604%{_libdir}/%{name}/components/crypto-SDR.js
605%{_libdir}/%{name}/components/jsconsole-clhandler.js
606%{_libdir}/%{name}/components/nsBadCertHandler.js
607%{_libdir}/%{name}/components/nsBlocklistService.js
608%{_libdir}/%{name}/components/nsContentDispatchChooser.js
609%{_libdir}/%{name}/components/nsContentPrefService.js
610%{_libdir}/%{name}/components/nsDefaultCLH.js
611%{_libdir}/%{name}/components/nsFilePicker.js
612%{_libdir}/%{name}/components/nsFormAutoComplete.js
613%{_libdir}/%{name}/components/nsFormHistory.js
614%{_libdir}/%{name}/components/nsHandlerService.js
615%{_libdir}/%{name}/components/nsHelperAppDlg.js
616%{_libdir}/%{name}/components/nsINIProcessor.js
617%{_libdir}/%{name}/components/nsInputListAutoComplete.js
618%{_libdir}/%{name}/components/nsLivemarkService.js
619%{_libdir}/%{name}/components/nsLoginInfo.js
620%{_libdir}/%{name}/components/nsLoginManager.js
621%{_libdir}/%{name}/components/nsLoginManagerPrompter.js
622%{_libdir}/%{name}/components/nsPlacesAutoComplete.js
623%{_libdir}/%{name}/components/nsPlacesExpiration.js
624%{_libdir}/%{name}/components/nsPrompter.js
625%{_libdir}/%{name}/components/nsProxyAutoConfig.js
626%{_libdir}/%{name}/components/nsSearchService.js
627%{_libdir}/%{name}/components/nsSearchSuggestions.js
628%{_libdir}/%{name}/components/nsTaggingService.js
629%{_libdir}/%{name}/components/nsURLFormatter.js
630%{_libdir}/%{name}/components/nsUpdateTimerManager.js
631%{_libdir}/%{name}/components/nsWebHandlerApp.js
632%{_libdir}/%{name}/components/storage-Legacy.js
633%{_libdir}/%{name}/components/storage-mozStorage.js
634%{_libdir}/%{name}/components/txEXSLTRegExFunctions.js
635%endif
636
637%{_libdir}/%{name}/components/nsAbout.js
638%{_libdir}/%{name}/components/nsAboutCertError.js
639%{_libdir}/%{name}/components/nsAboutData.js
640%{_libdir}/%{name}/components/nsAboutFeeds.js
641%{_libdir}/%{name}/components/nsAboutLife.js
642%{_libdir}/%{name}/components/nsAboutRights.js
643%{_libdir}/%{name}/components/nsAboutSessionRestore.js
644%{_libdir}/%{name}/components/nsAboutSyncTabs.js
645%{_libdir}/%{name}/components/nsComposerCmdLineHandler.js
646%{_libdir}/%{name}/components/nsSuiteDownloadManagerUI.js
647%{_libdir}/%{name}/components/nsSuiteGlue.js
648%{_libdir}/%{name}/components/nsTypeAheadFind.js
649%{_libdir}/%{name}/components/smileApplication.js
650
651%if %{without xulrunner}
652%attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so
653%endif
1d0185d8 654
dae07f1c
JR
655%if %{without xulrunner}
656%attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so
657%endif
1d0185d8 658
dae07f1c 659%attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so
1d0185d8 660
dae07f1c
JR
661%attr(755,root,root) %{_libdir}/%{name}/iceape
662%dir %{_libdir}/%{name}/plugins
663%if %{without xulrunner}
664%attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
665%attr(755,root,root) %{_libdir}/%{name}/iceape-bin
666%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
667%attr(755,root,root) %{_libdir}/%{name}/plugin-container
668%endif
669
670# symlinks
671%{_libdir}/%{name}/chrome
672%{_libdir}/%{name}/defaults
673%{_libdir}/%{name}/modules
674%{_libdir}/%{name}/searchplugins
675%if %{with xulrunner}
676%{_libdir}/%{name}/xulrunner
677%else
678%{_libdir}/%{name}/dictionaries
679%{_libdir}/%{name}/hyphenation
680%{_libdir}/%{name}/greprefs.js
681%{_libdir}/%{name}/res
682%endif
683
684%dir %{_datadir}/%{name}
685%{_datadir}/%{name}/chrome
686%{_datadir}/%{name}/defaults
687%{_datadir}/%{name}/modules
688%{_datadir}/%{name}/searchplugins
689%if %{without xulrunner}
690%{_datadir}/%{name}/greprefs.js
691%{_datadir}/%{name}/res
692%endif
1d0185d8 693
dae07f1c
JR
694%dir %{_datadir}/%{name}/extensions
695%dir %{_libdir}/%{name}/extensions
696# the signature of the default theme
697%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
698%{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
699
700# files created by iceape -register
701%ghost %{_libdir}/%{name}/components/compreg.dat
702%ghost %{_libdir}/%{name}/components/xpti.dat
703
704%{_libdir}/%{name}/components/glautocomp.js
705%{_libdir}/%{name}/components/jsmimeemitter.js
706%{_libdir}/%{name}/components/mail.xpt
707%{_libdir}/%{name}/components/mdn-service.js
708%{_libdir}/%{name}/components/msgAsyncPrompter.js
709%{_libdir}/%{name}/components/newsblog.js
710%{_libdir}/%{name}/components/nsAbAutoCompleteMyDomain.js
711%{_libdir}/%{name}/components/nsAbAutoCompleteSearch.js
712%{_libdir}/%{name}/components/nsAbLDAPAttributeMap.js
713%{_libdir}/%{name}/components/nsLDAPProtocolHandler.js
714%{_libdir}/%{name}/components/nsMailNewsCommandLineHandler.js
715%{_libdir}/%{name}/components/nsMsgTraitService.js
716%{_libdir}/%{name}/components/nsSMTPProtocolHandler.js
717%{_libdir}/%{name}/components/offlineStartup.js
718%{_libdir}/%{name}/components/smime-service.js
719
720%{_libdir}/%{name}/isp
721%dir %{_datadir}/%{name}/isp
722%{_datadir}/%{name}/isp/Bogofilter.sfd
723%{_datadir}/%{name}/isp/DSPAM.sfd
724%{_datadir}/%{name}/isp/POPFile.sfd
725%{_datadir}/%{name}/isp/SpamAssassin.sfd
726%{_datadir}/%{name}/isp/SpamPal.sfd
727%{_datadir}/%{name}/isp/movemail.rdf
728%{_datadir}/%{name}/isp/rss.rdf
1d0185d8 729
dae07f1c
JR
730%{_pixmapsdir}/iceape.png
731%{_desktopdir}/%{name}.desktop
732%{_desktopdir}/%{name}-composer.desktop
1d0185d8 733%{_desktopdir}/%{name}-mail.desktop
734
dae07f1c
JR
735%if %{with lightning}
736%files addon-lightning
737%defattr(644,root,root,755)
738%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
739%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini
740%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome
741%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
742%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
743%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
744%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
745%attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
746%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
747%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest
748%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
749%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
750%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
751%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite
752%{_libdir}/%{name}/extensions/calendar-timezones@mozilla.org
753%endif
754
755%if %{with enigmail}
1d0185d8 756%files addon-enigmail
757%defattr(644,root,root,755)
dae07f1c
JR
758%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
759%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults
760%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome
761%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
762%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
763%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components
764%attr(755,root,root) %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.so
765%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.xpt
766%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.js
767%endif
1d0185d8 768
769%files chat
770%defattr(644,root,root,755)
dae07f1c 771%{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
1d0185d8 772%{_desktopdir}/%{name}-chat.desktop
773
774%files js-debugger
775%defattr(644,root,root,755)
dae07f1c 776%{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi
1d0185d8 777%{_desktopdir}/%{name}-venkman.desktop
778
779%files dom-inspector
780%defattr(644,root,root,755)
dae07f1c 781%{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi
This page took 0.155195 seconds and 4 git commands to generate.