]> git.pld-linux.org Git - packages/seamonkey.git/blob - seamonkey.spec
- updated install and post scriptlets
[packages/seamonkey.git] / seamonkey.spec
1 #
2 # Conditional build:
3 %bcond_without  enigmail        # don't build enigmail - GPG/PGP support
4 %bcond_without  gnomeui         # disable gnomeui support
5 %bcond_without  gnome           # disable gnomeui (alias)
6 %bcond_without  ldap            # disable e-mail address lookups in LDAP directories
7 %bcond_without  lightning       # disable Sunbird/Lightning calendar
8 %bcond_with     xulrunner       # build with system xulrunner
9 %bcond_with     tests           # enable tests (whatever they check)
10 %bcond_without  kerberos        # disable krb5 support
11
12 %if %{without gnome}
13 %undefine       with_gnomeui
14 %endif
15
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
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
26 Summary:        SeaMonkey Community Edition - web browser
27 Summary(es.UTF-8):      Navegador de Internet SeaMonkey Community Edition
28 Summary(pl.UTF-8):      SeaMonkey Community Edition - przeglądarka WWW
29 Summary(pt_BR.UTF-8):   Navegador SeaMonkey Community Edition
30 Name:           seamonkey
31 Version:        2.9.1
32 Release:        0.1
33 License:        MPL 1.1 or GPL v2+ or LGPL v2.1+
34 Group:          X11/Applications/Networking
35 Source0:        ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.bz2
36 # Source0-md5:  8dd18d93a6570c3c9f3873bb177ccc6b
37 Source1:        http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
38 # Source1-md5:  0eba75fbcf8f0bb32d538df102fbb8e9
39 Source2:        %{name}.desktop
40 Source3:        %{name}-composer.desktop
41 Source4:        %{name}-chat.desktop
42 Source5:        %{name}-mail.desktop
43 Source6:        %{name}-venkman.desktop
44 Source7:        %{name}.sh
45 Patch0:         %{name}-pld-homepage.patch
46 Patch1:         %{name}-agent.patch
47 Patch2:         %{name}-glueload-fix.patch
48 Patch3:         system-mozldap.patch
49 Patch4:         makefile.patch
50 Patch5:         system-cairo.patch
51 URL:            http://www.seamonkey-project.org/
52 BuildRequires:  GConf2-devel >= 1.2.1
53 BuildRequires:  OpenGL-devel
54 BuildRequires:  alsa-lib-devel
55 BuildRequires:  automake
56 BuildRequires:  bzip2-devel
57 BuildRequires:  cairo-devel >= 1.10.2-5
58 BuildRequires:  dbus-glib-devel >= 0.60
59 BuildRequires:  freetype-devel >= 1:2.1.8
60 BuildRequires:  glib2-devel >= 1:2.18
61 BuildRequires:  gtk+2-devel >= 2:2.10
62 %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1}
63 BuildRequires:  hunspell-devel
64 BuildRequires:  libIDL-devel >= 0.8.0
65 BuildRequires:  libdnet-devel
66 BuildRequires:  libevent-devel >= 1.4.7
67 # standalone libffi 3.0.9 or gcc's from 4.5(?)+
68 BuildRequires:  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}
72 BuildRequires:  libiw-devel
73 BuildRequires:  libjpeg-devel >= 6b
74 BuildRequires:  libnotify-devel >= 0.4
75 BuildRequires:  libpng(APNG)-devel >= 0.10
76 BuildRequires:  libpng-devel >= 1.4.1
77 BuildRequires:  libstdc++-devel
78 BuildRequires:  libvpx-devel
79 BuildRequires:  nspr-devel >= 1:%{nspr_ver}
80 BuildRequires:  nss-devel >= 1:%{nss_ver}
81 BuildRequires:  pango-devel >= 1:1.14.0
82 BuildRequires:  perl-base >= 1:5.6
83 BuildRequires:  perl-modules >= 5.004
84 BuildRequires:  pkgconfig
85 BuildRequires:  python >= 1:2.5
86 BuildRequires:  python-modules
87 BuildRequires:  rpm >= 4.4.9-56
88 BuildRequires:  rpmbuild(macros) >= 1.601
89 BuildRequires:  sed >= 4.0
90 BuildRequires:  sqlite3-devel >= 3.7.10
91 BuildRequires:  startup-notification-devel >= 0.8
92 BuildRequires:  xorg-lib-libXScrnSaver-devel
93 BuildRequires:  xorg-lib-libXext-devel
94 BuildRequires:  xorg-lib-libXinerama-devel
95 BuildRequires:  xorg-lib-libXt-devel
96 %if %{with xulrunner}
97 BuildRequires:  xulrunner-devel >= 2:%{xulrunner_ver}
98 %endif
99 BuildRequires:  yasm
100 BuildRequires:  zip
101 BuildRequires:  zlib-devel >= 1.2.3
102 Requires(post): mktemp >= 1.5-18
103 Requires:       desktop-file-utils
104 Requires:       hicolor-icon-theme
105 %if %{with xulrunner}
106 %requires_eq_to xulrunner xulrunner-devel
107 %else
108 Requires:       browser-plugins >= 2.0
109 Requires:       cairo >= 1.10.2-5
110 Requires:       dbus-glib >= 0.60
111 Requires:       gtk+2 >= 2:2.18
112 Requires:       libpng >= 1.4.1
113 Requires:       libpng(APNG) >= 0.10
114 Requires:       myspell-common
115 Requires:       nspr >= 1:%{nspr_ver}
116 Requires:       nss >= 1:%{nss_ver}
117 Requires:       pango >= 1:1.14.0
118 Requires:       sqlite3 >= %{sqlite_build_version}
119 Requires:       startup-notification >= 0.8
120 %endif
121 Provides:       seamonkey-embedded = %{version}-%{release}
122 Provides:       wwwbrowser
123 Obsoletes:      light
124 Obsoletes:      mozilla
125 Obsoletes:      seamonkey-calendar
126 Obsoletes:      seamonkey-libs
127 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
128
129 %define         topdir          %{_builddir}/%{name}-%{version}
130 %define         objdir          %{topdir}/obj-%{_target_cpu}
131
132 %define         filterout_cpp   -D_FORTIFY_SOURCE=[0-9]+
133
134 # don't satisfy other packages
135 %define         _noautoprovfiles        %{_libdir}/%{name}
136 # and as we don't provide them, don't require either
137 %define         _noautoreq      libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so}
138 %define         _noautoreqdep   libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so
139
140 %description
141 SeaMonkey Community Edition is an open-source web browser, designed
142 for standards compliance, performance and portability.
143
144 %description -l es.UTF-8
145 SeaMonkey Community Edition es un navegador de Internet que se basa en
146 una versión inicial de Netscape Communicator.
147
148 %description -l pl.UTF-8
149 SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW,
150 która jest następcą Mozilli, która następnie była następczynią
151 Netscape Communikatora.
152
153 %description -l pt_BR.UTF-8
154 O SeaMonkey Community Edition é um web browser baseado numa versão
155 inicial do Netscape Communicator.
156
157 %description -l ru.UTF-8
158 SeaMonkey Community Edition - полнофункциональный web-browser с
159 открытыми исходными текстами, разработанный для максимального
160 соотвествия стандартам, максмимальной переносимости и скорости работы
161
162 %package mailnews
163 Summary:        SeaMonkey Community Edition - programs for mail and news
164 Summary(pl.UTF-8):      SeaMonkey Community Edition - programy do poczty i newsów
165 Summary(ru.UTF-8):      Почтовая система на основе SeaMonkey Community Edition
166 Group:          X11/Applications/Networking
167 Requires(post,postun):  %{name} = %{version}-%{release}
168 Requires:       %{name} = %{version}-%{release}
169 Obsoletes:      mozilla-mailnews
170
171 %description mailnews
172 Programs for mail and news integrated with browser.
173
174 %description mailnews -l pl.UTF-8
175 Programy pocztowe i obsługa newsów zintegrowane z przeglądarką.
176
177 %description mailnews -l ru.UTF-8
178 Клиент почты и новостей, на основе SeaMonkey Community Edition.
179 Поддерживает IMAP, POP и NNTP и имеет простой интерфейс пользователя.
180
181 %package addon-enigmail
182 Summary:        Enigmail %{enigmail_ver} - PGP/GPG support for SeaMonkey Community Edition
183 Summary(pl.UTF-8):      Enigmail %{enigmail_ver} - obsługa PGP/GPG dla SeaMonkey Community Edition
184 Group:          X11/Applications/Networking
185 Requires(post,postun):  %{name}-mailnews = %{version}-%{release}
186 Requires:       %{name}-mailnews = %{version}-%{release}
187 Requires:       gnupg >= 1.4.2.2
188
189 %description addon-enigmail
190 Enigmail is an extension to the mail client of SeaMonkey / Mozilla /
191 Netscape and Mozilla Thunderbird which allows users to access the
192 authentication and encryption features provided by GnuPG.
193
194 %description addon-enigmail -l pl.UTF-8
195 Enigmail jest rozszerzeniem dla klienta pocztowego SeaMonkey, Mozilla
196 i Mozilla Thunderdbird pozwalającym użytkownikowi korzystać z
197 funkcjonalności GnuPG.
198
199 %package chat
200 Summary:        SeaMonkey Community Edition Chat - integrated IRC client
201 Summary(pl.UTF-8):      SeaMonkey Community Edition Chat - zintegrowany klient IRC-a
202 Group:          X11/Applications/Networking
203 Requires(post,postun):  %{name} = %{version}-%{release}
204 Requires:       %{name} = %{version}-%{release}
205 Obsoletes:      mozilla-chat
206
207 %description chat
208 SeaMonkey Community Edition Chat - IRC client that is integrated with
209 the SeaMonkey Community Edition web browser.
210
211 %description chat -l pl.UTF-8
212 SeaMonkey Community Edition Chat - klient IRC-a zintegrowany z
213 przeglądarką SeaMonkey Community Edition.
214
215 %package js-debugger
216 Summary:        JavaScript debugger for use with SeaMonkey Community Edition
217 Summary(pl.UTF-8):      Odpluskwiacz JavaScriptu do używania z SeaMonkey Community Edition
218 Group:          X11/Applications/Networking
219 Requires(post,postun):  %{name} = %{version}-%{release}
220 Requires:       %{name} = %{version}-%{release}
221 Obsoletes:      mozilla-js-debugger
222
223 %description js-debugger
224 JavaScript debugger for use with SeaMonkey Community Edition.
225
226 %description js-debugger -l pl.UTF-8
227 Odpluskwiacz JavaScriptu do używania z SeaMonkey Community Edition.
228
229 %package dom-inspector
230 Summary:        A tool for inspecting the DOM of pages in SeaMonkey Community Edition
231 Summary(pl.UTF-8):      Narzędzie do oglądania DOM stron w SeaMonkey Community Edition
232 Group:          X11/Applications/Networking
233 Requires(post,postun):  %{name} = %{version}-%{release}
234 Requires:       %{name} = %{version}-%{release}
235 Obsoletes:      mozilla-dom-inspector
236
237 %description dom-inspector
238 This is a tool that allows you to inspect the DOM for web pages in
239 SeaMonkey Community Edition. This is of great use to people who are
240 doing SeaMonkey Community Edition chrome development or web page
241 development.
242
243 %description dom-inspector -l pl.UTF-8
244 To narzędzie pozwala na oglądanie DOM dla stron WWW w SeaMonkey
245 Community Edition. Jest bardzo przydatne dla ludzi rozwijających
246 chrome w SeaMonkey Community Edition lub tworzących strony WWW.
247
248 %prep
249 %setup -qc
250 cd comm-release
251 tar -C mailnews/extensions -zxf %{SOURCE1}
252 #patch0 -p1
253 %patch1 -p1
254 %patch2 -p1
255 %patch3 -p1
256 %patch4 -p1
257 %patch5 -p1
258
259 %build
260 cd comm-release
261 %if %{with xulrunner}
262 if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then
263         echo >&2
264         echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!"
265         echo >&2
266         exit 1
267 fi
268 %endif
269
270 cp -f %{_datadir}/automake/config.* build/autoconf
271 cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
272 cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
273 cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
274
275 cat << EOF > .mozconfig
276 mk_add_options MOZ_OBJDIR=%{objdir}
277
278 export CFLAGS="%{rpmcflags}"
279 export CXXFLAGS="%{rpmcflags}"
280
281 %if %{with crashreporter}
282 export MOZ_DEBUG_SYMBOLS=1
283 %endif
284
285 # Options for 'configure' (same as command-line options).
286 ac_add_options --prefix=%{_prefix}
287 ac_add_options --exec-prefix=%{_exec_prefix}
288 ac_add_options --bindir=%{_bindir}
289 ac_add_options --sbindir=%{_sbindir}
290 ac_add_options --sysconfdir=%{_sysconfdir}
291 ac_add_options --datadir=%{_datadir}
292 ac_add_options --includedir=%{_includedir}
293 ac_add_options --libdir=%{_libdir}
294 ac_add_options --libexecdir=%{_libexecdir}
295 ac_add_options --localstatedir=%{_localstatedir}
296 ac_add_options --sharedstatedir=%{_sharedstatedir}
297 ac_add_options --mandir=%{_mandir}
298 ac_add_options --infodir=%{_infodir}
299 ac_add_options --disable-elf-hack
300 %if %{?debug:1}0
301 ac_add_options --disable-optimize
302 ac_add_options --enable-debug
303 ac_add_options --enable-debug-modules
304 ac_add_options --enable-debugger-info-modules
305 ac_add_options --enable-crash-on-assert
306 %else
307 ac_add_options --disable-debug
308 ac_add_options --disable-debug-modules
309 ac_add_options --disable-logging
310 ac_add_options --enable-optimize="%{rpmcflags} -Os"
311 %endif
312 ac_add_options --disable-strip
313 ac_add_options --disable-strip-libs
314 %if %{with tests}
315 ac_add_options --enable-tests
316 %else
317 ac_add_options --disable-tests
318 %endif
319 ac_add_options --enable-gio
320 %if %{with gnomeui}
321 ac_add_options --enable-gnomeui
322 %else
323 ac_add_options --disable-gnomeui
324 %endif
325 ac_add_options --disable-gnomevfs
326 %if %{with ldap}
327 ac_add_options --enable-ldap
328 ac_add_options --with-system-ldap
329 %else
330 ac_add_options --disable-ldap
331 %endif
332 %if %{with crashreporter}
333 ac_add_options --enable-crashreporter
334 %else
335 ac_add_options --disable-crashreporter
336 %endif
337 ac_add_options --disable-xterm-updates
338 ac_add_options --enable-postscript
339 %if %{with lightning}
340 ac_add_options --enable-calendar
341 %else
342 ac_add_options --disable-calendar
343 %endif
344 ac_add_options --disable-installer
345 ac_add_options --disable-javaxpcom
346 ac_add_options --disable-updater
347 ac_add_options --disable-xprint
348 ac_add_options --disable-permissions
349 ac_add_options --disable-pref-extensions
350 ac_add_options --enable-canvas
351 ac_add_options --enable-crypto
352 ac_add_options --enable-mathml
353 ac_add_options --enable-libxul
354 ac_add_options --enable-pango
355 ac_add_options --enable-reorder
356 ac_add_options --enable-startup-notification
357 ac_add_options --enable-svg
358 ac_add_options --enable-system-cairo
359 ac_add_options --enable-system-hunspell
360 ac_add_options --enable-system-sqlite
361 ac_add_options --enable-application=suite
362 ac_add_options --enable-default-toolkit=cairo-gtk2
363 ac_add_options --enable-xinerama
364 ac_add_options --with-distribution-id=org.pld-linux
365 %if %{with xulrunner}
366 ac_add_options --enable-shared-js
367 ac_add_options --with-system-libxul
368 ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
369 %endif
370 ac_add_options --with-pthreads
371 ac_add_options --with-system-bz2
372 ac_add_options --with-system-ffi
373 ac_add_options --with-system-jpeg
374 ac_add_options --with-system-libevent
375 ac_add_options --with-system-libvpx
376 ac_add_options --with-system-nspr
377 ac_add_options --with-system-nss
378 ac_add_options --with-system-png
379 ac_add_options --with-system-zlib
380 ac_add_options --enable-single-profile
381 ac_add_options --disable-profilesharing
382 ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
383 EOF
384
385 %{__make} -j1 -f client.mk build \
386         STRIP="/bin/true" \
387         MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
388         CC="%{__cc}" \
389         CXX="%{__cxx}"
390
391 %if %{with crashreporter}
392 # create debuginfo for crash-stats.mozilla.com
393 %{__make} -j1 -C obj-%{_target_cpu} buildsymbols
394 %endif
395
396 %if %{with enigmail}
397 cd mailnews/extensions/enigmail
398 ./makemake -r -o %{objdir}
399 %{__make} -C %{objdir}/mailnews/extensions/enigmail \
400         STRIP="/bin/true" \
401         CC="%{__cc}" \
402         CXX="%{__cxx}"
403 %endif
404
405 %install
406 rm -rf $RPM_BUILD_ROOT
407 cd comm-release
408 install -d \
409         $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
410         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
411         $RPM_BUILD_ROOT%{_datadir}/%{name} \
412         $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
413
414 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
415
416 cd %{objdir}
417 install -d mozilla/dist/%{_libdir}/%{name}
418 %{__make} -C suite/installer install \
419         DESTDIR=$RPM_BUILD_ROOT \
420         installdir=%{_libdir}/%{name} \
421         MOZ_PKG_APPDIR=%{_libdir}/%{name} \
422         MOZ_PKG_DIR=%{_libdir}/%{name} \
423         PKG_SKIP_STRIP=1 \
424         LIBXUL_SDK=1
425
426 %if %{with xulrunner}
427 # >= 5.0 seems to require this
428 ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
429 %endif
430
431 # Enable crash reporter for Thunderbird application
432 %if %{with crashreporter}
433 %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
434
435 # Add debuginfo for crash-stats.mozilla.com
436 install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
437 cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
438 %endif
439
440 # copy manually lightning files, somewhy they are not installed by make
441 cp -a mozilla/dist/bin/extensions/calendar-timezones@mozilla.org \
442         mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
443         $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
444                 
445 # move arch independant ones to datadir
446 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
447 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
448 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
449 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
450
451 ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
452 ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
453 ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
454 ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
455
456 # dir for arch independant extensions besides arch dependant extensions
457 # see mozilla/xpcom/build/nsXULAppAPI.h
458 # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
459 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
460  
461 %if %{without xulrunner}
462 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
463 ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
464 %endif
465
466 # remove %{_bindir}/seamonkey -> %{_libdir}/%{name}/seamonkey symlink
467 %{__rm} $RPM_BUILD_ROOT%{_bindir}/seamonkey
468 sed 's,@LIBDIR@,%{_libdir},' %{SOURCE7} > $RPM_BUILD_ROOT%{_bindir}/seamonkey
469 chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey
470
471 install %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
472         $RPM_BUILD_ROOT%{_desktopdir}
473
474 cp -p %{topdir}/comm-release/suite/branding/nightly/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
475
476 # files created by iceweasel -register
477 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
478 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
479
480 cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
481 #!/bin/sh
482 umask 022
483 rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
484
485 # it attempts to touch files in $HOME/.mozilla
486 # beware if you run this with sudo!!!
487 export HOME=$(mktemp -d)
488 # also TMPDIR could be pointing to sudo user's homedir
489 unset TMPDIR TMP || :
490
491 %{_libdir}/%{name}/seamonkey -register
492
493 rm -rf $HOME
494 EOF
495 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
496
497 %if %{with enigmail}
498 ext_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
499 install -d $ext_dir/{chrome,components,defaults/preferences}
500 cd mozilla/dist/bin
501 #cp -rfLp chrome/enigmail.jar $ext_dir/chrome
502 #cp -rfLp chrome/enigmime.jar $ext_dir/chrome
503 cp -rfLp components/enig* $ext_dir/components
504 cp -rfLp components/libenigmime.so $ext_dir/components
505 cp -rfLp components/libipc.so $ext_dir/components
506 cp -rfLp components/ipc.xpt $ext_dir/components
507 cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences
508 cd -
509 cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/install.rdf $ext_dir
510 cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/chrome.manifest $ext_dir/chrome.manifest
511 %endif
512
513 # never package these. always remove
514 # nss
515 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
516 # nspr
517 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
518 # mozldap
519 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
520 # testpilot quiz
521 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/tbtestpilot@labs.mozilla.com.xpi
522
523 %clean
524 rm -rf $RPM_BUILD_ROOT
525
526 %post
527 %{_libdir}/%{name}/register || :
528 %update_browser_plugins
529 %update_icon_cache hicolor
530 %update_desktop_database
531
532 %postun
533 if [ "$1" = 0 ]; then
534         %update_browser_plugins
535         %update_icon_cache hicolor
536 fi
537
538 %post mailnews
539 %{_libdir}/%{name}/register || :
540
541 %post addon-enigmail
542 %{_libdir}/%{name}/register || :
543
544 %post chat
545 %{_libdir}/%{name}/register || :
546
547 %post js-debugger
548 %{_libdir}/%{name}/register || :
549
550 %post dom-inspector
551 %{_libdir}/%{name}/register || :
552
553 %files
554 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_bindir}/seamonkey
556 %attr(744,root,root) %{_sbindir}/%{name}-chrome+xpcom-generate
557
558 # browser plugins v2
559 %{_browserpluginsconfdir}/browsers.d/%{name}.*
560 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
561
562 %dir %{_libdir}/%{name}
563 %dir %{_libdir}/%{name}/chrome
564 %dir %{_libdir}/%{name}/components
565 %dir %{_libdir}/%{name}/defaults
566 %dir %{_libdir}/%{name}/dictionaries
567 %dir %{_libdir}/%{name}/greprefs
568 %dir %{_libdir}/%{name}/icons
569 %dir %{_libdir}/%{name}/plugins
570 %dir %{_libdir}/%{name}/res
571 %dir %{_libdir}/%{name}/searchplugins
572 %dir %{_datadir}/%{name}
573
574 %attr(755,root,root) %{_libdir}/%{name}/libgfxpsshar.so
575 %attr(755,root,root) %{_libdir}/%{name}/libgkgfx.so
576 %attr(755,root,root) %{_libdir}/%{name}/libgtkembedmoz.so
577 %attr(755,root,root) %{_libdir}/%{name}/libgtkxtbin.so
578 %attr(755,root,root) %{_libdir}/%{name}/libjsj.so
579 %attr(755,root,root) %{_libdir}/%{name}/libldap50.so
580 %attr(755,root,root) %{_libdir}/%{name}/libmozjs.so
581 %attr(755,root,root) %{_libdir}/%{name}/libprldap50.so
582 %attr(755,root,root) %{_libdir}/%{name}/libssldap50.so
583 %attr(755,root,root) %{_libdir}/%{name}/libxlibrgb.so
584 %attr(755,root,root) %{_libdir}/%{name}/libxpcom.so
585 %attr(755,root,root) %{_libdir}/%{name}/libxpcom_compat.so
586 %attr(755,root,root) %{_libdir}/%{name}/libxpcom_core.so
587 %attr(755,root,root) %{_libdir}/%{name}/libxpistub.so
588
589 %attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin
590 %attr(755,root,root) %{_libdir}/%{name}/regchrome
591 %attr(755,root,root) %{_libdir}/%{name}/regxpcom
592 %attr(755,root,root) %{_libdir}/%{name}/xpidl
593
594 %attr(755,root,root) %{_libdir}/%{name}/libnssckbi.so
595
596 %attr(755,root,root) %{_libdir}/%{name}/components/libaccessibility.so
597 %attr(755,root,root) %{_libdir}/%{name}/components/libappcomps.so
598 %attr(755,root,root) %{_libdir}/%{name}/components/libauth.so
599 %attr(755,root,root) %{_libdir}/%{name}/components/libautoconfig.so
600 %attr(755,root,root) %{_libdir}/%{name}/components/libcaps.so
601 %attr(755,root,root) %{_libdir}/%{name}/components/libchrome.so
602 %attr(755,root,root) %{_libdir}/%{name}/components/libcomposer.so
603 %attr(755,root,root) %{_libdir}/%{name}/components/libcookie.so
604 %attr(755,root,root) %{_libdir}/%{name}/components/libdocshell.so
605 %attr(755,root,root) %{_libdir}/%{name}/components/libeditor.so
606 %attr(755,root,root) %{_libdir}/%{name}/components/libembedcomponents.so
607 %attr(755,root,root) %{_libdir}/%{name}/components/libfileview.so
608 %attr(755,root,root) %{_libdir}/%{name}/components/libgfx_gtk.so
609 %attr(755,root,root) %{_libdir}/%{name}/components/libgfxps.so
610 %attr(755,root,root) %{_libdir}/%{name}/components/libgfxxprint.so
611 %attr(755,root,root) %{_libdir}/%{name}/components/libgkdebug.so
612 %attr(755,root,root) %{_libdir}/%{name}/components/libgklayout.so
613 %attr(755,root,root) %{_libdir}/%{name}/components/libgkplugin.so
614 %attr(755,root,root) %{_libdir}/%{name}/components/libhtmlpars.so
615 %attr(755,root,root) %{_libdir}/%{name}/components/libi18n.so
616 %attr(755,root,root) %{_libdir}/%{name}/components/libimglib2.so
617 %attr(755,root,root) %{_libdir}/%{name}/components/libjar50.so
618 %attr(755,root,root) %{_libdir}/%{name}/components/libjsd.so
619 %attr(755,root,root) %{_libdir}/%{name}/components/libmork.so
620 %attr(755,root,root) %{_libdir}/%{name}/components/libmozfind.so
621 %attr(755,root,root) %{_libdir}/%{name}/components/libmozldap.so
622 %attr(755,root,root) %{_libdir}/%{name}/components/libmyspell.so
623 %attr(755,root,root) %{_libdir}/%{name}/components/libnecko.so
624 %attr(755,root,root) %{_libdir}/%{name}/components/libnecko2.so
625 %attr(755,root,root) %{_libdir}/%{name}/components/libnkdatetime.so
626 %attr(755,root,root) %{_libdir}/%{name}/components/libnkfinger.so
627 %attr(755,root,root) %{_libdir}/%{name}/components/libnsappshell.so
628 %attr(755,root,root) %{_libdir}/%{name}/components/libnsprefm.so
629 %attr(755,root,root) %{_libdir}/%{name}/components/liboji.so
630 %attr(755,root,root) %{_libdir}/%{name}/components/libp3p.so
631 %attr(755,root,root) %{_libdir}/%{name}/components/libpermissions.so
632 %attr(755,root,root) %{_libdir}/%{name}/components/libpipboot.so
633 %attr(755,root,root) %{_libdir}/%{name}/components/libpipnss.so
634 %attr(755,root,root) %{_libdir}/%{name}/components/libpippki.so
635 %attr(755,root,root) %{_libdir}/%{name}/components/libpref.so
636 %attr(755,root,root) %{_libdir}/%{name}/components/libprofile.so
637 %attr(755,root,root) %{_libdir}/%{name}/components/librdf.so
638 %attr(755,root,root) %{_libdir}/%{name}/components/libremoteservice.so
639 %attr(755,root,root) %{_libdir}/%{name}/components/libschemavalidation.so
640 %attr(755,root,root) %{_libdir}/%{name}/components/libsearchservice.so
641 %attr(755,root,root) %{_libdir}/%{name}/components/libspellchecker.so
642 %attr(755,root,root) %{_libdir}/%{name}/components/libsql.so
643 %attr(755,root,root) %{_libdir}/%{name}/components/libsroaming.so
644 %attr(755,root,root) %{_libdir}/%{name}/components/libstoragecomps.so
645 %attr(755,root,root) %{_libdir}/%{name}/components/libsystem-pref.so
646 %attr(755,root,root) %{_libdir}/%{name}/components/libtransformiix.so
647 %attr(755,root,root) %{_libdir}/%{name}/components/libtxmgr.so
648 %attr(755,root,root) %{_libdir}/%{name}/components/libtypeaheadfind.so
649 %attr(755,root,root) %{_libdir}/%{name}/components/libuconv.so
650 %attr(755,root,root) %{_libdir}/%{name}/components/libucvmath.so
651 %attr(755,root,root) %{_libdir}/%{name}/components/libuniversalchardet.so
652 %attr(755,root,root) %{_libdir}/%{name}/components/libwallet.so
653 %attr(755,root,root) %{_libdir}/%{name}/components/libwalletviewers.so
654 %attr(755,root,root) %{_libdir}/%{name}/components/libwebbrwsr.so
655 %attr(755,root,root) %{_libdir}/%{name}/components/libwebsrvcs.so
656 %attr(755,root,root) %{_libdir}/%{name}/components/libwidget_gtk2.so
657 %attr(755,root,root) %{_libdir}/%{name}/components/libxforms.so
658 %attr(755,root,root) %{_libdir}/%{name}/components/libxmlextras.so
659 %attr(755,root,root) %{_libdir}/%{name}/components/libxpcom_compat_c.so
660 %attr(755,root,root) %{_libdir}/%{name}/components/libxpconnect.so
661 %attr(755,root,root) %{_libdir}/%{name}/components/libxpinstall.so
662 %attr(755,root,root) %{_libdir}/%{name}/components/libxremoteservice.so
663
664 %{_libdir}/%{name}/components/access*.xpt
665 %{_libdir}/%{name}/components/alerts.xpt
666 %{_libdir}/%{name}/components/appshell.xpt
667 %{_libdir}/%{name}/components/appstartup.xpt
668 %{_libdir}/%{name}/components/autocomplete.xpt
669 %{_libdir}/%{name}/components/autoconfig.xpt
670 %{_libdir}/%{name}/components/bookmarks.xpt
671 %{_libdir}/%{name}/components/caps.xpt
672 %{_libdir}/%{name}/components/chardet.xpt
673 %{_libdir}/%{name}/components/chrome.xpt
674 %{_libdir}/%{name}/components/commandhandler.xpt
675 %{_libdir}/%{name}/components/composer.xpt
676 %{_libdir}/%{name}/components/content*.xpt
677 %{_libdir}/%{name}/components/cookie.xpt
678 %{_libdir}/%{name}/components/directory.xpt
679 %{_libdir}/%{name}/components/docshell.xpt
680 %{_libdir}/%{name}/components/dom*.xpt
681 %{_libdir}/%{name}/components/downloadmanager.xpt
682 %{_libdir}/%{name}/components/editor.xpt
683 %{_libdir}/%{name}/components/embed_base.xpt
684 %{_libdir}/%{name}/components/extensions.xpt
685 %{_libdir}/%{name}/components/exthandler.xpt
686 %{_libdir}/%{name}/components/find.xpt
687 %{_libdir}/%{name}/components/filepicker.xpt
688 %{_libdir}/%{name}/components/gfx*.xpt
689 %{?with_svg:%{_libdir}/%{name}/components/gksvgrenderer.xpt}
690 %{_libdir}/%{name}/components/history.xpt
691 %{_libdir}/%{name}/components/htmlparser.xpt
692 %{_libdir}/%{name}/components/imglib2.xpt
693 %{_libdir}/%{name}/components/intl.xpt
694 %{_libdir}/%{name}/components/jar.xpt
695 %{_libdir}/%{name}/components/js*.xpt
696 %{_libdir}/%{name}/components/layout*.xpt
697 %{_libdir}/%{name}/components/locale.xpt
698 %{_libdir}/%{name}/components/lwbrk.xpt
699 %{_libdir}/%{name}/components/mimetype.xpt
700 %{_libdir}/%{name}/components/moz*.xpt
701 %{_libdir}/%{name}/components/necko*.xpt
702 %{_libdir}/%{name}/components/oji.xpt
703 %{_libdir}/%{name}/components/p3p.xpt
704 %{_libdir}/%{name}/components/pipboot.xpt
705 %{_libdir}/%{name}/components/pipnss.xpt
706 %{_libdir}/%{name}/components/pippki.xpt
707 %{_libdir}/%{name}/components/plugin.xpt
708 %{_libdir}/%{name}/components/pref.xpt
709 %{_libdir}/%{name}/components/prefetch.xpt
710 %{_libdir}/%{name}/components/prefmigr.xpt
711 %{_libdir}/%{name}/components/profile.xpt
712 %{_libdir}/%{name}/components/progressDlg.xpt
713 %{_libdir}/%{name}/components/proxyObjInst.xpt
714 %{_libdir}/%{name}/components/rdf.xpt
715 %{_libdir}/%{name}/components/related.xpt
716 %{_libdir}/%{name}/components/saxparser.xpt
717 %{_libdir}/%{name}/components/search.xpt
718 %{_libdir}/%{name}/components/schemavalidation.xpt
719 %{_libdir}/%{name}/components/shistory.xpt
720 %{_libdir}/%{name}/components/signonviewer.xpt
721 %{_libdir}/%{name}/components/spellchecker.xpt
722 %{_libdir}/%{name}/components/sql.xpt
723 %{_libdir}/%{name}/components/storage.xpt
724 %{_libdir}/%{name}/components/toolkitremote.xpt
725 %{_libdir}/%{name}/components/txmgr.xpt
726 %{_libdir}/%{name}/components/txtsvc.xpt
727 %{_libdir}/%{name}/components/typeaheadfind.xpt
728 %{_libdir}/%{name}/components/uconv.xpt
729 %{_libdir}/%{name}/components/unicharutil.xpt
730 %{_libdir}/%{name}/components/uriloader.xpt
731 %{_libdir}/%{name}/components/urlformatter.xpt
732 %{_libdir}/%{name}/components/wallet*.xpt
733 %{_libdir}/%{name}/components/webBrowser_core.xpt
734 %{_libdir}/%{name}/components/webbrowserpersist.xpt
735 %{_libdir}/%{name}/components/webshell_idls.xpt
736 %{_libdir}/%{name}/components/websrvcs.xpt
737 %{_libdir}/%{name}/components/widget.xpt
738 %{_libdir}/%{name}/components/windowds.xpt
739 %{_libdir}/%{name}/components/windowwatcher.xpt
740 %{_libdir}/%{name}/components/x*.xpt
741
742 %{_libdir}/%{name}/components/jsconsole-clhandler.js
743 %{_libdir}/%{name}/components/nsCloseAllWindows.js
744 %{_libdir}/%{name}/components/nsComposerCmdLineHandler.js
745 %{_libdir}/%{name}/components/nsDictionary.js
746 %{_libdir}/%{name}/components/nsDownloadProgressListener.js
747 %{_libdir}/%{name}/components/nsFilePicker.js
748 %{_libdir}/%{name}/components/nsHelperAppDlg.js
749 %{_libdir}/%{name}/components/nsInterfaceInfoToIDL.js
750 %{_libdir}/%{name}/components/nsKillAll.js
751 %{_libdir}/%{name}/components/nsProgressDialog.js
752 %{_libdir}/%{name}/components/nsProxyAutoConfig.js
753 %{_libdir}/%{name}/components/nsResetPref.js
754 %{_libdir}/%{name}/components/nsSchemaValidatorRegexp.js
755 %{_libdir}/%{name}/components/nsSidebar.js
756 %{_libdir}/%{name}/components/nsUpdateNotifier.js
757 %{_libdir}/%{name}/components/nsURLFormatter.js
758 %{_libdir}/%{name}/components/nsXmlRpcClient.js
759 %{_libdir}/%{name}/components/xulappinfo.js
760
761 # not *.dat, so check-files can catch any new files
762 # (and they won't be just silently placed empty in rpm)
763 %ghost %{_libdir}/%{name}/components/compreg.dat
764 %ghost %{_libdir}/%{name}/components/xpti.dat
765
766 %dir %{_datadir}/%{name}/chrome
767 %{_datadir}/%{name}/chrome/US.jar
768 %{_datadir}/%{name}/chrome/classic.jar
769 %{_datadir}/%{name}/chrome/comm.jar
770 %{_datadir}/%{name}/chrome/content-packs.jar
771 %{_datadir}/%{name}/chrome/cview.jar
772 %{_datadir}/%{name}/chrome/embed-sample.jar
773 %{_datadir}/%{name}/chrome/en-US.jar
774 %{_datadir}/%{name}/chrome/en-unix.jar
775 %{_datadir}/%{name}/chrome/help.jar
776 %{_datadir}/%{name}/chrome/layoutdebug.jar
777 %{_datadir}/%{name}/chrome/modern.jar
778 %{_datadir}/%{name}/chrome/pipnss.jar
779 %{_datadir}/%{name}/chrome/pippki.jar
780 %{_datadir}/%{name}/chrome/reporter.jar
781 %{_datadir}/%{name}/chrome/sql.jar
782 %{_datadir}/%{name}/chrome/sroaming.jar
783 %{_datadir}/%{name}/chrome/tasks.jar
784 %{_datadir}/%{name}/chrome/toolkit.jar
785 %{_datadir}/%{name}/chrome/xforms.jar
786
787 %ghost %{_datadir}/%{name}/chrome/chrome.rdf
788 %ghost %{_datadir}/%{name}/chrome/overlays.rdf
789 # not generated automatically ?
790 %{_datadir}/%{name}/chrome/stylesheets.rdf
791 %{_datadir}/%{name}/chrome/chromelist.txt
792 %{_datadir}/%{name}/chrome/icons
793 %exclude %{_datadir}/%{name}/chrome/icons/default/abcardWindow*.xpm
794 %exclude %{_datadir}/%{name}/chrome/icons/default/addressbookWindow*.xpm
795 %exclude %{_datadir}/%{name}/chrome/icons/default/chatzilla-window*.xpm
796 %exclude %{_datadir}/%{name}/chrome/icons/default/messengerWindow*.xpm
797 %exclude %{_datadir}/%{name}/chrome/icons/default/msgcomposeWindow*.xpm
798 %exclude %{_datadir}/%{name}/chrome/icons/default/venkman-window*.xpm
799 %exclude %{_datadir}/%{name}/chrome/icons/default/winInspectorMain*.xpm
800
801 %{_datadir}/%{name}/chrome/%{name}-installed-chrome.txt
802 %ghost %{_datadir}/%{name}/chrome/installed-chrome.txt
803
804 %{_datadir}/%{name}/defaults
805 %{_datadir}/%{name}/dictionaries
806 %{_datadir}/%{name}/greprefs
807 %exclude %{_datadir}/%{name}/defaults/pref/inspector.js
808 %{_datadir}/%{name}/icons
809 %{_datadir}/%{name}/res
810 %{_datadir}/%{name}/searchplugins
811
812 %{_pixmapsdir}/seamonkey.png
813 %{_desktopdir}/%{name}.desktop
814 %{_desktopdir}/%{name}-composer.desktop
815
816 %files mailnews
817 %defattr(644,root,root,755)
818 %attr(755,root,root) %{_libdir}/%{name}/libmsgbaseutil.so
819 %attr(755,root,root) %{_libdir}/%{name}/components/libaddrbook.so
820 %attr(755,root,root) %{_libdir}/%{name}/components/libbayesflt.so
821 %attr(755,root,root) %{_libdir}/%{name}/components/libimpText.so
822 %attr(755,root,root) %{_libdir}/%{name}/components/libimpComm4xMail.so
823 %attr(755,root,root) %{_libdir}/%{name}/components/libimport.so
824 %attr(755,root,root) %{_libdir}/%{name}/components/liblocalmail.so
825 %attr(755,root,root) %{_libdir}/%{name}/components/libmailnews.so
826 %attr(755,root,root) %{_libdir}/%{name}/components/libmailview.so
827 %attr(755,root,root) %{_libdir}/%{name}/components/libmime.so
828 %attr(755,root,root) %{_libdir}/%{name}/components/libmimeemitter.so
829 %attr(755,root,root) %{_libdir}/%{name}/components/libmsg*.so
830 %attr(755,root,root) %{_libdir}/%{name}/components/libvcard.so
831
832 %{_libdir}/%{name}/components/addrbook.xpt
833 %{_libdir}/%{name}/components/impComm4xMail.xpt
834 %{_libdir}/%{name}/components/import.xpt
835 %{_libdir}/%{name}/components/mailnews.xpt
836 %{_libdir}/%{name}/components/mailview.xpt
837 %{_libdir}/%{name}/components/mime.xpt
838 %{_libdir}/%{name}/components/msg*.xpt
839
840 %{_libdir}/%{name}/components/mdn-service.js
841 %{_libdir}/%{name}/components/nsAbLDAPAttributeMap.js
842 %{_libdir}/%{name}/components/nsLDAPPrefsService.js
843 %{_libdir}/%{name}/components/offlineStartup.js
844 %{_libdir}/%{name}/components/smime-service.js
845
846 %{_datadir}/%{name}/chrome/messenger.jar
847
848 %{_datadir}/%{name}/chrome/icons/default/abcardWindow*.xpm
849 %{_datadir}/%{name}/chrome/icons/default/addressbookWindow*.xpm
850 %{_datadir}/%{name}/chrome/icons/default/messengerWindow*.xpm
851 %{_datadir}/%{name}/chrome/icons/default/msgcomposeWindow*.xpm
852
853 %{_desktopdir}/%{name}-mail.desktop
854
855 %files addon-enigmail
856 %defattr(644,root,root,755)
857 %attr(755,root,root) %{_libdir}/%{name}/components/libenigmime.so
858 %{_libdir}/%{name}/components/enigmail.xpt
859 %{_libdir}/%{name}/components/enigmime.xpt
860 %{_libdir}/%{name}/components/ipc.xpt
861 %{_libdir}/%{name}/components/enigmail.js
862 %{_libdir}/%{name}/components/enigprefs-service.js
863 %{_datadir}/%{name}/chrome/enigmail-en-US.jar
864 %{_datadir}/%{name}/chrome/enigmail-locale.jar
865 %{_datadir}/%{name}/chrome/enigmail-skin-tbird.jar
866 %{_datadir}/%{name}/chrome/enigmail-skin.jar
867 %{_datadir}/%{name}/chrome/enigmail.jar
868 %{_datadir}/%{name}/chrome/enigmime.jar
869
870 %files chat
871 %defattr(644,root,root,755)
872 %{_libdir}/%{name}/components/chatzilla-service.js
873 %{_datadir}/%{name}/chrome/chatzilla.jar
874 %{_datadir}/%{name}/chrome/icons/default/chatzilla-window*.xpm
875 %{_desktopdir}/%{name}-chat.desktop
876
877 %files js-debugger
878 %defattr(644,root,root,755)
879 %{_libdir}/%{name}/components/venkman-service.js
880 %{_datadir}/%{name}/chrome/venkman.jar
881 %{_datadir}/%{name}/chrome/icons/default/venkman-window*.xpm
882 %{_desktopdir}/%{name}-venkman.desktop
883
884 %files dom-inspector
885 %defattr(644,root,root,755)
886 %{_libdir}/%{name}/components/inspector.xpt
887 %{_libdir}/%{name}/components/inspector-cmdline.js
888 %{_datadir}/%{name}/chrome/inspector.jar
889 %{_datadir}/%{name}/chrome/icons/default/winInspectorMain*.xpm
890 %{_datadir}/%{name}/defaults/pref/inspector.js
This page took 0.093633 seconds and 4 git commands to generate.