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