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