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