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