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