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