49 Source3: %{name}-rpmlintrc |
49 Source3: %{name}-rpmlintrc |
50 Source4: xulrunner-openSUSE-prefs.js |
50 Source4: xulrunner-openSUSE-prefs.js |
51 Source5: add-plugins.sh.in |
51 Source5: add-plugins.sh.in |
52 Source6: create-tar.sh |
52 Source6: create-tar.sh |
53 Source7: baselibs.conf |
53 Source7: baselibs.conf |
54 Source8: toolkit-lockdown.js |
|
55 Source9: compare-locales.tar.bz2 |
54 Source9: compare-locales.tar.bz2 |
56 Patch1: toolkit-download-folder.patch |
55 Patch1: toolkit-download-folder.patch |
57 Patch2: mozilla-pkgconfig.patch |
56 Patch2: mozilla-pkgconfig.patch |
58 Patch3: idldir.patch |
57 Patch3: idldir.patch |
59 Patch4: mozilla-nongnome-proxies.patch |
58 Patch4: mozilla-nongnome-proxies.patch |
60 Patch5: mozilla-prefer_plugin_pref.patch |
59 Patch5: mozilla-prefer_plugin_pref.patch |
61 Patch6: mozilla-shared-nss-db.patch |
|
62 Patch7: mozilla-kde.patch |
|
63 Patch8: mozilla-cairo-lcd.patch |
60 Patch8: mozilla-cairo-lcd.patch |
64 Patch9: mozilla-language.patch |
61 Patch9: mozilla-language.patch |
65 Patch10: mozilla-cairo-return.patch |
62 Patch10: mozilla-cairo-return.patch |
66 Patch11: mozilla-ntlm-full-path.patch |
63 Patch11: mozilla-ntlm-full-path.patch |
|
64 Patch12: mozilla-dump_syms-static.patch |
|
65 Patch13: mozilla-sle11.patch |
|
66 Patch14: mozilla-linux3.patch |
|
67 Patch15: mozilla-curl.patch |
67 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
68 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
68 Requires: mozilla-js = %{version} |
69 Requires: mozilla-js = %{version} |
69 Requires(post): update-alternatives coreutils |
70 Requires(post): update-alternatives coreutils |
70 Requires(preun): update-alternatives coreutils |
71 Requires(preun): update-alternatives coreutils |
71 ### build configuration ### |
72 ### build configuration ### |
72 %define has_system_nspr 1 |
73 %define has_system_nspr 1 |
73 %define has_system_nss 1 |
74 %define has_system_nss 1 |
74 %define has_system_cairo 0 |
75 %define has_system_cairo 0 |
75 %define localize 1 |
76 %define localize 0 |
76 %ifarch ppc ppc64 s390 s390x ia64 |
77 %ifarch ppc ppc64 s390 s390x ia64 |
77 %define crashreporter 0 |
78 %define crashreporter 0 |
78 %define plugincontainer 0 |
79 %define plugincontainer 0 |
79 %else |
80 %else |
80 %define crashreporter 1 |
81 %define crashreporter 1 |
157 multiple XUL+XPCOM applications that are as rich as Firefox and |
157 multiple XUL+XPCOM applications that are as rich as Firefox and |
158 Thunderbird. |
158 Thunderbird. |
159 |
159 |
160 This package contains rarely used languages. |
160 This package contains rarely used languages. |
161 %endif |
161 %endif |
162 |
|
163 %package gnome |
|
164 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
|
165 Summary: XULRunner components depending on gnome-vfs |
|
166 Group: Productivity/Other |
|
167 Requires: %{name} = %{version}-%{release} |
|
168 Requires(post): coreutils |
|
169 |
|
170 %description gnome |
|
171 This subpackage contains the Gnome components which rely on certain |
|
172 Gnome subsystems to be installed. They are recommended for full |
|
173 desktop integration but not mandatory for small disk footprint |
|
174 KDE installations for example. |
|
175 |
162 |
176 |
163 |
177 %if %crashreporter |
164 %if %crashreporter |
178 %package buildsymbols |
165 %package buildsymbols |
179 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
166 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
190 %patch1 -p1 |
177 %patch1 -p1 |
191 %patch2 -p1 |
178 %patch2 -p1 |
192 %patch3 -p1 |
179 %patch3 -p1 |
193 %patch4 -p1 |
180 %patch4 -p1 |
194 %patch5 -p1 |
181 %patch5 -p1 |
195 %patch6 -p1 |
|
196 %patch7 -p1 |
|
197 %patch8 -p1 |
182 %patch8 -p1 |
198 %patch9 -p1 |
183 %patch9 -p1 |
199 %patch10 -p1 |
184 %patch10 -p1 |
200 %patch11 -p1 |
185 %patch11 -p1 |
|
186 %patch12 -p1 |
|
187 %if %suse_version < 1120 |
|
188 %patch13 -p1 |
|
189 %endif |
|
190 %patch14 -p1 |
|
191 %patch15 -p1 |
|
192 |
201 |
193 |
202 %build |
194 %build |
203 # no need to add build time to binaries |
195 # no need to add build time to binaries |
204 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
196 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
205 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
197 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
206 TIME="\"$(date -d "${modified}" "+%%R")\"" |
198 TIME="\"$(date -d "${modified}" "+%%R")\"" |
207 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
199 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
208 # |
200 # |
209 source other-licenses/branding/firefox/configure.sh |
|
210 unset MOZ_APP_DISPLAYNAME |
|
211 export MOZ_UA_BUILDID |
|
212 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
201 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
213 export MOZ_BUILD_DATE=%{releasedate} |
202 export MOZ_BUILD_DATE=%{releasedate} |
214 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
203 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
215 %ifarch ppc64 |
204 %ifarch ppc64 |
216 export CFLAGS="$CFLAGS -mminimal-toc" |
205 export CFLAGS="$CFLAGS -mminimal-toc" |
243 ac_add_options --disable-tests |
232 ac_add_options --disable-tests |
244 ac_add_options --disable-mochitest |
233 ac_add_options --disable-mochitest |
245 ac_add_options --disable-installer |
234 ac_add_options --disable-installer |
246 ac_add_options --disable-updater |
235 ac_add_options --disable-updater |
247 ac_add_options --disable-javaxpcom |
236 ac_add_options --disable-javaxpcom |
|
237 ac_add_options --enable-system-hunspell |
248 ac_add_options --enable-startup-notification |
238 ac_add_options --enable-startup-notification |
249 ac_add_options --enable-shared-js |
239 ac_add_options --enable-shared-js |
250 #ac_add_options --enable-debug |
240 #ac_add_options --enable-debug |
251 EOF |
241 EOF |
252 %if %suse_version > 1130 |
242 %if %suse_version > 1130 |
288 %endif |
278 %endif |
289 make -f client.mk build |
279 make -f client.mk build |
290 |
280 |
291 %install |
281 %install |
292 cd ../obj |
282 cd ../obj |
|
283 # preferences (to package in omni.jar) |
|
284 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js |
293 %makeinstall STRIP=/bin/true |
285 %makeinstall STRIP=/bin/true |
294 # remove some executable permissions |
286 # remove some executable permissions |
295 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
287 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
296 -type f -perm -111 -exec chmod a-x {} \; |
288 -type f -perm -111 -exec chmod a-x {} \; |
297 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ |
289 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ |
314 mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \ |
306 mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \ |
315 mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \ |
307 mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \ |
316 mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \ |
308 mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \ |
317 mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build |
309 mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build |
318 popd |
310 popd |
319 # XPI example |
|
320 #cp -rL dist/xpi-stage/simple $RPM_BUILD_ROOT/%{_libdir}/xulrunner-%{version_internal}/ |
|
321 # preferences |
|
322 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/defaults/pref/all-openSUSE.js |
|
323 cp %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/defaults/pref/lockdown.js |
|
324 # install add-plugins.sh |
311 # install add-plugins.sh |
325 sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \ |
312 sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \ |
326 %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
313 %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
327 chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
314 chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
328 # ghosts |
315 # ghosts |
331 %if %localize |
318 %if %localize |
332 rm -f %{_tmppath}/translations.* |
319 rm -f %{_tmppath}/translations.* |
333 touch %{_tmppath}/translations.{common,other} |
320 touch %{_tmppath}/translations.{common,other} |
334 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do |
321 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do |
335 case $locale in |
322 case $locale in |
336 ja-JP-mac|en-US|bn-IN) |
323 ja-JP-mac|en-US) |
337 ;; |
324 ;; |
338 *) |
325 *) |
339 pushd $RPM_BUILD_DIR/compare-locales |
326 pushd $RPM_BUILD_DIR/compare-locales |
340 PYTHONPATH=lib \ |
327 PYTHONPATH=lib \ |
341 scripts/compare-locales -m ../l10n-merged/$locale \ |
328 scripts/compare-locales -m ../l10n-merged/$locale \ |
342 ../mozilla/toolkit/locales/l10n.ini ../l10n $locale |
329 ../mozilla/toolkit/locales/l10n.ini ../l10n $locale |
343 popd |
330 popd |
344 LOCALE_MERGEDIR=../l10n-merged \ |
331 LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \ |
345 make -C toolkit/locales libs-$locale |
332 make -C toolkit/locales langpack-$locale |
346 cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \ |
333 cp dist/xpi-stage/locale-$locale \ |
347 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome |
334 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org |
348 cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \ |
335 # remove prefs and profile defaults from langpack |
349 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome |
336 rm -rf $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org/defaults |
350 # check against the fixed common list and sort into the right filelist |
337 # check against the fixed common list and sort into the right filelist |
351 _matched=0 |
338 _matched=0 |
352 for _match in ar ca cs da de en-GB es-AR es-CL es-ES fi fr hu it ja ko nb-NO nl pl pt-BR pt-PT ru sv-SE zh-CN zh-TW; do |
339 for _match in ar ca cs da de en-GB es-AR es-CL es-ES fi fr hu it ja ko nb-NO nl pl pt-BR pt-PT ru sv-SE zh-CN zh-TW; do |
353 [ "$_match" = "$locale" ] && _matched=1 |
340 [ "$_match" = "$locale" ] && _matched=1 |
354 done |
341 done |
355 [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other |
342 [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other |
356 echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.jar \ |
343 echo %{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org \ \ |
357 >> %{_tmppath}/translations.$_l10ntarget |
|
358 echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.manifest \ |
|
359 >> %{_tmppath}/translations.$_l10ntarget |
344 >> %{_tmppath}/translations.$_l10ntarget |
360 esac |
345 esac |
361 done |
346 done |
362 %endif |
347 %endif |
363 # API symlink |
348 # API symlink |
374 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale |
359 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale |
375 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE |
360 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE |
376 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt |
361 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt |
377 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US* |
362 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US* |
378 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config |
363 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config |
|
364 rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mozilla-plugin.pc |
379 # fdupes |
365 # fdupes |
380 %fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/ |
366 %fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/ |
381 %fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ |
367 %fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ |
382 # create breakpad debugsymbols |
368 # create breakpad debugsymbols |
383 %if %crashreporter |
369 %if %crashreporter |
435 %defattr(-,root,root) |
421 %defattr(-,root,root) |
436 %dir %{_libdir}/xulrunner-%{version_internal}/ |
422 %dir %{_libdir}/xulrunner-%{version_internal}/ |
437 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
423 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
438 %dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ |
424 %dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ |
439 %dir %{_libdir}/xulrunner-%{version_internal}/extensions/ |
425 %dir %{_libdir}/xulrunner-%{version_internal}/extensions/ |
440 %{_libdir}/xulrunner-%{version_internal}/chrome/en-US.* |
|
441 %{_libdir}/xulrunner-%{version_internal}/chrome/pippki.* |
|
442 %{_libdir}/xulrunner-%{version_internal}/chrome/toolkit.* |
|
443 %{_libdir}/xulrunner-%{version_internal}/chrome/icons/ |
426 %{_libdir}/xulrunner-%{version_internal}/chrome/icons/ |
444 %{_libdir}/xulrunner-%{version_internal}/components/ |
427 %{_libdir}/xulrunner-%{version_internal}/components/ |
445 %exclude %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so |
428 %{_libdir}/xulrunner-%{version_internal}/hyphenation/ |
446 %if %suse_version <= 1130 |
|
447 %exclude %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so |
|
448 %endif |
|
449 %{_libdir}/xulrunner-%{version_internal}/defaults/ |
|
450 %{_libdir}/xulrunner-%{version_internal}/greprefs.js |
|
451 %{_libdir}/xulrunner-%{version_internal}/icons/ |
429 %{_libdir}/xulrunner-%{version_internal}/icons/ |
452 %{_libdir}/xulrunner-%{version_internal}/modules/ |
|
453 %{_libdir}/xulrunner-%{version_internal}/plugins/ |
430 %{_libdir}/xulrunner-%{version_internal}/plugins/ |
454 %{_libdir}/xulrunner-%{version_internal}/res/ |
|
455 %{_libdir}/xulrunner-%{version_internal}/*.so |
431 %{_libdir}/xulrunner-%{version_internal}/*.so |
456 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
432 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
457 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
433 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
458 %{_libdir}/xulrunner-%{version_internal}/chrome.manifest |
434 %{_libdir}/xulrunner-%{version_internal}/chrome.manifest |
459 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
435 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
464 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh |
440 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh |
465 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
441 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
466 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin |
442 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin |
467 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub |
443 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub |
468 %{_libdir}/xulrunner-%{version_internal}/platform.ini |
444 %{_libdir}/xulrunner-%{version_internal}/platform.ini |
|
445 %{_libdir}/xulrunner-%{version_internal}/omni.jar |
469 # crashreporter files |
446 # crashreporter files |
470 %if %crashreporter |
447 %if %crashreporter |
471 %{_libdir}/xulrunner-%{version_internal}/crashreporter |
448 %{_libdir}/xulrunner-%{version_internal}/crashreporter |
472 %{_libdir}/xulrunner-%{version_internal}/crashreporter.ini |
449 %{_libdir}/xulrunner-%{version_internal}/crashreporter.ini |
473 %{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif |
450 %{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif |
492 |
469 |
493 %files devel |
470 %files devel |
494 %defattr(-,root,root) |
471 %defattr(-,root,root) |
495 %{_libdir}/xulrunner-%{version_internal}/xpcshell |
472 %{_libdir}/xulrunner-%{version_internal}/xpcshell |
496 %{_libdir}/xulrunner-%{version_internal}/xpidl |
473 %{_libdir}/xulrunner-%{version_internal}/xpidl |
497 %{_libdir}/xulrunner-%{version_internal}/xpt_dump |
|
498 %{_libdir}/xulrunner-%{version_internal}/xpt_link |
|
499 %{_libdir}/xulrunner-devel-%{version_internal}/ |
474 %{_libdir}/xulrunner-devel-%{version_internal}/ |
500 # FIXME symlink dynamic libs below sdk/lib |
475 # FIXME symlink dynamic libs below sdk/lib |
501 %attr(644,root,root) %{_libdir}/pkgconfig/* |
476 %attr(644,root,root) %{_libdir}/pkgconfig/* |
502 %{_includedir}/xulrunner-%{version_internal}/ |
477 %{_includedir}/xulrunner-%{version_internal}/ |
503 %{_datadir}/xulrunner-%{version_internal}/ |
478 %{_datadir}/xulrunner-%{version_internal}/ |
504 |
479 |
505 %files gnome |
|
506 %defattr(-,root,root) |
|
507 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
508 %dir %{_libdir}/xulrunner-%{version_internal}/components/ |
|
509 %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so |
|
510 %if %suse_version <= 1130 |
|
511 %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so |
|
512 %endif |
|
513 |
|
514 %if %localize |
480 %if %localize |
515 %files translations-common -f %{_tmppath}/translations.common |
481 %files translations-common -f %{_tmppath}/translations.common |
516 %defattr(-,root,root) |
482 %defattr(-,root,root) |
517 %dir %{_libdir}/xulrunner-%{version_internal}/ |
483 %dir %{_libdir}/xulrunner-%{version_internal}/ |
518 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
484 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |