30 BuildRequires: wireless-tools |
30 BuildRequires: wireless-tools |
31 %endif |
31 %endif |
32 %if 0%{?use_xulrunner} |
32 %if 0%{?use_xulrunner} |
33 BuildRequires: %{xulrunner}-devel = 2.0b |
33 BuildRequires: %{xulrunner}-devel = 2.0b |
34 %else |
34 %else |
|
35 BuildRequires: mozilla-nspr-devel >= 4.8.6 |
|
36 BuildRequires: mozilla-nss-devel >= 3.12.8 |
35 BuildRequires: nss-shared-helper-devel |
37 BuildRequires: nss-shared-helper-devel |
36 %endif |
38 %endif |
37 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
39 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
38 Provides: web_browser |
40 Provides: web_browser |
39 Provides: firefox |
41 Provides: firefox |
40 Version: 4.0b |
42 Version: 4.0b |
41 Release: 1 |
43 Release: 1 |
42 %define releasedate 2010083100 |
44 %define releasedate 2010092900 |
43 Summary: Mozilla Firefox Web Browser |
45 Summary: Mozilla Firefox Web Browser |
44 Url: http://www.mozilla.org/ |
46 Url: http://www.mozilla.org/ |
45 Group: Productivity/Networking/Web/Browsers |
47 Group: Productivity/Networking/Web/Browsers |
46 # this is needed to match this package with the kde4 helper package without the main package |
48 # this is needed to match this package with the kde4 helper package without the main package |
47 # having a hard requirement on the kde4 package |
49 # having a hard requirement on the kde4 package |
94 %requires_eq %{xulrunner} |
96 %requires_eq %{xulrunner} |
95 %ifarch %ix86 |
97 %ifarch %ix86 |
96 Requires: %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner}) |
98 Requires: %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner}) |
97 Requires: %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner}) |
99 Requires: %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner}) |
98 %endif |
100 %endif |
|
101 %else |
|
102 Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) |
|
103 Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) |
99 %endif |
104 %endif |
100 Requires: %{name}-branding >= 4.0 |
105 Requires: %{name}-branding >= 4.0 |
101 %define _use_internal_dependency_generator 0 |
106 %define _use_internal_dependency_generator 0 |
102 %define __find_requires sh %{SOURCE4} |
107 %define __find_requires sh %{SOURCE4} |
103 %global provfind sh -c "grep -v '.so' | %__find_provides" |
108 %global provfind sh -c "grep -v '.so' | %__find_provides" |
105 %define progname firefox |
110 %define progname firefox |
106 %define progdir %{_prefix}/%_lib/%{progname} |
111 %define progdir %{_prefix}/%_lib/%{progname} |
107 %define gnome_dir %{_prefix} |
112 %define gnome_dir %{_prefix} |
108 ### build options |
113 ### build options |
109 %define branding 1 |
114 %define branding 1 |
110 %define localize 1 |
115 %define localize 0 |
111 %ifarch ppc ppc64 s390 s390x ia64 |
116 %ifarch ppc ppc64 s390 s390x ia64 |
112 %define crashreporter 0 |
117 %define crashreporter 0 |
113 %define plugincontainer 0 |
118 %define plugincontainer 0 |
114 %else |
119 %else |
115 %define crashreporter 1 |
120 %define crashreporter 1 |
296 |
301 |
297 %install |
302 %install |
298 cd $RPM_BUILD_DIR/obj |
303 cd $RPM_BUILD_DIR/obj |
299 # FIXME (will be needed once lockdown is integrated; needs omni.jar adoption) |
304 # FIXME (will be needed once lockdown is integrated; needs omni.jar adoption) |
300 #cp %{SOURCE9} dist/bin/defaults/preferences/lockdown.js |
305 #cp %{SOURCE9} dist/bin/defaults/preferences/lockdown.js |
301 rm dist/bin/defaults/preferences/firefox-l10n.js |
306 rm dist/bin/defaults/pref*/firefox-l10n.js |
302 make -C browser/installer STRIP=/bin/true |
307 make -C browser/installer STRIP=/bin/true |
303 # copy tree into RPM_BUILD_ROOT |
308 # copy tree into RPM_BUILD_ROOT |
304 mkdir -p $RPM_BUILD_ROOT/%{progdir} |
309 mkdir -p $RPM_BUILD_ROOT/%{progdir} |
305 cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT/%{progdir} |
310 cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT/%{progdir} |
306 # install additional locales |
311 # install additional locales |
435 |
440 |
436 %files |
441 %files |
437 %defattr(-,root,root) |
442 %defattr(-,root,root) |
438 %dir %{progdir} |
443 %dir %{progdir} |
439 %dir %{progdir}/chrome/ |
444 %dir %{progdir}/chrome/ |
|
445 %dir %{progdir}/defaults/ |
|
446 %dir %{progdir}/defaults/pref*/ |
440 %{progdir}/chrome/icons |
447 %{progdir}/chrome/icons |
441 %{progdir}/components/ |
448 %{progdir}/components/ |
442 #%exclude %{progdir}/defaults/profile/bookmarks.html |
449 #%exclude %{progdir}/defaults/profile/bookmarks.html |
443 %{progdir}/extensions/ |
450 %{progdir}/extensions/ |
444 %{progdir}/icons/ |
451 %{progdir}/icons/ |
445 %{progdir}/searchplugins/ |
452 %{progdir}/searchplugins/ |
446 %attr(755,root,root) %{progdir}/%{progname}.sh |
453 %attr(755,root,root) %{progdir}/%{progname}.sh |
447 %{progdir}/firefox |
|
448 %{progdir}/application.ini |
454 %{progdir}/application.ini |
449 %{progdir}/blocklist.xml |
455 %{progdir}/blocklist.xml |
450 %{progdir}/omni.jar |
456 %{progdir}/omni.jar |
451 %if %crashreporter |
457 %if %crashreporter |
452 %{progdir}/crashreporter-override.ini |
458 %{progdir}/crashreporter-override.ini |
|
459 %if !0%{?use_xulrunner} |
|
460 %{progdir}/Throbber-small.gif |
|
461 %{progdir}/crashreporter |
|
462 %{progdir}/crashreporter.ini |
|
463 %endif |
453 %endif |
464 %endif |
454 %{progdir}/chrome.manifest |
465 %{progdir}/chrome.manifest |
|
466 %if !0%{?use_xulrunner} |
|
467 %{progdir}/defaults/pref*/channel-prefs.js |
|
468 %{progdir}/dependentlibs.list |
|
469 %{progdir}/firefox-bin |
|
470 %exclude %{progdir}/firefox |
|
471 %{progdir}/libmozalloc.so |
|
472 %{progdir}/libmozsqlite3.so |
|
473 %{progdir}/libxpcom.so |
|
474 %{progdir}/libxul.so |
|
475 %{progdir}/mozilla-xremote-client |
|
476 %{progdir}/platform.ini |
|
477 %{progdir}/dictionaries |
|
478 %if %plugincontainer |
|
479 %{progdir}/plugin-container |
|
480 %endif |
|
481 %else |
|
482 %{progdir}/firefox |
|
483 %endif |
|
484 %if %branding |
|
485 %{gnome_dir}/share/icons/hicolor/ |
|
486 %endif |
455 %{_datadir}/applications/%{name}.desktop |
487 %{_datadir}/applications/%{name}.desktop |
456 %{_datadir}/mime/packages/%{progname}.xml |
488 %{_datadir}/mime/packages/%{progname}.xml |
457 %{_datadir}/pixmaps/firefox* |
489 %{_datadir}/pixmaps/firefox* |
458 %if %branding |
|
459 %{gnome_dir}/share/icons/hicolor/ |
|
460 %endif |
|
461 %{_bindir}/%{progname} |
490 %{_bindir}/%{progname} |
462 %doc %{_mandir}/man1/%{progname}.1.gz |
491 %doc %{_mandir}/man1/%{progname}.1.gz |
463 |
492 |
464 %if %localize |
493 %if %localize |
465 |
|
466 %files translations-common -f %{_tmppath}/translations.common |
494 %files translations-common -f %{_tmppath}/translations.common |
467 %defattr(-,root,root) |
495 %defattr(-,root,root) |
468 %dir %{progdir} |
496 %dir %{progdir} |
469 %dir %{progdir}/chrome/ |
497 %dir %{progdir}/chrome/ |
470 |
498 |
475 %endif |
503 %endif |
476 |
504 |
477 %files branding-upstream |
505 %files branding-upstream |
478 %defattr(-,root,root) |
506 %defattr(-,root,root) |
479 %dir %{progdir} |
507 %dir %{progdir} |
480 #%dir %{progdir}/defaults/ |
|
481 #%{progdir}/defaults/profile/bookmarks.html |
508 #%{progdir}/defaults/profile/bookmarks.html |
482 |
509 |
483 %if %crashreporter && !0%{?use_xulrunner} |
510 %if %crashreporter && !0%{?use_xulrunner} |
484 %files buildsymbols |
511 %files buildsymbols |
485 %defattr(-,root,root) |
512 %defattr(-,root,root) |