]> git.pld-linux.org Git - packages/seamonkey.git/blame - seamonkey.spec
- updated to 2.26.1
[packages/seamonkey.git] / seamonkey.spec
CommitLineData
b19e17d8
JB
1#
2# Conditional build:
c7d608a7 3%bcond_with gtk3 # GTK+ 3.x instead of 2.x
7c87af2b
JR
4%bcond_without ldap # disable e-mail address lookups in LDAP directories
5%bcond_without lightning # disable Sunbird/Lightning calendar
c7d608a7 6%bcond_without kerberos # disable krb5 support
7235ee58 7%bcond_with xulrunner # build with system xulrunner (incomplete?)
c7d608a7 8%bcond_with crashreporter # report crashes to crash-stats.mozilla.com
bd8dbb8a 9%bcond_with tests # enable tests (whatever they check)
24441e9c 10
c7d608a7
JB
11%define nspr_ver 4.10.3
12%define nss_ver 3.16
13%define xulrunner_ver 29.0
24441e9c
JR
14
15%if %{without xulrunner}
16# The actual sqlite version (see RHBZ#480989):
17%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
18%endif
19
dc51aa63 20Summary: SeaMonkey Community Edition - web browser
fda067df
ER
21Summary(es.UTF-8): Navegador de Internet SeaMonkey Community Edition
22Summary(pl.UTF-8): SeaMonkey Community Edition - przeglądarka WWW
23Summary(pt_BR.UTF-8): Navegador SeaMonkey Community Edition
b19e17d8 24Name: seamonkey
7235ee58 25Version: 2.26.1
5d0f79b7 26Release: 1
c7d608a7 27License: MPL v2.0
b19e17d8 28Group: X11/Applications/Networking
16e155ba 29Source0: http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.bz2
7235ee58 30# Source0-md5: 4bfa46b370b4d211eef56b90277a9517
16e155ba
JB
31Source4: %{name}.desktop
32Source5: %{name}-composer.desktop
33Source6: %{name}-chat.desktop
34Source7: %{name}-mail.desktop
35Source8: %{name}-venkman.desktop
36Source9: %{name}.sh
37Patch1: %{name}-pld-branding.patch
38Patch2: %{name}-agent.patch
c7d608a7 39Patch3: %{name}-enable-addons.patch
16e155ba
JB
40Patch4: system-mozldap.patch
41Patch5: makefile.patch
c7d608a7 42Patch6: %{name}-pixman.patch
16e155ba
JB
43# Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade
44Patch7: %{name}-system-virtualenv.patch
16e155ba 45Patch9: %{name}-system-xulrunner.patch
7bb99b6b 46URL: http://www.seamonkey-project.org/
bd8dbb8a 47BuildRequires: GConf2-devel >= 1.2.1
7c87af2b
JR
48BuildRequires: OpenGL-devel
49BuildRequires: alsa-lib-devel
b19e17d8 50BuildRequires: automake
7c87af2b
JR
51BuildRequires: bzip2-devel
52BuildRequires: cairo-devel >= 1.10.2-5
53BuildRequires: dbus-glib-devel >= 0.60
b19e17d8 54BuildRequires: freetype-devel >= 1:2.1.8
c7d608a7
JB
55BuildRequires: glib2-devel >= 1:2.20
56%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18}
57%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
7c87af2b
JR
58%{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
59BuildRequires: hunspell-devel
98fe5fb0 60BuildRequires: libIDL-devel >= 0.8.0
7c87af2b
JR
61BuildRequires: libdnet-devel
62BuildRequires: libevent-devel >= 1.4.7
bd8dbb8a
JR
63# standalone libffi 3.0.9 or gcc's from 4.5(?)+
64BuildRequires: libffi-devel >= 6:3.0.9
c7d608a7 65BuildRequires: libicu-devel >= 50.1
16e155ba 66# requires libjpeg-turbo implementing at least libjpeg 6b API
b19e17d8 67BuildRequires: libjpeg-devel >= 6b
16e155ba 68BuildRequires: libjpeg-turbo-devel
7c87af2b
JR
69BuildRequires: libnotify-devel >= 0.4
70BuildRequires: libpng(APNG)-devel >= 0.10
c7d608a7 71BuildRequires: libpng-devel >= 2:1.6.7
b19e17d8 72BuildRequires: libstdc++-devel
c7d608a7
JB
73BuildRequires: libvpx-devel >= 1.3.0
74BuildRequires: mozldap-devel
7c87af2b
JR
75BuildRequires: nspr-devel >= 1:%{nspr_ver}
76BuildRequires: nss-devel >= 1:%{nss_ver}
77BuildRequires: pango-devel >= 1:1.14.0
bd8dbb8a 78BuildRequires: perl-base >= 1:5.6
7c87af2b 79BuildRequires: perl-modules >= 5.004
b19e17d8 80BuildRequires: pkgconfig
7c87af2b
JR
81BuildRequires: python >= 1:2.5
82BuildRequires: python-modules
16e155ba 83BuildRequires: python-virtualenv
c1527db1 84BuildRequires: rpm >= 4.4.9-56
7c87af2b 85BuildRequires: rpmbuild(macros) >= 1.601
b19e17d8 86BuildRequires: sed >= 4.0
c7d608a7 87BuildRequires: sqlite3-devel >= 3.8.2
7c87af2b 88BuildRequires: startup-notification-devel >= 0.8
c7d608a7 89BuildRequires: xorg-lib-libX11-devel
7c87af2b 90BuildRequires: xorg-lib-libXScrnSaver-devel
f5fed05a 91BuildRequires: xorg-lib-libXext-devel
f5fed05a 92BuildRequires: xorg-lib-libXinerama-devel
f5fed05a 93BuildRequires: xorg-lib-libXt-devel
7c87af2b
JR
94%if %{with xulrunner}
95BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver}
c7d608a7 96BuildRequires: xulrunner-devel < 2:30
7c87af2b 97%endif
bd8dbb8a 98BuildRequires: yasm
7c87af2b 99BuildRequires: zip
510dc0c3 100BuildRequires: zlib-devel >= 1.2.3
7c87af2b
JR
101Requires(post): mktemp >= 1.5-18
102Requires: desktop-file-utils
103Requires: hicolor-icon-theme
104%if %{with xulrunner}
105%requires_eq_to xulrunner xulrunner-devel
106%else
6d3a5031 107Requires: browser-plugins >= 2.0
7c87af2b
JR
108Requires: cairo >= 1.10.2-5
109Requires: dbus-glib >= 0.60
c7d608a7
JB
110Requires: glib2 >= 1:2.20
111%{!?with_gtk3:Requires: gtk+2 >= 2:2.18}
112%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
16e155ba 113Requires: libjpeg-turbo
c7d608a7 114Requires: libpng >= 2:1.6.7
7c87af2b 115Requires: libpng(APNG) >= 0.10
c7d608a7 116Requires: libvpx >= 1.3.0
7c87af2b
JR
117Requires: myspell-common
118Requires: nspr >= 1:%{nspr_ver}
119Requires: nss >= 1:%{nss_ver}
120Requires: pango >= 1:1.14.0
121Requires: sqlite3 >= %{sqlite_build_version}
122Requires: startup-notification >= 0.8
123%endif
488e9642 124Provides: seamonkey-embedded = %{version}-%{release}
b19e17d8
JB
125Provides: wwwbrowser
126Obsoletes: light
f27b291c 127Obsoletes: mozilla
5d0f79b7 128Obsoletes: mozilla-gnomevfs
68683ec1 129Obsoletes: seamonkey-calendar
d6a799e8 130Obsoletes: seamonkey-libs
2607f7aa 131Obsoletes: seamonkey-mailnews
5d0f79b7 132Obsoletes: seamonkey-gnomevfs
16e155ba 133Conflicts: seamonkey-lang-resources < %{version}
b19e17d8
JB
134BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
135
bd8dbb8a
JR
136%define topdir %{_builddir}/%{name}-%{version}
137%define objdir %{topdir}/obj-%{_target_cpu}
138
139%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
7c87af2b
JR
140
141# don't satisfy other packages
142%define _noautoprovfiles %{_libdir}/%{name}
92482a22 143# and as we don't provide them, don't require either
7c87af2b
JR
144%define _noautoreq libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so}
145%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so
92482a22 146
b19e17d8 147%description
dc51aa63
ER
148SeaMonkey Community Edition is an open-source web browser, designed
149for standards compliance, performance and portability.
b19e17d8 150
97d18aeb 151%description -l es.UTF-8
dc51aa63 152SeaMonkey Community Edition es un navegador de Internet que se basa en
97d18aeb 153una versión inicial de Netscape Communicator.
b19e17d8 154
97d18aeb
JR
155%description -l pl.UTF-8
156SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW,
157która jest następcą Mozilli, która następnie była następczynią
dc51aa63 158Netscape Communikatora.
b19e17d8 159
97d18aeb
JR
160%description -l pt_BR.UTF-8
161O SeaMonkey Community Edition é um web browser baseado numa versão
dc51aa63 162inicial do Netscape Communicator.
b19e17d8 163
97d18aeb
JR
164%description -l ru.UTF-8
165SeaMonkey Community Edition - полнофункциональный web-browser с
166открытыми исходными текстами, разработанный для максимального
167соотвествия стандартам, максмимальной переносимости и скорости работы
b19e17d8 168
2607f7aa
JR
169%package addon-lightning
170Summary: An integrated calendar for SeaMonkey
171Summary(pl.UTF-8): Zintegrowany kalendarz dla SeaMonkey
172License: MPL 1.1 or GPL v2+ or LGPL v2.1+
173Group: Applications/Networking
488e9642 174Requires: %{name} = %{version}-%{release}
3745e5ab 175
2607f7aa
JR
176%description addon-lightning
177Lightning is an calendar extension to Icedove email client.
b19e17d8 178
2607f7aa
JR
179%description addon-lightning -l pl.UTF-8
180Lightning to rozszerzenie do klienta poczty Icedove dodające
181funkcjonalność kalendarza.
b19e17d8
JB
182
183%package chat
dc51aa63 184Summary: SeaMonkey Community Edition Chat - integrated IRC client
fda067df 185Summary(pl.UTF-8): SeaMonkey Community Edition Chat - zintegrowany klient IRC-a
b19e17d8 186Group: X11/Applications/Networking
488e9642
JB
187Requires(post,postun): %{name} = %{version}-%{release}
188Requires: %{name} = %{version}-%{release}
f27b291c 189Obsoletes: mozilla-chat
b19e17d8
JB
190
191%description chat
dc51aa63
ER
192SeaMonkey Community Edition Chat - IRC client that is integrated with
193the SeaMonkey Community Edition web browser.
b19e17d8 194
97d18aeb 195%description chat -l pl.UTF-8
dc51aa63 196SeaMonkey Community Edition Chat - klient IRC-a zintegrowany z
97d18aeb 197przeglądarką SeaMonkey Community Edition.
b19e17d8
JB
198
199%package js-debugger
dc51aa63 200Summary: JavaScript debugger for use with SeaMonkey Community Edition
fda067df 201Summary(pl.UTF-8): Odpluskwiacz JavaScriptu do używania z SeaMonkey Community Edition
b19e17d8 202Group: X11/Applications/Networking
488e9642
JB
203Requires(post,postun): %{name} = %{version}-%{release}
204Requires: %{name} = %{version}-%{release}
f27b291c 205Obsoletes: mozilla-js-debugger
b19e17d8
JB
206
207%description js-debugger
dc51aa63 208JavaScript debugger for use with SeaMonkey Community Edition.
b19e17d8 209
97d18aeb
JR
210%description js-debugger -l pl.UTF-8
211Odpluskwiacz JavaScriptu do używania z SeaMonkey Community Edition.
b19e17d8
JB
212
213%package dom-inspector
dc51aa63 214Summary: A tool for inspecting the DOM of pages in SeaMonkey Community Edition
fda067df 215Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w SeaMonkey Community Edition
b19e17d8 216Group: X11/Applications/Networking
488e9642
JB
217Requires(post,postun): %{name} = %{version}-%{release}
218Requires: %{name} = %{version}-%{release}
f27b291c 219Obsoletes: mozilla-dom-inspector
b19e17d8
JB
220
221%description dom-inspector
222This is a tool that allows you to inspect the DOM for web pages in
dc51aa63
ER
223SeaMonkey Community Edition. This is of great use to people who are
224doing SeaMonkey Community Edition chrome development or web page
225development.
b19e17d8 226
97d18aeb
JR
227%description dom-inspector -l pl.UTF-8
228To narzędzie pozwala na oglądanie DOM dla stron WWW w SeaMonkey
229Community Edition. Jest bardzo przydatne dla ludzi rozwijających
230chrome w SeaMonkey Community Edition lub tworzących strony WWW.
b19e17d8 231
b19e17d8 232%prep
dc51aa63 233%setup -qc
bd8dbb8a 234cd comm-release
bd8dbb8a
JR
235%patch1 -p1
236%patch2 -p1
c7d608a7 237%patch3 -p2
bd8dbb8a 238%patch4 -p1
2f09c133 239%patch5 -p1
16e155ba 240%patch6 -p1
c7d608a7 241%patch7 -p1
16e155ba 242%patch9 -p2
bd8dbb8a
JR
243
244%build
245cd comm-release
246%if %{with xulrunner}
247if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then
248 echo >&2
249 echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!"
250 echo >&2
251 exit 1
252fi
253%endif
254
255cp -f %{_datadir}/automake/config.* build/autoconf
256cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
257cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
258cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
259
260cat << EOF > .mozconfig
261mk_add_options MOZ_OBJDIR=%{objdir}
262
263export CFLAGS="%{rpmcflags}"
264export CXXFLAGS="%{rpmcflags}"
265
266%if %{with crashreporter}
267export MOZ_DEBUG_SYMBOLS=1
268%endif
269
270# Options for 'configure' (same as command-line options).
271ac_add_options --prefix=%{_prefix}
272ac_add_options --exec-prefix=%{_exec_prefix}
273ac_add_options --bindir=%{_bindir}
274ac_add_options --sbindir=%{_sbindir}
275ac_add_options --sysconfdir=%{_sysconfdir}
276ac_add_options --datadir=%{_datadir}
277ac_add_options --includedir=%{_includedir}
278ac_add_options --libdir=%{_libdir}
279ac_add_options --libexecdir=%{_libexecdir}
280ac_add_options --localstatedir=%{_localstatedir}
281ac_add_options --sharedstatedir=%{_sharedstatedir}
282ac_add_options --mandir=%{_mandir}
283ac_add_options --infodir=%{_infodir}
bd8dbb8a
JR
284%if %{?debug:1}0
285ac_add_options --disable-optimize
286ac_add_options --enable-debug
287ac_add_options --enable-debug-modules
288ac_add_options --enable-debugger-info-modules
289ac_add_options --enable-crash-on-assert
c1527db1 290%else
bd8dbb8a
JR
291ac_add_options --disable-debug
292ac_add_options --disable-debug-modules
293ac_add_options --disable-logging
294ac_add_options --enable-optimize="%{rpmcflags} -Os"
c1527db1 295%endif
bd8dbb8a
JR
296ac_add_options --disable-strip
297ac_add_options --disable-strip-libs
298%if %{with tests}
299ac_add_options --enable-tests
300%else
301ac_add_options --disable-tests
302%endif
c7d608a7
JB
303%if %{with lightning}
304ac_add_options --enable-calendar
bd8dbb8a 305%else
c7d608a7 306ac_add_options --disable-calendar
bd8dbb8a
JR
307%endif
308%if %{with crashreporter}
309ac_add_options --enable-crashreporter
310%else
311ac_add_options --disable-crashreporter
312%endif
c7d608a7
JB
313ac_add_options --disable-elf-dynstr-gc
314ac_add_options --disable-gnomeui
315ac_add_options --disable-gnomevfs
bd8dbb8a
JR
316ac_add_options --disable-installer
317ac_add_options --disable-javaxpcom
318ac_add_options --disable-updater
c7d608a7
JB
319ac_add_options --disable-xterm-updates
320ac_add_options --enable-application=suite
bd8dbb8a 321ac_add_options --enable-crypto
c7d608a7
JB
322ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2}
323ac_add_options --enable-gio
324%if %{with ldap}
325ac_add_options --enable-ldap
326ac_add_options --with-system-ldap
327%else
328ac_add_options --disable-ldap
329%endif
bd8dbb8a
JR
330ac_add_options --enable-libxul
331ac_add_options --enable-pango
c7d608a7 332ac_add_options --enable-postscript
afff7879 333ac_add_options --enable-shared-js
bd8dbb8a 334ac_add_options --enable-startup-notification
bd8dbb8a
JR
335ac_add_options --enable-system-cairo
336ac_add_options --enable-system-hunspell
337ac_add_options --enable-system-sqlite
c7d608a7 338ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
bd8dbb8a 339ac_add_options --with-distribution-id=org.pld-linux
2607f7aa 340%if %{with xulrunner}
bd8dbb8a 341ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
c7d608a7 342ac_add_options --with-system-libxul
bd8dbb8a
JR
343%endif
344ac_add_options --with-pthreads
345ac_add_options --with-system-bz2
346ac_add_options --with-system-ffi
347ac_add_options --with-system-jpeg
348ac_add_options --with-system-libevent
349ac_add_options --with-system-libvpx
350ac_add_options --with-system-nspr
351ac_add_options --with-system-nss
352ac_add_options --with-system-png
353ac_add_options --with-system-zlib
bd8dbb8a 354EOF
b19e17d8 355
bd8dbb8a
JR
356%{__make} -j1 -f client.mk build \
357 STRIP="/bin/true" \
358 MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
2607f7aa 359 installdir=%{_libdir}/%{name} \
16e155ba 360 XLIBS="-lX11 -lXt" \
bd8dbb8a
JR
361 CC="%{__cc}" \
362 CXX="%{__cxx}"
b19e17d8 363
bd8dbb8a
JR
364%if %{with crashreporter}
365# create debuginfo for crash-stats.mozilla.com
366%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
367%endif
368
b19e17d8
JB
369%install
370rm -rf $RPM_BUILD_ROOT
bd8dbb8a 371cd comm-release
b19e17d8 372install -d \
2607f7aa 373 $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
b19e17d8 374 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
bd8dbb8a 375 $RPM_BUILD_ROOT%{_datadir}/%{name} \
d7cc109a 376 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
b19e17d8 377
bd8dbb8a 378%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
b19e17d8 379
d7cc109a 380cd %{objdir}
c7d608a7 381cwd=`pwd`
2607f7aa 382%{__make} -C suite/installer stage-package \
c7d608a7 383 LD_LIBRARY_PATH=$cwd/mozilla/dist/lib \
bd8dbb8a 384 DESTDIR=$RPM_BUILD_ROOT \
bd8dbb8a 385 installdir=%{_libdir}/%{name} \
2607f7aa
JR
386 PKG_SKIP_STRIP=1
387
388cp -a mozilla/dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
b19e17d8 389
bd8dbb8a
JR
390%if %{with xulrunner}
391# >= 5.0 seems to require this
392ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
393%endif
b19e17d8 394
d7cc109a
JR
395# Enable crash reporter for Thunderbird application
396%if %{with crashreporter}
397%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
398
399# Add debuginfo for crash-stats.mozilla.com
400install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
401cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
402%endif
403
404# copy manually lightning files, somewhy they are not installed by make
c7d608a7 405cp -a mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
d7cc109a 406 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
c7d608a7 407
bd8dbb8a
JR
408# move arch independant ones to datadir
409mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
410mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
bd8dbb8a 411mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
b19e17d8 412
bd8dbb8a
JR
413ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
414ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
bd8dbb8a 415ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
c7d608a7 416
2607f7aa 417%if %{without xulrunner}
c7d608a7 418mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
eebfc2d2 419ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
2607f7aa
JR
420%endif
421
422mv $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/* \
423 $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/
bd8dbb8a 424
d7cc109a
JR
425# dir for arch independant extensions besides arch dependant extensions
426# see mozilla/xpcom/build/nsXULAppAPI.h
427# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
428install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
429
bd8dbb8a
JR
430%if %{without xulrunner}
431%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
432ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
433%endif
b19e17d8 434
16e155ba 435sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey
bd8dbb8a 436chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey
b19e17d8 437
16e155ba 438install %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \
824eb755 439 $RPM_BUILD_ROOT%{_desktopdir}
b19e17d8 440
d7cc109a 441cp -p %{topdir}/comm-release/suite/branding/nightly/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
b19e17d8 442
2607f7aa 443# files created by seamonkey -register
d7cc109a
JR
444touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
445touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
b19e17d8 446
d7cc109a 447cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
b19e17d8
JB
448#!/bin/sh
449umask 022
d7cc109a
JR
450rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
451
452# it attempts to touch files in $HOME/.mozilla
453# beware if you run this with sudo!!!
454export HOME=$(mktemp -d)
455# also TMPDIR could be pointing to sudo user's homedir
456unset TMPDIR TMP || :
acf8815d 457
d7cc109a 458%{_libdir}/%{name}/seamonkey -register
acf8815d 459
d7cc109a 460rm -rf $HOME
b19e17d8 461EOF
d7cc109a 462chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
b19e17d8 463
c7d608a7 464%if %{without xulrunner}
d7cc109a 465# never package these. always remove
d7cc109a 466# mozldap
c7d608a7
JB
467%{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
468%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so
469%endif
6d3a5031 470
b19e17d8
JB
471%clean
472rm -rf $RPM_BUILD_ROOT
473
6d3a5031 474%post
d7cc109a 475%{_libdir}/%{name}/register || :
6d3a5031 476%update_browser_plugins
d7cc109a 477%update_desktop_database
6d3a5031
ER
478
479%postun
6d3a5031
ER
480if [ "$1" = 0 ]; then
481 %update_browser_plugins
482fi
b19e17d8 483
b19e17d8
JB
484%files
485%defattr(644,root,root,755)
acf8815d 486%attr(755,root,root) %{_bindir}/seamonkey
b19e17d8 487
6d3a5031
ER
488# browser plugins v2
489%{_browserpluginsconfdir}/browsers.d/%{name}.*
490%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
491
d7cc109a 492%dir %{_libdir}/%{name}
2607f7aa
JR
493%if %{without xulrunner}
494%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
d7cc109a 495%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so
2607f7aa
JR
496%attr(755,root,root) %{_libdir}/%{name}/libxul.so
497%endif
d7cc109a 498
2607f7aa 499%{_libdir}/%{name}/blocklist.xml
c7d608a7 500%{_libdir}/%{name}/omni.ja
2607f7aa 501%attr(755,root,root) %{_libdir}/%{name}/register
d7cc109a 502
2607f7aa
JR
503%if %{with crashreporter}
504%{_libdir}/%{name}/crashreporter
505%{_libdir}/%{name}/crashreporter-override.ini
506%{_libdir}/%{name}/crashreporter.ini
507%{_libdir}/%{name}/Throbber-small.gif
508%endif
509
510# config?
511%{_libdir}/%{name}/application.ini
512%{_libdir}/%{name}/chrome.manifest
513
514%dir %{_libdir}/%{name}/components
2607f7aa 515%{_libdir}/%{name}/components/components.manifest
16e155ba
JB
516%attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so
517
2607f7aa 518%if %{without xulrunner}
16e155ba 519%{_libdir}/%{name}/dependentlibs.list
2607f7aa 520%{_libdir}/%{name}/platform.ini
2607f7aa 521%attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so
2607f7aa 522%attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so
2607f7aa
JR
523%attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
524%attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin
525%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
526%attr(755,root,root) %{_libdir}/%{name}/plugin-container
527%endif
528
16e155ba
JB
529%attr(755,root,root) %{_libdir}/%{name}/seamonkey
530%dir %{_libdir}/%{name}/plugins
531
2607f7aa
JR
532# symlinks
533%{_libdir}/%{name}/chrome
534%{_libdir}/%{name}/defaults
2607f7aa
JR
535%{_libdir}/%{name}/searchplugins
536%if %{with xulrunner}
537%{_libdir}/%{name}/xulrunner
538%else
539%{_libdir}/%{name}/dictionaries
2607f7aa 540%endif
b19e17d8 541
2607f7aa
JR
542%dir %{_datadir}/%{name}
543%{_datadir}/%{name}/chrome
b19e17d8 544%{_datadir}/%{name}/defaults
b19e17d8 545%{_datadir}/%{name}/searchplugins
b19e17d8 546
2607f7aa
JR
547%dir %{_datadir}/%{name}/extensions
548%dir %{_libdir}/%{name}/extensions
549# the signature of the default theme
550%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
551%{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
b19e17d8 552
2607f7aa
JR
553# files created by seamonkey -register
554%ghost %{_libdir}/%{name}/components/compreg.dat
555%ghost %{_libdir}/%{name}/components/xpti.dat
d7cc109a 556
eebfc2d2 557%if %{without xulrunner}
2607f7aa
JR
558%{_libdir}/%{name}/isp
559%dir %{_datadir}/%{name}/isp
560%{_datadir}/%{name}/isp/Bogofilter.sfd
561%{_datadir}/%{name}/isp/DSPAM.sfd
562%{_datadir}/%{name}/isp/POPFile.sfd
563%{_datadir}/%{name}/isp/SpamAssassin.sfd
564%{_datadir}/%{name}/isp/SpamPal.sfd
565%{_datadir}/%{name}/isp/movemail.rdf
566%{_datadir}/%{name}/isp/rss.rdf
eebfc2d2 567%endif
b19e17d8 568
2607f7aa
JR
569%{_pixmapsdir}/seamonkey.png
570%{_desktopdir}/%{name}.desktop
571%{_desktopdir}/%{name}-composer.desktop
824eb755 572%{_desktopdir}/%{name}-mail.desktop
b19e17d8 573
2607f7aa
JR
574%if %{with lightning}
575%files addon-lightning
576%defattr(644,root,root,755)
577%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
578%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini
579%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome
580%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
581%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
582%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
583%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
584%attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
585%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
586%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest
587%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
588%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
589%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
590%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite
2607f7aa
JR
591%endif
592
b19e17d8
JB
593%files chat
594%defattr(644,root,root,755)
2607f7aa 595%{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
824eb755 596%{_desktopdir}/%{name}-chat.desktop
b19e17d8
JB
597
598%files js-debugger
599%defattr(644,root,root,755)
2607f7aa 600%{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi
824eb755 601%{_desktopdir}/%{name}-venkman.desktop
b19e17d8
JB
602
603%files dom-inspector
604%defattr(644,root,root,755)
2607f7aa 605%{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi
This page took 0.36601 seconds and 4 git commands to generate.