]> git.pld-linux.org Git - packages/iceape.git/blame - iceape.spec
- updated to 2.22, enigmail to 1.6
[packages/iceape.git] / iceape.spec
CommitLineData
1d0185d8 1#
2# Conditional build:
dae07f1c 3%bcond_without enigmail # don't build enigmail - GPG/PGP support
dae07f1c
JR
4%bcond_without ldap # disable e-mail address lookups in LDAP directories
5%bcond_without lightning # disable Sunbird/Lightning calendar
6%bcond_with xulrunner # build with system xulrunner
7%bcond_with tests # enable tests (whatever they check)
8%bcond_without kerberos # disable krb5 support
05361369 9
9084fc2b 10%define enigmail_ver 1.6
5d094b34 11%define nspr_ver 4.9.3
eda7f104 12%define nss_ver 3.14.3
738e838e 13%define xulrunner_ver 23.0
dae07f1c
JR
14
15%if %{without xulrunner}
16# The actual sqlite version (see RHBZ#480989):
17%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
18%endif
19
1d0185d8 20Summary: Iceape - web browser
21Summary(es.UTF-8): Navegador de Internet Iceape
22Summary(pl.UTF-8): Iceape - przeglądarka WWW
23Summary(pt_BR.UTF-8): Navegador Iceape
24Name: iceape
9084fc2b 25Version: 2.22
738e838e 26Release: 0.1
1d0185d8 27License: MPL 1.1 or GPL v2+ or LGPL v2.1+
28Group: X11/Applications/Networking
9d5ee07b 29Source0: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.bz2
9084fc2b 30# Source0-md5: 49b92ed98c23efdbdafa39b9dee920a7
1d0185d8 31Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
9084fc2b 32# Source1-md5: 4a2bbcb020bdb282a660fda8c70d5608
1d0185d8 33Source2: %{name}-branding.tar.bz2
9084fc2b 34# Source2-md5: 0bc28b4382aa8a961f8f7b2ba66d8f89
1d0185d8 35Source3: %{name}-rm_nonfree.sh
36Source4: %{name}.desktop
37Source5: %{name}-composer.desktop
38Source6: %{name}-chat.desktop
39Source7: %{name}-mail.desktop
40Source8: %{name}-venkman.desktop
03e92ac3 41Source9: %{name}.sh
1d0185d8 42Patch0: %{name}-branding.patch
dae07f1c
JR
43Patch1: %{name}-pld-branding.patch
44Patch2: %{name}-agent.patch
45Patch3: %{name}-glueload-fix.patch
46Patch4: system-mozldap.patch
47Patch5: makefile.patch
888f80ab
JR
48# Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade
49Patch7: system-virtualenv.patch
44a2ebe4 50Patch8: gyp-slashism.patch
740e5f43 51Patch9: %{name}-system-xulrunner.patch
738e838e
JR
52Patch10: enigmail-moz.build.patch
53Patch11: packaging.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
dae07f1c 72BuildRequires: libiw-devel
f7c8750c 73# requires libjpeg-turbo implementing at least libjpeg 6b API
1d0185d8 74BuildRequires: libjpeg-devel >= 6b
f7c8750c 75BuildRequires: libjpeg-turbo-devel
dae07f1c
JR
76BuildRequires: libnotify-devel >= 0.4
77BuildRequires: libpng(APNG)-devel >= 0.10
78BuildRequires: libpng-devel >= 1.4.1
03e92ac3
JR
79# rsvg-convert for iceape/branding
80BuildRequires: librsvg
1d0185d8 81BuildRequires: libstdc++-devel
03e92ac3 82BuildRequires: libvpx-devel >= 1.0.0
dae07f1c
JR
83BuildRequires: nspr-devel >= 1:%{nspr_ver}
84BuildRequires: nss-devel >= 1:%{nss_ver}
85BuildRequires: pango-devel >= 1:1.14.0
86BuildRequires: perl-base >= 1:5.6
87BuildRequires: perl-modules >= 5.004
1d0185d8 88BuildRequires: pkgconfig
dae07f1c
JR
89BuildRequires: python >= 1:2.5
90BuildRequires: python-modules
888f80ab 91BuildRequires: python-virtualenv
1d0185d8 92BuildRequires: rpm >= 4.4.9-56
dae07f1c 93BuildRequires: rpmbuild(macros) >= 1.601
1d0185d8 94BuildRequires: sed >= 4.0
eda7f104 95BuildRequires: sqlite3-devel >= 3.7.15.2
dae07f1c
JR
96BuildRequires: startup-notification-devel >= 0.8
97BuildRequires: xorg-lib-libXScrnSaver-devel
1d0185d8 98BuildRequires: xorg-lib-libXext-devel
1d0185d8 99BuildRequires: xorg-lib-libXinerama-devel
1d0185d8 100BuildRequires: xorg-lib-libXt-devel
dae07f1c
JR
101%if %{with xulrunner}
102BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver}
740e5f43 103BuildRequires: xulrunner-devel < 2:19
dae07f1c
JR
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
f7c8750c 118Requires: libjpeg-turbo
dae07f1c
JR
119Requires: libpng >= 1.4.1
120Requires: libpng(APNG) >= 0.10
121Requires: myspell-common
122Requires: nspr >= 1:%{nspr_ver}
123Requires: nss >= 1:%{nss_ver}
124Requires: pango >= 1:1.14.0
125Requires: sqlite3 >= %{sqlite_build_version}
126Requires: startup-notification >= 0.8
127%endif
1d0185d8 128Provides: iceape-embedded = %{epoch}:%{version}-%{release}
129Provides: wwwbrowser
75dcd787
JR
130Obsoletes: iceape-mailnews
131Obsoletes: iceape-gnomevfs
1d0185d8 132Obsoletes: light
133Obsoletes: mozilla
03504870 134Obsoletes: mozilla-gnomevfs
1d0185d8 135Obsoletes: seamonkey
136Obsoletes: seamonkey-calendar
137Obsoletes: seamonkey-libs
03504870
JR
138Obsoletes: seamonkey-mailnews
139Obsoletes: seamonkey-gnomevfs
b289d808 140Conflicts: iceape-lang-resources < %{version}
1d0185d8 141BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
142
dae07f1c
JR
143%define topdir %{_builddir}/%{name}-%{version}
144%define objdir %{topdir}/obj-%{_target_cpu}
1d0185d8 145
dea9725e
AM
146%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
147
dae07f1c
JR
148# don't satisfy other packages
149%define _noautoprovfiles %{_libdir}/%{name}
1d0185d8 150# and as we don't provide them, don't require either
dae07f1c
JR
151%define _noautoreq libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so}
152%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so
1d0185d8 153
154%description
155Iceape is an open-source web browser, designed for standards
156compliance, performance and portability.
157
158%description -l es.UTF-8
159Iceape es un navegador de Internet que se basa en una versión inicial
160de Netscape Communicator.
161
162%description -l pl.UTF-8
71fda434
ER
163Iceape jest potężną graficzną przeglądarką WWW, która jest następcą
164Mozilli, która następnie była następczynią Netscape Communikatora.
1d0185d8 165
166%description -l pt_BR.UTF-8
167O Iceape é um web browser baseado numa versão inicial do Netscape
168Communicator.
169
170%description -l ru.UTF-8
71fda434
ER
171Iceape - полнофункциональный web-browser с открытыми исходными
172текстами, разработанный для максимального соотвествия стандартам,
173максмимальной переносимости и скорости работы
1d0185d8 174
dae07f1c
JR
175%package addon-lightning
176Summary: An integrated calendar for Iceape
177Summary(pl.UTF-8): Zintegrowany kalendarz dla Iceape
178License: MPL 1.1 or GPL v2+ or LGPL v2.1+
179Group: Applications/Networking
180Requires: %{name} = %{version}-%{release}
181Obsoletes: seamonkey-addon-lightning
182
183%description addon-lightning
184Lightning is an calendar extension to Icedove email client.
185
186%description addon-lightning -l pl.UTF-8
187Lightning to rozszerzenie do klienta poczty Icedove dodające
188funkcjonalność kalendarza.
189
1d0185d8 190%package addon-enigmail
191Summary: Enigmail %{enigmail_ver} - PGP/GPG support for Iceape
192Summary(pl.UTF-8): Enigmail %{enigmail_ver} - obsługa PGP/GPG dla Iceape
193Group: X11/Applications/Networking
dae07f1c 194Requires: %{name} = %{epoch}:%{version}-%{release}
1d0185d8 195Requires: gnupg >= 1.4.2.2
5a8ef4bc 196Obsoletes: seamonkey-addon-enigmail
1d0185d8 197
198%description addon-enigmail
199Enigmail is an extension to the mail client of Iceape / SeaMonkey /
200Mozilla / Netscape and Mozilla Thunderbird which allows users to
201access the authentication and encryption features provided by GnuPG.
202
203%description addon-enigmail -l pl.UTF-8
204Enigmail jest rozszerzeniem dla klienta pocztowego Iceape, SeaMonkey,
71fda434
ER
205Mozilla i Mozilla Thunderdbird pozwalającym użytkownikowi korzystać z
206funkcjonalności GnuPG.
1d0185d8 207
208%package chat
209Summary: Iceape Chat - integrated IRC client
210Summary(pl.UTF-8): Iceape Chat - zintegrowany klient IRC-a
211Group: X11/Applications/Networking
212Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
213Requires: %{name} = %{epoch}:%{version}-%{release}
214Obsoletes: mozilla-chat
215Obsoletes: seamonkey-chat
216
217%description chat
218Iceape Chat - IRC client that is integrated with the Iceape web
219browser.
220
221%description chat -l pl.UTF-8
222Iceape - klient IRC-a zintegrowany z przeglądarką Iceape.
223
224%package js-debugger
225Summary: JavaScript debugger for use with Iceape
226Summary(pl.UTF-8): Odpluskwiacz JavaScriptu do używania z Iceape
227Group: X11/Applications/Networking
228Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
229Requires: %{name} = %{epoch}:%{version}-%{release}
230Obsoletes: mozilla-js-debugger
231Obsoletes: seamonkey-js-debugger
232
233%description js-debugger
234JavaScript debugger for use with Iceape.
235
236%description js-debugger -l pl.UTF-8
237Odpluskwiacz JavaScriptu do używania z Iceape.
238
239%package dom-inspector
240Summary: A tool for inspecting the DOM of pages in Iceape
241Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w Iceape
242Group: X11/Applications/Networking
243Requires(post,postun): %{name} = %{epoch}:%{version}-%{release}
244Requires: %{name} = %{epoch}:%{version}-%{release}
245Obsoletes: mozilla-dom-inspector
246Obsoletes: seamonkey-dom-inspector
247
248%description dom-inspector
249This is a tool that allows you to inspect the DOM for web pages in
250Iceape. This is of great use to people who are doing Iceape chrome
251development or web page development.
252
253%description dom-inspector -l pl.UTF-8
254To narzędzie pozwala na oglądanie DOM dla stron WWW w Iceape. Jest
255bardzo przydatne dla ludzi rozwijających chrome w Iceape lub
256tworzących strony WWW.
257
1d0185d8 258%prep
259%setup -qc
dae07f1c 260cd comm-release
1d0185d8 261tar -C mailnews/extensions -zxf %{SOURCE1}
03e92ac3 262tar -jxf %{SOURCE2}
1d0185d8 263%patch0 -p1
264%patch1 -p1
265%patch2 -p1
738e838e
JR
266#patch3 -p1
267#patch4 -p1
1d0185d8 268%patch5 -p1
888f80ab 269%patch7 -p1
44a2ebe4 270%patch8 -p1
740e5f43 271%patch9 -p2
738e838e
JR
272%patch10 -p2
273%patch11 -p2
1d0185d8 274
275%build
dae07f1c
JR
276cd comm-release
277%if %{with xulrunner}
278if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then
279 echo >&2
280 echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!"
281 echo >&2
282 exit 1
283fi
284%endif
285
286cp -f %{_datadir}/automake/config.* build/autoconf
287cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
288cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
289cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
290
291cat << EOF > .mozconfig
292mk_add_options MOZ_OBJDIR=%{objdir}
293
294export CFLAGS="%{rpmcflags}"
295export CXXFLAGS="%{rpmcflags}"
296
297%if %{with crashreporter}
298export MOZ_DEBUG_SYMBOLS=1
299%endif
300
301# Options for 'configure' (same as command-line options).
302ac_add_options --prefix=%{_prefix}
303ac_add_options --exec-prefix=%{_exec_prefix}
304ac_add_options --bindir=%{_bindir}
305ac_add_options --sbindir=%{_sbindir}
306ac_add_options --sysconfdir=%{_sysconfdir}
307ac_add_options --datadir=%{_datadir}
308ac_add_options --includedir=%{_includedir}
309ac_add_options --libdir=%{_libdir}
310ac_add_options --libexecdir=%{_libexecdir}
311ac_add_options --localstatedir=%{_localstatedir}
312ac_add_options --sharedstatedir=%{_sharedstatedir}
313ac_add_options --mandir=%{_mandir}
314ac_add_options --infodir=%{_infodir}
315ac_add_options --disable-elf-hack
316%if %{?debug:1}0
317ac_add_options --disable-optimize
318ac_add_options --enable-debug
319ac_add_options --enable-debug-modules
320ac_add_options --enable-debugger-info-modules
321ac_add_options --enable-crash-on-assert
322%else
323ac_add_options --disable-debug
324ac_add_options --disable-debug-modules
325ac_add_options --disable-logging
326ac_add_options --enable-optimize="%{rpmcflags} -Os"
327%endif
328ac_add_options --disable-strip
329ac_add_options --disable-strip-libs
330%if %{with tests}
331ac_add_options --enable-tests
332%else
333ac_add_options --disable-tests
334%endif
335ac_add_options --enable-gio
dae07f1c 336ac_add_options --disable-gnomeui
dae07f1c
JR
337ac_add_options --disable-gnomevfs
338%if %{with ldap}
339ac_add_options --enable-ldap
340ac_add_options --with-system-ldap
341%else
342ac_add_options --disable-ldap
343%endif
344%if %{with crashreporter}
345ac_add_options --enable-crashreporter
346%else
347ac_add_options --disable-crashreporter
348%endif
349ac_add_options --disable-xterm-updates
350ac_add_options --enable-postscript
351%if %{with lightning}
352ac_add_options --enable-calendar
353%else
354ac_add_options --disable-calendar
355%endif
356ac_add_options --disable-installer
357ac_add_options --disable-javaxpcom
358ac_add_options --disable-updater
359ac_add_options --enable-crypto
360ac_add_options --enable-libxul
361ac_add_options --enable-pango
362ac_add_options --enable-shared-js
363ac_add_options --enable-startup-notification
364ac_add_options --enable-system-cairo
365ac_add_options --enable-system-hunspell
366ac_add_options --enable-system-sqlite
367ac_add_options --enable-application=suite
368ac_add_options --with-distribution-id=org.pld-linux
03e92ac3 369ac_add_options --with-branding=iceape/branding
dae07f1c
JR
370%if %{with xulrunner}
371ac_add_options --with-system-libxul
372ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
373%endif
374ac_add_options --with-pthreads
375ac_add_options --with-system-bz2
376ac_add_options --with-system-ffi
377ac_add_options --with-system-jpeg
378ac_add_options --with-system-libevent
379ac_add_options --with-system-libvpx
380ac_add_options --with-system-nspr
381ac_add_options --with-system-nss
382ac_add_options --with-system-png
383ac_add_options --with-system-zlib
384ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
385EOF
386
387%{__make} -j1 -f client.mk build \
388 STRIP="/bin/true" \
389 MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
390 installdir=%{_libdir}/%{name} \
a089ecfd 391 XLIBS="-lX11 -lXt" \
dae07f1c
JR
392 CC="%{__cc}" \
393 CXX="%{__cxx}"
1d0185d8 394
dae07f1c
JR
395%if %{with crashreporter}
396# create debuginfo for crash-stats.mozilla.com
397%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
398%endif
399
400%if %{with enigmail}
1d0185d8 401cd mailnews/extensions/enigmail
dae07f1c
JR
402./makemake -r -o %{objdir}
403%{__make} -C %{objdir}/mailnews/extensions/enigmail \
404 STRIP="/bin/true" \
405 CC="%{__cc}" \
406 CXX="%{__cxx}"
c4a50216
JR
407
408%{__make} -C %{objdir}/mailnews/extensions/enigmail xpi \
409 STRIP="/bin/true" \
410 CC="%{__cc}" \
411 CXX="%{__cxx}"
dae07f1c 412%endif
1d0185d8 413
414%install
415rm -rf $RPM_BUILD_ROOT
dae07f1c 416cd comm-release
1d0185d8 417install -d \
dae07f1c 418 $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
1d0185d8 419 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
dae07f1c
JR
420 $RPM_BUILD_ROOT%{_datadir}/%{name} \
421 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
1d0185d8 422
dae07f1c 423%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
1d0185d8 424
dae07f1c 425cd %{objdir}
738e838e 426cwd=`pwd`
dae07f1c 427%{__make} -C suite/installer stage-package \
738e838e 428 LD_LIBRARY_PATH=$cwd/mozilla/dist/lib \
dae07f1c
JR
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
35486651 456
dae07f1c
JR
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 529cp -rfLp components/enig* $ext_dir/components
dae07f1c 530cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences
a089ecfd 531cp -rfLp modules/{commonFuncs,enigmailCommon,keyManagement,pipeConsole,subprocess}.jsm $ext_dir/modules
c4a50216 532cp -rfLp modules/{subprocess_worker_unix,subprocess_worker_win}.js $ext_dir/modules
dae07f1c
JR
533cd -
534cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/install.rdf $ext_dir
535cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/chrome.manifest $ext_dir/chrome.manifest
536%endif
1d0185d8 537
dae07f1c
JR
538# never package these. always remove
539# nss
738e838e 540%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
dae07f1c 541# nspr
738e838e 542%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
dae07f1c 543# mozldap
738e838e 544%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
dae07f1c 545# testpilot quiz
738e838e 546%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/tbtestpilot@labs.mozilla.com.xpi
1d0185d8 547
548%clean
549rm -rf $RPM_BUILD_ROOT
550
551%post
dae07f1c 552%{_libdir}/%{name}/register || :
1d0185d8 553%update_browser_plugins
fcecc2a1 554%update_icon_cache hicolor
dae07f1c 555%update_desktop_database
1d0185d8 556
557%postun
1d0185d8 558if [ "$1" = 0 ]; then
559 %update_browser_plugins
fcecc2a1 560 %update_icon_cache hicolor
1d0185d8 561fi
562
1d0185d8 563%files
564%defattr(644,root,root,755)
565%attr(755,root,root) %{_bindir}/iceape
1d0185d8 566
567# browser plugins v2
568%{_browserpluginsconfdir}/browsers.d/%{name}.*
569%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
570
dae07f1c
JR
571%dir %{_libdir}/%{name}
572%if %{without xulrunner}
573%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
574%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so
575%attr(755,root,root) %{_libdir}/%{name}/libxpcom.so
576%attr(755,root,root) %{_libdir}/%{name}/libxul.so
577%endif
1d0185d8 578
dae07f1c
JR
579%{_libdir}/%{name}/blocklist.xml
580%attr(755,root,root) %{_libdir}/%{name}/register
1d0185d8 581
dae07f1c
JR
582%if %{with crashreporter}
583%{_libdir}/%{name}/crashreporter
584%{_libdir}/%{name}/crashreporter-override.ini
585%{_libdir}/%{name}/crashreporter.ini
586%{_libdir}/%{name}/Throbber-small.gif
587%endif
1d0185d8 588
dae07f1c
JR
589# config?
590%{_libdir}/%{name}/application.ini
591%{_libdir}/%{name}/chrome.manifest
592
593%dir %{_libdir}/%{name}/components
594
888f80ab 595%{_libdir}/%{name}/components/Aitc.js
8bed54aa 596%{_libdir}/%{name}/components/AlarmsManager.js
888f80ab
JR
597%{_libdir}/%{name}/components/AppsService.js
598%{_libdir}/%{name}/components/BrowserElementParent.js
8bed54aa 599%{_libdir}/%{name}/components/ColorAnalyzer.js
978e314f 600%{_libdir}/%{name}/components/ContactManager.js
dae07f1c
JR
601%{_libdir}/%{name}/components/FeedConverter.js
602%{_libdir}/%{name}/components/FeedWriter.js
c4cad2a1
JB
603%{_libdir}/%{name}/components/SettingsManager.js
604%{_libdir}/%{name}/components/SiteSpecificUserAgent.js
605%{_libdir}/%{name}/components/TCPSocket.js
606%{_libdir}/%{name}/components/TCPSocketParentIntermediary.js
607%{_libdir}/%{name}/components/Weave.js
608%{_libdir}/%{name}/components/Webapps.js
609%{_libdir}/%{name}/components/WebContentConverter.js
978e314f 610%{_libdir}/%{name}/components/messageWakeupService.js
8bed54aa 611%{_libdir}/%{name}/components/newMailNotificationService.js
978e314f 612%{_libdir}/%{name}/components/nsAbout.js
dae07f1c 613%{_libdir}/%{name}/components/nsBrowserContentHandler.js
978e314f 614%{_libdir}/%{name}/components/nsComposerCmdLineHandler.js
8bed54aa
JR
615%{_libdir}/%{name}/components/nsDOMIdentity.js
616%{_libdir}/%{name}/components/nsIDService.js
dae07f1c
JR
617%{_libdir}/%{name}/components/nsSessionStartup.js
618%{_libdir}/%{name}/components/nsSessionStore.js
a089ecfd 619%{_libdir}/%{name}/components/nsSetDefault.js
dae07f1c 620%{_libdir}/%{name}/components/nsSidebar.js
978e314f
JR
621%{_libdir}/%{name}/components/nsSuiteDownloadManagerUI.js
622%{_libdir}/%{name}/components/nsSuiteGlue.js
623%{_libdir}/%{name}/components/nsTypeAheadFind.js
624%{_libdir}/%{name}/components/nsUrlClassifierHashCompleter.js
625%{_libdir}/%{name}/components/nsUrlClassifierLib.js
626%{_libdir}/%{name}/components/nsUrlClassifierListManager.js
627%{_libdir}/%{name}/components/smileApplication.js
35486651 628%{_libdir}/%{name}/components/PermissionSettings.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 636%if %{without xulrunner}
9d5ee07b 637%{_libdir}/%{name}/dependentlibs.list
dae07f1c
JR
638%{_libdir}/%{name}/platform.ini
639%{_libdir}/%{name}/components/ConsoleAPI.js
640%{_libdir}/%{name}/components/FeedProcessor.js
641%{_libdir}/%{name}/components/GPSDGeolocationProvider.js
642%{_libdir}/%{name}/components/NetworkGeolocationProvider.js
643%{_libdir}/%{name}/components/PlacesCategoriesStarter.js
644%{_libdir}/%{name}/components/TelemetryPing.js
645%{_libdir}/%{name}/components/addonManager.js
646%{_libdir}/%{name}/components/amContentHandler.js
647%{_libdir}/%{name}/components/amWebInstallListener.js
648%{_libdir}/%{name}/components/contentAreaDropListener.js
649%{_libdir}/%{name}/components/contentSecurityPolicy.js
650%{_libdir}/%{name}/components/crypto-SDR.js
651%{_libdir}/%{name}/components/jsconsole-clhandler.js
652%{_libdir}/%{name}/components/nsBadCertHandler.js
653%{_libdir}/%{name}/components/nsBlocklistService.js
654%{_libdir}/%{name}/components/nsContentDispatchChooser.js
655%{_libdir}/%{name}/components/nsContentPrefService.js
656%{_libdir}/%{name}/components/nsDefaultCLH.js
657%{_libdir}/%{name}/components/nsFilePicker.js
658%{_libdir}/%{name}/components/nsFormAutoComplete.js
659%{_libdir}/%{name}/components/nsFormHistory.js
660%{_libdir}/%{name}/components/nsHandlerService.js
661%{_libdir}/%{name}/components/nsHelperAppDlg.js
662%{_libdir}/%{name}/components/nsINIProcessor.js
663%{_libdir}/%{name}/components/nsInputListAutoComplete.js
664%{_libdir}/%{name}/components/nsLivemarkService.js
665%{_libdir}/%{name}/components/nsLoginInfo.js
666%{_libdir}/%{name}/components/nsLoginManager.js
667%{_libdir}/%{name}/components/nsLoginManagerPrompter.js
668%{_libdir}/%{name}/components/nsPlacesAutoComplete.js
669%{_libdir}/%{name}/components/nsPlacesExpiration.js
670%{_libdir}/%{name}/components/nsPrompter.js
dae07f1c
JR
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
c4a50216
JR
714%exclude %{_datadir}/%{name}/modules/subprocess.jsm
715%exclude %{_datadir}/%{name}/modules/subprocess_worker_unix.js
716%exclude %{_datadir}/%{name}/modules/subprocess_worker_win.js
717%endif
dae07f1c
JR
718%{_datadir}/%{name}/searchplugins
719%if %{without xulrunner}
720%{_datadir}/%{name}/greprefs.js
721%{_datadir}/%{name}/res
722%endif
1d0185d8 723
dae07f1c
JR
724%dir %{_datadir}/%{name}/extensions
725%dir %{_libdir}/%{name}/extensions
726# the signature of the default theme
727%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
728%{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
729
730# files created by iceape -register
731%ghost %{_libdir}/%{name}/components/compreg.dat
732%ghost %{_libdir}/%{name}/components/xpti.dat
733
734%{_libdir}/%{name}/components/glautocomp.js
735%{_libdir}/%{name}/components/jsmimeemitter.js
736%{_libdir}/%{name}/components/mail.xpt
737%{_libdir}/%{name}/components/mdn-service.js
738%{_libdir}/%{name}/components/msgAsyncPrompter.js
739%{_libdir}/%{name}/components/newsblog.js
740%{_libdir}/%{name}/components/nsAbAutoCompleteMyDomain.js
741%{_libdir}/%{name}/components/nsAbAutoCompleteSearch.js
742%{_libdir}/%{name}/components/nsAbLDAPAttributeMap.js
743%{_libdir}/%{name}/components/nsLDAPProtocolHandler.js
744%{_libdir}/%{name}/components/nsMailNewsCommandLineHandler.js
745%{_libdir}/%{name}/components/nsMsgTraitService.js
746%{_libdir}/%{name}/components/nsSMTPProtocolHandler.js
747%{_libdir}/%{name}/components/offlineStartup.js
748%{_libdir}/%{name}/components/smime-service.js
749
750%{_libdir}/%{name}/isp
751%dir %{_datadir}/%{name}/isp
752%{_datadir}/%{name}/isp/Bogofilter.sfd
753%{_datadir}/%{name}/isp/DSPAM.sfd
754%{_datadir}/%{name}/isp/POPFile.sfd
755%{_datadir}/%{name}/isp/SpamAssassin.sfd
756%{_datadir}/%{name}/isp/SpamPal.sfd
757%{_datadir}/%{name}/isp/movemail.rdf
758%{_datadir}/%{name}/isp/rss.rdf
1d0185d8 759
fcecc2a1
JR
760%{_iconsdir}/hicolor/*/apps/iceape.png
761%{_iconsdir}/hicolor/scalable/apps/iceape.svg
dae07f1c
JR
762%{_desktopdir}/%{name}.desktop
763%{_desktopdir}/%{name}-composer.desktop
1d0185d8 764%{_desktopdir}/%{name}-mail.desktop
765
dae07f1c
JR
766%if %{with lightning}
767%files addon-lightning
768%defattr(644,root,root,755)
769%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
770%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini
771%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome
772%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
773%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
774%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
775%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
776%attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
777%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
778%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest
779%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
780%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
781%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
782%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite
783%{_libdir}/%{name}/extensions/calendar-timezones@mozilla.org
784%endif
785
786%if %{with enigmail}
1d0185d8 787%files addon-enigmail
788%defattr(644,root,root,755)
dae07f1c
JR
789%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
790%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults
791%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome
792%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
793%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
794%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components
dae07f1c
JR
795%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.xpt
796%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.js
c4a50216
JR
797%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules
798%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/*.jsm
799%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/*.js
dae07f1c 800%endif
1d0185d8 801
802%files chat
803%defattr(644,root,root,755)
dae07f1c 804%{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
1d0185d8 805%{_desktopdir}/%{name}-chat.desktop
806
807%files js-debugger
808%defattr(644,root,root,755)
dae07f1c 809%{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi
1d0185d8 810%{_desktopdir}/%{name}-venkman.desktop
811
812%files dom-inspector
813%defattr(644,root,root,755)
dae07f1c 814%{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi
This page took 0.153063 seconds and 4 git commands to generate.