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