1 # |
1 # |
2 # spec file for package mozilla-xulrunner22 |
2 # spec file for package xulrunner |
3 # |
3 # |
4 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. |
4 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. |
5 # 2006-2011 Wolfgang Rosenauer |
5 # 2006-2011 Wolfgang Rosenauer |
6 # |
6 # |
7 # All modifications and additions to the file contributed by third parties |
7 # All modifications and additions to the file contributed by third parties |
17 # |
17 # |
18 |
18 |
19 # norootforbuild |
19 # norootforbuild |
20 |
20 |
21 |
21 |
22 Name: mozilla-xulrunner22 |
22 Name: xulrunner |
23 BuildRequires: autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel zip pkg-config fdupes hunspell-devel yasm Mesa-devel nss-shared-helper-devel |
23 BuildRequires: Mesa-devel autoconf213 dbus-1-glib-devel fdupes gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel unzip pkg-config yasm nss-shared-helper-devel zip |
24 # needed for brp-check-bytecode-version (jar, fastjar would do as well) |
|
25 BuildRequires: unzip |
|
26 %if %suse_version > 1110 |
24 %if %suse_version > 1110 |
27 BuildRequires: libiw-devel |
25 BuildRequires: libiw-devel |
28 BuildRequires: libproxy-devel |
26 BuildRequires: libproxy-devel |
29 %else |
27 %else |
30 BuildRequires: wireless-tools |
28 BuildRequires: wireless-tools |
31 %endif |
29 %endif |
32 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
30 BuildRequires: mozilla-nspr-devel >= 4.8.8 |
33 Version: 2.2a |
31 BuildRequires: mozilla-nss-devel >= 3.12.10 |
|
32 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
|
33 Version: 6.0.2 |
34 Release: 1 |
34 Release: 1 |
35 %define releasedate 2011041100 |
35 %define releasedate 2011091300 |
36 %define version_internal 2.2a1pre |
36 %define version_internal 6.0.2 |
37 %define apiversion 2.2 |
37 %define apiversion 6 |
38 %define uaweight 220000 |
38 %define uaweight 600000 |
39 Summary: Mozilla Runtime Environment 2.2 |
39 Summary: Mozilla Runtime Environment |
40 Url: http://www.mozilla.org |
40 Url: http://www.mozilla.org/ |
41 Group: Productivity/Other |
41 Group: Productivity/Other |
42 Provides: gecko22 |
42 Provides: gecko |
43 # this is needed to match this package with the kde4 helper package without the main package |
|
44 # having a hard requirement on the kde4 package |
|
45 %define kde_helper_version 6 |
|
46 Provides: mozilla-kde4-version = %{kde_helper_version} |
|
47 %ifarch %ix86 |
43 %ifarch %ix86 |
48 Provides: mozilla-xulrunner22-32bit = %{version}-%{release} |
44 Provides: xulrunner-32bit = %{version}-%{release} |
49 %endif |
45 %endif |
50 Source: xulrunner-source-%{version}.tar.bz2 |
46 Source: xulrunner-%{version}-source.tar.bz2 |
51 Source1: l10n-%{version}.tar.bz2 |
47 Source1: l10n-%{version}.tar.bz2 |
52 Source2: find-external-requires.sh |
48 Source2: find-external-requires.sh |
53 Source3: %{name}-rpmlintrc |
49 Source3: %{name}-rpmlintrc |
54 Source4: xulrunner-openSUSE-prefs.js |
50 Source4: xulrunner-openSUSE-prefs.js |
55 Source5: add-plugins.sh.in |
51 Source5: add-plugins.sh.in |
63 Patch4: mozilla-nongnome-proxies.patch |
59 Patch4: mozilla-nongnome-proxies.patch |
64 Patch5: mozilla-prefer_plugin_pref.patch |
60 Patch5: mozilla-prefer_plugin_pref.patch |
65 Patch6: mozilla-shared-nss-db.patch |
61 Patch6: mozilla-shared-nss-db.patch |
66 Patch7: mozilla-kde.patch |
62 Patch7: mozilla-kde.patch |
67 Patch8: mozilla-cairo-lcd.patch |
63 Patch8: mozilla-cairo-lcd.patch |
68 # PATCH-FEATURE-SLED FATE#302023, FATE#302024 |
64 Patch9: mozilla-language.patch |
69 Patch9: mozilla-gconf-backend.patch |
65 Patch10: mozilla-cairo-return.patch |
70 Patch10: gecko-lockdown.patch |
66 Patch11: mozilla-ntlm-full-path.patch |
71 Patch11: toolkit-ui-lockdown.patch |
|
72 # --- |
|
73 Patch12: mozilla-cpuid.patch |
|
74 Patch13: mozilla-language.patch |
|
75 Patch14: mozilla-gio.patch |
|
76 Patch15: mozilla-cairo-return.patch |
|
77 Patch16: mozilla-ntlm-full-path.patch |
|
78 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
67 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
79 Requires: mozilla-js22 = %{version} |
68 Requires: mozilla-js = %{version} |
80 Requires(post): update-alternatives coreutils |
69 Requires(post): update-alternatives coreutils |
81 Requires(preun): update-alternatives coreutils |
70 Requires(preun): update-alternatives coreutils |
82 ### build configuration ### |
71 ### build configuration ### |
83 %define has_system_nspr 1 |
72 %define has_system_nspr 1 |
84 %define has_system_nss 1 |
73 %define has_system_nss 1 |
95 %define _use_internal_dependency_generator 0 |
84 %define _use_internal_dependency_generator 0 |
96 %define __find_requires sh %{SOURCE2} |
85 %define __find_requires sh %{SOURCE2} |
97 %global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides" |
86 %global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides" |
98 %global __find_provides %provfind |
87 %global __find_provides %provfind |
99 %if %has_system_nspr |
88 %if %has_system_nspr |
100 BuildRequires: mozilla-nspr-devel |
|
101 Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) |
89 Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) |
102 %endif |
90 %endif |
103 %if %has_system_nss |
91 %if %has_system_nss |
104 BuildRequires: mozilla-nss-devel >= 3.12.8 |
|
105 Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) |
92 Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) |
106 %endif |
93 %endif |
107 Recommends: %{name}-gnome |
94 Recommends: %{name}-gnome |
108 |
95 |
109 %description |
96 %description |
110 XULRunner is a single installable package that can be used to bootstrap |
97 XULRunner is a single installable package that can be used to bootstrap |
111 multiple XUL+XPCOM applications that are as rich as Firefox and |
98 multiple XUL+XPCOM applications that are as rich as Firefox and |
112 Thunderbird. |
99 Thunderbird. |
113 |
100 |
114 |
101 |
115 %package -n mozilla-js22 |
102 %package -n mozilla-js |
116 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
103 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
117 Summary: Mozilla JS 1.8.5 engine |
104 Summary: Mozilla JS engine |
118 Group: Productivity/Other |
105 Group: Productivity/Other |
119 |
106 |
120 %description -n mozilla-js22 |
107 %description -n mozilla-js |
121 JavaScript is the Netscape-developed object scripting language used in millions |
108 JavaScript is the Netscape-developed object scripting language used in millions |
122 of web pages and server applications worldwide. Netscape's JavaScript is a |
109 of web pages and server applications worldwide. Netscape's JavaScript is a |
123 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
110 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
124 with only mild differences from the published standard. |
111 with only mild differences from the published standard. |
125 |
112 |
126 |
113 |
127 %package devel |
114 %package devel |
128 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
115 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
129 Summary: XULRunner/Gecko SDK 2.0 |
116 Summary: XULRunner/Gecko SDK |
130 Group: Development/Libraries/Other |
117 Group: Development/Libraries/Other |
131 %if %has_system_nspr |
118 %if %has_system_nspr |
132 Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) |
119 Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) |
133 %endif |
120 %endif |
134 %if %has_system_nss |
121 %if %has_system_nss |
138 |
125 |
139 %description devel |
126 %description devel |
140 Software Development Kit to embed XUL or Gecko into other applications. |
127 Software Development Kit to embed XUL or Gecko into other applications. |
141 |
128 |
142 %if %localize |
129 %if %localize |
143 |
|
144 %package translations-common |
130 %package translations-common |
145 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
131 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
146 Summary: Common translations for XULRunner 2.0 |
132 Summary: Common translations for XULRunner |
147 Group: System/Localization |
133 Group: System/Localization |
148 Requires: %{name} = %{version} |
134 Requires: %{name} = %{version} |
149 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 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) |
150 Obsoletes: %{name}-translations < %{version}-%{release} |
136 Obsoletes: %{name}-translations < %{version}-%{release} |
151 |
137 |
158 delivered in the main package. |
144 delivered in the main package. |
159 |
145 |
160 |
146 |
161 %package translations-other |
147 %package translations-other |
162 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
148 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
163 Summary: Extra translations for XULRunner 2.0 |
149 Summary: Extra translations for XULRunner |
164 Group: System/Localization |
150 Group: System/Localization |
165 Requires: %{name} = %{version} |
151 Requires: %{name} = %{version} |
166 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 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) |
167 Obsoletes: %{name}-translations < %{version}-%{release} |
153 Obsoletes: %{name}-translations < %{version}-%{release} |
168 |
154 |
207 %patch4 -p1 |
193 %patch4 -p1 |
208 %patch5 -p1 |
194 %patch5 -p1 |
209 %patch6 -p1 |
195 %patch6 -p1 |
210 %patch7 -p1 |
196 %patch7 -p1 |
211 %patch8 -p1 |
197 %patch8 -p1 |
212 #%patch9 -p1 |
198 %patch9 -p1 |
213 #%patch10 -p1 |
199 %patch10 -p1 |
214 #%patch11 -p1 |
200 %patch11 -p1 |
215 %if %suse_version < 1120 |
|
216 #%patch12 -p1 |
|
217 %endif |
|
218 %patch13 -p1 |
|
219 %patch14 -p1 |
|
220 %patch15 -p1 |
|
221 %patch16 -p1 |
|
222 |
201 |
223 %build |
202 %build |
224 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) |
203 # no need to add build time to binaries |
225 if test "$kdehelperversion" != %{kde_helper_version}; then |
204 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
226 echo fix kde helper version in the .spec file |
205 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
227 exit 1 |
206 TIME="\"$(date -d "${modified}" "+%%R")\"" |
228 fi |
207 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
|
208 # |
229 source other-licenses/branding/firefox/configure.sh |
209 source other-licenses/branding/firefox/configure.sh |
230 unset MOZ_APP_DISPLAYNAME |
210 unset MOZ_APP_DISPLAYNAME |
231 export MOZ_UA_BUILDID |
211 export MOZ_UA_BUILDID |
232 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
212 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
233 export MOZ_BUILD_DATE=%{releasedate} |
213 export MOZ_BUILD_DATE=%{releasedate} |
257 ac_add_options --enable-optimize |
237 ac_add_options --enable-optimize |
258 ac_add_options --enable-extensions=default |
238 ac_add_options --enable-extensions=default |
259 #ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now |
239 #ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now |
260 #ac_add_options --with-system-png # no APNG support |
240 #ac_add_options --with-system-png # no APNG support |
261 ac_add_options --with-system-zlib |
241 ac_add_options --with-system-zlib |
262 ac_add_options --with-l10n-base=../l10n |
242 ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n |
263 ac_add_options --disable-tests |
243 ac_add_options --disable-tests |
264 ac_add_options --disable-mochitest |
244 ac_add_options --disable-mochitest |
265 ac_add_options --disable-installer |
245 ac_add_options --disable-installer |
266 ac_add_options --disable-updater |
246 ac_add_options --disable-updater |
267 ac_add_options --disable-javaxpcom |
247 ac_add_options --disable-javaxpcom |
268 ac_add_options --enable-startup-notification |
248 ac_add_options --enable-startup-notification |
269 ac_add_options --enable-url-classifier |
|
270 ac_add_options --enable-system-hunspell |
|
271 ac_add_options --enable-shared-js |
249 ac_add_options --enable-shared-js |
272 #ac_add_options --enable-debug |
250 #ac_add_options --enable-debug |
273 EOF |
251 EOF |
274 %if %suse_version > 1130 |
252 %if %suse_version > 1130 |
275 cat << EOF >> $MOZCONFIG |
253 cat << EOF >> $MOZCONFIG |
504 # compat symlinks |
482 # compat symlinks |
505 %if 0%{?ga_version:1} |
483 %if 0%{?ga_version:1} |
506 %ghost %{_libdir}/xulrunner-%{ga_version} |
484 %ghost %{_libdir}/xulrunner-%{ga_version} |
507 %endif |
485 %endif |
508 |
486 |
509 %files -n mozilla-js22 |
487 %files -n mozilla-js |
510 %defattr(-,root,root) |
488 %defattr(-,root,root) |
511 %dir %{_libdir}/xulrunner-%{version_internal}/ |
489 %dir %{_libdir}/xulrunner-%{version_internal}/ |
512 %{_libdir}/xulrunner-%{apiversion} |
490 %{_libdir}/xulrunner-%{apiversion} |
513 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
491 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
514 |
492 |