1 # |
|
2 # spec file for package xulrunner |
|
3 # |
|
4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. |
|
5 # 2006-2012 Wolfgang Rosenauer |
|
6 # |
|
7 # All modifications and additions to the file contributed by third parties |
|
8 # remain the property of their copyright owners, unless otherwise agreed |
|
9 # upon. The license for this file, and modifications and additions to the |
|
10 # file, is the same license as for the pristine package itself (unless the |
|
11 # license for the pristine package is not an Open Source License, in which |
|
12 # case the license is the MIT License). An "Open Source License" is a |
|
13 # license that conforms to the Open Source Definition (Version 1.9) |
|
14 # published by the Open Source Initiative. |
|
15 |
|
16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
|
17 # |
|
18 |
|
19 |
|
20 Name: xulrunner |
|
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: xorg-x11-libXt-devel |
|
37 BuildRequires: yasm |
|
38 BuildRequires: zip |
|
39 %if %suse_version > 1110 |
|
40 BuildRequires: libiw-devel |
|
41 BuildRequires: libproxy-devel |
|
42 %else |
|
43 BuildRequires: wireless-tools |
|
44 %endif |
|
45 BuildRequires: mozilla-nspr-devel >= 4.9.0 |
|
46 BuildRequires: mozilla-nss-devel >= 3.13.3 |
|
47 Version: 10.0.2esr |
|
48 Release: 0 |
|
49 %define releasedate 2012021500 |
|
50 %define version_internal 10.0.2 |
|
51 %define apiversion 10 |
|
52 %define uaweight 1000002 |
|
53 Summary: Mozilla Runtime Environment |
|
54 License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ |
|
55 Group: Productivity/Other |
|
56 Url: http://www.mozilla.org/ |
|
57 Provides: gecko |
|
58 %ifarch %ix86 |
|
59 Provides: xulrunner-32bit = %{version}-%{release} |
|
60 %endif |
|
61 Source: xulrunner-%{version}-source.tar.bz2 |
|
62 Source1: l10n-%{version}.tar.bz2 |
|
63 Source2: find-external-requires.sh |
|
64 Source3: %{name}-rpmlintrc |
|
65 Source4: xulrunner-openSUSE-prefs.js |
|
66 Source5: add-plugins.sh.in |
|
67 Source6: create-tar.sh |
|
68 Source7: baselibs.conf |
|
69 Source8: source-stamp.txt |
|
70 Source9: compare-locales.tar.bz2 |
|
71 Patch1: toolkit-download-folder.patch |
|
72 Patch2: mozilla-pkgconfig.patch |
|
73 Patch3: idldir.patch |
|
74 Patch4: mozilla-nongnome-proxies.patch |
|
75 Patch5: mozilla-prefer_plugin_pref.patch |
|
76 Patch9: mozilla-language.patch |
|
77 Patch11: mozilla-ntlm-full-path.patch |
|
78 Patch12: mozilla-dump_syms-static.patch |
|
79 Patch13: mozilla-sle11.patch |
|
80 Patch14: mozilla-linux3.patch |
|
81 Patch15: mozilla-a11y.patch |
|
82 Patch16: mozilla-disable-neon-option.patch |
|
83 Patch17: mozilla-bmo703534.patch |
|
84 Patch18: mozilla-yarr-pcre.patch |
|
85 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
86 Requires: mozilla-js = %{version} |
|
87 Requires(post): update-alternatives coreutils |
|
88 Requires(preun): update-alternatives coreutils |
|
89 ### build configuration ### |
|
90 %define has_system_nspr 1 |
|
91 %define has_system_nss 1 |
|
92 %define has_system_cairo 0 |
|
93 %define localize 0 |
|
94 %ifarch ppc ppc64 s390 s390x ia64 |
|
95 %define crashreporter 0 |
|
96 %define plugincontainer 0 |
|
97 %else |
|
98 %define crashreporter 1 |
|
99 %define plugincontainer 1 |
|
100 %endif |
|
101 ### configuration end ### |
|
102 %define _use_internal_dependency_generator 0 |
|
103 %define __find_requires sh %{SOURCE2} |
|
104 %global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides" |
|
105 %global __find_provides %provfind |
|
106 %if %has_system_nspr |
|
107 Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) |
|
108 %endif |
|
109 %if %has_system_nss |
|
110 Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) |
|
111 %endif |
|
112 |
|
113 %description |
|
114 XULRunner is a single installable package that can be used to bootstrap |
|
115 multiple XUL+XPCOM applications that are as rich as Firefox and |
|
116 Thunderbird. |
|
117 |
|
118 |
|
119 %package -n mozilla-js |
|
120 Summary: Mozilla JS engine |
|
121 Group: Productivity/Other |
|
122 |
|
123 %description -n mozilla-js |
|
124 JavaScript is the Netscape-developed object scripting language used in millions |
|
125 of web pages and server applications worldwide. Netscape's JavaScript is a |
|
126 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
|
127 with only mild differences from the published standard. |
|
128 |
|
129 |
|
130 %package devel |
|
131 Summary: XULRunner/Gecko SDK |
|
132 Group: Development/Libraries/Other |
|
133 %if %has_system_nspr |
|
134 Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) |
|
135 %endif |
|
136 %if %has_system_nss |
|
137 Requires: mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel) |
|
138 %endif |
|
139 Requires: %{name} = %{version} |
|
140 |
|
141 %description devel |
|
142 Software Development Kit to embed XUL or Gecko into other applications. |
|
143 |
|
144 %if %localize |
|
145 |
|
146 %package translations-common |
|
147 Summary: Common translations for XULRunner |
|
148 Group: System/Localization |
|
149 Requires: %{name} = %{version} |
|
150 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) |
|
151 Obsoletes: %{name}-translations < %{version}-%{release} |
|
152 |
|
153 %description translations-common |
|
154 XULRunner is a single installable package that can be used to bootstrap |
|
155 multiple XUL+XPCOM applications that are as rich as Firefox and |
|
156 Thunderbird. |
|
157 |
|
158 This package contains the most common languages but en-US which is |
|
159 delivered in the main package. |
|
160 |
|
161 |
|
162 %package translations-other |
|
163 Summary: Extra translations for XULRunner |
|
164 Group: System/Localization |
|
165 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) |
|
167 Obsoletes: %{name}-translations < %{version}-%{release} |
|
168 |
|
169 %description translations-other |
|
170 XULRunner is a single installable package that can be used to bootstrap |
|
171 multiple XUL+XPCOM applications that are as rich as Firefox and |
|
172 Thunderbird. |
|
173 |
|
174 This package contains rarely used languages. |
|
175 %endif |
|
176 |
|
177 %if %crashreporter |
|
178 |
|
179 %package buildsymbols |
|
180 Summary: Breakpad buildsymbols for %{name} |
|
181 Group: Development/Debug |
|
182 |
|
183 %description buildsymbols |
|
184 This subpackage contains the Breakpad created and compatible debugging |
|
185 symbols meant for upload to Mozilla's crash collector database. |
|
186 %endif |
|
187 |
|
188 %prep |
|
189 %setup -n mozilla -q -b 1 -b 9 |
|
190 %patch1 -p1 |
|
191 %patch2 -p1 |
|
192 %patch3 -p1 |
|
193 %patch4 -p1 |
|
194 %patch5 -p1 |
|
195 %patch9 -p1 |
|
196 %patch11 -p1 |
|
197 %patch12 -p1 |
|
198 %if %suse_version < 1120 |
|
199 %patch13 -p1 |
|
200 %endif |
|
201 %patch14 -p1 |
|
202 %patch15 -p1 |
|
203 %patch16 -p1 |
|
204 %patch17 -p1 |
|
205 %patch18 -p1 |
|
206 |
|
207 %build |
|
208 # no need to add build time to binaries |
|
209 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
|
210 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
|
211 TIME="\"$(date -d "${modified}" "+%%R")\"" |
|
212 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
|
213 # |
|
214 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
|
215 export MOZ_BUILD_DATE=%{releasedate} |
|
216 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
|
217 %ifarch ppc64 |
|
218 export CFLAGS="$CFLAGS -mminimal-toc" |
|
219 %endif |
|
220 export CXXFLAGS="$CFLAGS" |
|
221 export LDFLAGS="-Wl,-rpath -Wl,${MOZ_APP_DIR}" |
|
222 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
|
223 export MOZILLA_OFFICIAL=1 |
|
224 export BUILD_OFFICIAL=1 |
|
225 export MOZ_MILESTONE_RELEASE=1 |
|
226 # |
|
227 cat << EOF > $MOZCONFIG |
|
228 mk_add_options MOZILLA_OFFICIAL=1 |
|
229 mk_add_options BUILD_OFFICIAL=1 |
|
230 mk_add_options MOZ_MILESTONE_RELEASE=1 |
|
231 mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs} |
|
232 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj |
|
233 . \$topsrcdir/xulrunner/config/mozconfig |
|
234 ac_add_options --prefix=%{_prefix} |
|
235 ac_add_options --libdir=%{_libdir} |
|
236 ac_add_options --sysconfdir=%{_sysconfdir} |
|
237 ac_add_options --mandir=%{_mandir} |
|
238 ac_add_options --includedir=%{_includedir} |
|
239 ac_add_options --enable-optimize |
|
240 ac_add_options --enable-extensions=default |
|
241 #ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now |
|
242 #ac_add_options --with-system-png # no APNG support |
|
243 ac_add_options --with-system-zlib |
|
244 ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n |
|
245 ac_add_options --disable-tests |
|
246 ac_add_options --disable-mochitest |
|
247 ac_add_options --disable-installer |
|
248 ac_add_options --disable-updater |
|
249 ac_add_options --disable-javaxpcom |
|
250 ac_add_options --enable-system-hunspell |
|
251 ac_add_options --enable-startup-notification |
|
252 ac_add_options --enable-shared-js |
|
253 #ac_add_options --enable-debug |
|
254 EOF |
|
255 %if %suse_version > 1130 |
|
256 cat << EOF >> $MOZCONFIG |
|
257 ac_add_options --disable-gnomevfs |
|
258 ac_add_options --enable-gio |
|
259 EOF |
|
260 %endif |
|
261 %if %has_system_nspr |
|
262 cat << EOF >> $MOZCONFIG |
|
263 ac_add_options --with-system-nspr |
|
264 EOF |
|
265 %endif |
|
266 %if %has_system_nss |
|
267 cat << EOF >> $MOZCONFIG |
|
268 ac_add_options --with-system-nss |
|
269 EOF |
|
270 %endif |
|
271 %if %has_system_cairo |
|
272 cat << EOF >> $MOZCONFIG |
|
273 ac_add_options --enable-system-cairo |
|
274 EOF |
|
275 %endif |
|
276 %if %suse_version > 1110 |
|
277 cat << EOF >> $MOZCONFIG |
|
278 ac_add_options --enable-libproxy |
|
279 EOF |
|
280 %endif |
|
281 %if ! %crashreporter |
|
282 cat << EOF >> $MOZCONFIG |
|
283 ac_add_options --disable-crashreporter |
|
284 EOF |
|
285 %endif |
|
286 %if ! %plugincontainer |
|
287 cat << EOF >> $MOZCONFIG |
|
288 # Chromium IPC is not ported to Power,S/390 and Itanium (currently just x86,x86_64 and arm) |
|
289 ac_add_options --disable-ipc |
|
290 EOF |
|
291 %endif |
|
292 # Disable neon for arm as it does not build correctly |
|
293 %ifarch %arm |
|
294 cat << EOF >> $MOZCONFIG |
|
295 ac_add_options --disable-neon |
|
296 EOF |
|
297 %endif |
|
298 make -f client.mk build |
|
299 |
|
300 %install |
|
301 cd ../obj |
|
302 # preferences (to package in omni.jar) |
|
303 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js |
|
304 %makeinstall STRIP=/bin/true |
|
305 # xpt.py is not executable |
|
306 chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/*.py |
|
307 # remove some executable permissions |
|
308 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
|
309 -type f -perm -111 -exec chmod a-x {} \; |
|
310 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ |
|
311 -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x |
|
312 mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions |
|
313 # fixing SDK dynamic libs (symlink instead of copy) |
|
314 rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so |
|
315 ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \ |
|
316 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
317 ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \ |
|
318 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
319 ln -sf ../../../xulrunner-%{version_internal}/libxul.so \ |
|
320 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
321 # include basic buildenv for xulapps to use |
|
322 mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal} |
|
323 pushd .. |
|
324 # this list has been compiled by trial and error for prism |
|
325 tar --exclude=*.cpp --exclude=*.mm \ |
|
326 -cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \ |
|
327 mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \ |
|
328 mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \ |
|
329 mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \ |
|
330 mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build |
|
331 popd |
|
332 # install add-plugins.sh |
|
333 sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \ |
|
334 %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
|
335 chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
|
336 # ghosts |
|
337 touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo |
|
338 # install additional locales |
|
339 %if %localize |
|
340 rm -f %{_tmppath}/translations.* |
|
341 touch %{_tmppath}/translations.{common,other} |
|
342 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do |
|
343 case $locale in |
|
344 ja-JP-mac|en-US) |
|
345 ;; |
|
346 *) |
|
347 pushd $RPM_BUILD_DIR/compare-locales |
|
348 PYTHONPATH=lib \ |
|
349 scripts/compare-locales -m ../l10n-merged/$locale \ |
|
350 ../mozilla/toolkit/locales/l10n.ini ../l10n $locale |
|
351 popd |
|
352 LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \ |
|
353 make -C toolkit/locales langpack-$locale |
|
354 cp dist/xpi-stage/locale-$locale \ |
|
355 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org |
|
356 # remove prefs and profile defaults from langpack |
|
357 rm -rf $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org/defaults |
|
358 # check against the fixed common list and sort into the right filelist |
|
359 _matched=0 |
|
360 for _match in 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; do |
|
361 [ "$_match" = "$locale" ] && _matched=1 |
|
362 done |
|
363 [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other |
|
364 echo %{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org \ \ |
|
365 >> %{_tmppath}/translations.$_l10ntarget |
|
366 esac |
|
367 done |
|
368 %endif |
|
369 # API symlink |
|
370 ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion} |
|
371 # compat links |
|
372 %if 0%{?ga_version:1} |
|
373 touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version} |
|
374 %endif |
|
375 # excludes |
|
376 %if %suse_version < 1120 |
|
377 rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner |
|
378 %endif |
|
379 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater |
|
380 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale |
|
381 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE |
|
382 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt |
|
383 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US* |
|
384 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config |
|
385 rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mozilla-plugin.pc |
|
386 # fdupes |
|
387 %fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/ |
|
388 %fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ |
|
389 # create breakpad debugsymbols |
|
390 %if %crashreporter |
|
391 SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols" |
|
392 make buildsymbols \ |
|
393 SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \ |
|
394 SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \ |
|
395 SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME" |
|
396 if [ -e dist/*symbols.zip ]; then |
|
397 mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/ |
|
398 cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/ |
|
399 fi |
|
400 %endif |
|
401 |
|
402 %clean |
|
403 rm -rf $RPM_BUILD_ROOT |
|
404 %if %localize |
|
405 rm -rf %{_tmppath}/translations.* |
|
406 %endif |
|
407 |
|
408 %post |
|
409 /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ |
|
410 xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || : |
|
411 %{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 |
|
412 exit 0 |
|
413 |
|
414 %posttrans |
|
415 # needed for updates which transition directory to symlink |
|
416 %if 0%{?ga_version:1} |
|
417 test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version} |
|
418 ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version} |
|
419 %endif |
|
420 [ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \ |
|
421 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
422 exit 0 |
|
423 |
|
424 %preun |
|
425 if [ "$1" = "0" ]; then # deinstallation |
|
426 # that's not quite nice since old versions should be removed on update as well |
|
427 # but that's problematic for updates w/o raising the version number |
|
428 /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner |
|
429 fi |
|
430 rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* |
|
431 exit 0 |
|
432 |
|
433 %triggerin -- myspell-dictionary |
|
434 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
435 exit 0 |
|
436 |
|
437 %triggerpostun -- myspell-dictionary |
|
438 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
439 exit 0 |
|
440 |
|
441 %files |
|
442 %defattr(-,root,root) |
|
443 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
444 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
|
445 %dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ |
|
446 %dir %{_libdir}/xulrunner-%{version_internal}/extensions/ |
|
447 %{_libdir}/xulrunner-%{version_internal}/chrome/icons/ |
|
448 %{_libdir}/xulrunner-%{version_internal}/components/ |
|
449 %{_libdir}/xulrunner-%{version_internal}/plugins/ |
|
450 %{_libdir}/xulrunner-%{version_internal}/*.so |
|
451 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
|
452 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
|
453 %{_libdir}/xulrunner-%{version_internal}/chrome.manifest |
|
454 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
|
455 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client |
|
456 %if %plugincontainer |
|
457 %{_libdir}/xulrunner-%{version_internal}/plugin-container |
|
458 %endif |
|
459 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh |
|
460 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
|
461 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin |
|
462 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub |
|
463 %{_libdir}/xulrunner-%{version_internal}/platform.ini |
|
464 %{_libdir}/xulrunner-%{version_internal}/omni.ja |
|
465 # crashreporter files |
|
466 %if %crashreporter |
|
467 %{_libdir}/xulrunner-%{version_internal}/crashreporter |
|
468 %{_libdir}/xulrunner-%{version_internal}/crashreporter.ini |
|
469 %{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif |
|
470 %endif |
|
471 # ghosts |
|
472 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo |
|
473 %if %suse_version >= 1120 |
|
474 %ghost %{_bindir}/xulrunner |
|
475 %endif |
|
476 # API symlink (already in mozilla-js) |
|
477 #%{_libdir}/xulrunner-%{apiversion} |
|
478 # compat symlinks |
|
479 %if 0%{?ga_version:1} |
|
480 %ghost %{_libdir}/xulrunner-%{ga_version} |
|
481 %endif |
|
482 |
|
483 %files -n mozilla-js |
|
484 %defattr(-,root,root) |
|
485 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
486 %{_libdir}/xulrunner-%{apiversion} |
|
487 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
|
488 |
|
489 %files devel |
|
490 %defattr(-,root,root) |
|
491 %{_libdir}/xulrunner-%{version_internal}/xpcshell |
|
492 %{_libdir}/xulrunner-devel-%{version_internal}/ |
|
493 # FIXME symlink dynamic libs below sdk/lib |
|
494 %attr(644,root,root) %{_libdir}/pkgconfig/* |
|
495 %{_includedir}/xulrunner-%{version_internal}/ |
|
496 %{_datadir}/xulrunner-%{version_internal}/ |
|
497 |
|
498 %if %localize |
|
499 |
|
500 %files translations-common -f %{_tmppath}/translations.common |
|
501 %defattr(-,root,root) |
|
502 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
503 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
|
504 |
|
505 %files translations-other -f %{_tmppath}/translations.other |
|
506 %defattr(-,root,root) |
|
507 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
508 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
|
509 %endif |
|
510 |
|
511 %if %crashreporter |
|
512 |
|
513 %files buildsymbols |
|
514 %defattr(-,root,root) |
|
515 %{_datadir}/mozilla/ |
|
516 %endif |
|
517 |
|
518 %changelog |
|