]> git.pld-linux.org Git - packages/iceape.git/blame - iceape.spec
- disable debuginfo
[packages/iceape.git] / iceape.spec
CommitLineData
1d0185d8 1#
2# Conditional build:
dae07f1c
JR
3%bcond_without enigmail # don't build enigmail - GPG/PGP support
4%bcond_without gnomeui # disable gnomeui support
03504870 5%bcond_without gnome # disable gnomeui (alias)
dae07f1c
JR
6%bcond_without ldap # disable e-mail address lookups in LDAP directories
7%bcond_without lightning # disable Sunbird/Lightning calendar
8%bcond_with xulrunner # build with system xulrunner
9%bcond_with tests # enable tests (whatever they check)
10%bcond_without kerberos # disable krb5 support
05361369 11
1d0185d8 12%if %{without gnome}
03504870 13%undefine with_gnomeui
1d0185d8 14%endif
dae07f1c 15
5d094b34
JR
16%define enigmail_ver 1.5.0
17%define nspr_ver 4.9.3
18%define nss_ver 3.14.1
19%define xulrunner_ver 18.0
dae07f1c
JR
20
21%if %{without xulrunner}
22# The actual sqlite version (see RHBZ#480989):
23%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
24%endif
25
1d0185d8 26Summary: Iceape - web browser
27Summary(es.UTF-8): Navegador de Internet Iceape
28Summary(pl.UTF-8): Iceape - przeglądarka WWW
29Summary(pt_BR.UTF-8): Navegador Iceape
30Name: iceape
5d094b34 31Version: 2.15
8bed54aa 32Release: 1
1d0185d8 33License: MPL 1.1 or GPL v2+ or LGPL v2.1+
34Group: X11/Applications/Networking
03504870 35Source0: ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.bz2
5d094b34 36# Source0-md5: 99541df8d01d9e988f4bccc59cbddbfa
1d0185d8 37Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
5d094b34 38# Source1-md5: af4b3534417f32dc201765e4de6ecc86
1d0185d8 39Source2: %{name}-branding.tar.bz2
a0967230 40# Source2-md5: 0bc28b4382aa8a961f8f7b2ba66d8f89
1d0185d8 41Source3: %{name}-rm_nonfree.sh
42Source4: %{name}.desktop
43Source5: %{name}-composer.desktop
44Source6: %{name}-chat.desktop
45Source7: %{name}-mail.desktop
46Source8: %{name}-venkman.desktop
03e92ac3 47Source9: %{name}.sh
1d0185d8 48Patch0: %{name}-branding.patch
dae07f1c
JR
49Patch1: %{name}-pld-branding.patch
50Patch2: %{name}-agent.patch
51Patch3: %{name}-glueload-fix.patch
52Patch4: system-mozldap.patch
53Patch5: makefile.patch
54Patch6: system-cairo.patch
888f80ab
JR
55# Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade
56Patch7: system-virtualenv.patch
e99fd609 57URL: http://www.pld-linux.org/Packages/Iceape
dae07f1c
JR
58BuildRequires: GConf2-devel >= 1.2.1
59BuildRequires: OpenGL-devel
60BuildRequires: alsa-lib-devel
1d0185d8 61BuildRequires: automake
dae07f1c
JR
62BuildRequires: bzip2-devel
63BuildRequires: cairo-devel >= 1.10.2-5
64BuildRequires: dbus-glib-devel >= 0.60
1d0185d8 65BuildRequires: freetype-devel >= 1:2.1.8
dae07f1c
JR
66BuildRequires: glib2-devel >= 1:2.18
67BuildRequires: gtk+2-devel >= 2:2.10
68%{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
69BuildRequires: hunspell-devel
1d0185d8 70BuildRequires: libIDL-devel >= 0.8.0
dae07f1c
JR
71BuildRequires: libdnet-devel
72BuildRequires: libevent-devel >= 1.4.7
73# standalone libffi 3.0.9 or gcc's from 4.5(?)+
74BuildRequires: libffi-devel >= 6:3.0.9
75%{?with_gnomeui:BuildRequires: libgnome-devel >= 2.0}
76%{?with_gnomeui:BuildRequires: libgnome-keyring-devel}
77%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
78BuildRequires: libiw-devel
1d0185d8 79BuildRequires: libjpeg-devel >= 6b
dae07f1c
JR
80BuildRequires: libnotify-devel >= 0.4
81BuildRequires: libpng(APNG)-devel >= 0.10
82BuildRequires: libpng-devel >= 1.4.1
03e92ac3
JR
83# rsvg-convert for iceape/branding
84BuildRequires: librsvg
1d0185d8 85BuildRequires: libstdc++-devel
03e92ac3 86BuildRequires: libvpx-devel >= 1.0.0
dae07f1c
JR
87BuildRequires: nspr-devel >= 1:%{nspr_ver}
88BuildRequires: nss-devel >= 1:%{nss_ver}
89BuildRequires: pango-devel >= 1:1.14.0
90BuildRequires: perl-base >= 1:5.6
91BuildRequires: perl-modules >= 5.004
1d0185d8 92BuildRequires: pkgconfig
dae07f1c
JR
93BuildRequires: python >= 1:2.5
94BuildRequires: python-modules
888f80ab 95BuildRequires: python-virtualenv
1d0185d8 96BuildRequires: rpm >= 4.4.9-56
dae07f1c 97BuildRequires: rpmbuild(macros) >= 1.601
1d0185d8 98BuildRequires: sed >= 4.0
dae07f1c
JR
99BuildRequires: sqlite3-devel >= 3.7.10
100BuildRequires: startup-notification-devel >= 0.8
101BuildRequires: xorg-lib-libXScrnSaver-devel
1d0185d8 102BuildRequires: xorg-lib-libXext-devel
1d0185d8 103BuildRequires: xorg-lib-libXinerama-devel
1d0185d8 104BuildRequires: xorg-lib-libXt-devel
dae07f1c
JR
105%if %{with xulrunner}
106BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver}
107%endif
108BuildRequires: yasm
109BuildRequires: zip
1d0185d8 110BuildRequires: zlib-devel >= 1.2.3
dae07f1c
JR
111Requires(post): mktemp >= 1.5-18
112Requires: desktop-file-utils
113Requires: hicolor-icon-theme
114%if %{with xulrunner}
115%requires_eq_to xulrunner xulrunner-devel
116%else
1d0185d8 117Requires: browser-plugins >= 2.0
dae07f1c
JR
118Requires: cairo >= 1.10.2-5
119Requires: dbus-glib >= 0.60
120Requires: gtk+2 >= 2:2.18
121Requires: libpng >= 1.4.1
122Requires: libpng(APNG) >= 0.10
123Requires: myspell-common
124Requires: nspr >= 1:%{nspr_ver}
125Requires: nss >= 1:%{nss_ver}
126Requires: pango >= 1:1.14.0
127Requires: sqlite3 >= %{sqlite_build_version}
128Requires: startup-notification >= 0.8
129%endif
1d0185d8 130Provides: iceape-embedded = %{epoch}:%{version}-%{release}
131Provides: wwwbrowser
75dcd787
JR
132Obsoletes: iceape-mailnews
133Obsoletes: iceape-gnomevfs
1d0185d8 134Obsoletes: light
135Obsoletes: mozilla
03504870 136Obsoletes: mozilla-gnomevfs
1d0185d8 137Obsoletes: seamonkey
138Obsoletes: seamonkey-calendar
139Obsoletes: seamonkey-libs
03504870
JR
140Obsoletes: seamonkey-mailnews
141Obsoletes: seamonkey-gnomevfs
b289d808 142Conflicts: iceape-lang-resources < %{version}
1d0185d8 143BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
144
dae07f1c
JR
145%define topdir %{_builddir}/%{name}-%{version}
146%define objdir %{topdir}/obj-%{_target_cpu}
1d0185d8 147
dea9725e
AM
148%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
149
dae07f1c
JR
150# don't satisfy other packages
151%define _noautoprovfiles %{_libdir}/%{name}
1d0185d8 152# and as we don't provide them, don't require either
dae07f1c
JR
153%define _noautoreq libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so}
154%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so
1d0185d8 155
68ffc417
JR
156# disable debuginfo package due to debugedit not being able to do its job on libxul.so
157# same problem as: https://bugzilla.redhat.com/show_bug.cgi?id=304121
158%define _enable_debug_packages 0
159
1d0185d8 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
1d0185d8 277
278%build
dae07f1c
JR
279cd comm-release
280%if %{with xulrunner}
281if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then
282 echo >&2
283 echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!"
284 echo >&2
285 exit 1
286fi
287%endif
288
289cp -f %{_datadir}/automake/config.* build/autoconf
290cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
291cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
292cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
293
294cat << EOF > .mozconfig
295mk_add_options MOZ_OBJDIR=%{objdir}
296
297export CFLAGS="%{rpmcflags}"
298export CXXFLAGS="%{rpmcflags}"
299
300%if %{with crashreporter}
301export MOZ_DEBUG_SYMBOLS=1
302%endif
303
304# Options for 'configure' (same as command-line options).
305ac_add_options --prefix=%{_prefix}
306ac_add_options --exec-prefix=%{_exec_prefix}
307ac_add_options --bindir=%{_bindir}
308ac_add_options --sbindir=%{_sbindir}
309ac_add_options --sysconfdir=%{_sysconfdir}
310ac_add_options --datadir=%{_datadir}
311ac_add_options --includedir=%{_includedir}
312ac_add_options --libdir=%{_libdir}
313ac_add_options --libexecdir=%{_libexecdir}
314ac_add_options --localstatedir=%{_localstatedir}
315ac_add_options --sharedstatedir=%{_sharedstatedir}
316ac_add_options --mandir=%{_mandir}
317ac_add_options --infodir=%{_infodir}
318ac_add_options --disable-elf-hack
319%if %{?debug:1}0
320ac_add_options --disable-optimize
321ac_add_options --enable-debug
322ac_add_options --enable-debug-modules
323ac_add_options --enable-debugger-info-modules
324ac_add_options --enable-crash-on-assert
325%else
326ac_add_options --disable-debug
327ac_add_options --disable-debug-modules
328ac_add_options --disable-logging
329ac_add_options --enable-optimize="%{rpmcflags} -Os"
330%endif
331ac_add_options --disable-strip
332ac_add_options --disable-strip-libs
333%if %{with tests}
334ac_add_options --enable-tests
335%else
336ac_add_options --disable-tests
337%endif
338ac_add_options --enable-gio
339%if %{with gnomeui}
340ac_add_options --enable-gnomeui
341%else
342ac_add_options --disable-gnomeui
343%endif
344ac_add_options --disable-gnomevfs
345%if %{with ldap}
346ac_add_options --enable-ldap
347ac_add_options --with-system-ldap
348%else
349ac_add_options --disable-ldap
350%endif
351%if %{with crashreporter}
352ac_add_options --enable-crashreporter
353%else
354ac_add_options --disable-crashreporter
355%endif
356ac_add_options --disable-xterm-updates
357ac_add_options --enable-postscript
358%if %{with lightning}
359ac_add_options --enable-calendar
360%else
361ac_add_options --disable-calendar
362%endif
363ac_add_options --disable-installer
364ac_add_options --disable-javaxpcom
365ac_add_options --disable-updater
366ac_add_options --enable-crypto
367ac_add_options --enable-libxul
368ac_add_options --enable-pango
369ac_add_options --enable-shared-js
370ac_add_options --enable-startup-notification
371ac_add_options --enable-system-cairo
372ac_add_options --enable-system-hunspell
373ac_add_options --enable-system-sqlite
374ac_add_options --enable-application=suite
375ac_add_options --with-distribution-id=org.pld-linux
03e92ac3 376ac_add_options --with-branding=iceape/branding
dae07f1c
JR
377%if %{with xulrunner}
378ac_add_options --with-system-libxul
379ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
380%endif
381ac_add_options --with-pthreads
382ac_add_options --with-system-bz2
383ac_add_options --with-system-ffi
384ac_add_options --with-system-jpeg
385ac_add_options --with-system-libevent
386ac_add_options --with-system-libvpx
387ac_add_options --with-system-nspr
388ac_add_options --with-system-nss
389ac_add_options --with-system-png
390ac_add_options --with-system-zlib
391ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
392EOF
393
394%{__make} -j1 -f client.mk build \
395 STRIP="/bin/true" \
396 MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
397 installdir=%{_libdir}/%{name} \
a089ecfd 398 XLIBS="-lX11 -lXt" \
dae07f1c
JR
399 CC="%{__cc}" \
400 CXX="%{__cxx}"
1d0185d8 401
dae07f1c
JR
402%if %{with crashreporter}
403# create debuginfo for crash-stats.mozilla.com
404%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
405%endif
406
407%if %{with enigmail}
1d0185d8 408cd mailnews/extensions/enigmail
dae07f1c
JR
409./makemake -r -o %{objdir}
410%{__make} -C %{objdir}/mailnews/extensions/enigmail \
411 STRIP="/bin/true" \
412 CC="%{__cc}" \
413 CXX="%{__cxx}"
c4a50216
JR
414
415%{__make} -C %{objdir}/mailnews/extensions/enigmail xpi \
416 STRIP="/bin/true" \
417 CC="%{__cc}" \
418 CXX="%{__cxx}"
dae07f1c 419%endif
1d0185d8 420
421%install
422rm -rf $RPM_BUILD_ROOT
dae07f1c 423cd comm-release
1d0185d8 424install -d \
dae07f1c 425 $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
1d0185d8 426 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
dae07f1c
JR
427 $RPM_BUILD_ROOT%{_datadir}/%{name} \
428 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
1d0185d8 429
dae07f1c 430%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
1d0185d8 431
dae07f1c
JR
432cd %{objdir}
433%{__make} -C suite/installer stage-package \
434 DESTDIR=$RPM_BUILD_ROOT \
435 installdir=%{_libdir}/%{name} \
436 PKG_SKIP_STRIP=1
1d0185d8 437
fcecc2a1
JR
438%{__make} -C iceape/branding install \
439 DESTDIR=$RPM_BUILD_ROOT
440
dae07f1c 441cp -a mozilla/dist/iceape/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
1d0185d8 442
dae07f1c
JR
443%if %{with xulrunner}
444# >= 5.0 seems to require this
445ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
446%endif
1d0185d8 447
dae07f1c
JR
448# Enable crash reporter for Thunderbird application
449%if %{with crashreporter}
450%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
1d0185d8 451
dae07f1c
JR
452# Add debuginfo for crash-stats.mozilla.com
453install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
454cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
455%endif
1d0185d8 456
dae07f1c
JR
457# copy manually lightning files, somewhy they are not installed by make
458cp -a mozilla/dist/bin/extensions/calendar-timezones@mozilla.org \
459 mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
460 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
461
462# move arch independant ones to datadir
463mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
464mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
465mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
466mv $RPM_BUILD_ROOT%{_libdir}/%{name}/modules $RPM_BUILD_ROOT%{_datadir}/%{name}/modules
467mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
468%if %{without xulrunner}
469mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs.js
470mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res
471%endif
1d0185d8 472
dae07f1c
JR
473ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
474ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
475ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
476ln -s ../../share/%{name}/modules $RPM_BUILD_ROOT%{_libdir}/%{name}/modules
477ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
478%if %{without xulrunner}
479ln -s ../../share/%{name}/greprefs.js $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js
480ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res
481%endif
482
483mv $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/* \
484 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/
485
486# dir for arch independant extensions besides arch dependant extensions
487# see mozilla/xpcom/build/nsXULAppAPI.h
488# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
489install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
490
491%if %{without xulrunner}
492%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
493ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
494%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
495ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
496%endif
1d0185d8 497
afec21d4
JR
498%{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \
499 -e "s|%MOZ_APP_DISPLAYNAME%|Iceape|" \
500 %{topdir}/comm-release/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/iceape
501
03e92ac3 502sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/iceape
dae07f1c 503chmod a+rx $RPM_BUILD_ROOT%{_bindir}/iceape
1d0185d8 504
03e92ac3 505install %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \
dae07f1c 506 $RPM_BUILD_ROOT%{_desktopdir}
1d0185d8 507
dae07f1c
JR
508# files created by iceape -register
509touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
510touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
1d0185d8 511
dae07f1c 512cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
1d0185d8 513#!/bin/sh
514umask 022
dae07f1c
JR
515rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
516
517# it attempts to touch files in $HOME/.mozilla
518# beware if you run this with sudo!!!
519export HOME=$(mktemp -d)
520# also TMPDIR could be pointing to sudo user's homedir
521unset TMPDIR TMP || :
1d0185d8 522
dae07f1c 523%{_libdir}/%{name}/iceape -register
1d0185d8 524
dae07f1c 525rm -rf $HOME
1d0185d8 526EOF
dae07f1c
JR
527chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
528
529%if %{with enigmail}
530ext_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
c4a50216 531install -d $ext_dir/{chrome,components,defaults/preferences,modules}
dae07f1c 532cd mozilla/dist/bin
c4a50216 533cp -rfLp chrome/enigmail.jar $ext_dir/chrome
dae07f1c
JR
534cp -rfLp components/enig* $ext_dir/components
535cp -rfLp components/libenigmime.so $ext_dir/components
dae07f1c 536cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences
a089ecfd 537cp -rfLp modules/{commonFuncs,enigmailCommon,keyManagement,pipeConsole,subprocess}.jsm $ext_dir/modules
c4a50216 538cp -rfLp modules/{subprocess_worker_unix,subprocess_worker_win}.js $ext_dir/modules
dae07f1c
JR
539cd -
540cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/install.rdf $ext_dir
541cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/chrome.manifest $ext_dir/chrome.manifest
542%endif
1d0185d8 543
dae07f1c
JR
544# never package these. always remove
545# nss
546%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
547# nspr
548%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
549# mozldap
550%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
551# testpilot quiz
552%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/tbtestpilot@labs.mozilla.com.xpi
1d0185d8 553
554%clean
555rm -rf $RPM_BUILD_ROOT
556
557%post
dae07f1c 558%{_libdir}/%{name}/register || :
1d0185d8 559%update_browser_plugins
fcecc2a1 560%update_icon_cache hicolor
dae07f1c 561%update_desktop_database
1d0185d8 562
563%postun
1d0185d8 564if [ "$1" = 0 ]; then
565 %update_browser_plugins
fcecc2a1 566 %update_icon_cache hicolor
1d0185d8 567fi
568
1d0185d8 569%files
570%defattr(644,root,root,755)
571%attr(755,root,root) %{_bindir}/iceape
1d0185d8 572
573# browser plugins v2
574%{_browserpluginsconfdir}/browsers.d/%{name}.*
575%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
576
dae07f1c
JR
577%dir %{_libdir}/%{name}
578%if %{without xulrunner}
579%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
580%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so
581%attr(755,root,root) %{_libdir}/%{name}/libxpcom.so
582%attr(755,root,root) %{_libdir}/%{name}/libxul.so
583%endif
1d0185d8 584
dae07f1c
JR
585%{_libdir}/%{name}/blocklist.xml
586%attr(755,root,root) %{_libdir}/%{name}/register
1d0185d8 587
dae07f1c
JR
588%if %{with crashreporter}
589%{_libdir}/%{name}/crashreporter
590%{_libdir}/%{name}/crashreporter-override.ini
591%{_libdir}/%{name}/crashreporter.ini
592%{_libdir}/%{name}/Throbber-small.gif
593%endif
1d0185d8 594
dae07f1c
JR
595# config?
596%{_libdir}/%{name}/application.ini
597%{_libdir}/%{name}/chrome.manifest
598
599%dir %{_libdir}/%{name}/components
600
888f80ab 601%{_libdir}/%{name}/components/Aitc.js
8bed54aa 602%{_libdir}/%{name}/components/AlarmsManager.js
888f80ab
JR
603%{_libdir}/%{name}/components/AppsService.js
604%{_libdir}/%{name}/components/BrowserElementParent.js
8bed54aa 605%{_libdir}/%{name}/components/ColorAnalyzer.js
978e314f 606%{_libdir}/%{name}/components/ContactManager.js
dae07f1c
JR
607%{_libdir}/%{name}/components/FeedConverter.js
608%{_libdir}/%{name}/components/FeedWriter.js
978e314f 609%{_libdir}/%{name}/components/messageWakeupService.js
8bed54aa 610%{_libdir}/%{name}/components/newMailNotificationService.js
978e314f 611%{_libdir}/%{name}/components/nsAbout.js
dae07f1c 612%{_libdir}/%{name}/components/nsBrowserContentHandler.js
978e314f 613%{_libdir}/%{name}/components/nsComposerCmdLineHandler.js
8bed54aa
JR
614%{_libdir}/%{name}/components/nsDOMIdentity.js
615%{_libdir}/%{name}/components/nsIDService.js
dae07f1c
JR
616%{_libdir}/%{name}/components/nsSessionStartup.js
617%{_libdir}/%{name}/components/nsSessionStore.js
a089ecfd 618%{_libdir}/%{name}/components/nsSetDefault.js
dae07f1c 619%{_libdir}/%{name}/components/nsSidebar.js
978e314f
JR
620%{_libdir}/%{name}/components/nsSuiteDownloadManagerUI.js
621%{_libdir}/%{name}/components/nsSuiteGlue.js
622%{_libdir}/%{name}/components/nsTypeAheadFind.js
623%{_libdir}/%{name}/components/nsUrlClassifierHashCompleter.js
624%{_libdir}/%{name}/components/nsUrlClassifierLib.js
625%{_libdir}/%{name}/components/nsUrlClassifierListManager.js
8bed54aa
JR
626%{_libdir}/%{name}/components/SettingsManager.js
627%{_libdir}/%{name}/components/SiteSpecificUserAgent.js
978e314f 628%{_libdir}/%{name}/components/smileApplication.js
8bed54aa 629%{_libdir}/%{name}/components/TCPSocket.js
a089ecfd 630%{_libdir}/%{name}/components/TCPSocketParentIntermediary.js
8bed54aa
JR
631%{_libdir}/%{name}/components/Weave.js
632%{_libdir}/%{name}/components/Webapps.js
633%{_libdir}/%{name}/components/WebContentConverter.js
dae07f1c 634
978e314f 635%{_libdir}/%{name}/components/browser.xpt
dae07f1c
JR
636%{_libdir}/%{name}/components/components.manifest
637%{_libdir}/%{name}/components/interfaces.manifest
638
978e314f
JR
639%attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so
640
dae07f1c
JR
641%if %{without xulrunner}
642%{_libdir}/%{name}/platform.ini
643%{_libdir}/%{name}/components/ConsoleAPI.js
644%{_libdir}/%{name}/components/FeedProcessor.js
645%{_libdir}/%{name}/components/GPSDGeolocationProvider.js
646%{_libdir}/%{name}/components/NetworkGeolocationProvider.js
647%{_libdir}/%{name}/components/PlacesCategoriesStarter.js
648%{_libdir}/%{name}/components/TelemetryPing.js
649%{_libdir}/%{name}/components/addonManager.js
650%{_libdir}/%{name}/components/amContentHandler.js
651%{_libdir}/%{name}/components/amWebInstallListener.js
652%{_libdir}/%{name}/components/contentAreaDropListener.js
653%{_libdir}/%{name}/components/contentSecurityPolicy.js
654%{_libdir}/%{name}/components/crypto-SDR.js
655%{_libdir}/%{name}/components/jsconsole-clhandler.js
656%{_libdir}/%{name}/components/nsBadCertHandler.js
657%{_libdir}/%{name}/components/nsBlocklistService.js
658%{_libdir}/%{name}/components/nsContentDispatchChooser.js
659%{_libdir}/%{name}/components/nsContentPrefService.js
660%{_libdir}/%{name}/components/nsDefaultCLH.js
661%{_libdir}/%{name}/components/nsFilePicker.js
662%{_libdir}/%{name}/components/nsFormAutoComplete.js
663%{_libdir}/%{name}/components/nsFormHistory.js
664%{_libdir}/%{name}/components/nsHandlerService.js
665%{_libdir}/%{name}/components/nsHelperAppDlg.js
666%{_libdir}/%{name}/components/nsINIProcessor.js
667%{_libdir}/%{name}/components/nsInputListAutoComplete.js
668%{_libdir}/%{name}/components/nsLivemarkService.js
669%{_libdir}/%{name}/components/nsLoginInfo.js
670%{_libdir}/%{name}/components/nsLoginManager.js
671%{_libdir}/%{name}/components/nsLoginManagerPrompter.js
672%{_libdir}/%{name}/components/nsPlacesAutoComplete.js
673%{_libdir}/%{name}/components/nsPlacesExpiration.js
674%{_libdir}/%{name}/components/nsPrompter.js
dae07f1c
JR
675%{_libdir}/%{name}/components/nsSearchService.js
676%{_libdir}/%{name}/components/nsSearchSuggestions.js
677%{_libdir}/%{name}/components/nsTaggingService.js
dae07f1c 678%{_libdir}/%{name}/components/nsUpdateTimerManager.js
978e314f 679%{_libdir}/%{name}/components/nsURLFormatter.js
dae07f1c
JR
680%{_libdir}/%{name}/components/nsWebHandlerApp.js
681%{_libdir}/%{name}/components/storage-Legacy.js
682%{_libdir}/%{name}/components/storage-mozStorage.js
683%{_libdir}/%{name}/components/txEXSLTRegExFunctions.js
dae07f1c 684%attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so
dae07f1c 685%attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so
dae07f1c
JR
686%attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
687%attr(755,root,root) %{_libdir}/%{name}/iceape-bin
688%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
689%attr(755,root,root) %{_libdir}/%{name}/plugin-container
690%endif
691
978e314f
JR
692%attr(755,root,root) %{_libdir}/%{name}/iceape
693%dir %{_libdir}/%{name}/plugins
694
dae07f1c
JR
695# symlinks
696%{_libdir}/%{name}/chrome
697%{_libdir}/%{name}/defaults
698%{_libdir}/%{name}/modules
699%{_libdir}/%{name}/searchplugins
700%if %{with xulrunner}
701%{_libdir}/%{name}/xulrunner
702%else
703%{_libdir}/%{name}/dictionaries
704%{_libdir}/%{name}/hyphenation
705%{_libdir}/%{name}/greprefs.js
706%{_libdir}/%{name}/res
707%endif
708
709%dir %{_datadir}/%{name}
710%{_datadir}/%{name}/chrome
711%{_datadir}/%{name}/defaults
712%{_datadir}/%{name}/modules
c4a50216
JR
713%if %{with enigmail}
714%exclude %{_datadir}/%{name}/modules/commonFuncs.jsm
715%exclude %{_datadir}/%{name}/modules/enigmailCommon.jsm
716%exclude %{_datadir}/%{name}/modules/keyManagement.jsm
717%exclude %{_datadir}/%{name}/modules/pipeConsole.jsm
c4a50216
JR
718%exclude %{_datadir}/%{name}/modules/subprocess.jsm
719%exclude %{_datadir}/%{name}/modules/subprocess_worker_unix.js
720%exclude %{_datadir}/%{name}/modules/subprocess_worker_win.js
721%endif
dae07f1c
JR
722%{_datadir}/%{name}/searchplugins
723%if %{without xulrunner}
724%{_datadir}/%{name}/greprefs.js
725%{_datadir}/%{name}/res
726%endif
1d0185d8 727
dae07f1c
JR
728%dir %{_datadir}/%{name}/extensions
729%dir %{_libdir}/%{name}/extensions
730# the signature of the default theme
731%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
732%{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
733
734# files created by iceape -register
735%ghost %{_libdir}/%{name}/components/compreg.dat
736%ghost %{_libdir}/%{name}/components/xpti.dat
737
738%{_libdir}/%{name}/components/glautocomp.js
739%{_libdir}/%{name}/components/jsmimeemitter.js
740%{_libdir}/%{name}/components/mail.xpt
741%{_libdir}/%{name}/components/mdn-service.js
742%{_libdir}/%{name}/components/msgAsyncPrompter.js
743%{_libdir}/%{name}/components/newsblog.js
744%{_libdir}/%{name}/components/nsAbAutoCompleteMyDomain.js
745%{_libdir}/%{name}/components/nsAbAutoCompleteSearch.js
746%{_libdir}/%{name}/components/nsAbLDAPAttributeMap.js
747%{_libdir}/%{name}/components/nsLDAPProtocolHandler.js
748%{_libdir}/%{name}/components/nsMailNewsCommandLineHandler.js
749%{_libdir}/%{name}/components/nsMsgTraitService.js
750%{_libdir}/%{name}/components/nsSMTPProtocolHandler.js
751%{_libdir}/%{name}/components/offlineStartup.js
752%{_libdir}/%{name}/components/smime-service.js
753
754%{_libdir}/%{name}/isp
755%dir %{_datadir}/%{name}/isp
756%{_datadir}/%{name}/isp/Bogofilter.sfd
757%{_datadir}/%{name}/isp/DSPAM.sfd
758%{_datadir}/%{name}/isp/POPFile.sfd
759%{_datadir}/%{name}/isp/SpamAssassin.sfd
760%{_datadir}/%{name}/isp/SpamPal.sfd
761%{_datadir}/%{name}/isp/movemail.rdf
762%{_datadir}/%{name}/isp/rss.rdf
1d0185d8 763
fcecc2a1
JR
764%{_iconsdir}/hicolor/*/apps/iceape.png
765%{_iconsdir}/hicolor/scalable/apps/iceape.svg
dae07f1c
JR
766%{_desktopdir}/%{name}.desktop
767%{_desktopdir}/%{name}-composer.desktop
1d0185d8 768%{_desktopdir}/%{name}-mail.desktop
769
dae07f1c
JR
770%if %{with lightning}
771%files addon-lightning
772%defattr(644,root,root,755)
773%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
774%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini
775%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome
776%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
777%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
778%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
779%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
780%attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
781%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
782%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest
783%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
784%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
785%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
786%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite
787%{_libdir}/%{name}/extensions/calendar-timezones@mozilla.org
788%endif
789
790%if %{with enigmail}
1d0185d8 791%files addon-enigmail
792%defattr(644,root,root,755)
dae07f1c
JR
793%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
794%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults
795%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome
796%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
797%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
798%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components
799%attr(755,root,root) %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.so
800%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.xpt
801%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.js
c4a50216
JR
802%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules
803%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/*.jsm
804%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/modules/*.js
dae07f1c 805%endif
1d0185d8 806
807%files chat
808%defattr(644,root,root,755)
dae07f1c 809%{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
1d0185d8 810%{_desktopdir}/%{name}-chat.desktop
811
812%files js-debugger
813%defattr(644,root,root,755)
dae07f1c 814%{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi
1d0185d8 815%{_desktopdir}/%{name}-venkman.desktop
816
817%files dom-inspector
818%defattr(644,root,root,755)
dae07f1c 819%{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi
This page took 0.23803 seconds and 4 git commands to generate.