14 # published by the Open Source Initiative. |
14 # published by the Open Source Initiative. |
15 |
15 |
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 |
|
20 |
|
21 |
19 |
22 Name: xulrunner |
20 Name: xulrunner |
23 BuildRequires: Mesa-devel autoconf213 dbus-1-glib-devel fdupes gcc-c++ hunspell-devel libcurl-devel libgnomeui-devel libidl-devel libnotify-devel nss-shared-helper-devel pkg-config python startup-notification-devel unzip yasm zip |
21 BuildRequires: Mesa-devel |
|
22 BuildRequires: autoconf213 |
|
23 BuildRequires: dbus-1-glib-devel |
|
24 BuildRequires: fdupes |
|
25 BuildRequires: gcc-c++ |
|
26 BuildRequires: hunspell-devel |
|
27 BuildRequires: libcurl-devel |
|
28 BuildRequires: libgnomeui-devel |
|
29 BuildRequires: libidl-devel |
|
30 BuildRequires: libnotify-devel |
|
31 BuildRequires: nss-shared-helper-devel |
|
32 BuildRequires: pkg-config |
|
33 BuildRequires: python |
|
34 BuildRequires: startup-notification-devel |
|
35 BuildRequires: unzip |
|
36 BuildRequires: yasm |
|
37 BuildRequires: zip |
24 %if %suse_version > 1110 |
38 %if %suse_version > 1110 |
25 BuildRequires: libiw-devel |
39 BuildRequires: libiw-devel |
26 BuildRequires: libproxy-devel |
40 BuildRequires: libproxy-devel |
27 %else |
41 %else |
28 BuildRequires: wireless-tools |
42 BuildRequires: wireless-tools |
29 %endif |
43 %endif |
30 BuildRequires: mozilla-nspr-devel >= 4.8.9 |
44 BuildRequires: mozilla-nspr-devel >= 4.8.9 |
31 BuildRequires: mozilla-nss-devel >= 3.13.1 |
45 BuildRequires: mozilla-nss-devel >= 3.13.1 |
32 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
46 Version: 9.0 |
33 Version: 8.99 |
47 Release: 0 |
34 Release: 1 |
48 %define releasedate 2011121600 |
35 %define releasedate 2011120800 |
|
36 %define version_internal 9.0 |
49 %define version_internal 9.0 |
37 %define apiversion 9 |
50 %define apiversion 9 |
38 %define uaweight 900000 |
51 %define uaweight 900000 |
39 Summary: Mozilla Runtime Environment |
52 Summary: Mozilla Runtime Environment |
|
53 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
54 Group: Productivity/Other |
40 Url: http://www.mozilla.org/ |
55 Url: http://www.mozilla.org/ |
41 Group: Productivity/Other |
|
42 Provides: gecko |
56 Provides: gecko |
43 %ifarch %ix86 |
57 %ifarch %ix86 |
44 Provides: xulrunner-32bit = %{version}-%{release} |
58 Provides: xulrunner-32bit = %{version}-%{release} |
45 %endif |
59 %endif |
46 Source: xulrunner-%{version}-source.tar.bz2 |
60 Source: xulrunner-%{version}-source.tar.bz2 |
61 Patch11: mozilla-ntlm-full-path.patch |
75 Patch11: mozilla-ntlm-full-path.patch |
62 Patch12: mozilla-dump_syms-static.patch |
76 Patch12: mozilla-dump_syms-static.patch |
63 Patch13: mozilla-sle11.patch |
77 Patch13: mozilla-sle11.patch |
64 Patch14: mozilla-linux3.patch |
78 Patch14: mozilla-linux3.patch |
65 Patch15: mozilla-ppc64.patch |
79 Patch15: mozilla-ppc64.patch |
|
80 Patch16: mozilla-a11y.patch |
66 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
81 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
67 Requires: mozilla-js = %{version} |
82 Requires: mozilla-js = %{version} |
68 Requires(post): update-alternatives coreutils |
83 Requires(post): update-alternatives coreutils |
69 Requires(preun): update-alternatives coreutils |
84 Requires(preun): update-alternatives coreutils |
70 ### build configuration ### |
85 ### build configuration ### |
96 multiple XUL+XPCOM applications that are as rich as Firefox and |
111 multiple XUL+XPCOM applications that are as rich as Firefox and |
97 Thunderbird. |
112 Thunderbird. |
98 |
113 |
99 |
114 |
100 %package -n mozilla-js |
115 %package -n mozilla-js |
101 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
102 Summary: Mozilla JS engine |
116 Summary: Mozilla JS engine |
103 Group: Productivity/Other |
117 Group: Productivity/Other |
104 |
118 |
105 %description -n mozilla-js |
119 %description -n mozilla-js |
106 JavaScript is the Netscape-developed object scripting language used in millions |
120 JavaScript is the Netscape-developed object scripting language used in millions |
108 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
122 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
109 with only mild differences from the published standard. |
123 with only mild differences from the published standard. |
110 |
124 |
111 |
125 |
112 %package devel |
126 %package devel |
113 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
114 Summary: XULRunner/Gecko SDK |
127 Summary: XULRunner/Gecko SDK |
115 Group: Development/Libraries/Other |
128 Group: Development/Libraries/Other |
116 %if %has_system_nspr |
129 %if %has_system_nspr |
117 Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) |
130 Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) |
118 %endif |
131 %endif |
125 Software Development Kit to embed XUL or Gecko into other applications. |
138 Software Development Kit to embed XUL or Gecko into other applications. |
126 |
139 |
127 %if %localize |
140 %if %localize |
128 |
141 |
129 %package translations-common |
142 %package translations-common |
130 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
131 Summary: Common translations for XULRunner |
143 Summary: Common translations for XULRunner |
132 Group: System/Localization |
144 Group: System/Localization |
133 Requires: %{name} = %{version} |
145 Requires: %{name} = %{version} |
134 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) |
146 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) |
135 Obsoletes: %{name}-translations < %{version}-%{release} |
147 Obsoletes: %{name}-translations < %{version}-%{release} |
142 This package contains the most common languages but en-US which is |
154 This package contains the most common languages but en-US which is |
143 delivered in the main package. |
155 delivered in the main package. |
144 |
156 |
145 |
157 |
146 %package translations-other |
158 %package translations-other |
147 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
148 Summary: Extra translations for XULRunner |
159 Summary: Extra translations for XULRunner |
149 Group: System/Localization |
160 Group: System/Localization |
150 Requires: %{name} = %{version} |
161 Requires: %{name} = %{version} |
151 Provides: locale(%{name}:af;ak;ast;be;bg;bn_BD;br;bs;cy;el;en_ZA;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;kn;ku;lg;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;zu) |
162 Provides: locale(%{name}:af;ak;ast;be;bg;bn_BD;br;bs;cy;el;en_ZA;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;kn;ku;lg;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;zu) |
152 Obsoletes: %{name}-translations < %{version}-%{release} |
163 Obsoletes: %{name}-translations < %{version}-%{release} |
160 %endif |
171 %endif |
161 |
172 |
162 %if %crashreporter |
173 %if %crashreporter |
163 |
174 |
164 %package buildsymbols |
175 %package buildsymbols |
165 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
166 Summary: Breakpad buildsymbols for %{name} |
176 Summary: Breakpad buildsymbols for %{name} |
167 Group: Development/Debug |
177 Group: Development/Debug |
168 |
178 |
169 %description buildsymbols |
179 %description buildsymbols |
170 This subpackage contains the Breakpad created and compatible debugging |
180 This subpackage contains the Breakpad created and compatible debugging |
278 cd ../obj |
289 cd ../obj |
279 # preferences (to package in omni.jar) |
290 # preferences (to package in omni.jar) |
280 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js |
291 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js |
281 %makeinstall STRIP=/bin/true |
292 %makeinstall STRIP=/bin/true |
282 # xpt.py is not executable |
293 # xpt.py is not executable |
283 chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/xpt.py |
294 chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/*.py |
284 # remove some executable permissions |
295 # remove some executable permissions |
285 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
296 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
286 -type f -perm -111 -exec chmod a-x {} \; |
297 -type f -perm -111 -exec chmod a-x {} \; |
287 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ |
298 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ |
288 -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x |
299 -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x |
449 # ghosts |
460 # ghosts |
450 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo |
461 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo |
451 %if %suse_version >= 1120 |
462 %if %suse_version >= 1120 |
452 %ghost %{_bindir}/xulrunner |
463 %ghost %{_bindir}/xulrunner |
453 %endif |
464 %endif |
454 # API symlink |
465 # API symlink (already in mozilla-js) |
455 %{_libdir}/xulrunner-%{apiversion} |
466 #%{_libdir}/xulrunner-%{apiversion} |
456 # compat symlinks |
467 # compat symlinks |
457 %if 0%{?ga_version:1} |
468 %if 0%{?ga_version:1} |
458 %ghost %{_libdir}/xulrunner-%{ga_version} |
469 %ghost %{_libdir}/xulrunner-%{ga_version} |
459 %endif |
470 %endif |
460 |
471 |
465 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
476 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
466 |
477 |
467 %files devel |
478 %files devel |
468 %defattr(-,root,root) |
479 %defattr(-,root,root) |
469 %{_libdir}/xulrunner-%{version_internal}/xpcshell |
480 %{_libdir}/xulrunner-%{version_internal}/xpcshell |
470 %{_libdir}/xulrunner-%{version_internal}/xpidl |
|
471 %{_libdir}/xulrunner-devel-%{version_internal}/ |
481 %{_libdir}/xulrunner-devel-%{version_internal}/ |
472 # FIXME symlink dynamic libs below sdk/lib |
482 # FIXME symlink dynamic libs below sdk/lib |
473 %attr(644,root,root) %{_libdir}/pkgconfig/* |
483 %attr(644,root,root) %{_libdir}/pkgconfig/* |
474 %{_includedir}/xulrunner-%{version_internal}/ |
484 %{_includedir}/xulrunner-%{version_internal}/ |
475 %{_datadir}/xulrunner-%{version_internal}/ |
485 %{_datadir}/xulrunner-%{version_internal}/ |