1 # |
|
2 # spec file for package mozilla-xulrunner193 (Version 2.0b) |
|
3 # |
|
4 # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. |
|
5 # 2006-2010 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 # norootforbuild |
|
20 |
|
21 |
|
22 Name: mozilla-xulrunner193 |
|
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 |
|
24 # needed for brp-check-bytecode-version (jar, fastjar would do as well) |
|
25 BuildRequires: unzip |
|
26 %if %suse_version > 1100 |
|
27 BuildRequires: nss-shared-helper-devel |
|
28 %endif |
|
29 %if %suse_version > 1110 |
|
30 BuildRequires: libiw-devel |
|
31 BuildRequires: libproxy-devel |
|
32 %else |
|
33 BuildRequires: wireless-tools |
|
34 %endif |
|
35 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
36 Version: 2.0b |
|
37 Release: 1 |
|
38 %define releasedate 2010070700 |
|
39 %define version_internal 2.0b2pre |
|
40 %define apiversion 2.0.0 |
|
41 %define uaweight 199900 |
|
42 Summary: Mozilla Runtime Environment 2.0 |
|
43 Url: http://www.mozilla.org |
|
44 Group: Productivity/Other |
|
45 Provides: gecko20 |
|
46 %if %suse_version >= 1110 |
|
47 # this is needed to match this package with the kde4 helper package without the main package |
|
48 # having a hard requirement on the kde4 package |
|
49 #%define kde_helper_version 6 |
|
50 #Provides: mozilla-kde4-version = %{kde_helper_version} |
|
51 %endif |
|
52 %ifarch %ix86 |
|
53 Provides: mozilla-xulrunner193-32bit = %{version}-%{release} |
|
54 %endif |
|
55 Source: xulrunner-source-%{version}.tar.bz2 |
|
56 Source1: l10n-%{version}.tar.bz2 |
|
57 Source2: find-external-requires.sh |
|
58 Source3: %{name}-rpmlintrc |
|
59 Source4: xulrunner-openSUSE-prefs.js |
|
60 Source5: add-plugins.sh.in |
|
61 Source6: create-tar.sh |
|
62 Source7: baselibs.conf |
|
63 Source8: toolkit-lockdown.js |
|
64 Patch1: toolkit-download-folder.patch |
|
65 Patch2: mozilla-libproxy.patch |
|
66 Patch3: mozilla-pkgconfig.patch |
|
67 Patch4: idldir.patch |
|
68 Patch5: mozilla-nongnome-proxies.patch |
|
69 Patch7: mozilla-prefer_plugin_pref.patch |
|
70 Patch8: mozilla-shared-nss-db.patch |
|
71 Patch10: mozilla-kde.patch |
|
72 # PATCH-FEATURE-SLED FATE#302023, FATE#302024 |
|
73 Patch11: mozilla-gconf-backend.patch |
|
74 Patch12: gecko-lockdown.patch |
|
75 Patch13: toolkit-ui-lockdown.patch |
|
76 # --- |
|
77 Patch14: mozilla-cpuid.patch |
|
78 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
79 Requires: mozilla-js193 = %{version} |
|
80 Requires(post): update-alternatives coreutils |
|
81 Requires(preun): update-alternatives coreutils |
|
82 ### build configuration ### |
|
83 %define crashreporter 1 |
|
84 %define has_system_nspr 1 |
|
85 %define has_system_nss 1 |
|
86 %define has_system_cairo 0 |
|
87 %define localize 0 |
|
88 ### configuration end ### |
|
89 %define _use_internal_dependency_generator 0 |
|
90 %define __find_requires sh %{SOURCE2} |
|
91 %global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides" |
|
92 %global __find_provides %provfind |
|
93 %if %has_system_nspr |
|
94 BuildRequires: mozilla-nspr-devel |
|
95 Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) |
|
96 %endif |
|
97 %if %has_system_nss |
|
98 BuildRequires: mozilla-nss-devel >= 3.12.6 |
|
99 Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) |
|
100 %endif |
|
101 Recommends: %{name}-gnome |
|
102 |
|
103 %description |
|
104 XULRunner is a single installable package that can be used to bootstrap |
|
105 multiple XUL+XPCOM applications that are as rich as Firefox and |
|
106 Thunderbird. |
|
107 |
|
108 |
|
109 %package -n mozilla-js193 |
|
110 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
111 Summary: Mozilla JS 1.8 engine |
|
112 Group: Productivity/Other |
|
113 |
|
114 %description -n mozilla-js193 |
|
115 JavaScript is the Netscape-developed object scripting language used in millions |
|
116 of web pages and server applications worldwide. Netscape's JavaScript is a |
|
117 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
|
118 with only mild differences from the published standard. |
|
119 |
|
120 |
|
121 %package devel |
|
122 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
123 Summary: XULRunner/Gecko SDK 2.0 |
|
124 Group: Development/Libraries/Other |
|
125 %if %has_system_nspr |
|
126 Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) |
|
127 %endif |
|
128 %if %has_system_nss |
|
129 Requires: mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel) |
|
130 %endif |
|
131 Requires: %{name} = %{version} |
|
132 |
|
133 %description devel |
|
134 Software Development Kit to embed XUL or Gecko into other applications. |
|
135 |
|
136 %if %localize |
|
137 |
|
138 %package translations-common |
|
139 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
140 Summary: Common translations for XULRunner 2.0 |
|
141 Group: System/Localization |
|
142 Requires: %{name} = %{version} |
|
143 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) |
|
144 Obsoletes: %{name}-translations < %{version}-%{release} |
|
145 |
|
146 %description translations-common |
|
147 XULRunner is a single installable package that can be used to bootstrap |
|
148 multiple XUL+XPCOM applications that are as rich as Firefox and |
|
149 Thunderbird. |
|
150 |
|
151 This package contains the most common languages but en-US which is |
|
152 delivered in the main package. |
|
153 |
|
154 |
|
155 %package translations-other |
|
156 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
157 Summary: Extra translations for XULRunner 2.0 |
|
158 Group: System/Localization |
|
159 Requires: %{name} = %{version} |
|
160 Provides: locale(%{name}:af;as;be;bg;bn_BD;bn_IN;cy;el;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;hr;id;is;ka;kk;kn;ku;lt;lv;mk;ml;mr;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;sq;sr;ta;ta_LK;te;th;tr;uk;vi) |
|
161 Obsoletes: %{name}-translations < %{version}-%{release} |
|
162 |
|
163 %description translations-other |
|
164 XULRunner is a single installable package that can be used to bootstrap |
|
165 multiple XUL+XPCOM applications that are as rich as Firefox and |
|
166 Thunderbird. |
|
167 |
|
168 This package contains rarely used languages. |
|
169 %endif |
|
170 |
|
171 %package gnome |
|
172 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
173 Summary: XULRunner components depending on gnome-vfs |
|
174 Group: Productivity/Other |
|
175 Requires: %{name} = %{version}-%{release} |
|
176 Requires(post): coreutils |
|
177 |
|
178 %description gnome |
|
179 This subpackage contains the Necko Gnome-VFS and Gnome components which |
|
180 rely on the gnome-vfs subsystem to be installed. They are recommended |
|
181 for full desktop integration but not mandatory for small disk footprint |
|
182 KDE installations for example. |
|
183 |
|
184 |
|
185 %if %crashreporter |
|
186 %package buildsymbols |
|
187 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
|
188 Summary: Breakpad buildsymbols for %{name} |
|
189 Group: Development/Debug |
|
190 |
|
191 %description buildsymbols |
|
192 This subpackage contains the Breakpad created and compatible debugging |
|
193 symbols meant for upload to Mozilla's crash collector database. |
|
194 %endif |
|
195 |
|
196 %prep |
|
197 %setup -n mozilla -q -b 1 |
|
198 %patch1 -p1 |
|
199 %patch2 -p1 |
|
200 %patch3 -p1 |
|
201 %patch4 -p1 |
|
202 %patch5 -p1 |
|
203 %patch7 -p1 |
|
204 #%patch8 -p1 |
|
205 #%if %suse_version >= 1110 |
|
206 #%patch10 -p1 |
|
207 #%endif |
|
208 #%patch11 -p1 |
|
209 #%patch12 -p1 |
|
210 #%patch13 -p1 |
|
211 %if %suse_version < 1120 |
|
212 %patch14 -p1 |
|
213 %endif |
|
214 |
|
215 %build |
|
216 #%if %suse_version >= 1110 |
|
217 #kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) |
|
218 #if test "$kdehelperversion" != %{kde_helper_version}; then |
|
219 # echo fix kde helper version in the .spec file |
|
220 # exit 1 |
|
221 #fi |
|
222 #%endif |
|
223 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
|
224 export MOZ_BUILD_DATE=%{releasedate} |
|
225 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
|
226 %ifarch ppc64 |
|
227 export CFLAGS="$CFLAGS -mminimal-toc" |
|
228 %endif |
|
229 export CXXFLAGS="$CFLAGS" |
|
230 export LDFLAGS="-Wl,-rpath -Wl,${MOZ_APP_DIR}" |
|
231 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
|
232 export MOZILLA_OFFICIAL=1 |
|
233 export BUILD_OFFICIAL=1 |
|
234 export MOZ_MILESTONE_RELEASE=1 |
|
235 # |
|
236 cat << EOF > $MOZCONFIG |
|
237 mk_add_options MOZILLA_OFFICIAL=1 |
|
238 mk_add_options BUILD_OFFICIAL=1 |
|
239 mk_add_options MOZ_MILESTONE_RELEASE=1 |
|
240 mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs} |
|
241 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj |
|
242 . \$topsrcdir/xulrunner/config/mozconfig |
|
243 ac_add_options --prefix=%{_prefix} |
|
244 ac_add_options --libdir=%{_libdir} |
|
245 ac_add_options --sysconfdir=%{_sysconfdir} |
|
246 ac_add_options --mandir=%{_mandir} |
|
247 ac_add_options --includedir=%{_includedir} |
|
248 ac_add_options --enable-optimize |
|
249 ac_add_options --enable-extensions=default |
|
250 ac_add_options --with-system-jpeg |
|
251 #ac_add_options --with-system-png # no APNG support |
|
252 ac_add_options --with-system-zlib |
|
253 ac_add_options --with-l10n-base=../l10n |
|
254 ac_add_options --enable-xft |
|
255 ac_add_options --disable-freetype2 |
|
256 ac_add_options --enable-svg |
|
257 ac_add_options --enable-canvas |
|
258 ac_add_options --disable-tests |
|
259 ac_add_options --disable-mochitest |
|
260 ac_add_options --disable-installer |
|
261 ac_add_options --disable-updater |
|
262 ac_add_options --disable-javaxpcom |
|
263 ac_add_options --enable-startup-notification |
|
264 ac_add_options --enable-url-classifier |
|
265 ac_add_options --enable-system-hunspell |
|
266 #ac_add_options --enable-debug |
|
267 EOF |
|
268 %if %has_system_nspr |
|
269 cat << EOF >> $MOZCONFIG |
|
270 ac_add_options --with-system-nspr |
|
271 EOF |
|
272 %endif |
|
273 %if %has_system_nss |
|
274 cat << EOF >> $MOZCONFIG |
|
275 ac_add_options --with-system-nss |
|
276 EOF |
|
277 %endif |
|
278 %if %has_system_cairo |
|
279 cat << EOF >> $MOZCONFIG |
|
280 ac_add_options --enable-system-cairo |
|
281 EOF |
|
282 %endif |
|
283 %if %suse_version > 1110 |
|
284 cat << EOF >> $MOZCONFIG |
|
285 ac_add_options --enable-libproxy |
|
286 EOF |
|
287 %endif |
|
288 %if ! %crashreporter |
|
289 cat << EOF >> $MOZCONFIG |
|
290 ac_add_options --disable-crashreporter |
|
291 EOF |
|
292 %endif |
|
293 make -f client.mk build |
|
294 |
|
295 %install |
|
296 cd ../obj |
|
297 %makeinstall STRIP=/bin/true |
|
298 # remove some executable permissions |
|
299 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
|
300 -type f -perm -111 -exec chmod a-x {} \; |
|
301 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \ |
|
302 -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x |
|
303 mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions |
|
304 # fixing SDK dynamic libs (symlink instead of copy) |
|
305 rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so |
|
306 ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \ |
|
307 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
308 ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \ |
|
309 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
310 ln -sf ../../../xulrunner-%{version_internal}/libxul.so \ |
|
311 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
312 # include basic buildenv for xulapps to use |
|
313 mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal} |
|
314 pushd .. |
|
315 # this list has been compiled by trial and error for prism |
|
316 tar --exclude=*.cpp --exclude=*.mm \ |
|
317 -cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \ |
|
318 mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \ |
|
319 mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \ |
|
320 mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \ |
|
321 mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build |
|
322 popd |
|
323 # XPI example |
|
324 #cp -rL dist/xpi-stage/simple $RPM_BUILD_ROOT/%{_libdir}/xulrunner-%{version_internal}/ |
|
325 # preferences |
|
326 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/defaults/pref/all-openSUSE.js |
|
327 cp %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/defaults/pref/lockdown.js |
|
328 # install add-plugins.sh |
|
329 sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \ |
|
330 %{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
|
331 chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
|
332 # 64bit classification for GRE config |
|
333 %ifarch x86_64 s390x ppc64 |
|
334 mv $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}.system.conf \ |
|
335 $RPM_BUILD_ROOT%{_sysconfdir}/gre.d/%{version_internal}-64bit.system.conf |
|
336 %endif |
|
337 # ghosts |
|
338 touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo |
|
339 # install additional locales |
|
340 %if %localize |
|
341 rm -f %{_tmppath}/translations.* |
|
342 touch %{_tmppath}/translations.{common,other} |
|
343 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do |
|
344 case $locale in |
|
345 ja-JP-mac|en-US) |
|
346 ;; |
|
347 *) |
|
348 make -C toolkit/locales libs-$locale |
|
349 cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \ |
|
350 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome |
|
351 cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \ |
|
352 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/chrome |
|
353 # check against the fixed common list and sort into the right filelist |
|
354 _matched=0 |
|
355 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 |
|
356 [ "$_match" = "$locale" ] && _matched=1 |
|
357 done |
|
358 [ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other |
|
359 echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.jar \ |
|
360 >> %{_tmppath}/translations.$_l10ntarget |
|
361 echo %{_libdir}/xulrunner-%{version_internal}/chrome/$locale.manifest \ |
|
362 >> %{_tmppath}/translations.$_l10ntarget |
|
363 esac |
|
364 done |
|
365 %endif |
|
366 # API symlink |
|
367 ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion} |
|
368 # compat links |
|
369 %if 0%{?ga_version:1} |
|
370 touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version} |
|
371 %endif |
|
372 # excludes |
|
373 %if %suse_version < 1120 |
|
374 rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner |
|
375 %endif |
|
376 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater |
|
377 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale |
|
378 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE |
|
379 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt |
|
380 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US* |
|
381 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config |
|
382 # autoreg |
|
383 touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/.autoreg |
|
384 # fdupes |
|
385 %fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/ |
|
386 %fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ |
|
387 # create breakpad debugsymbols |
|
388 %if %crashreporter |
|
389 SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols" |
|
390 make buildsymbols \ |
|
391 SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \ |
|
392 SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME" |
|
393 if [ -e dist/*symbols.zip ]; then |
|
394 mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/ |
|
395 cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/ |
|
396 fi |
|
397 %endif |
|
398 |
|
399 %clean |
|
400 rm -rf $RPM_BUILD_ROOT |
|
401 %if %localize |
|
402 rm -rf %{_tmppath}/translations.* |
|
403 %endif |
|
404 |
|
405 %post |
|
406 /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ |
|
407 xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || : |
|
408 %{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 |
|
409 exit 0 |
|
410 |
|
411 %posttrans |
|
412 # needed for updates which transition directory to symlink |
|
413 %if 0%{?ga_version:1} |
|
414 test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version} |
|
415 ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version} |
|
416 %endif |
|
417 [ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \ |
|
418 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
419 exit 0 |
|
420 |
|
421 %preun |
|
422 if [ "$1" = "0" ]; then # deinstallation |
|
423 # that's not quite nice since old versions should be removed on update as well |
|
424 # but that's problematic for updates w/o raising the version number |
|
425 /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner |
|
426 fi |
|
427 rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* |
|
428 exit 0 |
|
429 |
|
430 %triggerin -- myspell-dictionary |
|
431 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
432 exit 0 |
|
433 |
|
434 %triggerpostun -- myspell-dictionary |
|
435 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
436 exit 0 |
|
437 |
|
438 %post gnome |
|
439 touch %{_libdir}/xulrunner-%{version_internal}/.autoreg |
|
440 exit 0 |
|
441 |
|
442 %files |
|
443 %defattr(-,root,root) |
|
444 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
445 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
|
446 %dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ |
|
447 %dir %{_libdir}/xulrunner-%{version_internal}/extensions/ |
|
448 %{_libdir}/xulrunner-%{version_internal}/chrome/en-US.* |
|
449 %{_libdir}/xulrunner-%{version_internal}/chrome/pippki.* |
|
450 %{_libdir}/xulrunner-%{version_internal}/chrome/toolkit.* |
|
451 %{_libdir}/xulrunner-%{version_internal}/chrome/icons/ |
|
452 %{_libdir}/xulrunner-%{version_internal}/components/ |
|
453 %exclude %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so |
|
454 %exclude %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so |
|
455 %{_libdir}/xulrunner-%{version_internal}/defaults/ |
|
456 %{_libdir}/xulrunner-%{version_internal}/greprefs.js |
|
457 %{_libdir}/xulrunner-%{version_internal}/icons/ |
|
458 %{_libdir}/xulrunner-%{version_internal}/modules/ |
|
459 %{_libdir}/xulrunner-%{version_internal}/plugins/ |
|
460 %{_libdir}/xulrunner-%{version_internal}/res/ |
|
461 %{_libdir}/xulrunner-%{version_internal}/*.so |
|
462 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
|
463 %{_libdir}/xulrunner-%{version_internal}/.autoreg |
|
464 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
|
465 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
|
466 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client |
|
467 %{_libdir}/xulrunner-%{version_internal}/plugin-container |
|
468 %{_libdir}/xulrunner-%{version_internal}/run-mozilla.sh |
|
469 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
|
470 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin |
|
471 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub |
|
472 %{_libdir}/xulrunner-%{version_internal}/platform.ini |
|
473 # crashreporter files |
|
474 %if %crashreporter |
|
475 %{_libdir}/xulrunner-%{version_internal}/crashreporter |
|
476 %{_libdir}/xulrunner-%{version_internal}/crashreporter.ini |
|
477 %{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif |
|
478 %endif |
|
479 # ghosts |
|
480 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo |
|
481 %if %suse_version >= 1120 |
|
482 %ghost %{_bindir}/xulrunner |
|
483 %endif |
|
484 # GRE |
|
485 %dir %{_sysconfdir}/gre.d/ |
|
486 %attr(644,root,root) %{_sysconfdir}/gre.d/* |
|
487 # API symlink |
|
488 %{_libdir}/xulrunner-%{apiversion} |
|
489 # compat symlinks |
|
490 %if 0%{?ga_version:1} |
|
491 %ghost %{_libdir}/xulrunner-%{ga_version} |
|
492 %endif |
|
493 |
|
494 %files -n mozilla-js193 |
|
495 %defattr(-,root,root) |
|
496 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
497 %{_libdir}/xulrunner-%{apiversion} |
|
498 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
|
499 |
|
500 %files devel |
|
501 %defattr(-,root,root) |
|
502 %{_libdir}/xulrunner-%{version_internal}/xpcshell |
|
503 %{_libdir}/xulrunner-%{version_internal}/xpidl |
|
504 %{_libdir}/xulrunner-%{version_internal}/xpt_dump |
|
505 %{_libdir}/xulrunner-%{version_internal}/xpt_link |
|
506 %{_libdir}/xulrunner-devel-%{version_internal}/ |
|
507 # FIXME symlink dynamic libs below sdk/lib |
|
508 %attr(644,root,root) %{_libdir}/pkgconfig/* |
|
509 %{_includedir}/xulrunner-%{version_internal}/ |
|
510 %{_datadir}/xulrunner-%{version_internal}/ |
|
511 |
|
512 %files gnome |
|
513 %defattr(-,root,root) |
|
514 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
515 %dir %{_libdir}/xulrunner-%{version_internal}/components/ |
|
516 %ghost %{_libdir}/xulrunner-%{version_internal}/.autoreg |
|
517 %{_libdir}/xulrunner-%{version_internal}/components/libmozgnome.so |
|
518 %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so |
|
519 |
|
520 %if %localize |
|
521 |
|
522 %files translations-common -f %{_tmppath}/translations.common |
|
523 %defattr(-,root,root) |
|
524 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
525 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
|
526 |
|
527 %files translations-other -f %{_tmppath}/translations.other |
|
528 %defattr(-,root,root) |
|
529 %dir %{_libdir}/xulrunner-%{version_internal}/ |
|
530 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/ |
|
531 %endif |
|
532 |
|
533 %if %crashreporter |
|
534 |
|
535 %files buildsymbols |
|
536 %defattr(-,root,root) |
|
537 %{_datadir}/mozilla/ |
|
538 %endif |
|
539 |
|
540 %changelog |
|