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