16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
17 # |
17 # |
18 |
18 |
19 # norootforbuild |
19 # norootforbuild |
20 |
20 |
|
21 %define major 3 |
|
22 %define mainver %major.6 |
21 |
23 |
22 Name: MozillaFirefox |
24 Name: MozillaFirefox |
23 %define xulrunner mozilla-xulrunner192 |
25 %define xulrunner mozilla-xulrunner192 |
24 BuildRequires: autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python unzip update-desktop-files zip |
26 BuildRequires: autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python unzip update-desktop-files zip |
25 BuildRequires: %{xulrunner}-devel = 1.9.2.16 |
27 BuildRequires: %{xulrunner}-devel = 1.9.2.16 |
30 BuildRequires: libiw-devel |
32 BuildRequires: libiw-devel |
31 %else |
33 %else |
32 BuildRequires: wireless-tools |
34 BuildRequires: wireless-tools |
33 %endif |
35 %endif |
34 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
36 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
35 Version: 3.6.16 |
37 Version: %mainver.16 |
|
38 Release: 1 |
36 Provides: web_browser |
39 Provides: web_browser |
|
40 Provides: firefox = %{mainver} |
|
41 Provides: firefox = %{version}-%{release} |
37 Provides: firefox = %{version} |
42 Provides: firefox = %{version} |
38 Release: 1 |
|
39 %define releasedate 2011031900 |
43 %define releasedate 2011031900 |
40 Summary: Mozilla Firefox Web Browser |
44 Summary: Mozilla Firefox Web Browser |
41 Url: http://www.mozilla.org/ |
45 Url: http://www.mozilla.org/ |
42 Group: Productivity/Networking/Web/Browsers |
46 Group: Productivity/Networking/Web/Browsers |
43 Source: firefox-%{version}-source.tar.bz2 |
47 Source: firefox-%{version}-source.tar.bz2 |
50 Source7: l10n-%{version}.tar.bz2 |
54 Source7: l10n-%{version}.tar.bz2 |
51 Source8: firefox-mimeinfo.xml |
55 Source8: firefox-mimeinfo.xml |
52 Source9: firefox-lockdown.js |
56 Source9: firefox-lockdown.js |
53 Source16: firefox.1 |
57 Source16: firefox.1 |
54 Source17: firefox-suse-default-prefs.js |
58 Source17: firefox-suse-default-prefs.js |
|
59 Source18: mozilla-get-app-id |
55 Patch1: firefox-libxul-sdk.patch |
60 Patch1: firefox-libxul-sdk.patch |
56 Patch2: firefox-credits.patch |
61 Patch2: firefox-credits.patch |
57 Patch3: toolkit-download-folder.patch |
62 Patch3: toolkit-download-folder.patch |
58 Patch4: firefox-linkorder.patch |
63 Patch4: firefox-linkorder.patch |
59 Patch5: firefox-browser-css.patch |
64 Patch5: firefox-browser-css.patch |
71 %ifarch %ix86 |
76 %ifarch %ix86 |
72 Requires: %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner}) |
77 Requires: %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner}) |
73 Requires: %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner}) |
78 Requires: %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner}) |
74 %endif |
79 %endif |
75 Requires: %{name}-branding >= 3.5 |
80 Requires: %{name}-branding >= 3.5 |
|
81 %define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} |
76 %define _use_internal_dependency_generator 0 |
82 %define _use_internal_dependency_generator 0 |
77 %define __find_requires sh %{SOURCE4} |
83 %define __find_requires sh %{SOURCE4} |
78 %global provfind sh -c "grep -v '.so' | %__find_provides" |
84 %global provfind sh -c "grep -v '.so' | %__find_provides" |
79 %global __find_provides %provfind |
85 %global __find_provides %provfind |
80 %define progname firefox |
86 %define progname firefox |
97 %description |
103 %description |
98 Mozilla Firefox is a standalone web browser, designed for standards |
104 Mozilla Firefox is a standalone web browser, designed for standards |
99 compliance and performance. Its functionality can be enhanced via a |
105 compliance and performance. Its functionality can be enhanced via a |
100 plethora of extensions. |
106 plethora of extensions. |
101 |
107 |
|
108 %package devel |
|
109 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
110 Summary: Devel package for Firefox |
|
111 Group: Development/Tools/Other |
|
112 Provides: firefox-devel = %{version}-%{release} |
|
113 Requires: %{name} = %{version} |
|
114 Requires: perl(XML::Simple) |
|
115 Requires: perl(Archive::Zip) |
|
116 |
|
117 %description devel |
|
118 Development files for Firefox to make packaging of addons easier. |
102 |
119 |
103 %if %localize |
120 %if %localize |
104 |
|
105 %package translations-common |
121 %package translations-common |
106 Summary: Common translations for MozillaFirefox |
122 Summary: Common translations for MozillaFirefox |
107 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
123 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
108 Provides: locale(%{name}: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) |
124 Provides: locale(%{name}: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) |
109 Group: System/Localization |
125 Group: System/Localization |
274 pref("general.useragent.locale", "chrome://global/locale/intl.properties"); |
290 pref("general.useragent.locale", "chrome://global/locale/intl.properties"); |
275 EOF |
291 EOF |
276 ########## |
292 ########## |
277 # ADDONS |
293 # ADDONS |
278 # |
294 # |
|
295 mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{firefox_appid} |
|
296 mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_appid} |
279 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/ |
297 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/ |
280 ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.png |
298 ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.png |
281 ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}-gnome.png |
299 ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}-gnome.png |
282 %if %branding |
300 %if %branding |
283 for size in 16 32 48; do |
301 for size in 16 32 48; do |
292 rm -f $RPM_BUILD_ROOT%{progdir}/removed-files |
310 rm -f $RPM_BUILD_ROOT%{progdir}/removed-files |
293 rm -f $RPM_BUILD_ROOT%{progdir}/README.txt |
311 rm -f $RPM_BUILD_ROOT%{progdir}/README.txt |
294 rm -f $RPM_BUILD_ROOT%{progdir}/old-homepage-default.properties |
312 rm -f $RPM_BUILD_ROOT%{progdir}/old-homepage-default.properties |
295 rm -f $RPM_BUILD_ROOT%{progdir}/run-mozilla.sh |
313 rm -f $RPM_BUILD_ROOT%{progdir}/run-mozilla.sh |
296 rm -f $RPM_BUILD_ROOT%{progdir}/LICENSE |
314 rm -f $RPM_BUILD_ROOT%{progdir}/LICENSE |
|
315 # devel |
|
316 mkdir -p %{buildroot}%{_bindir} |
|
317 install -m 755 %SOURCE18 %{buildroot}%{_bindir} |
|
318 # inspired by mandriva |
|
319 mkdir -p %{buildroot}/etc/rpm |
|
320 cat <<'FIN' >%{buildroot}/etc/rpm/macros.%{progname} |
|
321 # Macros from %{name} package |
|
322 %%firefox_major %{major} |
|
323 %%firefox_version %{version} |
|
324 %%firefox_mainver %{mainver} |
|
325 %%firefox_mozillapath %%{_libdir}/%{progname} |
|
326 %%firefox_xulrunner %{xulrunner} |
|
327 %%firefox_xulrunner_version %(rpm -q --queryformat '%{VERSION}' %{xulrunner}) |
|
328 %%firefox_pluginsdir %%{_libdir}/browser-plugins |
|
329 %%firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} |
|
330 %%firefox_extdir %%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi) |
|
331 |
|
332 %%firefox_ext_install() \ |
|
333 extdir="%%{buildroot}%%{firefox_extdir}/`mozilla-get-app-id '%%1'`" \ |
|
334 mkdir -p "$extdir" \ |
|
335 %%{__unzip} -q -d "$extdir" "%%1" \ |
|
336 %%{nil} |
|
337 FIN |
297 # fdupes |
338 # fdupes |
298 %if %suse_version > 1020 |
339 %if %suse_version > 1020 |
299 %fdupes $RPM_BUILD_ROOT%{progdir} |
340 %fdupes $RPM_BUILD_ROOT%{progdir} |
300 %fdupes $RPM_BUILD_ROOT%{_datadir} |
341 %fdupes $RPM_BUILD_ROOT%{_datadir} |
301 %endif |
342 %endif |
354 %{progdir}/chrome/reporter.* |
395 %{progdir}/chrome/reporter.* |
355 %{progdir}/chrome/icons |
396 %{progdir}/chrome/icons |
356 %{progdir}/components/ |
397 %{progdir}/components/ |
357 %exclude %{progdir}/defaults/profile/bookmarks.html |
398 %exclude %{progdir}/defaults/profile/bookmarks.html |
358 %{progdir}/defaults/ |
399 %{progdir}/defaults/ |
|
400 %dir %{_datadir}/mozilla |
|
401 %dir %{_datadir}/mozilla/extensions |
|
402 %dir %{_datadir}/mozilla/extensions/%{firefox_appid} |
|
403 %dir %{_libdir}/mozilla |
|
404 %dir %{_libdir}/mozilla/extensions |
|
405 %dir %{_libdir}/mozilla/extensions/%{firefox_appid} |
359 %{progdir}/extensions/ |
406 %{progdir}/extensions/ |
360 %{progdir}/icons/ |
407 %{progdir}/icons/ |
361 %{progdir}/searchplugins/ |
408 %{progdir}/searchplugins/ |
362 %{progdir}/modules/ |
409 %{progdir}/modules/ |
363 %attr(755,root,root) %{progdir}/%{progname}.sh |
410 %attr(755,root,root) %{progdir}/%{progname}.sh |
394 %dir %{progdir} |
441 %dir %{progdir} |
395 %dir %{progdir}/defaults/ |
442 %dir %{progdir}/defaults/ |
396 %{progdir}/browserconfig.properties |
443 %{progdir}/browserconfig.properties |
397 %{progdir}/defaults/profile/bookmarks.html |
444 %{progdir}/defaults/profile/bookmarks.html |
398 |
445 |
|
446 %files devel |
|
447 %defattr(-,root,root) |
|
448 %{_bindir}/mozilla-get-app-id |
|
449 /etc/rpm/macros.%{progname} |
|
450 |
399 %changelog |
451 %changelog |