1 |
%define major_nspr 4 |
2 |
%define epoch_nspr 1 |
3 |
%define lib_nspr_name %mklibname nspr %{major_nspr} |
4 |
%define devel_nspr_name %mklibname -d nspr %{major_nspr} |
5 |
%define major_nss 3 |
6 |
%define epoch_nss 1 |
7 |
%define epoch_mozilla 0 |
8 |
%define lib_nss_name %mklibname nss %{major_nss} |
9 |
%define devel_nss_name %mklibname nss |
10 |
#warning : always end release date with 00 |
11 |
# (it should be the hour of build but it is not significant for rpm) |
12 |
%define releasedate 2010120900 |
13 |
%define dirversion %{version} |
14 |
%define mozillalibdir %{_libdir}/seamonkey-%{dirversion} |
15 |
%define mozillaplugindir %{_libdir}/mozilla/plugins |
16 |
%define mozillaincludedir %{_includedir}/seamonkey-%{dirversion} |
17 |
%define mozillaidldir %{_datadir}/idl/seamonkey-%{dirversion} |
18 |
%define build_enigmail 1 |
19 |
%define build_xmlterm 0 |
20 |
%define enable_svg 1 |
21 |
%define build_is_final 1 |
22 |
%define enable_l10n 1 |
23 |
%define build_debug 0 |
24 |
%define build_corefonts 0 |
25 |
%define build_ggdefaults 0 |
26 |
%define build_gtk 0 |
27 |
%define build_pango 1 |
28 |
%define build_nspr_nss 0 |
29 |
%define build_gre 0 |
30 |
|
31 |
%define toolkit cairo-gtk2 |
32 |
|
33 |
# used for enigmail and protozilla sources: |
34 |
%define enigmail_version 1.0.1 |
35 |
|
36 |
%{?_with_enigmail: %global build_enigmail 1} |
37 |
|
38 |
# Build a mozilla with debug enabled |
39 |
%{?_with_mydebug: %global build_debug 1} |
40 |
%{?_without_mydebug: %global build_debug 0} |
41 |
|
42 |
# Use corefonts as default (Patch105) |
43 |
%{?_with_corefonts: %global build_corefonts 1} |
44 |
%{?_without_corefonts: %global build_corefonts 0} |
45 |
|
46 |
# Enable/Disable some annoying parameters as defaults, e.g. |
47 |
# - disable remote images in mail/news to avoid self bannering |
48 |
# - enable pipelining |
49 |
# - enable a4 paper |
50 |
%{?_with_ggdefaults: %global build_ggdefaults 1} |
51 |
%{?_without_ggdefaults: %global build_ggdefaults 0} |
52 |
|
53 |
# Build with gtk (gtk1) toolkit instead of gtk2 |
54 |
%{?_with_gtk: %global build_gtk 1} |
55 |
%{?_without_gtk: %global build_gtk 0} |
56 |
|
57 |
# Enable Pango |
58 |
%{?_with_pango: %global build_pango 1} |
59 |
%{?_without_pango: %global build_pango 0} |
60 |
|
61 |
# Build nspr/nss packages |
62 |
%{?_with_nspr: %global build_nspr_nss 1} |
63 |
%{?_without_nspr: %global build_nspr_nss 0} |
64 |
|
65 |
# Install gre.conf |
66 |
%{?_with_gre: %global build_gre 1} |
67 |
%{?_without_gre: %global build_gre 0} |
68 |
|
69 |
%if %{build_gtk} |
70 |
%define build_xmlterm 1 |
71 |
%define toolkit gtk |
72 |
%endif |
73 |
|
74 |
# For distro < 10.2 |
75 |
%if %mdkversion < 1020 |
76 |
%define build_pango 0 |
77 |
%define build_nspr_nss 1 |
78 |
%define build_ggdefaults 1 |
79 |
%endif |
80 |
|
81 |
%define _provides_exceptions libaccessibility.so\\|libappcomps.so\\|libauth.so\\|libautoconfig.so\\|libcaps.so\\|libchrome.so\\|libcomposer.so\\|libcookie.so\\|libdocshell.so\\|libeditor.so\\|libembedcomponents.so\\|libfileview.so\\|libgfx_gtk.so\\|libgfxps.so\\|libgfxpsshar.so\\|libgkgfx.so\\|libgklayout.so\\|libgkplugin.so\\|libgtkembedmoz.so\\|libgtkxtbin.so\\|libhtmlpars.so\\|libi18n.so\\|libimgicon.so\\|libimglib2.so\\|libjar50.so\\|libjsd.so\\|libjsj.so\\|libldap50.so\\|libmork.so\\|libmozfind.so\\|libmozjs.so\\|libmozldap.so\\|libmsgbaseutil.so\\|libnecko.so\\|libnecko2.so\\|libnkgnomevfs.so\\|libnsappshell.so\\|libnsprefm.so\\|libnullplugin.so\\|liboji.so\\|libp3p.so\\|libpermissions.so\\|libpipboot.so\\|libpipnss.so\\|libpippki.so\\|libpref.so\\|libprldap50.so\\|libprofile.so\\|librdf.so\\|libremoteservice.so\\|libschemavalidation.so\\|libsearchservice.so\\|libsql.so\\|libsroaming.so\\|libstoragecomps.so\\|libsystem-pref.so\\|libtransformiix.so\\|libtxmgr.so\\|libtypeaheadfind.so\\|libuconv.so\\|libucvmath.so\\|libuniversalchardet.so\\|libunixprintplugin.so\\|libwallet.so\\|libwalletviewers.so\\|libwebbrwsr.so\\|libwebsrvcs.so\\|libwidget_gtk2.so\\|libxforms.so\\|libxmlextras.so\\|libxpcom.so\\|libxpcom_compat.so\\|libxpcom_compat_c.so\\|libxpcom_core.so\\|libxpconnect.so\\|libxpinstall.so\\|libxpistub.so\\|libxremoteservice\\|libaddrbook.so\\|libbayesflt.so\\|libimpComm4xMail.so\\|libimport.so\\|libimpText.so\\|liblocalmail.so\\|libmailnews.so\\|libmailview.so\\|libmimeemitter.so\\|libmime.so\\|libmsgbaseutil.so\\|libmsgcompose.so\\|libmsgdb.so\\|libmsgimap.so\\|libmsgmdn.so\\|libmsgnews.so\\|libmsgsmime.so\\|libvcard.so\\|libmyspell.so\\|libspellchecker.so\\|libenigmime.so |
82 |
%define _requires_exceptions libaccessibility.so\\|libappcomps.so\\|libauth.so\\|libautoconfig.so\\|libcaps.so\\|libchrome.so\\|libcomposer.so\\|libcookie.so\\|libdocshell.so\\|libeditor.so\\|libembedcomponents.so\\|libfileview.so\\|libgfx_gtk.so\\|libgfxps.so\\|libgfxpsshar.so\\|libgkgfx.so\\|libgklayout.so\\|libgkplugin.so\\|libgtkembedmoz.so\\|libgtkxtbin.so\\|libhtmlpars.so\\|libi18n.so\\|libimgicon.so\\|libimglib2.so\\|libjar50.so\\|libjsd.so\\|libjsj.so\\|libldap50.so\\|libmork.so\\|libmozfind.so\\|libmozjs.so\\|libmozldap.so\\|libmsgbaseutil.so\\|libnecko.so\\|libnecko2.so\\|libnkgnomevfs.so\\|libnsappshell.so\\|libnsprefm.so\\|libnullplugin.so\\|liboji.so\\|libp3p.so\\|libpermissions.so\\|libpipboot.so\\|libpipnss.so\\|libpippki.so\\|libpref.so\\|libprldap50.so\\|libprofile.so\\|librdf.so\\|libremoteservice.so\\|libschemavalidation.so\\|libsearchservice.so\\|libsql.so\\|libsroaming.so\\|libstoragecomps.so\\|libsystem-pref.so\\|libtransformiix.so\\|libtxmgr.so\\|libtypeaheadfind.so\\|libuconv.so\\|libucvmath.so\\|libuniversalchardet.so\\|libunixprintplugin.so\\|libwallet.so\\|libwalletviewers.so\\|libwebbrwsr.so\\|libwebsrvcs.so\\|libwidget_gtk2.so\\|libxforms.so\\|libxmlextras.so\\|libxpcom.so\\|libxpcom_compat.so\\|libxpcom_compat_c.so\\|libxpcom_core.so\\|libxpconnect.so\\|libxpinstall.so\\|libxpistub.so\\|libxremoteservice\\|libaddrbook.so\\|libbayesflt.so\\|libimpComm4xMail.so\\|libimport.so\\|libimpText.so\\|liblocalmail.so\\|libmailnews.so\\|libmailview.so\\|libmimeemitter.so\\|libmime.so\\|libmsgbaseutil.so\\|libmsgcompose.so\\|libmsgdb.so\\|libmsgimap.so\\|libmsgmdn.so\\|libmsgnews.so\\|libmsgsmime.so\\|libvcard.so\\|libmyspell.so\\|libspellchecker.so\\|libenigmime.so |
83 |
|
84 |
Name: seamonkey |
85 |
Summary: SeaMonkey, all-in-one internet application suite |
86 |
Version: 2.0.13 |
87 |
Release: %mkrel 1 |
88 |
License: MPL |
89 |
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/seamonkey-%{version}.source.tar.bz2 |
90 |
Source2: seamonkey16.png |
91 |
Source3: seamonkey32.png |
92 |
Source4: seamonkey64.png |
93 |
%if %{enable_l10n} |
94 |
Source99: locale.alias |
95 |
%define l10ns be ca cs de en-GB es-AR es-ES fi fr gl hu it ja ka lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN |
96 |
# not up-to-date: el-GR en-GB eu-ES he-IL hi-IN ne-NP pt-BR ur-PK |
97 |
|
98 |
Source100: %{name}-2.0.13.be.langpack.xpi |
99 |
Source101: %{name}-2.0.13.ca.langpack.xpi |
100 |
Source102: %{name}-2.0.13.cs.langpack.xpi |
101 |
Source103: %{name}-2.0.13.de.langpack.xpi |
102 |
Source106: %{name}-2.0.13.es-ES.langpack.xpi |
103 |
Source108: %{name}-2.0.13.fr.langpack.xpi |
104 |
Source110: %{name}-2.0.13.it.langpack.xpi |
105 |
Source111: %{name}-2.0.13.ka.langpack.xpi |
106 |
Source112: %{name}-2.0.13.nb-NO.langpack.xpi |
107 |
Source114: %{name}-2.0.13.pl.langpack.xpi |
108 |
Source115: %{name}-2.0.13.ru.langpack.xpi |
109 |
Source116: %{name}-2.0.13.sv-SE.langpack.xpi |
110 |
Source117: %{name}-2.0.13.tr.langpack.xpi |
111 |
Source119: %{name}-2.0.13.ja.langpack.xpi |
112 |
Source120: %{name}-2.0.13.nl.langpack.xpi |
113 |
Source123: %{name}-2.0.13.hu.langpack.xpi |
114 |
Source124: %{name}-2.0.13.lt.langpack.xpi |
115 |
Source125: %{name}-2.0.13.pt-PT.langpack.xpi |
116 |
Source126: %{name}-2.0.13.es-AR.langpack.xpi |
117 |
Source127: %{name}-2.0.13.gl.langpack.xpi |
118 |
Source128: %{name}-2.0.13.sk.langpack.xpi |
119 |
Source129: %{name}-2.0.13.en-GB.langpack.xpi |
120 |
Source130: %{name}-2.0.13.zh-CN.langpack.xpi |
121 |
Source131: %{name}-2.0.13.fi.langpack.xpi |
122 |
#Source104: %{name}-1.1.2.el-GR.langpack.xpi |
123 |
#Source105: %{name}-1.1.en-GB.langpack.xpi |
124 |
#Source107: %{name}-1.0.eu-ES.langpack.xpi |
125 |
#Source109: %{name}-1.1.2.he-IL.langpack.xpi |
126 |
#Source113: %{name}-1.0.2.ne-NP.langpack.xpi |
127 |
#Source118: %{name}-1.1.17.pt-BR.langpack.xpi |
128 |
#Source121: %{name}-1.1.9.ur-PK.langpack.xpi |
129 |
#Source122: %{name}-1.1.7.hi-IN.langpack.xpi |
130 |
%endif |
131 |
# (fc) 0.9.8-1mdk fix loading of file through command line (contributed by Chmouel) , |
132 |
# set MOZ_PLUGIN_PATH to $HOME/.mozilla/plugins, autodetect locale, add -splash parameter |
133 |
Source10: seamonkey-1.0.0-sh.in.bz2 |
134 |
Source22: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_version}.tar.gz |
135 |
Source23: mdkbugzilla.gif |
136 |
Source25: mozilla-make-package.pl |
137 |
Source26: seamonkey-rebuild-databases.pl.in |
138 |
Source27: mozilla-xpcom-exclude-list |
139 |
Source28: mozilla-psm-exclude-list |
140 |
|
141 |
# (fc) 1.1-0.beta.1mdk remove Debug menu |
142 |
Patch0: mozilla-1.7-no-debug-overlay-menu.patch |
143 |
Patch7: mozilla-browser-home-page.patch |
144 |
# (fc) 0.9.6-3mdk remove buildid from titlebar (Ximian) |
145 |
Patch23: mozilla-1.1-remove-buildid-from-title.patch |
146 |
|
147 |
# (fc) 1.1-0.branch.1mdk use standard mozilla packaging tool for enigmail/enigmime |
148 |
Patch46: mozilla-1.7-enigmail-package.patch |
149 |
# |
150 |
# (gg) 1.3-2mdk enabled default pipelining |
151 |
Patch100: mozilla-1.7-pipelining.patch |
152 |
# (gg) Disable remote image "selfbannering" on mailnews |
153 |
Patch101: mozilla-1.7-disable-mailnews-remoteimage.patch |
154 |
# (gg) Add some dir to the freetype2 font path |
155 |
Patch102: mozilla-1.7-freetype2-antialias-path.patch |
156 |
# (gg) Enable "A4" paper by default instead of "letter" |
157 |
Patch104: mozilla-1.7-a4paper.patch |
158 |
# (gg) Patch for default font names for x-western |
159 |
Patch105: mozilla-1.7-corefonts-fontnames.patch |
160 |
# (fc) 1.4-10mdk use xvt instead of xterm |
161 |
Patch132: mozilla-1.7-xvt.patch |
162 |
# (fc) 1.7.3-2mdk fix compilation with latest freetype2 (Moz bug #234035) |
163 |
Patch258: mozilla-1.7.7-freetype-compile.patch |
164 |
# (gb) 1.7.5-5mdk fix loading of libXext.so.6 and libXt.so.6 |
165 |
Patch274: mozilla-load-full-dso.patch |
166 |
# (fc) 1.7.5-5mdk enable automatic language detection at startup (Debian) |
167 |
Patch276: mozilla-1.7.5-lang.patch |
168 |
# |
169 |
Patch299: seamonkey-1.0.3-gcc41.patch |
170 |
# (cjw) fix build error from enigmail due to a visibility problem |
171 |
Patch303: enigmail-0.95.6-visibility.patch |
172 |
# fix build with -Werror=format-security in compile flags |
173 |
Patch304: seamonkey-2.0-fix-string-format.patch |
174 |
# (cjw) fix opt flags passing to mozilla subdir's configure script |
175 |
Patch305: seamonkey-2.0-configure-optflags-fix.patch |
176 |
# (cjw) fix crashes with cairo 1.9.6 - from https://bugzilla.mozilla.org/show_bug.cgi?id=522635 |
177 |
Patch306: seamonkey-2.0-cairo.patch |
178 |
# (cjw) from fedora |
179 |
Patch307: mozilla-jemalloc.patch |
180 |
Patch308: mozilla-191-path.patch |
181 |
# (cjw) block enigprefs account preferences extension from loading |
182 |
# since it breaks the seamonkey account preferences dialog |
183 |
Patch309: enigmail-1.0.1-block-enigprefs.patch |
184 |
Epoch: %{epoch_mozilla} |
185 |
Conflicts: j2re = 1.4.0-beta3 |
186 |
Conflicts: j2sdk = 1.4.0-beta3 |
187 |
|
188 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
189 |
BuildRequires: autoconf2.1 |
190 |
BuildRequires: gtk+2-devel >= 2.4.0 |
191 |
BuildRequires: gnome-vfs2-devel |
192 |
BuildRequires: krb-devel |
193 |
BuildRequires: libalsa-devel |
194 |
BuildRequires: libcurl-devel |
195 |
BuildRequires: wget |
196 |
BuildRequires: libIDL-devel |
197 |
BuildRequires: libbzip2-devel |
198 |
BuildRequires: libgnomeui2-devel |
199 |
BuildRequires: libhunspell-devel |
200 |
BuildRequires: libjpeg-devel |
201 |
BuildRequires: libpng-devel |
202 |
BuildRequires: libxft-devel |
203 |
BuildRequires: libxt-devel |
204 |
BuildRequires: python |
205 |
BuildRequires: zip tcsh |
206 |
|
207 |
%if %{mdkversion} >= 200610 |
208 |
BuildRequires: rootcerts >= 20060621 |
209 |
%endif |
210 |
%if !%{build_nspr_nss} |
211 |
# -static for libcrmf.a |
212 |
BuildRequires: nss-static-devel |
213 |
%endif |
214 |
|
215 |
%if %{build_nspr_nss} |
216 |
Requires(post): %{lib_nspr_name} >= %{epoch_nspr}:%{version}-%{release} |
217 |
Requires(postun): %{lib_nspr_name} >= %{epoch_nspr}:%{version}-%{release} |
218 |
%else |
219 |
Requires(post): %{lib_nspr_name} |
220 |
Requires(postun): %{lib_nspr_name} |
221 |
%endif |
222 |
Requires(post): perl psmisc |
223 |
Requires(postun): perl psmisc |
224 |
%if %{build_nspr_nss} |
225 |
Requires: %{lib_nss_name} = %{epoch_nss}:%{version}-%{release} |
226 |
%else |
227 |
Requires: %{lib_nss_name} |
228 |
%endif |
229 |
Requires: indexhtml |
230 |
Requires: gtk+2 >= 2.4.0 |
231 |
|
232 |
%if %{build_pango} |
233 |
BuildRequires: pango >= 1.5.0 |
234 |
%endif |
235 |
|
236 |
Group: Networking/WWW |
237 |
Url: http://www.seamonkey-project.org/ |
238 |
Obsoletes: mozilla-xpcom mozilla-browser mozilla-psm mozilla-ctl mozilla |
239 |
Provides: mozilla-xpcom = 0:1.8-1mdk |
240 |
Provides: mozilla-browser = 0:1.8-1mdk |
241 |
Provides: mozilla-psm = 0:1.8-1mdk |
242 |
Provides: mozilla-ctl = 0:1.8-1mdk |
243 |
Provides: webclient |
244 |
Provides: mozilla = 0:1.8-1mdk |
245 |
Obsoletes: mozilla |
246 |
|
247 |
%description |
248 |
The SeaMonkey project is a community effort to develop the SeaMonkey |
249 |
all-in-one internet application suite. Such a software suite was |
250 |
previously made popular by Netscape and Mozilla, and the SeaMonkey |
251 |
project continues to develop and deliver high-quality updates as well |
252 |
as new features and improvements to this concept. Containing an |
253 |
Internet browser, email & newsgroup client, HTML editor, IRC chat |
254 |
and web development tools, SeaMonkey is sure to appeal to advanced |
255 |
users, web developers and corporate users. |
256 |
|
257 |
%if %{build_nspr_nss} |
258 |
%package -n %{lib_nspr_name} |
259 |
Epoch: %{epoch_nspr} |
260 |
License: MPL/GPL |
261 |
URL: http://www.mozilla.org/projects/nspr/index.html |
262 |
Summary: Netscape Portable Runtime Library |
263 |
Group: System/Libraries |
264 |
Obsoletes: nspr |
265 |
Provides: nspr = %{version}-%{release} |
266 |
Provides: mozilla-nspr = %{version}-%{release} |
267 |
Conflicts: mozilla < 0.9.9 |
268 |
|
269 |
%description -n %{lib_nspr_name} |
270 |
NSPR provides platform independence for non-GUI operating system |
271 |
facilities. These facilities include threads, thread synchronization, |
272 |
normal file and network I/O, interval timing and calendar time, basic |
273 |
memory management (malloc and free) and shared library linking. |
274 |
|
275 |
%package -n %{devel_nspr_name} |
276 |
Epoch: %{epoch_nspr} |
277 |
Summary: Netscape Portable Runtime library - development files |
278 |
Group: Development/C++ |
279 |
Requires: %{lib_nspr_name} = %{epoch_nss}:%{version}-%{release} |
280 |
Obsoletes: nspr-devel |
281 |
Provides: nspr-devel = %{version}-%{release} |
282 |
Provides: libnspr-devel = %{version}-%{release} |
283 |
|
284 |
%description -n %{devel_nspr_name} |
285 |
Header files for doing development with the Netscape Portable Runtime. |
286 |
|
287 |
%package -n %{lib_nss_name} |
288 |
Epoch: %{epoch_nss} |
289 |
License: MPL/GPL |
290 |
URL: http://mozilla.org/projects/security/pki/nss/ |
291 |
Summary: Network Security Services (NSS) |
292 |
Group: System/Libraries |
293 |
Provides: mozilla-nss = %{version}-%{release} |
294 |
|
295 |
%description -n %{lib_nss_name} |
296 |
Network Security Services (NSS) is a set of libraries designed |
297 |
to support cross-platform development of security-enabled server |
298 |
applications. Applications built with NSS can support SSL v2 and v3, |
299 |
TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, |
300 |
and other security standards. |
301 |
|
302 |
%package -n %{devel_nss_name} |
303 |
Epoch: %{epoch_nss} |
304 |
Summary: Network Security Services (NSS) - development files |
305 |
Group: Development/C++ |
306 |
Requires: %{lib_nss_name} = %{epoch_nss}:%{version}-%{release} |
307 |
Requires: %{lib_nspr_name}-devel = %{epoch_nspr}:%{version}-%{release} |
308 |
Provides: libnss-devel = %{version}-%{release} |
309 |
Provides: nss-devel = %{version}-%{release} |
310 |
|
311 |
%description -n %{devel_nss_name} |
312 |
Header files to doing development with Network Security Services. |
313 |
%endif |
314 |
|
315 |
%if 0 |
316 |
%package devel |
317 |
Summary: SeaMonkey development files |
318 |
Group: Development/Other |
319 |
Requires: %{name} = %{epoch_mozilla}:%{version}-%{release} |
320 |
Requires: libnspr-devel |
321 |
Provides: mozilla-devel = 0:1.8-1mdk |
322 |
Obsoletes: mozilla-devel |
323 |
%description devel |
324 |
Mozilla development files |
325 |
%endif |
326 |
|
327 |
%package mail |
328 |
Summary: SeaMonkey-based mail system |
329 |
Group: Networking/Mail |
330 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
331 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
332 |
Provides: mozilla-mail = 0:1.8-1mdk |
333 |
Obsoletes: mozilla-mail |
334 |
|
335 |
%description mail |
336 |
Mail/news client based on the Mozilla web browser. The mail/news |
337 |
client supports IMAP, POP, and NNTP and has an easy to use interface. |
338 |
|
339 |
%package irc |
340 |
Summary: IRC support for SeaMonkey |
341 |
Group: Networking/IRC |
342 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
343 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
344 |
Provides: mozilla-chatzilla mozilla-chat mozilla-irc = 0:1.8-1mdk |
345 |
Obsoletes: mozilla-chatzilla mozilla-chat mozilla-irc |
346 |
|
347 |
%description irc |
348 |
IRC support for SeaMonkey. |
349 |
|
350 |
%if %{build_xmlterm} |
351 |
%package xmlterm |
352 |
Summary: XML enabled Terminal Client for SeaMonkey |
353 |
Group: Networking/Other |
354 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
355 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
356 |
Provides: mozilla-xmlterm = 0:1.8-1mdk |
357 |
Obsoletes: mozilla-xmlterm |
358 |
|
359 |
%description xmlterm |
360 |
This is a terminal client written for SeaMonkey that has special capabilities. |
361 |
When combined with the xls, and xcat programs, you can get directory listings |
362 |
with thumbnails for images, and you can cat known file types |
363 |
and view them inline. |
364 |
%endif |
365 |
|
366 |
%package js-debugger |
367 |
Summary: JavaScript debugger for use with SeaMonkey |
368 |
Group: Networking/WWW |
369 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
370 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
371 |
Provides: mozilla-js-debugger = 0:1.8-1mdk |
372 |
Obsoletes: mozilla-js-debugger |
373 |
|
374 |
%description js-debugger |
375 |
JavaScript debugger for use with SeaMonkey. |
376 |
|
377 |
%package dom-inspector |
378 |
Summary: A tool for inspecting the DOM of pages in SeaMonkey |
379 |
Group: Networking/WWW |
380 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
381 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
382 |
Provides: mozilla-dom-inspector = 0:1.8-1mdk |
383 |
Obsoletes: mozilla-dom-inspector |
384 |
|
385 |
%description dom-inspector |
386 |
This is a tool that allows you to inspect the DOM for web pages in |
387 |
SeaMonkey. This is of great use to people who are doing Mozilla chrome |
388 |
development or web page development. |
389 |
|
390 |
|
391 |
%package spellchecker |
392 |
Summary: Spellchecker for SeaMonkey |
393 |
Group: Networking/Mail |
394 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
395 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
396 |
Requires: myspell-dictionary |
397 |
Provides: mozilla-spellchecker = 0:1.8-1mdk |
398 |
Obsoletes: mozilla-spellchecker |
399 |
|
400 |
%description spellchecker |
401 |
Spellchecker package for SeaMonkey. |
402 |
|
403 |
%if %build_enigmail |
404 |
%package enigmail |
405 |
Summary: GPG encryption support for SeaMonkey |
406 |
Group: Networking/Mail |
407 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
408 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
409 |
Requires: %{name}-enigmime = %{epoch_mozilla}:%{version}-%{release} |
410 |
Requires: gnupg |
411 |
Provides: mozilla-enigmail = 0:1.8-1mdk |
412 |
Obsoletes: mozilla-enigmail |
413 |
|
414 |
%description enigmail |
415 |
GPG encryption support for SeaMonkey |
416 |
|
417 |
%package enigmime |
418 |
Summary: Inter-process communication required for enigmail |
419 |
Group: Networking/Mail |
420 |
Requires(post): %{name} = %{epoch_mozilla}:%{version}-%{release} |
421 |
Requires(postun): %{name} = %{epoch_mozilla}:%{version}-%{release} |
422 |
Requires: %{name}-mail = %{epoch_mozilla}:%{version}-%{release} |
423 |
Provides: mozilla-enigmime = 0:1.8-1mdk |
424 |
Obsoletes: mozilla-enigmime |
425 |
|
426 |
%description enigmime |
427 |
Inter-process communication required for enigmail |
428 |
%endif |
429 |
|
430 |
%prep |
431 |
rm -rf $RPM_BUILD_ROOT |
432 |
|
433 |
%setup -q -c %{name}-%{version} |
434 |
%setup -q -T -D -n %{name}-%{version}/comm-1.9.1 |
435 |
|
436 |
%if %build_enigmail |
437 |
%setup -T -D -n %{name}-%{version}/comm-1.9.1/mailnews/extensions -q -a22 |
438 |
%setup -T -D -n %{name}-%{version}/comm-1.9.1 -q |
439 |
%endif |
440 |
|
441 |
#those patches are commented for "final" version of mozilla |
442 |
%if !%build_is_final |
443 |
%patch0 -p1 -b .nodebug |
444 |
%patch23 -p1 -b .nobuildid |
445 |
%endif |
446 |
|
447 |
%patch7 -p1 -b .browser-home-page |
448 |
|
449 |
#patch46 -p1 -b .enigmailpackage |
450 |
#patch53 -p1 -b .spellcheck-system-dicts |
451 |
#patch54 -p1 -b .spellcheck-full-langname |
452 |
|
453 |
%if %build_ggdefaults |
454 |
%patch100 -p1 -b .pipelining |
455 |
%patch101 -p1 -b .mailnews |
456 |
%patch102 -p1 -b .antialias |
457 |
%patch104 -p1 -b .a4 |
458 |
%endif |
459 |
|
460 |
%if %build_corefonts |
461 |
%patch105 -p1 -b .corefonts |
462 |
%endif |
463 |
|
464 |
# Other patches |
465 |
%patch132 -p1 -b .xvt |
466 |
|
467 |
#if %build_ggdefaults |
468 |
#patch258 -p0 -b .freetype-compile |
469 |
#endif |
470 |
%patch274 -p0 -b .load-full-dso |
471 |
#patch276 -p1 -b .lang |
472 |
|
473 |
#patch299 -p2 -b .gcc41 |
474 |
#patch303 -p1 -b .enigmail-visibility |
475 |
%patch304 -p0 -b .strfmt |
476 |
%patch305 -p1 -b .subdir-optflags |
477 |
#pushd mozilla |
478 |
#patch306 -p1 -b .cairo |
479 |
#popd |
480 |
%patch307 -p0 -b .jemalloc |
481 |
%patch308 -p0 -b .path |
482 |
%patch309 -p1 -b .block-enigprefs |
483 |
|
484 |
#rm -f profile/defaults/bookmarks.html |
485 |
#touch profile/defaults/bookmarks.html |
486 |
#cp %{SOURCE23} xpfe/components/search/datasets |
487 |
|
488 |
# let jars get compressed |
489 |
%__perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl |
490 |
|
491 |
%build |
492 |
#needed by patch 178, 182 & 205 & 262 |
493 |
autoconf-2.13 |
494 |
#needed by patch305 |
495 |
pushd mozilla |
496 |
autoconf-2.13 |
497 |
pushd js/src |
498 |
autoconf-2.13 |
499 |
popd |
500 |
popd |
501 |
|
502 |
# needed by patch291 |
503 |
pushd directory/c-sdk |
504 |
rm -f configure |
505 |
aclocal -I config/autoconf |
506 |
autoconf |
507 |
popd |
508 |
|
509 |
# needed to regenerate certdata.c |
510 |
%if %{mdkversion} >= 200610 |
511 |
cd mozilla/security/nss/lib/ckfw/builtins |
512 |
perl ./certdata.perl < /etc/pki/tls/mozilla/certdata.txt |
513 |
cd - |
514 |
%endif |
515 |
export MOZ_BUILD_DATE="%{releasedate}" |
516 |
|
517 |
OPT_FLAGS="$RPM_OPT_FLAGS" |
518 |
|
519 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 \ |
520 |
./configure --build=%{_target_platform} \ |
521 |
--enable-application=suite \ |
522 |
--prefix=%{_prefix} --libdir=%{_libdir} \ |
523 |
--enable-optimize="$OPT_FLAGS" \ |
524 |
--disable-strip \ |
525 |
%if %build_debug |
526 |
--enable-debug \ |
527 |
%else |
528 |
--disable-debug \ |
529 |
%endif |
530 |
--disable-pedantic \ |
531 |
--disable-tests \ |
532 |
--enable-crypto \ |
533 |
%if %{build_nspr_nss} |
534 |
--enable-nspr-autoconf \ |
535 |
--without-system-nspr \ |
536 |
--without-system-nss \ |
537 |
%else |
538 |
--with-system-nspr \ |
539 |
--with-system-nss \ |
540 |
%endif |
541 |
--with-default-mozilla-five-home=%{mozillalibdir} \ |
542 |
--disable-short-wchar \ |
543 |
--enable-xinerama \ |
544 |
--enable-mathml \ |
545 |
--with-system-zlib \ |
546 |
--with-system-png \ |
547 |
--disable-system-cairo \ |
548 |
--with-system-bz2 \ |
549 |
--with-system-jpeg \ |
550 |
--enable-ipv6 \ |
551 |
--enable-system-sqlite \ |
552 |
--enable-system-hunspell \ |
553 |
--enable-old-abi-compat-wrappers --mandir=%{_mandir} \ |
554 |
%if %enable_svg |
555 |
--enable-svg \ |
556 |
--enable-svg-renderer-libart \ |
557 |
%endif |
558 |
--enable-xft \ |
559 |
%if %build_ggdefaults |
560 |
--enable-freetype2 \ |
561 |
%else |
562 |
--disable-freetype2 \ |
563 |
%endif |
564 |
%if %build_pango |
565 |
--enable-pango \ |
566 |
%endif |
567 |
--disable-crashreporter \ |
568 |
--enable-default-toolkit=%{toolkit} |
569 |
|
570 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s export |
571 |
pushd directory/c-sdk/ldap |
572 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s export |
573 |
popd |
574 |
#only this part should be parallel (ie use make macro) |
575 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s libs |
576 |
pushd mozilla/xpcom/tools/registry |
577 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s libs |
578 |
popd |
579 |
|
580 |
%if %build_enigmail |
581 |
#cd extensions/ipc |
582 |
#./makemake |
583 |
#BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s |
584 |
cd mailnews/extensions/enigmail |
585 |
./makemake -r |
586 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s |
587 |
(cd lang |
588 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %make -s |
589 |
) |
590 |
cd ../../.. |
591 |
%endif |
592 |
|
593 |
%install |
594 |
rm -rf $RPM_BUILD_ROOT |
595 |
|
596 |
mkdir -p $RPM_BUILD_ROOT%{mozillalibdir}/plugins |
597 |
|
598 |
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 %makeinstall_std |
599 |
|
600 |
%if %{build_nspr_nss} |
601 |
#move nspr/nss to %{_libdir} |
602 |
mv $RPM_BUILD_ROOT%{mozillalibdir}/{libnspr4.so,libplc4.so,libplds4.so,libnss3.so,libnssckbi.so,libsmime3.so,libsoftokn3.so,libssl3.so,libsoftokn3.chk} $RPM_BUILD_ROOT%{_libdir} |
603 |
|
604 |
# create a list of all of the different package and the files that |
605 |
# will hold them |
606 |
rm -f %{_tmppath}/mozilla-nspr.list |
607 |
|
608 |
%{SOURCE25} --package nspr \ |
609 |
--output-file %{_tmppath}/mozilla-nspr.list \ |
610 |
--package-file suite/installer/packages \ |
611 |
--install-dir $RPM_BUILD_ROOT%{_libdir} \ |
612 |
--install-root %{_libdir} |
613 |
|
614 |
rm -f %{_tmppath}/mozilla-nss.list |
615 |
%{SOURCE25} --package nss \ |
616 |
--output-file %{_tmppath}/mozilla-nss.list \ |
617 |
--package-file suite/installer/packages \ |
618 |
--install-dir $RPM_BUILD_ROOT%{_libdir} \ |
619 |
--install-root %{_libdir} |
620 |
%endif |
621 |
|
622 |
rm -f %{_tmppath}/mozilla.list |
623 |
%{SOURCE25} --package langenus \ |
624 |
--output-file %{_tmppath}/mozilla.list \ |
625 |
--package-file suite/installer/packages \ |
626 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
627 |
--install-root %{mozillalibdir} |
628 |
|
629 |
%{SOURCE25} --package regus \ |
630 |
--output-file %{_tmppath}/mozilla.list \ |
631 |
--package-file suite/installer/packages \ |
632 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
633 |
--install-root %{mozillalibdir} |
634 |
|
635 |
%{SOURCE25} --package deflenus \ |
636 |
--output-file %{_tmppath}/mozilla.list \ |
637 |
--package-file suite/installer/packages \ |
638 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
639 |
--install-root %{mozillalibdir} |
640 |
|
641 |
%{SOURCE25} --package xpcom \ |
642 |
--output-file %{_tmppath}/mozilla.list \ |
643 |
--package-file suite/installer/packages \ |
644 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
645 |
--install-root %{mozillalibdir} \ |
646 |
--exclude-file=%{SOURCE27} |
647 |
|
648 |
%{SOURCE25} --package browser \ |
649 |
--output-file %{_tmppath}/mozilla.list \ |
650 |
--package-file suite/installer/packages \ |
651 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
652 |
--install-root %{mozillalibdir} |
653 |
|
654 |
# workaround for bug 81429 |
655 |
(cd $RPM_BUILD_ROOT%{mozillalibdir} |
656 |
ln -s ../libnssckbi.so libnssckbi.so |
657 |
) |
658 |
|
659 |
|
660 |
rm -f %{_tmppath}/mozilla-mail.list |
661 |
%{SOURCE25} --package mail --output-file %{_tmppath}/mozilla-mail.list \ |
662 |
--package-file suite/installer/packages \ |
663 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
664 |
--install-root %{mozillalibdir} |
665 |
|
666 |
%{SOURCE25} --package psm \ |
667 |
--output-file %{_tmppath}/mozilla.list \ |
668 |
--package-file suite/installer/packages \ |
669 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
670 |
--install-root %{mozillalibdir} \ |
671 |
--exclude-file=%{SOURCE28} |
672 |
|
673 |
rm -f %{_tmppath}/mozilla-chat.list |
674 |
%{SOURCE25} --package chatzilla --output-file %{_tmppath}/mozilla-chat.list \ |
675 |
--package-file suite/installer/packages \ |
676 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
677 |
--install-root %{mozillalibdir} |
678 |
|
679 |
rm -f %{_tmppath}/mozilla-js-debugger.list |
680 |
%{SOURCE25} --package venkman \ |
681 |
--output-file %{_tmppath}/mozilla-js-debugger.list \ |
682 |
--package-file suite/installer/packages \ |
683 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
684 |
--install-root %{mozillalibdir} |
685 |
|
686 |
rm -f %{_tmppath}/mozilla-dom-inspector.list |
687 |
%{SOURCE25} --package inspector \ |
688 |
--output-file %{_tmppath}/mozilla-dom-inspector.list \ |
689 |
--package-file suite/installer/packages \ |
690 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
691 |
--install-root %{mozillalibdir} |
692 |
|
693 |
cat >%{_tmppath}/mozilla-spellchecker-exclude.list <<EOF |
694 |
dictionaries/en-US.aff |
695 |
dictionaries/en-US.dic |
696 |
EOF |
697 |
|
698 |
rm -f %{_tmppath}/mozilla-spellchecker.list |
699 |
%{SOURCE25} --package spellcheck \ |
700 |
--output-file %{_tmppath}/mozilla-spellchecker.list \ |
701 |
--package-file suite/installer/packages \ |
702 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
703 |
--install-root %{mozillalibdir} \ |
704 |
--exclude-file=%{_tmppath}/mozilla-spellchecker-exclude.list |
705 |
|
706 |
%if %build_enigmail |
707 |
#hack to get the enigmail stuff to install: |
708 |
for i in components/enigmime.xpt components/ipc.xpt components/libenigmime.so \ |
709 |
components/enigmail.js components/enigmail.xpt chrome/enigmail.jar \ |
710 |
components/enigprefs-service.js \ |
711 |
chrome/enigmime.jar defaults/pref/enigmail.js ; do |
712 |
install mozilla/dist/bin/$i $RPM_BUILD_ROOT/%{mozillalibdir}/$i; |
713 |
done |
714 |
|
715 |
# chrome/enigmail-skin.jar chrome/enigmail-en-US.jar |
716 |
|
717 |
chmod 644 $RPM_BUILD_ROOT/%{mozillalibdir}/defaults/pref/enigmail.js |
718 |
perl -pi -e 's|agentPath",""|agentPath","/usr/bin/gpg"|' $RPM_BUILD_ROOT/%{mozillalibdir}/defaults/pref/enigmail.js |
719 |
|
720 |
rm -f %{_tmppath}/mozilla-enigmail.list |
721 |
%{SOURCE25} --package enigmail \ |
722 |
--output-file %{_tmppath}/mozilla-enigmail.list \ |
723 |
--package-file suite/installer/packages \ |
724 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
725 |
--install-root %{mozillalibdir} |
726 |
|
727 |
rm -f %{_tmppath}/mozilla-enigmime.list |
728 |
%{SOURCE25} --package enigmime \ |
729 |
--output-file %{_tmppath}/mozilla-enigmime.list \ |
730 |
--package-file suite/installer/packages \ |
731 |
--install-dir $RPM_BUILD_ROOT%{mozillalibdir} \ |
732 |
--install-root %{mozillalibdir} |
733 |
%endif |
734 |
|
735 |
# copy xmlterm files |
736 |
%if %{build_xmlterm} |
737 |
/bin/cp -rL dist/bin/{xmlterm,xcat,xenv,xls} $RPM_BUILD_ROOT%{_bindir} || \ |
738 |
/bin/cp -r dist/bin/{xmlterm,xcat,xenv,xls} $RPM_BUILD_ROOT%{_bindir} |
739 |
/bin/cp -rL dist/bin/chrome/xmlterm.jar $RPM_BUILD_ROOT%{mozillalibdir}/chrome || \ |
740 |
/bin/cp -r dist/bin/chrome/xmlterm.jar $RPM_BUILD_ROOT%{mozillalibdir}/chrome |
741 |
/bin/cp -rL dist/bin/components/*xmlterm* $RPM_BUILD_ROOT%{mozillalibdir}/components || \ |
742 |
/bin/cp -r dist/bin/components/*xmlterm* $RPM_BUILD_ROOT%{mozillalibdir}/components |
743 |
%endif |
744 |
|
745 |
# install l10n files |
746 |
%if %{enable_l10n} |
747 |
cat %{SOURCE99} >$RPM_BUILD_ROOT%{mozillalibdir}/chrome/locale.alias |
748 |
mkdir -p $RPM_BUILD_ROOT%{mozillalibdir}/extensions |
749 |
pushd $RPM_BUILD_ROOT%{mozillalibdir}/extensions |
750 |
for lang in %{l10ns}; do |
751 |
RPMLANG=$(echo $lang|cut -d '-' -f 1) |
752 |
l10ndir=langpack-${lang}@seamonkey.mozilla.org |
753 |
mkdir -p ${l10ndir} |
754 |
pushd ${l10ndir} |
755 |
unzip -o %{_sourcedir}/%{name}-%{version}.${lang}.langpack.xpi |
756 |
popd |
757 |
echo "%lang($RPMLANG) %{mozillalibdir}/extensions/${l10ndir}" >> %{_tmppath}/mozilla.list |
758 |
done |
759 |
echo "%{mozillalibdir}/chrome/locale.alias" >> %{_tmppath}/mozilla.list |
760 |
popd |
761 |
%endif |
762 |
|
763 |
cp mozilla/dist/bin/regxpcom $RPM_BUILD_ROOT%{mozillalibdir}/ |
764 |
|
765 |
# build our initial component and chrome registry |
766 |
# we don't need to do this anymore |
767 |
pushd `pwd` |
768 |
cd $RPM_BUILD_ROOT%{mozillalibdir} |
769 |
# register our components |
770 |
# LD_LIBRARY_PATH=`pwd`/..:`pwd` MOZILLA_FIVE_HOME=`pwd` ./regxpcom |
771 |
# set up the default skin and locale to trigger the generation of |
772 |
# the user-locales and users-skins.rdf |
773 |
echo "skin,install,select,classic/1.0" >> chrome/installed-chrome.txt |
774 |
echo "locale,install,select,en-US" >> chrome/installed-chrome.txt |
775 |
# fix permissions of the chrome directories |
776 |
find . -type d -perm 0700 -exec chmod 755 {} \; || : |
777 |
popd |
778 |
|
779 |
# cp -L (dereference all symlinks) is required for fileutils >= 2.0.27 |
780 |
# (POSIX compliance); prior versions don't understand -L, so fall back... |
781 |
|
782 |
%if %{build_nspr_nss} |
783 |
# copy the nss files to the right place |
784 |
mkdir -p $RPM_BUILD_ROOT%{mozillaincludedir}/nss/ |
785 |
find security/nss/lib/ -name '*.h' -type f -exec /bin/cp {} \ |
786 |
$RPM_BUILD_ROOT%{mozillaincludedir}/nss/ \; |
787 |
%endif |
788 |
|
789 |
# build the list of include files |
790 |
rm -f %{_tmppath}/mozilla-devel.list |
791 |
rm -f %{_tmppath}/mozilla-nss-devel.list |
792 |
rm -f %{_tmppath}/mozilla-nspr-devel.list |
793 |
|
794 |
%if 0 |
795 |
find $RPM_BUILD_ROOT%{mozillaincludedir}/ -type f | \ |
796 |
sed -e "s,$RPM_BUILD_ROOT,," | \ |
797 |
grep -v "%{mozillaincludedir}/nss" | \ |
798 |
grep -v "%{mozillaincludedir}/nspr" > \ |
799 |
%{_tmppath}/mozilla-devel.list |
800 |
%endif |
801 |
|
802 |
%if %{build_nspr_nss} |
803 |
find $RPM_BUILD_ROOT%{mozillaincludedir}/ -type f | \ |
804 |
sed -e "s,$RPM_BUILD_ROOT,," | \ |
805 |
grep "%{mozillaincludedir}/nspr" > \ |
806 |
%{_tmppath}/mozilla-nspr-devel.list |
807 |
|
808 |
find $RPM_BUILD_ROOT%{mozillaincludedir}/ -type f | \ |
809 |
sed -e "s,$RPM_BUILD_ROOT,," | \ |
810 |
grep "%{mozillaincludedir}/nss" > \ |
811 |
%{_tmppath}/mozilla-nss-devel.list |
812 |
%endif |
813 |
|
814 |
|
815 |
# copy our devel tools |
816 |
#install -c -m 755 dist/bin/xpcshell \ |
817 |
# dist/bin/xpidl \ |
818 |
# dist/bin/xpt_dump \ |
819 |
# dist/bin/xpt_link \ |
820 |
# $RPM_BUILD_ROOT%{mozillalibdir} |
821 |
|
822 |
mkdir -p $RPM_BUILD_ROOT%{_miconsdir} $RPM_BUILD_ROOT%{_liconsdir} |
823 |
|
824 |
cp -f %SOURCE2 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png |
825 |
cp -f %SOURCE3 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png |
826 |
cp -f %SOURCE4 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png |
827 |
|
828 |
# move manpage in the correct directory |
829 |
#mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 |
830 |
#mv $RPM_BUILD_ROOT/usr/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1/ |
831 |
|
832 |
# install our mozilla.sh file |
833 |
rm -f $RPM_BUILD_ROOT%{_bindir}/seamonkey |
834 |
bzcat %{SOURCE10} | sed -e "s|SEAMONKEY_VERSION|%{dirversion}|g;s|LIBDIR|%{_libdir}|g" > $RPM_BUILD_ROOT%{_bindir}/seamonkey |
835 |
chmod 755 $RPM_BUILD_ROOT%{_bindir}/seamonkey |
836 |
|
837 |
# install our rebuild file |
838 |
cat %{SOURCE26} | sed -e "s|SEAMONKEY_VERSION|%{dirversion}|g;s|LIBDIR|%{_libdir}|g" > \ |
839 |
$RPM_BUILD_ROOT%{mozillalibdir}/seamonkey-rebuild-databases.pl |
840 |
|
841 |
chmod 755 \ |
842 |
$RPM_BUILD_ROOT%{mozillalibdir}/seamonkey-rebuild-databases.pl |
843 |
|
844 |
# we own /usr/lib/mozilla/plugins which is the version-independent |
845 |
# place that our plugins can be installed |
846 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins |
847 |
|
848 |
%if %build_gre |
849 |
# install the gre.conf file |
850 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} |
851 |
echo [%{version}] > $RPM_BUILD_ROOT%{_sysconfdir}/gre.conf |
852 |
echo GRE_PATH=%{mozillalibdir} >> $RPM_BUILD_ROOT%{_sysconfdir}/gre.conf |
853 |
%endif |
854 |
|
855 |
# installs menu file |
856 |
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/applications |
857 |
|
858 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF |
859 |
[Desktop Entry] |
860 |
Name=SeaMonkey Navigator |
861 |
Comment=Seamonkey Navigator web browser |
862 |
Exec=%{_bindir}/seamonkey %u |
863 |
Icon=seamonkey |
864 |
Terminal=false |
865 |
Type=Application |
866 |
StartupNotify=true |
867 |
Categories=GTK;Network;WebBrowser;X-MandrivaLinux-Internet-WebBrowsers; |
868 |
StartupWMClass=Seamonkey-bin |
869 |
EOF |
870 |
|
871 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}-composer.desktop << EOF |
872 |
[Desktop Entry] |
873 |
Name=SeaMonkey Composer |
874 |
Comment=Seamonkey Composer HTML editor |
875 |
Exec=%{_bindir}/seamonkey -edit %u |
876 |
Icon=seamonkey |
877 |
Terminal=false |
878 |
Type=Application |
879 |
StartupNotify=true |
880 |
Categories=GTK;Network;WebDevelopment;X-MandrivaLinux-Internet-WebEditors; |
881 |
StartupWMClass=Seamonkey-bin |
882 |
EOF |
883 |
|
884 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}-mail.desktop << EOF |
885 |
[Desktop Entry] |
886 |
Name=SeaMonkey Mail |
887 |
Comment=Seamonkey Mail & Newsgroups e-mail client |
888 |
Exec=%{_bindir}/seamonkey -mail |
889 |
Icon=seamonkey |
890 |
Terminal=false |
891 |
Type=Application |
892 |
StartupNotify=true |
893 |
Categories=GTK;X-MandrivaLinux-Internet-Mail;Office;Network;Email; |
894 |
StartupWMClass=Seamonkey-bin |
895 |
EOF |
896 |
|
897 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}-addressbook.desktop << EOF |
898 |
[Desktop Entry] |
899 |
Name=SeaMonkey Address Book |
900 |
Comment=Seamonkey Address Book |
901 |
Exec=%{_bindir}/seamonkey -addressbook |
902 |
Icon=seamonkey |
903 |
Terminal=false |
904 |
Type=Application |
905 |
StartupNotify=true |
906 |
Categories=GTK;X-MandrivaLinux-Internet-Mail;Office;Network;Email; |
907 |
StartupWMClass=Seamonkey-bin |
908 |
EOF |
909 |
|
910 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}-news.desktop << EOF |
911 |
[Desktop Entry] |
912 |
Name=SeaMonkey News |
913 |
Comment=Seamonkey Mail & Newsgroups news reader |
914 |
Exec=%{_bindir}/seamonkey -news |
915 |
Icon=seamonkey |
916 |
Terminal=false |
917 |
Type=Application |
918 |
StartupNotify=true |
919 |
Categories=GTK;X-MandrivaLinux-Internet-News;Network;News; |
920 |
StartupWMClass=Seamonkey-bin |
921 |
EOF |
922 |
|
923 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}-chat.desktop << EOF |
924 |
[Desktop Entry] |
925 |
Name=ChatZilla |
926 |
Comment=Seamonkey IRC client |
927 |
Exec=%{_bindir}/seamonkey -chat |
928 |
Icon=seamonkey |
929 |
Terminal=false |
930 |
Type=Application |
931 |
StartupNotify=true |
932 |
Categories=GTK;X-MandrivaLinux-Internet-Chat;Network;IRCClient; |
933 |
StartupWMClass=Seamonkey-bin |
934 |
EOF |
935 |
|
936 |
%if %{build_xmlterm} |
937 |
# installs menu file |
938 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}-xmlterm.desktop << EOF |
939 |
[Desktop Entry] |
940 |
Name=SeaMonkey XMLTerm |
941 |
Comment=Seamonkey XMLTerm terminal emulator implemented with Mozilla toolkit |
942 |
Exec=%{_bindir}/seamonkey -terminal |
943 |
Icon=seamonkey |
944 |
Terminal=false |
945 |
Type=Application |
946 |
StartupNotify=true |
947 |
Categories=GTK;X-MandrivaLinux-System-Terminals;TerminalEmulator; |
948 |
StartupWMClass=Seamonkey-bin |
949 |
EOF |
950 |
%endif |
951 |
|
952 |
# .js files should not be executable |
953 |
chmod a-x $RPM_BUILD_ROOT%{mozillalibdir}/components/*.js |
954 |
|
955 |
# disable check for new versions |
956 |
sed -i -re 's/("app.update.enabled", )true/\1false/' $RPM_BUILD_ROOT%{mozillalibdir}/defaults/pref/browser-prefs.js |
957 |
|
958 |
# remove unpackaged files |
959 |
rm -rf $RPM_BUILD_ROOT%{mozillalibdir}/chrome/{cview,embed-sample,layoutdebug,tasks}.jar \ |
960 |
$RPM_BUILD_ROOT%{mozillalibdir}/chrome/icons/default/{calendar-*,default}.xpm \ |
961 |
$RPM_BUILD_ROOT%{mozillalibdir}/components/{accessproxy,content,iiextras,xmlsecurity,ipcd,profilesharingsetup,transmngr,ucnative,layout_debug}.xpt \ |
962 |
$RPM_BUILD_ROOT%{mozillalibdir}/components/{libaccessproxy,libiiextras,libnkdatetime,libnkfinger,libembed_lite,libipcdc,libtransmngr_client,libgkdebug}.so \ |
963 |
$RPM_BUILD_ROOT%{mozillalibdir}/defaults/profile/US/chrome/*example.css \ |
964 |
$RPM_BUILD_ROOT%{mozillalibdir}/defaults/profile/chrome/*example.css \ |
965 |
$RPM_BUILD_ROOT%{mozillalibdir}/res/{gfx/icon_0.gif,gfx/icon_1.gif} \ |
966 |
$RPM_BUILD_ROOT%{mozillalibdir}/res/rdf/*test* \ |
967 |
$RPM_BUILD_ROOT%{mozillalibdir}/res/sample.unixpsfonts.properties \ |
968 |
$RPM_BUILD_ROOT%{mozillalibdir}/res/throbber \ |
969 |
$RPM_BUILD_ROOT%{mozillalibdir}/res/viewer.properties \ |
970 |
$RPM_BUILD_ROOT%{mozillalibdir}/{timebombgen,TestGtkEmbed*,libnullplugin.so,mozilla-ipcd,tmModuleTest,TestIPC} \ |
971 |
$RPM_BUILD_ROOT%{mozillalibdir}/ipc/modules/{liblockmodule,libtestmodule,libtransmgr}.so \ |
972 |
$RPM_BUILD_ROOT%{mozillalibdir}/{liblockmodule,libtestmodule,libtr\ansmngr}.so \ |
973 |
$RPM_BUILD_ROOT%{mozillalibdir}/mozilla-installer-bin \ |
974 |
$RPM_BUILD_ROOT%{mozillalibdir}/res/samples \ |
975 |
$RPM_BUILD_ROOT%{mozillalibdir}/dictionaries |
976 |
|
977 |
# $RPM_BUILD_ROOT%{mozillalibdir}/extensions \ |
978 |
# $RPM_BUILD_ROOT%{mozillalibdir}/res/samples/sampleimages |
979 |
|
980 |
%if %{build_xmlterm} |
981 |
rm -f $RPM_BUILD_ROOT%{mozillalibdir}/{xcat,xenv,xls,xmlterm} \ |
982 |
$RPM_BUILD_ROOT%{mozillalibdir}/escape \ |
983 |
$RPM_BUILD_ROOT%{mozillalibdir}/teststream \ |
984 |
$RPM_BUILD_ROOT%{mozillalibdir}/DocStream \ |
985 |
$RPM_BUILD_ROOT%{mozillalibdir}/HelloWorld \ |
986 |
$RPM_BUILD_ROOT%{mozillalibdir}/INSTALL.xmlterm |
987 |
%endif |
988 |
|
989 |
%if !%{build_nspr_nss} |
990 |
rm -rf $RPM_BUILD_ROOT%{mozillaincludedir}/nspr \ |
991 |
$RPM_BUILD_ROOT%{mozillaincludedir}/nss \ |
992 |
$RPM_BUILD_ROOT%{mozillalibdir}/{libplc4.so,libplds4.so,libsmime3.so,libsoftokn3.so,libssl3.so,libnspr4.so,libnss3.so,libnssckbi.so} \ |
993 |
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/seamonkey-{nspr,nss}.pc \ |
994 |
$RPM_BUILD_ROOT%{_datadir}/aclocal/nspr.m4 |
995 |
##sed -i -e 's/mozilla-nspr = %{version}/mozilla-nspr/' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/seamonkey-xpcom.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/seamonkey-js.pc |
996 |
##ln -s nspr.pc %{buildroot}%{_libdir}/pkgconfig/seamonkey-nspr.pc |
997 |
##ln -s nss.pc %{buildroot}%{_libdir}/pkgconfig/seamonkey-nss.pc |
998 |
%endif |
999 |
|
1000 |
# multiarch |
1001 |
##multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/seamonkey-config |
1002 |
##multiarch_includes $RPM_BUILD_ROOT%{_includedir}/seamonkey-%{version}/{mozilla-config.h,js/jsautocfg.h} |
1003 |
|
1004 |
# myspell dictionaries |
1005 |
ln -s ../../share/dict/mozilla $RPM_BUILD_ROOT%{mozillalibdir}/dictionaries |
1006 |
|
1007 |
%if %build_debug |
1008 |
export DONT_STRIP=1 |
1009 |
%endif |
1010 |
|
1011 |
%clean |
1012 |
rm -rf $RPM_BUILD_ROOT |
1013 |
rm -f %{_tmppath}/mozilla*.list |
1014 |
|
1015 |
|
1016 |
%post |
1017 |
%if %mdkversion < 200900 |
1018 |
%{update_menus} |
1019 |
%endif |
1020 |
ulimit -c 0 |
1021 |
# run ldconfig before regxpcom |
1022 |
/sbin/ldconfig >/dev/null 2>/dev/null |
1023 |
|
1024 |
# we should only rebuild database for first install |
1025 |
# rebuild for update is done in postun |
1026 |
# but it seems we need we might need to do it twince |
1027 |
if [ -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1028 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1029 |
fi |
1030 |
|
1031 |
if [ "$1" = "2" ]; then |
1032 |
update-alternatives --remove webclient-gnome /usr/bin/mozilla |
1033 |
update-alternatives --remove webclient-kde /usr/bin/mozilla |
1034 |
fi |
1035 |
|
1036 |
# Default to paper size from locale setting |
1037 |
case `LC_ALL=$LC_MESSAGES /usr/bin/locale -k LC_PAPER | grep width` in |
1038 |
*216) paper="letter";; |
1039 |
*) paper="a4";; |
1040 |
esac |
1041 |
perl -pi -e "s/^(pref\(\"print.postscript.paper_size\",[^\"]+)\"[a-z0-9]+\"/\1\"$paper\"/" \ |
1042 |
%{mozillalibdir}/greprefs/all.js |
1043 |
|
1044 |
if [ ! -r /etc/sysconfig/oem ]; then |
1045 |
case `grep META_CLASS /etc/sysconfig/system` in |
1046 |
*server) bookmark="mozilla-powerpackplus.html" ;; |
1047 |
*PowerPack) bookmark="mozilla-powerpack.html" ;; |
1048 |
*) bookmark="mozilla-discovery-download.html";; |
1049 |
esac |
1050 |
ln -s -f $bookmark %{mozillalibdir}/defaults/profile/bookmarks.html |
1051 |
fi |
1052 |
|
1053 |
%preun |
1054 |
if [ "$1" = "0" ]; then |
1055 |
/bin/rm -rf %{mozillalibdir}/chrome/overlayinfo |
1056 |
/bin/rm -f %{mozillalibdir}/chrome/*.rdf |
1057 |
fi |
1058 |
|
1059 |
%postun |
1060 |
%if %mdkversion < 200900 |
1061 |
%{clean_menus} |
1062 |
%endif |
1063 |
# was this an upgrade? |
1064 |
if [ "$1" == "2" -a -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1065 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1066 |
fi |
1067 |
|
1068 |
%if %{build_nspr_nss} |
1069 |
%if %mdkversion < 200900 |
1070 |
%post -n %{lib_nspr_name} -p /sbin/ldconfig |
1071 |
%endif |
1072 |
%if %mdkversion < 200900 |
1073 |
%postun -n %{lib_nspr_name} -p /sbin/ldconfig |
1074 |
%endif |
1075 |
%endif |
1076 |
|
1077 |
%post mail |
1078 |
%if %mdkversion < 200900 |
1079 |
%{update_menus} |
1080 |
%endif |
1081 |
# run ldconfig before regxpcom |
1082 |
/sbin/ldconfig >/dev/null 2>/dev/null |
1083 |
|
1084 |
if [ -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1085 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1086 |
fi |
1087 |
|
1088 |
%postun mail |
1089 |
%if %mdkversion < 200900 |
1090 |
%{clean_menus} |
1091 |
%endif |
1092 |
# run ldconfig before regxpcom |
1093 |
/sbin/ldconfig >/dev/null 2>/dev/null |
1094 |
|
1095 |
if [ -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1096 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1097 |
fi |
1098 |
|
1099 |
|
1100 |
%post irc |
1101 |
if [ -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1102 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1103 |
fi |
1104 |
|
1105 |
%postun irc |
1106 |
if [ -x %{mozillalibdir}seamonkey-rebuild-databases.pl ]; then |
1107 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1108 |
fi |
1109 |
|
1110 |
%if %{build_xmlterm} |
1111 |
%post xmlterm |
1112 |
%if %mdkversion < 200900 |
1113 |
%{update_menus} |
1114 |
%endif |
1115 |
if [ -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1116 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1117 |
fi |
1118 |
|
1119 |
|
1120 |
%postun xmlterm |
1121 |
%if %mdkversion < 200900 |
1122 |
%{clean_menus} |
1123 |
%endif |
1124 |
if [ -x %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1125 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1126 |
fi |
1127 |
%endif |
1128 |
|
1129 |
%post js-debugger |
1130 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1131 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1132 |
fi |
1133 |
|
1134 |
%postun js-debugger |
1135 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1136 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1137 |
fi |
1138 |
|
1139 |
%post dom-inspector |
1140 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1141 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1142 |
fi |
1143 |
|
1144 |
%postun dom-inspector |
1145 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1146 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1147 |
fi |
1148 |
|
1149 |
%post spellchecker |
1150 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1151 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1152 |
fi |
1153 |
|
1154 |
%postun spellchecker |
1155 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1156 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1157 |
fi |
1158 |
|
1159 |
%if %build_enigmail |
1160 |
%post enigmail |
1161 |
if [ -f %{mozillalibdir}/chrome/installed-chrome.txt ]; then |
1162 |
# make sure we don't have old registration info around |
1163 |
perl -pi -e 's/.*enigmail.*\n//' %{mozillalibdir}/chrome/installed-chrome.txt |
1164 |
cat << EOF >> %{mozillalibdir}/chrome/installed-chrome.txt |
1165 |
content,install,url,jar:resource:/chrome/enigmail.jar!/content/enigmail/ |
1166 |
skin,install,url,jar:resource:/chrome/enigmail.jar!/skin/modern/enigmail/ |
1167 |
skin,install,url,jar:resource:/chrome/enigmail.jar!/skin/classic/enigmail/ |
1168 |
EOF |
1169 |
cd %{mozillalibdir}/chrome/ |
1170 |
for i in enigmail-*-*.jar ; do |
1171 |
LOC=`echo $i | sed -e "s/.jar//" -e "s/enigmail-//"` |
1172 |
cat << EOF >> %{mozillalibdir}/chrome/installed-chrome.txt |
1173 |
locale,install,url,jar:resource:/chrome/$i!/locale/$LOC/enigmail/ |
1174 |
EOF |
1175 |
done |
1176 |
cd - >/dev/null |
1177 |
fi |
1178 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1179 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1180 |
fi |
1181 |
|
1182 |
%postun enigmail |
1183 |
# only remove on uninstall |
1184 |
if [ "$1" = "0" ]; then |
1185 |
if [ -f %{mozillalibdir}/chrome/installed-chrome.txt ]; then |
1186 |
perl -pi -e 's/.*enigmail.*\n//' %{mozillalibdir}/chrome/installed-chrome.txt |
1187 |
fi |
1188 |
fi |
1189 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1190 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1191 |
fi |
1192 |
|
1193 |
%post enigmime |
1194 |
if [ -f %{mozillalibdir}/chrome/installed-chrome.txt ]; then |
1195 |
# make sure we don't have old registration info around |
1196 |
perl -pi -e 's/.*enigmime.*\n//' %{mozillalibdir}/chrome/installed-chrome.txt |
1197 |
cat << EOF >> %{mozillalibdir}/chrome/installed-chrome.txt |
1198 |
content,install,url,jar:resource:/chrome/enigmime.jar!/content/enigmime/ |
1199 |
EOF |
1200 |
fi |
1201 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1202 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1203 |
fi |
1204 |
|
1205 |
%postun enigmime |
1206 |
# only remove on uninstall |
1207 |
if [ "$1" = "0" ]; then |
1208 |
if [ -f %{mozillalibdir}/chrome/installed-chrome.txt ]; then |
1209 |
perl -pi -e 's/.*enigmime.*\n//' %{mozillalibdir}/chrome/installed-chrome.txt |
1210 |
fi |
1211 |
fi |
1212 |
|
1213 |
if [ -f %{mozillalibdir}/seamonkey-rebuild-databases.pl ]; then |
1214 |
%{mozillalibdir}/seamonkey-rebuild-databases.pl |
1215 |
fi |
1216 |
%endif |
1217 |
|
1218 |
|
1219 |
%files -f %{_tmppath}/mozilla.list |
1220 |
%defattr(-,root,root) |
1221 |
%attr(755,root,root) %{_bindir}/seamonkey |
1222 |
%attr(755,root,root) %{mozillalibdir}/seamonkey-rebuild-databases.pl |
1223 |
%if %build_gre |
1224 |
%config(noreplace) %{_sysconfdir}/gre.conf |
1225 |
%endif |
1226 |
##{_mandir}/man1/* |
1227 |
%{_datadir}/applications/mandriva-%{name}.desktop |
1228 |
%{_datadir}/applications/mandriva-%{name}-composer.desktop |
1229 |
%{_miconsdir}/*.png |
1230 |
%{_iconsdir}/*.png |
1231 |
%{_liconsdir}/*.png |
1232 |
%dir %{_libdir}/mozilla |
1233 |
%dir %{mozillaplugindir} |
1234 |
|
1235 |
%ghost %{mozillalibdir}/defaults/profile/bookmarks.html |
1236 |
##{mozillalibdir}/defaults/profile/US/mozilla-*.html |
1237 |
|
1238 |
%dir %{mozillalibdir}/defaults/autoconfig |
1239 |
%dir %{mozillalibdir}/defaults/pref |
1240 |
##dir %{mozillalibdir}/defaults/messenger/US |
1241 |
%dir %{mozillalibdir}/defaults/messenger |
1242 |
##dir %{mozillalibdir}/defaults/profile/US |
1243 |
%dir %{mozillalibdir}/defaults/profile |
1244 |
##dir %{mozillalibdir}/defaults/wallet |
1245 |
%dir %{mozillalibdir}/defaults |
1246 |
%dir %{mozillalibdir}/chrome |
1247 |
%dir %{mozillalibdir}/chrome/icons |
1248 |
%dir %{mozillalibdir}/chrome/icons/default |
1249 |
%dir %{mozillalibdir}/components |
1250 |
%dir %{mozillalibdir}/greprefs |
1251 |
##dir %{mozillalibdir}/init.d |
1252 |
%dir %{mozillalibdir}/res/dtd |
1253 |
%dir %{mozillalibdir}/res/html |
1254 |
#dir %{mozillalibdir}/res/samples |
1255 |
%dir %{mozillalibdir}/res/entityTables |
1256 |
#dir %{mozillalibdir}/res/rdf |
1257 |
%dir %{mozillalibdir}/res/fonts |
1258 |
%dir %{mozillalibdir}/res |
1259 |
%dir %{mozillalibdir}/searchplugins |
1260 |
%dir %{mozillalibdir}/plugins |
1261 |
%dir %{mozillalibdir} |
1262 |
##verify (not md5 mtime size) %{mozillalibdir}/components/compreg.dat |
1263 |
##verify (not md5 mtime size) %{mozillalibdir}/components/xpti.dat |
1264 |
##verify (not md5 mtime size) %{mozillalibdir}/chrome/*.rdf |
1265 |
#ghost %{mozillalibdir}/chrome/overlayinfo |
1266 |
##verify (not md5 mtime size) %{mozillalibdir}/greprefs/all.js |
1267 |
%if %{enable_svg} |
1268 |
#{mozillalibdir}/chrome/svg.jar |
1269 |
#{mozillalibdir}/components/gksvgrenderer.xpt |
1270 |
#{mozillalibdir}/res/svg.css |
1271 |
%endif |
1272 |
##{mozillalibdir}/plugins/libunixprintplugin.so |
1273 |
%{mozillalibdir}/chrome/reporter.jar |
1274 |
##{mozillalibdir}/chrome/xforms.jar |
1275 |
##{mozillalibdir}/components/xforms.xpt |
1276 |
##{mozillalibdir}/components/libxforms.so |
1277 |
##{mozillalibdir}/components/schemavalidation.xpt |
1278 |
##{mozillalibdir}/components/libschemavalidation.so |
1279 |
##{mozillalibdir}/components/nsSchemaValidatorRegexp.js |
1280 |
##{mozillalibdir}/components/nsURLFormatter.js |
1281 |
##{mozillalibdir}/components/saxparser.xpt |
1282 |
##{mozillalibdir}/components/urlformatter.xpt |
1283 |
##{mozillalibdir}/chrome/sql.jar |
1284 |
##{mozillalibdir}/components/sql.xpt |
1285 |
##{mozillalibdir}/components/libsql.so |
1286 |
##{mozillalibdir}/chrome/xforms.manifest |
1287 |
##{mozillalibdir}/chrome/inspector.manifest |
1288 |
%{mozillalibdir}/chrome/reporter.manifest |
1289 |
%{mozillalibdir}/.autoreg |
1290 |
%{mozillalibdir}/chrome/en-US.jar |
1291 |
%{mozillalibdir}/chrome/en-US.manifest |
1292 |
%{mozillalibdir}/chrome/installed-chrome.txt |
1293 |
%{mozillalibdir}/components/browser.xpt |
1294 |
%{mozillalibdir}/defaults/profile/localstore.rdf |
1295 |
%{mozillalibdir}/defaults/profile/mimeTypes.rdf |
1296 |
%{mozillalibdir}/defaults/profile/panels.rdf |
1297 |
%{mozillalibdir}/defaults/profile/search.rdf |
1298 |
%{mozillalibdir}/regxpcom |
1299 |
%{mozillalibdir}/removed-files |
1300 |
%{mozillalibdir}/searchplugins/dmoz.png |
1301 |
%{mozillalibdir}/searchplugins/dmoz.src |
1302 |
%{mozillalibdir}/searchplugins/google.png |
1303 |
%{mozillalibdir}/searchplugins/google.src |
1304 |
%{mozillalibdir}/searchplugins/jeeves.png |
1305 |
%{mozillalibdir}/searchplugins/jeeves.src |
1306 |
%{mozillalibdir}/update.locale |
1307 |
%{mozillalibdir}/updater.ini |
1308 |
|
1309 |
%files mail -f %{_tmppath}/mozilla-mail.list |
1310 |
%defattr(-,root,root) |
1311 |
%{_datadir}/applications/mandriva-%{name}-mail.desktop |
1312 |
%{_datadir}/applications/mandriva-%{name}-news.desktop |
1313 |
%{_datadir}/applications/mandriva-%{name}-addressbook.desktop |
1314 |
%dir %{mozillalibdir} |
1315 |
%{mozillalibdir}/components/mail.xpt |
1316 |
%{mozillalibdir}/defaults/messenger/mailViews.dat |
1317 |
##{mozillalibdir}/isp |
1318 |
|
1319 |
%files irc -f %{_tmppath}/mozilla-chat.list |
1320 |
%defattr(-,root,root) |
1321 |
%{_datadir}/applications/mandriva-%{name}-chat.desktop |
1322 |
|
1323 |
%if 0 |
1324 |
%files devel -f %{_tmppath}/mozilla-devel.list |
1325 |
%defattr (-,root,root) |
1326 |
%{_bindir}/seamonkey-config |
1327 |
%if %{mdkversion} >= 1020 |
1328 |
%multiarch %{multiarch_bindir}/seamonkey-config |
1329 |
%multiarch %{multiarch_includedir}/seamonkey-%{version}/js/jsautocfg.h |
1330 |
%multiarch %{multiarch_includedir}/seamonkey-%{version}/mozilla-config.h |
1331 |
%endif |
1332 |
%dir %{mozillaincludedir}/accessibility |
1333 |
%dir %{mozillaincludedir}/addrbook |
1334 |
%dir %{mozillaincludedir}/appcomps |
1335 |
%dir %{mozillaincludedir}/appshell |
1336 |
%dir %{mozillaincludedir}/autoconfig |
1337 |
%dir %{mozillaincludedir}/bayesflt |
1338 |
%dir %{mozillaincludedir}/browser |
1339 |
%dir %{mozillaincludedir}/caps |
1340 |
%dir %{mozillaincludedir}/chardet |
1341 |
%dir %{mozillaincludedir}/commandhandler |
1342 |
%dir %{mozillaincludedir}/composer |
1343 |
%dir %{mozillaincludedir}/content |
1344 |
%dir %{mozillaincludedir}/cookie |
1345 |
%dir %{mozillaincludedir}/dbm |
1346 |
%dir %{mozillaincludedir}/docshell |
1347 |
%dir %{mozillaincludedir}/dom |
1348 |
%dir %{mozillaincludedir}/downloadmanager |
1349 |
%dir %{mozillaincludedir}/editor |
1350 |
%dir %{mozillaincludedir}/embed_base |
1351 |
%dir %{mozillaincludedir}/embedcomponents |
1352 |
%dir %{mozillaincludedir}/expat |
1353 |
%dir %{mozillaincludedir}/exthandler |
1354 |
%dir %{mozillaincludedir}/filepicker |
1355 |
%dir %{mozillaincludedir}/find |
1356 |
%dir %{mozillaincludedir}/gfx |
1357 |
%dir %{mozillaincludedir}/gtkxtbin |
1358 |
%dir %{mozillaincludedir}/gtkembedmoz |
1359 |
#dir %{mozillaincludedir}/helperAppDlg |
1360 |
%dir %{mozillaincludedir}/history |
1361 |
%dir %{mozillaincludedir}/htmlparser |
1362 |
%dir %{mozillaincludedir}/imglib2 |
1363 |
%dir %{mozillaincludedir}/impComm4xMail |
1364 |
%dir %{mozillaincludedir}/import |
1365 |
%dir %{mozillaincludedir}/inspector |
1366 |
%dir %{mozillaincludedir}/intl |
1367 |
#dir %{mozillaincludedir}/ipcd |
1368 |
%dir %{mozillaincludedir}/jar |
1369 |
%dir %{mozillaincludedir}/java |
1370 |
%dir %{mozillaincludedir}/js |
1371 |
%dir %{mozillaincludedir}/jsconsole |
1372 |
%dir %{mozillaincludedir}/jsdebug |
1373 |
%dir %{mozillaincludedir}/jsurl |
1374 |
%dir %{mozillaincludedir}/layout |
1375 |
%dir %{mozillaincludedir}/layout_debug |
1376 |
%dir %{mozillaincludedir}/ldap |
1377 |
%dir %{mozillaincludedir}/libreg |
1378 |
%dir %{mozillaincludedir}/liveconnect |
1379 |
%dir %{mozillaincludedir}/locale |
1380 |
%dir %{mozillaincludedir}/lwbrk |
1381 |
%dir %{mozillaincludedir}/mailnews |
1382 |
%dir %{mozillaincludedir}/mailview |
1383 |
%dir %{mozillaincludedir}/mime |
1384 |
%dir %{mozillaincludedir}/mimeemitter |
1385 |
%dir %{mozillaincludedir}/mimetype |
1386 |
%dir %{mozillaincludedir}/mork |
1387 |
%dir %{mozillaincludedir}/mozldap |
1388 |
%dir %{mozillaincludedir}/msgbase |
1389 |
%dir %{mozillaincludedir}/msgbaseutil |
1390 |
%dir %{mozillaincludedir}/msgcompose |
1391 |
%dir %{mozillaincludedir}/msgdb |
1392 |
%dir %{mozillaincludedir}/msgimap |
1393 |
%dir %{mozillaincludedir}/msglocal |
1394 |
%dir %{mozillaincludedir}/msgmdn |
1395 |
%dir %{mozillaincludedir}/msgsmime |
1396 |
%dir %{mozillaincludedir}/msgnews |
1397 |
%dir %{mozillaincludedir}/necko |
1398 |
%dir %{mozillaincludedir}/necko2 |
1399 |
%dir %{mozillaincludedir}/nkcache |
1400 |
%dir %{mozillaincludedir}/oji |
1401 |
%dir %{mozillaincludedir}/p3p |
1402 |
%dir %{mozillaincludedir}/pipboot |
1403 |
%dir %{mozillaincludedir}/pipnss |
1404 |
%dir %{mozillaincludedir}/pippki |
1405 |
%dir %{mozillaincludedir}/plugin |
1406 |
%dir %{mozillaincludedir}/pref |
1407 |
%dir %{mozillaincludedir}/prefetch |
1408 |
%dir %{mozillaincludedir}/prefmigr |
1409 |
%dir %{mozillaincludedir}/profdirserviceprovider |
1410 |
%dir %{mozillaincludedir}/profile |
1411 |
#dir %{mozillaincludedir}/profilesharingsetup |
1412 |
%dir %{mozillaincludedir}/progressDlg |
1413 |
%dir %{mozillaincludedir}/rdf |
1414 |
%dir %{mozillaincludedir}/rdfutil |
1415 |
%dir %{mozillaincludedir}/shistory |
1416 |
#dir %{mozillaincludedir}/sidebar |
1417 |
%dir %{mozillaincludedir}/spellchecker |
1418 |
%dir %{mozillaincludedir}/string |
1419 |
%dir %{mozillaincludedir}/system-pref |
1420 |
%dir %{mozillaincludedir}/typeaheadfind |
1421 |
%dir %{mozillaincludedir}/txmgr |
1422 |
%dir %{mozillaincludedir}/txtsvc |
1423 |
%dir %{mozillaincludedir}/uconv |
1424 |
%dir %{mozillaincludedir}/ucvcn |
1425 |
%dir %{mozillaincludedir}/ucvibm |
1426 |
%dir %{mozillaincludedir}/ucvja |
1427 |
%dir %{mozillaincludedir}/ucvko |
1428 |
%dir %{mozillaincludedir}/ucvlatin |
1429 |
%dir %{mozillaincludedir}/ucvmath |
1430 |
%dir %{mozillaincludedir}/ucvtw |
1431 |
%dir %{mozillaincludedir}/ucvtw2 |
1432 |
%dir %{mozillaincludedir}/unicharutil |
1433 |
%dir %{mozillaincludedir}/uriloader |
1434 |
%dir %{mozillaincludedir}/util |
1435 |
%dir %{mozillaincludedir}/view |
1436 |
%dir %{mozillaincludedir}/wallet |
1437 |
%dir %{mozillaincludedir}/walletviewers |
1438 |
%dir %{mozillaincludedir}/webbrowserpersist |
1439 |
%dir %{mozillaincludedir}/webbrwsr |
1440 |
%dir %{mozillaincludedir}/websrvcs |
1441 |
%dir %{mozillaincludedir}/webshell |
1442 |
%dir %{mozillaincludedir}/widget |
1443 |
%dir %{mozillaincludedir}/windowwatcher |
1444 |
#dir %{mozillaincludedir}/xlibrgb |
1445 |
%dir %{mozillaincludedir}/xml-rpc |
1446 |
#dir %{mozillaincludedir}/xmlextras |
1447 |
%if %{build_xmlterm} |
1448 |
%dir %{mozillaincludedir}/xmlterm |
1449 |
%endif |
1450 |
%dir %{mozillaincludedir}/xpcom |
1451 |
%dir %{mozillaincludedir}/xpcom_obsolete |
1452 |
%dir %{mozillaincludedir}/xpconnect |
1453 |
%dir %{mozillaincludedir}/xpinstall |
1454 |
%dir %{mozillaincludedir}/xpnet |
1455 |
#dir %{mozillaincludedir}/xprintutil |
1456 |
#dir %{mozillaincludedir}/xremoteservice |
1457 |
%dir %{mozillaincludedir}/xul |
1458 |
%dir %{mozillaincludedir}/xuldoc |
1459 |
%dir %{mozillaincludedir}/xultmpl |
1460 |
%dir %{mozillaincludedir}/zlib |
1461 |
%{mozillalibdir}/xpcshell |
1462 |
%{mozillalibdir}/xpidl |
1463 |
%{mozillalibdir}/xpt_dump |
1464 |
%{mozillalibdir}/xpt_link |
1465 |
%{_libdir}/pkgconfig/seamonkey-js.pc |
1466 |
%{_libdir}/pkgconfig/seamonkey-xpcom.pc |
1467 |
%{_libdir}/pkgconfig/seamonkey-gtkmozembed.pc |
1468 |
%{_libdir}/pkgconfig/seamonkey-plugin.pc |
1469 |
%if !%{build_nspr_nss} |
1470 |
%{_libdir}/pkgconfig/seamonkey-nspr.pc |
1471 |
%{_libdir}/pkgconfig/seamonkey-nss.pc |
1472 |
%endif |
1473 |
%{mozillaidldir} |
1474 |
%endif |
1475 |
|
1476 |
%if %{build_xmlterm} |
1477 |
%files xmlterm |
1478 |
%defattr(-, root, root) |
1479 |
%{_bindir}/xmlterm |
1480 |
%{_bindir}/xcat |
1481 |
%{_bindir}/xls |
1482 |
%{mozillalibdir}/chrome/xmlterm.jar |
1483 |
%{mozillalibdir}/components/*xmlterm* |
1484 |
%{_datadir}/applications/mandriva-%{name}-xmlterm.desktop |
1485 |
%endif |
1486 |
|
1487 |
%files js-debugger -f %{_tmppath}/mozilla-js-debugger.list |
1488 |
%defattr(-,root,root) |
1489 |
|
1490 |
%files dom-inspector -f %{_tmppath}/mozilla-dom-inspector.list |
1491 |
%defattr(-,root,root) |
1492 |
#dir %{mozillalibdir}/res/inspector |
1493 |
|
1494 |
%files spellchecker -f %{_tmppath}/mozilla-spellchecker.list |
1495 |
%defattr(-,root,root) |
1496 |
%{mozillalibdir}/dictionaries |
1497 |
|
1498 |
%if %build_enigmail |
1499 |
%files enigmail -f %{_tmppath}/mozilla-enigmail.list |
1500 |
%defattr(-,root,root) |
1501 |
%{mozillalibdir}/chrome/enigmail.jar |
1502 |
%{mozillalibdir}/components/enigmail.js |
1503 |
%{mozillalibdir}/components/enigmail.xpt |
1504 |
%{mozillalibdir}/components/ipc.xpt |
1505 |
%{mozillalibdir}/components/enigprefs-service.js |
1506 |
|
1507 |
%files enigmime -f %{_tmppath}/mozilla-enigmime.list |
1508 |
%defattr(-,root,root) |
1509 |
%{mozillalibdir}/chrome/enigmime.jar |
1510 |
%{mozillalibdir}/components/enigmime.xpt |
1511 |
%{mozillalibdir}/components/libenigmime.so |
1512 |
%endif |
1513 |
|
1514 |
%if %{build_nspr_nss} |
1515 |
|
1516 |
%files -n %{lib_nspr_name} -f %{_tmppath}/mozilla-nspr.list |
1517 |
%defattr(-, root, root) |
1518 |
|
1519 |
%files -n %{devel_nspr_name} -f %{_tmppath}/mozilla-nspr-devel.list |
1520 |
%defattr(-, root, root) |
1521 |
%dir %{mozillaincludedir} |
1522 |
%dir %{mozillaincludedir}/nspr |
1523 |
%dir %{mozillaincludedir}/nspr/private |
1524 |
%dir %{mozillaincludedir}/nspr/md |
1525 |
%dir %{mozillaincludedir}/nspr/obsolete |
1526 |
%{_libdir}/pkgconfig/mozilla-nspr.pc |
1527 |
%{_datadir}/aclocal/nspr.m4 |
1528 |
|
1529 |
%files -n %{lib_nss_name} -f %{_tmppath}/mozilla-nss.list |
1530 |
%defattr(-, root, root) |
1531 |
%{_libdir}/*.chk |
1532 |
|
1533 |
%files -n %{devel_nss_name} -f %{_tmppath}/mozilla-nss-devel.list |
1534 |
%defattr(-, root, root) |
1535 |
%dir %{mozillaincludedir}/nss |
1536 |
%{_libdir}/pkgconfig/mozilla-nss.pc |
1537 |
%endif |
1538 |
|
1539 |
|
1540 |
|