85 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
85 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
86 Requires: mozilla-js192 = %{version} |
86 Requires: mozilla-js192 = %{version} |
87 Requires(post): update-alternatives coreutils |
87 Requires(post): update-alternatives coreutils |
88 Requires(preun): update-alternatives coreutils |
88 Requires(preun): update-alternatives coreutils |
89 ### build configuration ### |
89 ### build configuration ### |
90 %define crashreporter 1 |
|
91 %define has_system_nspr 0 |
90 %define has_system_nspr 0 |
92 %define has_system_nss 0 |
91 %define has_system_nss 0 |
93 %define has_system_cairo 0 |
92 %define has_system_cairo 0 |
94 %define localize 1 |
93 %define localize 1 |
95 %if %suse_version > 1030 || 0%{?opensuse_bs} |
94 %if %suse_version > 1030 || 0%{?opensuse_bs} |
96 %define has_system_nspr 1 |
95 %define has_system_nspr 1 |
97 %define has_system_nss 1 |
96 %define has_system_nss 1 |
98 %endif |
97 %endif |
99 %if %suse_version > 1110 |
98 %if %suse_version > 1110 |
100 %define has_system_cairo 1 |
99 %define has_system_cairo 1 |
|
100 %endif |
|
101 %ifarch ppc ppc64 s390 s390x ia64 |
|
102 %define crashreporter 0 |
|
103 %define plugincontainer 0 |
|
104 %else |
|
105 %define crashreporter 1 |
|
106 %define plugincontainer 1 |
101 %endif |
107 %endif |
102 ### configuration end ### |
108 ### configuration end ### |
103 %define _use_internal_dependency_generator 0 |
109 %define _use_internal_dependency_generator 0 |
104 %define __find_requires sh %{SOURCE2} |
110 %define __find_requires sh %{SOURCE2} |
105 %global provfind sh -c "grep -v 'libsqlite3.so' | %__find_provides" |
111 %global provfind sh -c "grep -v 'libsqlite3.so' | %__find_provides" |
311 EOF |
317 EOF |
312 %endif |
318 %endif |
313 %if ! %crashreporter |
319 %if ! %crashreporter |
314 cat << EOF >> $MOZCONFIG |
320 cat << EOF >> $MOZCONFIG |
315 ac_add_options --disable-crashreporter |
321 ac_add_options --disable-crashreporter |
|
322 EOF |
|
323 %endif |
|
324 %if ! %plugincontainer |
|
325 cat << EOF >> $MOZCONFIG |
|
326 # Chromium IPC is not ported to Power,S/390 and Itanium (currently just x86,x86_64 and arm) |
|
327 ac_add_options --disable-ipc |
316 EOF |
328 EOF |
317 %endif |
329 %endif |
318 make -f client.mk build |
330 make -f client.mk build |
319 |
331 |
320 %install |
332 %install |
494 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
506 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
495 %{_libdir}/xulrunner-%{version_internal}/.autoreg |
507 %{_libdir}/xulrunner-%{version_internal}/.autoreg |
496 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
508 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
497 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
509 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
498 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client |
510 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client |
|
511 %if %plugincontainer |
499 %{_libdir}/xulrunner-%{version_internal}/plugin-container |
512 %{_libdir}/xulrunner-%{version_internal}/plugin-container |
|
513 %endif |
500 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh |
514 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh |
501 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
515 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
502 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin |
516 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin |
503 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub |
517 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub |
504 %{_libdir}/xulrunner-%{version_internal}/platform.ini |
518 %{_libdir}/xulrunner-%{version_internal}/platform.ini |