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 %if %suse_version > 1220 |
19 |
20 %define gstreamer_ver 0.10 |
20 %define version_internal 31.8.0 |
|
21 %define apiversion 31 |
|
22 %define uaweight 3180000 |
|
23 %define releasedate 2015062600 |
|
24 %define shared_js 0 |
|
25 %define has_system_nspr 1 |
|
26 %define has_system_nss 1 |
|
27 %define has_system_cairo 0 |
|
28 %define localize 0 |
|
29 %ifarch aarch64 ppc ppc64 ppc64le s390 s390x ia64 %arm |
|
30 %define crashreporter 0 |
|
31 %else |
|
32 %define crashreporter 0 |
|
33 %endif |
|
34 %if %suse_version > 1210 |
|
35 %if %suse_version > 1310 |
|
36 %define gstreamer_ver 1.0 |
|
37 %define gstreamer 1 |
21 %else |
38 %else |
22 %define gstreamer_ver 0.10 |
39 %define gstreamer_ver 0.10 |
|
40 %endif |
23 %endif |
41 %endif |
24 |
42 |
25 Name: xulrunner |
43 Name: xulrunner |
26 BuildRequires: Mesa-devel |
44 BuildRequires: Mesa-devel |
27 BuildRequires: autoconf213 |
45 BuildRequires: autoconf213 |
45 BuildRequires: libiw-devel |
65 BuildRequires: libiw-devel |
46 BuildRequires: libproxy-devel |
66 BuildRequires: libproxy-devel |
47 %else |
67 %else |
48 BuildRequires: wireless-tools |
68 BuildRequires: wireless-tools |
49 %endif |
69 %endif |
50 BuildRequires: mozilla-nspr-devel >= 4.10 |
70 BuildRequires: mozilla-nspr-devel >= 4.10.6 |
51 BuildRequires: mozilla-nss-devel >= 3.15.1 |
71 BuildRequires: mozilla-nss-devel >= 3.19.2 |
|
72 BuildRequires: pkgconfig(libpulse) |
52 %if %suse_version > 1210 |
73 %if %suse_version > 1210 |
53 BuildRequires: pkgconfig(gstreamer-%gstreamer_ver) |
74 BuildRequires: pkgconfig(gstreamer-%gstreamer_ver) |
54 BuildRequires: pkgconfig(gstreamer-app-%gstreamer_ver) |
75 BuildRequires: pkgconfig(gstreamer-app-%gstreamer_ver) |
55 BuildRequires: pkgconfig(gstreamer-plugins-base-%gstreamer_ver) |
76 BuildRequires: pkgconfig(gstreamer-plugins-base-%gstreamer_ver) |
56 %endif |
77 %if 0%{?gstreamer} == 1 |
57 Version: 24.0 |
78 Requires: libgstreamer-1_0-0 |
|
79 Recommends: gstreamer-fluendo-mp3 |
|
80 Recommends: gstreamer-plugin-libav |
|
81 %else |
|
82 Requires: libgstreamer-0_10-0 |
|
83 Recommends: gstreamer-0_10-fluendo-mp3 |
|
84 Recommends: gstreamer-0_10-plugins-ffmpeg |
|
85 %endif |
|
86 %endif |
|
87 Version: %{version_internal} |
58 Release: 0 |
88 Release: 0 |
59 %define releasedate 2013091000 |
|
60 %define version_internal 24.0 |
|
61 %define apiversion 24 |
|
62 %define uaweight 2400000 |
|
63 Summary: Mozilla Runtime Environment |
89 Summary: Mozilla Runtime Environment |
64 License: MPL-2.0 |
90 License: MPL-2.0 |
65 Group: Productivity/Other |
91 Group: Productivity/Other |
66 Url: http://www.mozilla.org/ |
92 Url: http://www.mozilla.org/ |
67 Provides: gecko |
93 Provides: gecko |
68 %ifarch %ix86 |
94 %ifarch %ix86 |
69 Provides: xulrunner-32bit = %{version}-%{release} |
95 Provides: xulrunner-32bit = %{version}-%{release} |
70 %endif |
96 %endif |
71 Source: xulrunner-%{version}-source.tar.bz2 |
97 Source: xulrunner-%{version}-source.tar.xz |
72 Source1: l10n-%{version}.tar.bz2 |
98 Source1: l10n-%{version}.tar.xz |
73 Source2: find-external-requires.sh |
99 Source2: find-external-requires.sh |
74 Source3: %{name}-rpmlintrc |
100 Source3: %{name}-rpmlintrc |
75 Source4: xulrunner-openSUSE-prefs.js |
101 Source4: xulrunner-openSUSE-prefs.js |
76 Source5: add-plugins.sh.in |
102 Source5: spellcheck.js |
77 Source6: create-tar.sh |
103 Source6: create-tar.sh |
78 Source7: baselibs.conf |
104 Source7: baselibs.conf |
79 Source8: source-stamp.txt |
105 Source8: source-stamp.txt |
80 Source9: compare-locales.tar.bz2 |
106 Source9: compare-locales.tar.xz |
81 Patch1: toolkit-download-folder.patch |
107 Patch1: toolkit-download-folder.patch |
82 Patch2: mozilla-pkgconfig.patch |
108 Patch2: mozilla-nongnome-proxies.patch |
83 Patch3: mozilla-idldir.patch |
109 Patch3: mozilla-prefer_plugin_pref.patch |
84 Patch4: mozilla-nongnome-proxies.patch |
110 Patch4: mozilla-pkgconfig.patch |
85 Patch5: mozilla-prefer_plugin_pref.patch |
111 Patch6: mozilla-preferences.patch |
86 Patch6: mozilla-language.patch |
112 Patch7: mozilla-language.patch |
87 Patch7: mozilla-ntlm-full-path.patch |
113 Patch8: mozilla-ntlm-full-path.patch |
88 Patch9: mozilla-sle11.patch |
114 Patch9: mozilla-repo.patch |
89 Patch10: mozilla-ppc.patch |
115 Patch10: mozilla-sle11.patch |
90 Patch11: mozilla-libproxy-compat.patch |
116 Patch11: mozilla-icu-strncat.patch |
|
117 Patch12: mozilla-arm-disable-edsp.patch |
|
118 Patch13: mozilla-ppc.patch |
|
119 Patch14: mozilla-libproxy-compat.patch |
|
120 Patch15: mozilla-nullptr-gcc45.patch |
|
121 Patch16: mozilla-idldir.patch |
|
122 # Gecko/Toolkit AArch64 Porting |
|
123 Patch30: mozilla-aarch64-bmo-810631.patch |
|
124 |
91 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
125 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
126 %if 0%{?shared_js} == 1 |
92 Requires: mozilla-js = %{version} |
127 Requires: mozilla-js = %{version} |
|
128 %endif |
93 Requires(post): update-alternatives coreutils |
129 Requires(post): update-alternatives coreutils |
94 Requires(preun): update-alternatives coreutils |
130 Requires(preun): update-alternatives coreutils |
95 Provides: xulrunner-esr = %{version} |
131 Provides: xulrunner-esr = %{version} |
96 Obsoletes: xulrunner-esr < 24.0 |
132 Obsoletes: xulrunner-esr < 24.0 |
97 ### build configuration ### |
|
98 %define has_system_nspr 1 |
|
99 %define has_system_nss 1 |
|
100 %define has_system_cairo 0 |
|
101 %define localize 1 |
|
102 %ifarch ppc ppc64 s390 s390x ia64 %arm |
|
103 %define crashreporter 0 |
|
104 %else |
|
105 %define crashreporter 1 |
|
106 %endif |
|
107 ### configuration end ### |
|
108 %define _use_internal_dependency_generator 0 |
133 %define _use_internal_dependency_generator 0 |
109 %define __find_requires sh %{SOURCE2} |
134 %define __find_requires sh %{SOURCE2} |
110 %global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides" |
135 %global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides" |
111 %global __find_provides %provfind |
136 %global __find_provides %provfind |
112 %if %has_system_nspr |
137 %if %has_system_nspr |
119 %description |
144 %description |
120 XULRunner is a single installable package that can be used to bootstrap |
145 XULRunner is a single installable package that can be used to bootstrap |
121 multiple XUL+XPCOM applications that are as rich as Firefox and |
146 multiple XUL+XPCOM applications that are as rich as Firefox and |
122 Thunderbird. |
147 Thunderbird. |
123 |
148 |
124 |
149 %if 0%{?shared_js} == 1 |
125 %package -n mozilla-js |
150 %package -n mozilla-js |
126 Summary: Mozilla JS engine |
151 Summary: Mozilla JS engine |
127 Group: Productivity/Other |
152 Group: Productivity/Other |
128 |
153 |
129 %description -n mozilla-js |
154 %description -n mozilla-js |
130 JavaScript is the Netscape-developed object scripting language used in millions |
155 JavaScript is the Netscape-developed object scripting language used in millions |
131 of web pages and server applications worldwide. Netscape's JavaScript is a |
156 of web pages and server applications worldwide. Netscape's JavaScript is a |
132 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
157 superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, |
133 with only mild differences from the published standard. |
158 with only mild differences from the published standard. |
134 |
159 %endif |
135 |
160 |
136 %package devel |
161 %package devel |
137 Summary: XULRunner/Gecko SDK |
162 Summary: XULRunner/Gecko SDK |
138 Group: Development/Libraries/Other |
163 Group: Development/Libraries/Other |
139 %if %has_system_nspr |
164 %if %has_system_nspr |
195 %setup -n mozilla -q -b 1 -b 9 |
218 %setup -n mozilla -q -b 1 -b 9 |
196 %patch1 -p1 |
219 %patch1 -p1 |
197 %patch2 -p1 |
220 %patch2 -p1 |
198 %patch3 -p1 |
221 %patch3 -p1 |
199 %patch4 -p1 |
222 %patch4 -p1 |
200 %patch5 -p1 |
|
201 %patch6 -p1 |
223 %patch6 -p1 |
202 %patch7 -p1 |
224 %patch7 -p1 |
|
225 %patch8 -p1 |
|
226 %patch9 -p1 |
203 %if %suse_version < 1120 |
227 %if %suse_version < 1120 |
204 %patch9 -p1 |
|
205 %endif |
|
206 %patch10 -p1 |
228 %patch10 -p1 |
|
229 %endif |
207 %patch11 -p1 |
230 %patch11 -p1 |
|
231 %patch12 -p1 |
|
232 %patch13 -p1 |
|
233 %patch14 -p1 |
|
234 %patch15 -p1 |
|
235 %patch16 -p1 |
|
236 %patch30 -p1 |
208 |
237 |
209 %build |
238 %build |
210 # no need to add build time to binaries |
239 # no need to add build time to binaries |
211 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
240 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
212 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
241 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
213 TIME="\"$(date -d "${modified}" "+%%R")\"" |
242 TIME="\"$(date -d "${modified}" "+%%R")\"" |
214 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
243 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
215 # |
244 # |
216 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
245 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
|
246 source %{SOURCE8} |
217 export MOZ_BUILD_DATE=%{releasedate} |
247 export MOZ_BUILD_DATE=%{releasedate} |
218 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
248 export MOZ_SOURCE_STAMP=$REV |
|
249 export SOURCE_REPO=$REPO |
|
250 export source_repo=$REPO |
|
251 export MOZ_SOURCE_REPO=$REPO |
|
252 export MOZILLA_OFFICIAL=1 |
|
253 export BUILD_OFFICIAL=1 |
|
254 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
|
255 %ifarch %ix86 |
|
256 export CFLAGS="${CFLAGS} -Os" |
|
257 %endif |
219 %ifarch ppc64 |
258 %ifarch ppc64 |
220 export CFLAGS="$CFLAGS -mminimal-toc" |
259 export CFLAGS="$CFLAGS -mminimal-toc" |
221 %endif |
260 %endif |
222 export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}" |
261 export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}" |
223 %ifarch %arm |
262 %ifarch %arm |
224 # debug symbols require too much memory during build |
263 # debug symbols require too much memory during build |
225 export CFLAGS="${CFLAGS/-g/}" |
264 export CFLAGS="${CFLAGS/-g / }" |
|
265 # Limit RAM usage during link |
226 LDFLAGS+="-Wl,--reduce-memory-overheads -Wl,--no-keep-memory" |
266 LDFLAGS+="-Wl,--reduce-memory-overheads -Wl,--no-keep-memory" |
227 %endif |
267 %endif |
228 export CXXFLAGS="$CFLAGS" |
268 export CXXFLAGS="$CFLAGS" |
229 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
269 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
230 export MOZILLA_OFFICIAL=1 |
|
231 export BUILD_OFFICIAL=1 |
|
232 export MOZ_MILESTONE_RELEASE=1 |
270 export MOZ_MILESTONE_RELEASE=1 |
233 # |
271 # |
234 cat << EOF > $MOZCONFIG |
272 cat << EOF > $MOZCONFIG |
235 mk_add_options MOZILLA_OFFICIAL=1 |
273 mk_add_options MOZILLA_OFFICIAL=1 |
236 mk_add_options BUILD_OFFICIAL=1 |
274 mk_add_options BUILD_OFFICIAL=1 |
241 ac_add_options --prefix=%{_prefix} |
279 ac_add_options --prefix=%{_prefix} |
242 ac_add_options --libdir=%{_libdir} |
280 ac_add_options --libdir=%{_libdir} |
243 ac_add_options --sysconfdir=%{_sysconfdir} |
281 ac_add_options --sysconfdir=%{_sysconfdir} |
244 ac_add_options --mandir=%{_mandir} |
282 ac_add_options --mandir=%{_mandir} |
245 ac_add_options --includedir=%{_includedir} |
283 ac_add_options --includedir=%{_includedir} |
246 ac_add_options --enable-optimize |
284 ac_add_options --enable-release |
|
285 ac_add_options --enable-stdcxx-compat |
|
286 %ifarch %ix86 |
|
287 %if 0%{?suse_version} > 1230 |
|
288 ac_add_options --disable-optimize |
|
289 %endif |
|
290 %endif |
|
291 %ifnarch aarch64 ppc ppc64 ppc64le |
|
292 ac_add_options --enable-elf-hack |
|
293 %endif |
247 ac_add_options --enable-extensions=default |
294 ac_add_options --enable-extensions=default |
248 #ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now |
295 #ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now |
249 #ac_add_options --with-system-png # no APNG support |
296 #ac_add_options --with-system-png # no APNG support |
250 ac_add_options --with-system-zlib |
297 ac_add_options --with-system-zlib |
251 ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n |
298 ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n |
254 ac_add_options --disable-installer |
301 ac_add_options --disable-installer |
255 ac_add_options --disable-updater |
302 ac_add_options --disable-updater |
256 ac_add_options --disable-javaxpcom |
303 ac_add_options --disable-javaxpcom |
257 ac_add_options --enable-system-hunspell |
304 ac_add_options --enable-system-hunspell |
258 ac_add_options --enable-startup-notification |
305 ac_add_options --enable-startup-notification |
|
306 %if 0%{?shared_js} == 1 |
259 ac_add_options --enable-shared-js |
307 ac_add_options --enable-shared-js |
|
308 %endif |
260 #ac_add_options --enable-debug |
309 #ac_add_options --enable-debug |
261 EOF |
|
262 %if %suse_version > 1130 |
310 %if %suse_version > 1130 |
263 cat << EOF >> $MOZCONFIG |
|
264 ac_add_options --disable-gnomevfs |
311 ac_add_options --disable-gnomevfs |
265 ac_add_options --enable-gio |
312 ac_add_options --enable-gio |
266 EOF |
313 %endif |
|
314 %if 0%{?gstreamer} == 1 |
|
315 ac_add_options --enable-gstreamer=1.0 |
267 %endif |
316 %endif |
268 %if %suse_version < 1220 |
317 %if %suse_version < 1220 |
269 cat << EOF >> $MOZCONFIG |
|
270 ac_add_options --disable-gstreamer |
318 ac_add_options --disable-gstreamer |
271 EOF |
|
272 %endif |
319 %endif |
273 %if %has_system_nspr |
320 %if %has_system_nspr |
274 cat << EOF >> $MOZCONFIG |
|
275 ac_add_options --with-system-nspr |
321 ac_add_options --with-system-nspr |
276 EOF |
|
277 %endif |
322 %endif |
278 %if %has_system_nss |
323 %if %has_system_nss |
279 cat << EOF >> $MOZCONFIG |
|
280 ac_add_options --with-system-nss |
324 ac_add_options --with-system-nss |
281 EOF |
|
282 %endif |
325 %endif |
283 %if %has_system_cairo |
326 %if %has_system_cairo |
284 cat << EOF >> $MOZCONFIG |
|
285 ac_add_options --enable-system-cairo |
327 ac_add_options --enable-system-cairo |
286 EOF |
|
287 %endif |
328 %endif |
288 %if %suse_version > 1110 |
329 %if %suse_version > 1110 |
289 cat << EOF >> $MOZCONFIG |
|
290 ac_add_options --enable-libproxy |
330 ac_add_options --enable-libproxy |
291 EOF |
|
292 %endif |
331 %endif |
293 %if ! %crashreporter |
332 %if ! %crashreporter |
294 cat << EOF >> $MOZCONFIG |
|
295 ac_add_options --disable-crashreporter |
333 ac_add_options --disable-crashreporter |
296 EOF |
|
297 %endif |
334 %endif |
298 # ARM |
335 # ARM |
299 %ifarch %arm |
336 %ifarch %arm |
300 cat << EOF >> $MOZCONFIG |
|
301 ac_add_options --disable-neon |
337 ac_add_options --disable-neon |
|
338 %endif |
|
339 %ifnarch %ix86 x86_64 |
|
340 ac_add_options --disable-webrtc |
|
341 %endif |
|
342 # try to use OpenGL-ES on ARM |
|
343 %ifarch %arm |
|
344 ac_add_options --with-gl-provider=EGL |
|
345 %endif |
302 EOF |
346 EOF |
303 %endif |
|
304 %ifnarch %ix86 x86_64 |
|
305 cat << EOF >> $MOZCONFIG |
|
306 ac_add_options --disable-webrtc |
|
307 EOF |
|
308 %endif |
|
309 make -f client.mk build |
347 make -f client.mk build |
310 |
348 |
311 %install |
349 %install |
312 cd ../obj |
350 cd ../obj |
313 # preferences (to package in omni.jar) |
351 # preferences (to package in omni.jar) |
314 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js |
352 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js |
|
353 cp %{SOURCE5} dist/bin/defaults/pref/ |
315 %makeinstall STRIP=/bin/true |
354 %makeinstall STRIP=/bin/true |
316 # xpt.py is not executable |
355 # xpt.py is not executable |
317 chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/*.py |
356 chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/*.py |
318 # remove some executable permissions |
357 # remove some executable permissions |
319 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
358 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \ |
323 # remove mkdir.done files from installed base |
362 # remove mkdir.done files from installed base |
324 #find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal} -name ".mkdir.done" | xargs rm |
363 #find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal} -name ".mkdir.done" | xargs rm |
325 mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions |
364 mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions |
326 # fixing SDK dynamic libs (symlink instead of copy) |
365 # fixing SDK dynamic libs (symlink instead of copy) |
327 rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so |
366 rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so |
|
367 %if 0%{?shared_js} == 1 |
328 ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \ |
368 ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \ |
329 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
369 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
|
370 %endif |
330 ln -sf ../../../xulrunner-%{version_internal}/libxul.so \ |
371 ln -sf ../../../xulrunner-%{version_internal}/libxul.so \ |
331 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
372 $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/ |
332 # include basic buildenv for xulapps to use |
373 # include basic buildenv for xulapps to use |
333 mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal} |
374 mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal} |
334 pushd .. |
375 pushd .. |
417 %endif |
454 %endif |
418 |
455 |
419 %post |
456 %post |
420 /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ |
457 /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ |
421 xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || : |
458 xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || : |
422 %{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 |
|
423 exit 0 |
459 exit 0 |
424 |
460 |
425 %posttrans |
461 %posttrans |
426 # needed for updates which transition directory to symlink |
462 # needed for updates which transition directory to symlink |
427 %if 0%{?ga_version:1} |
463 %if 0%{?ga_version:1} |
428 test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version} |
464 test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version} |
429 ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version} |
465 ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version} |
430 %endif |
466 %endif |
431 [ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \ |
|
432 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
433 exit 0 |
467 exit 0 |
434 |
468 |
435 %preun |
469 %preun |
436 if [ "$1" = "0" ]; then # deinstallation |
470 if [ "$1" = "0" ]; then # deinstallation |
437 # that's not quite nice since old versions should be removed on update as well |
471 # that's not quite nice since old versions should be removed on update as well |
438 # but that's problematic for updates w/o raising the version number |
472 # but that's problematic for updates w/o raising the version number |
439 /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner |
473 /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner |
440 fi |
474 fi |
441 rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* |
|
442 exit 0 |
|
443 |
|
444 %triggerin -- myspell-dictionary |
|
445 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
446 exit 0 |
|
447 |
|
448 %triggerpostun -- myspell-dictionary |
|
449 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 |
|
450 exit 0 |
475 exit 0 |
451 |
476 |
452 %files |
477 %files |
453 %defattr(-,root,root) |
478 %defattr(-,root,root) |
454 %dir %{_libdir}/xulrunner-%{version_internal}/ |
479 %dir %{_libdir}/xulrunner-%{version_internal}/ |
456 %dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ |
481 %dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/ |
457 %dir %{_libdir}/xulrunner-%{version_internal}/extensions/ |
482 %dir %{_libdir}/xulrunner-%{version_internal}/extensions/ |
458 %{_libdir}/xulrunner-%{version_internal}/chrome/icons/ |
483 %{_libdir}/xulrunner-%{version_internal}/chrome/icons/ |
459 %{_libdir}/xulrunner-%{version_internal}/components/ |
484 %{_libdir}/xulrunner-%{version_internal}/components/ |
460 %{_libdir}/xulrunner-%{version_internal}/*.so |
485 %{_libdir}/xulrunner-%{version_internal}/*.so |
|
486 %if 0%{?shared_js} == 1 |
461 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
487 %exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
462 %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh |
488 %endif |
463 %{_libdir}/xulrunner-%{version_internal}/chrome.manifest |
489 %{_libdir}/xulrunner-%{version_internal}/chrome.manifest |
464 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
490 %{_libdir}/xulrunner-%{version_internal}/dependentlibs.list |
465 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client |
491 %{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client |
466 %{_libdir}/xulrunner-%{version_internal}/plugin-container |
492 %{_libdir}/xulrunner-%{version_internal}/plugin-container |
467 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
493 %{_libdir}/xulrunner-%{version_internal}/xulrunner |
479 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo |
505 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo |
480 %if %suse_version >= 1120 |
506 %if %suse_version >= 1120 |
481 %ghost %{_bindir}/xulrunner |
507 %ghost %{_bindir}/xulrunner |
482 %endif |
508 %endif |
483 # API symlink (already in mozilla-js) |
509 # API symlink (already in mozilla-js) |
484 #%{_libdir}/xulrunner-%{apiversion} |
510 %if 0%{?shared_js} == 0 |
|
511 %{_libdir}/xulrunner-%{apiversion} |
|
512 %endif |
485 # compat symlinks |
513 # compat symlinks |
486 %if 0%{?ga_version:1} |
514 %if 0%{?ga_version:1} |
487 %ghost %{_libdir}/xulrunner-%{ga_version} |
515 %ghost %{_libdir}/xulrunner-%{ga_version} |
488 %endif |
516 %endif |
489 |
517 |
|
518 %if 0%{?shared_js} == 1 |
490 %files -n mozilla-js |
519 %files -n mozilla-js |
491 %defattr(-,root,root) |
520 %defattr(-,root,root) |
492 %dir %{_libdir}/xulrunner-%{version_internal}/ |
521 %dir %{_libdir}/xulrunner-%{version_internal}/ |
493 %{_libdir}/xulrunner-%{apiversion} |
522 %{_libdir}/xulrunner-%{apiversion} |
494 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
523 %{_libdir}/xulrunner-%{version_internal}/libmozjs.so |
|
524 %endif |
495 |
525 |
496 %files devel |
526 %files devel |
497 %defattr(-,root,root) |
527 %defattr(-,root,root) |
498 %{_libdir}/xulrunner-devel-%{version_internal}/ |
528 %{_libdir}/xulrunner-devel-%{version_internal}/ |
499 %{_libdir}/xulrunner-%{version_internal}/js-gdb.py |
529 %{_libdir}/xulrunner-%{version_internal}/js-gdb.py |