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