638
|
1 |
#
|
|
2 |
# spec file for package xulrunner
|
|
3 |
#
|
|
4 |
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
5 |
# 2006-2013 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.5
|
677
|
46 |
BuildRequires: mozilla-nss-devel >= 3.14.4
|
|
47 |
Version: 17.0.10
|
638
|
48 |
Release: 0
|
677
|
49 |
%define releasedate 2013102400
|
|
50 |
%define version_internal 17.0.10
|
638
|
51 |
%define apiversion 17
|
677
|
52 |
%define uaweight 1700010
|
638
|
53 |
Summary: Mozilla Runtime Environment
|
|
54 |
License: MPL-2.0
|
|
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: mozilla-idldir.patch
|
|
74 |
Patch4: mozilla-nongnome-proxies.patch
|
|
75 |
Patch5: mozilla-prefer_plugin_pref.patch
|
|
76 |
Patch6: mozilla-language.patch
|
|
77 |
Patch7: mozilla-ntlm-full-path.patch
|
|
78 |
Patch9: mozilla-sle11.patch
|
|
79 |
Patch14: mozilla-ppc.patch
|
|
80 |
# SLE11 patches
|
|
81 |
Patch20: mozilla-gcc43-enums.patch
|
|
82 |
Patch21: mozilla-gcc43-template_hacks.patch
|
|
83 |
Patch22: mozilla-gcc43-templates_instantiation.patch
|
665
|
84 |
Patch23: ppc-xpcshell.patch
|
638
|
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 %arm
|
|
95 |
%define crashreporter 0
|
|
96 |
%else
|
|
97 |
%define crashreporter 1
|
|
98 |
%endif
|
|
99 |
### configuration end ###
|
|
100 |
%define _use_internal_dependency_generator 0
|
|
101 |
%define __find_requires sh %{SOURCE2}
|
|
102 |
%global provfind sh -c "grep -Ev 'mozsqlite3|dbusservice|unixprint' | %__find_provides"
|
|
103 |
%global __find_provides %provfind
|
|
104 |
%if %has_system_nspr
|
|
105 |
Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr)
|
|
106 |
%endif
|
|
107 |
%if %has_system_nss
|
|
108 |
Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss)
|
|
109 |
%endif
|
|
110 |
|
|
111 |
%description
|
|
112 |
XULRunner is a single installable package that can be used to bootstrap
|
|
113 |
multiple XUL+XPCOM applications that are as rich as Firefox and
|
|
114 |
Thunderbird.
|
|
115 |
|
|
116 |
|
|
117 |
%package -n mozilla-js
|
|
118 |
Summary: Mozilla JS engine
|
|
119 |
Group: Productivity/Other
|
|
120 |
|
|
121 |
%description -n mozilla-js
|
|
122 |
JavaScript is the Netscape-developed object scripting language used in millions
|
|
123 |
of web pages and server applications worldwide. Netscape's JavaScript is a
|
|
124 |
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
|
|
125 |
with only mild differences from the published standard.
|
|
126 |
|
|
127 |
|
|
128 |
%package devel
|
|
129 |
Summary: XULRunner/Gecko SDK
|
|
130 |
Group: Development/Libraries/Other
|
|
131 |
%if %has_system_nspr
|
|
132 |
Requires: mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel)
|
|
133 |
%endif
|
|
134 |
%if %has_system_nss
|
|
135 |
Requires: mozilla-nss-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss-devel)
|
|
136 |
%endif
|
|
137 |
Requires: %{name} = %{version}
|
|
138 |
|
|
139 |
%description devel
|
|
140 |
Software Development Kit to embed XUL or Gecko into other applications.
|
|
141 |
|
|
142 |
%if %localize
|
|
143 |
|
|
144 |
%package translations-common
|
|
145 |
Summary: Common translations for XULRunner
|
|
146 |
Group: System/Localization
|
|
147 |
Requires: %{name} = %{version}
|
|
148 |
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)
|
|
149 |
Obsoletes: %{name}-translations < %{version}-%{release}
|
|
150 |
|
|
151 |
%description translations-common
|
|
152 |
XULRunner is a single installable package that can be used to bootstrap
|
|
153 |
multiple XUL+XPCOM applications that are as rich as Firefox and
|
|
154 |
Thunderbird.
|
|
155 |
|
|
156 |
This package contains the most common languages but en-US which is
|
|
157 |
delivered in the main package.
|
|
158 |
|
|
159 |
|
|
160 |
%package translations-other
|
|
161 |
Summary: Extra translations for XULRunner
|
|
162 |
Group: System/Localization
|
|
163 |
Requires: %{name} = %{version}
|
|
164 |
Provides: locale(%{name}:ach;af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;el;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;km;kn;ku;lg;lij;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)
|
|
165 |
Obsoletes: %{name}-translations < %{version}-%{release}
|
|
166 |
|
|
167 |
%description translations-other
|
|
168 |
XULRunner is a single installable package that can be used to bootstrap
|
|
169 |
multiple XUL+XPCOM applications that are as rich as Firefox and
|
|
170 |
Thunderbird.
|
|
171 |
|
|
172 |
This package contains rarely used languages.
|
|
173 |
%endif
|
|
174 |
|
|
175 |
%if %crashreporter
|
|
176 |
|
|
177 |
%package buildsymbols
|
|
178 |
Summary: Breakpad buildsymbols for %{name}
|
|
179 |
Group: Development/Debug
|
|
180 |
|
|
181 |
%description buildsymbols
|
|
182 |
This subpackage contains the Breakpad created and compatible debugging
|
|
183 |
symbols meant for upload to Mozilla's crash collector database.
|
|
184 |
%endif
|
|
185 |
|
|
186 |
%prep
|
|
187 |
%setup -n mozilla -q -b 1 -b 9
|
|
188 |
%patch1 -p1
|
|
189 |
%patch2 -p1
|
|
190 |
%patch3 -p1
|
|
191 |
%patch4 -p1
|
|
192 |
%patch5 -p1
|
|
193 |
%patch6 -p1
|
|
194 |
%patch7 -p1
|
|
195 |
%if %suse_version < 1120
|
|
196 |
%patch9 -p1
|
|
197 |
%endif
|
|
198 |
%patch14 -p1
|
|
199 |
# SLE patches
|
|
200 |
%if %suse_version <= 1110
|
|
201 |
%patch20 -p1
|
|
202 |
%patch21 -p1
|
|
203 |
%patch22 -p1
|
|
204 |
%endif
|
665
|
205 |
%patch23 -p1
|
638
|
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 LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}"
|
|
221 |
%ifarch %arm
|
|
222 |
# debug symbols require too much memory during build
|
|
223 |
export CFLAGS="${CFLAGS/-g/}"
|
|
224 |
LDFLAGS+="-Wl,--reduce-memory-overheads -Wl,--no-keep-memory"
|
|
225 |
%endif
|
|
226 |
export CXXFLAGS="$CFLAGS"
|
|
227 |
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
|
|
228 |
export MOZILLA_OFFICIAL=1
|
|
229 |
export BUILD_OFFICIAL=1
|
|
230 |
export MOZ_MILESTONE_RELEASE=1
|
|
231 |
#
|
|
232 |
cat << EOF > $MOZCONFIG
|
|
233 |
mk_add_options MOZILLA_OFFICIAL=1
|
|
234 |
mk_add_options BUILD_OFFICIAL=1
|
|
235 |
mk_add_options MOZ_MILESTONE_RELEASE=1
|
|
236 |
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
|
|
237 |
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
|
|
238 |
. \$topsrcdir/xulrunner/config/mozconfig
|
|
239 |
ac_add_options --prefix=%{_prefix}
|
|
240 |
ac_add_options --libdir=%{_libdir}
|
|
241 |
ac_add_options --sysconfdir=%{_sysconfdir}
|
|
242 |
ac_add_options --mandir=%{_mandir}
|
|
243 |
ac_add_options --includedir=%{_includedir}
|
|
244 |
ac_add_options --enable-optimize
|
|
245 |
ac_add_options --enable-extensions=default
|
|
246 |
#ac_add_options --with-system-jpeg # mozilla uses internal libjpeg-turbo now
|
|
247 |
#ac_add_options --with-system-png # no APNG support
|
|
248 |
ac_add_options --with-system-zlib
|
|
249 |
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
|
|
250 |
ac_add_options --disable-tests
|
|
251 |
ac_add_options --disable-mochitest
|
|
252 |
ac_add_options --disable-installer
|
|
253 |
ac_add_options --disable-updater
|
|
254 |
ac_add_options --disable-javaxpcom
|
|
255 |
ac_add_options --enable-system-hunspell
|
|
256 |
ac_add_options --enable-startup-notification
|
|
257 |
ac_add_options --enable-shared-js
|
|
258 |
ac_add_options --disable-webrtc # does not build with system NSPR
|
|
259 |
#ac_add_options --enable-debug
|
|
260 |
EOF
|
|
261 |
%if %suse_version > 1130
|
|
262 |
cat << EOF >> $MOZCONFIG
|
|
263 |
ac_add_options --disable-gnomevfs
|
|
264 |
ac_add_options --enable-gio
|
|
265 |
EOF
|
|
266 |
%endif
|
|
267 |
%if %has_system_nspr
|
|
268 |
cat << EOF >> $MOZCONFIG
|
|
269 |
ac_add_options --with-system-nspr
|
|
270 |
EOF
|
|
271 |
%endif
|
|
272 |
%if %has_system_nss
|
|
273 |
cat << EOF >> $MOZCONFIG
|
|
274 |
ac_add_options --with-system-nss
|
|
275 |
EOF
|
|
276 |
%endif
|
|
277 |
%if %has_system_cairo
|
|
278 |
cat << EOF >> $MOZCONFIG
|
|
279 |
ac_add_options --enable-system-cairo
|
|
280 |
EOF
|
|
281 |
%endif
|
|
282 |
%if %suse_version > 1110
|
|
283 |
cat << EOF >> $MOZCONFIG
|
|
284 |
ac_add_options --enable-libproxy
|
|
285 |
EOF
|
|
286 |
%endif
|
|
287 |
%if ! %crashreporter
|
|
288 |
cat << EOF >> $MOZCONFIG
|
|
289 |
ac_add_options --disable-crashreporter
|
|
290 |
EOF
|
|
291 |
%endif
|
|
292 |
# S/390
|
|
293 |
%ifarch s390 s390x
|
|
294 |
cat << EOF >> $MOZCONFIG
|
|
295 |
ac_add_options --disable-jemalloc
|
|
296 |
EOF
|
|
297 |
%endif
|
|
298 |
# ARM
|
|
299 |
%ifarch %arm
|
|
300 |
cat << EOF >> $MOZCONFIG
|
|
301 |
%ifarch armv7l armv7hl
|
|
302 |
ac_add_options --with-arch=armv7-a
|
|
303 |
ac_add_options --with-float-abi=hard
|
|
304 |
ac_add_options --with-fpu=vfpv3-d16
|
|
305 |
ac_add_options --with-thumb=yes
|
|
306 |
ac_add_options --disable-debug
|
|
307 |
%endif
|
|
308 |
%ifarch armv5tel
|
|
309 |
ac_add_options --with-arch=armv5te
|
|
310 |
ac_add_options --with-float-abi=soft
|
|
311 |
ac_add_options --with-thumb=no
|
|
312 |
%endif
|
|
313 |
EOF
|
|
314 |
%endif
|
|
315 |
make -f client.mk build
|
|
316 |
|
|
317 |
%install
|
|
318 |
cd ../obj
|
|
319 |
# preferences (to package in omni.jar)
|
|
320 |
cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js
|
|
321 |
%makeinstall STRIP=/bin/true
|
|
322 |
# xpt.py is not executable
|
|
323 |
chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/*.py
|
|
324 |
# remove some executable permissions
|
|
325 |
find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
|
|
326 |
-type f -perm -111 -exec chmod a-x {} \;
|
|
327 |
find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
|
|
328 |
-name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x
|
|
329 |
# remove mkdir.done files from installed base
|
|
330 |
find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal} -name ".mkdir.done" | xargs rm
|
|
331 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions
|
|
332 |
# fixing SDK dynamic libs (symlink instead of copy)
|
|
333 |
rm $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/*.so
|
|
334 |
ln -sf ../../../xulrunner-%{version_internal}/libmozjs.so \
|
|
335 |
$RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
|
|
336 |
ln -sf ../../../xulrunner-%{version_internal}/libxpcom.so \
|
|
337 |
$RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
|
|
338 |
ln -sf ../../../xulrunner-%{version_internal}/libxul.so \
|
|
339 |
$RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/lib/
|
|
340 |
# include basic buildenv for xulapps to use
|
|
341 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}
|
|
342 |
pushd ..
|
|
343 |
# this list has been compiled by trial and error for prism
|
|
344 |
tar --exclude=*.cpp --exclude=*.mm \
|
|
345 |
-cvjf $RPM_BUILD_ROOT%{_datadir}/xulrunner-%{version_internal}/mozilla-src.tar.bz2 \
|
|
346 |
mozilla/configure.in mozilla/Makefile.in mozilla/client.py mozilla/allmakefiles.sh \
|
|
347 |
mozilla/config mozilla/client.mk mozilla/aclocal.m4 mozilla/build mozilla/js/src/* \
|
|
348 |
mozilla/testing mozilla/toolkit/mozapps/installer mozilla/probes mozilla/memory \
|
|
349 |
mozilla/toolkit/xre mozilla/nsprpub/config mozilla/tools mozilla/xpcom/build
|
|
350 |
popd
|
|
351 |
# install add-plugins.sh
|
|
352 |
sed "s:%%PROGDIR:%{_libdir}/xulrunner-%{version_internal}:g" \
|
|
353 |
%{SOURCE5} > $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
|
|
354 |
chmod 755 $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
|
|
355 |
# ghosts
|
|
356 |
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/global.reginfo
|
|
357 |
# install additional locales
|
|
358 |
%if %localize
|
|
359 |
rm -f %{_tmppath}/translations.*
|
|
360 |
touch %{_tmppath}/translations.{common,other}
|
|
361 |
for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
|
|
362 |
case $locale in
|
|
363 |
ja-JP-mac|en-US)
|
|
364 |
;;
|
|
365 |
*)
|
|
366 |
pushd $RPM_BUILD_DIR/compare-locales
|
|
367 |
PYTHONPATH=lib \
|
|
368 |
scripts/compare-locales -m ../l10n-merged/$locale \
|
|
369 |
../mozilla/toolkit/locales/l10n.ini ../l10n $locale
|
|
370 |
popd
|
|
371 |
LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \
|
|
372 |
make -C toolkit/locales langpack-$locale
|
|
373 |
cp dist/xpi-stage/locale-$locale \
|
|
374 |
$RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org
|
|
375 |
# remove prefs and profile defaults from langpack
|
|
376 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org/defaults
|
|
377 |
# check against the fixed common list and sort into the right filelist
|
|
378 |
_matched=0
|
|
379 |
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
|
|
380 |
[ "$_match" = "$locale" ] && _matched=1
|
|
381 |
done
|
|
382 |
[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
|
|
383 |
echo %{_libdir}/xulrunner-%{version_internal}/extensions/langpack-$locale@firefox.mozilla.org \ \
|
|
384 |
>> %{_tmppath}/translations.$_l10ntarget
|
|
385 |
esac
|
|
386 |
done
|
|
387 |
%endif
|
|
388 |
# API symlink
|
|
389 |
ln -sf xulrunner-%{version_internal} $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{apiversion}
|
|
390 |
# compat links
|
|
391 |
%if 0%{?ga_version:1}
|
|
392 |
touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version}
|
|
393 |
%endif
|
|
394 |
# excludes
|
|
395 |
%if %suse_version < 1120
|
|
396 |
rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner
|
|
397 |
%endif
|
|
398 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater
|
|
399 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale
|
|
400 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE
|
|
401 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/README.txt
|
|
402 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/dictionaries/en-US*
|
|
403 |
rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/nspr-config
|
|
404 |
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mozilla-plugin.pc
|
|
405 |
# fdupes
|
|
406 |
%fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
|
|
407 |
%fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
|
|
408 |
# create breakpad debugsymbols
|
|
409 |
%if %crashreporter
|
|
410 |
SYMBOLS_NAME="xulrunner-%{version}-%{release}.%{_arch}-%{suse_version}-symbols"
|
|
411 |
make buildsymbols \
|
|
412 |
SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
|
|
413 |
SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
|
|
414 |
SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
|
|
415 |
if [ -e dist/*symbols.zip ]; then
|
|
416 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
|
|
417 |
cp dist/*symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/
|
|
418 |
fi
|
|
419 |
%endif
|
|
420 |
|
|
421 |
%clean
|
|
422 |
rm -rf $RPM_BUILD_ROOT
|
|
423 |
%if %localize
|
|
424 |
rm -rf %{_tmppath}/translations.*
|
|
425 |
%endif
|
|
426 |
|
|
427 |
%post
|
|
428 |
/usr/sbin/update-alternatives --install %{_bindir}/xulrunner \
|
|
429 |
xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner %{uaweight} || :
|
|
430 |
%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1
|
|
431 |
exit 0
|
|
432 |
|
|
433 |
%posttrans
|
|
434 |
# needed for updates which transition directory to symlink
|
|
435 |
%if 0%{?ga_version:1}
|
|
436 |
test -d %{_libdir}/xulrunner-%{ga_version} && rm -rf %{_libdir}/xulrunner-%{ga_version}
|
|
437 |
ln -sf xulrunner-%{version_internal} %{_libdir}/xulrunner-%{ga_version}
|
|
438 |
%endif
|
|
439 |
[ -e %{_libdir}/xulrunner-%{version_internal}/add-plugins.sh ] && \
|
|
440 |
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
|
|
441 |
exit 0
|
|
442 |
|
|
443 |
%preun
|
|
444 |
if [ "$1" = "0" ]; then # deinstallation
|
|
445 |
# that's not quite nice since old versions should be removed on update as well
|
|
446 |
# but that's problematic for updates w/o raising the version number
|
|
447 |
/usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner
|
|
448 |
fi
|
|
449 |
rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/*
|
|
450 |
exit 0
|
|
451 |
|
|
452 |
%triggerin -- myspell-dictionary
|
|
453 |
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
|
|
454 |
exit 0
|
|
455 |
|
|
456 |
%triggerpostun -- myspell-dictionary
|
|
457 |
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1
|
|
458 |
exit 0
|
|
459 |
|
|
460 |
%files
|
|
461 |
%defattr(-,root,root)
|
|
462 |
%dir %{_libdir}/xulrunner-%{version_internal}/
|
|
463 |
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
|
|
464 |
%dir %{_libdir}/xulrunner-%{version_internal}/dictionaries/
|
|
465 |
%dir %{_libdir}/xulrunner-%{version_internal}/extensions/
|
|
466 |
%{_libdir}/xulrunner-%{version_internal}/chrome/icons/
|
|
467 |
%{_libdir}/xulrunner-%{version_internal}/components/
|
|
468 |
%{_libdir}/xulrunner-%{version_internal}/plugins/
|
|
469 |
%{_libdir}/xulrunner-%{version_internal}/*.so
|
|
470 |
%exclude %{_libdir}/xulrunner-%{version_internal}/libmozjs.so
|
|
471 |
%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh
|
|
472 |
%{_libdir}/xulrunner-%{version_internal}/chrome.manifest
|
|
473 |
%{_libdir}/xulrunner-%{version_internal}/dependentlibs.list
|
|
474 |
%{_libdir}/xulrunner-%{version_internal}/mozilla-xremote-client
|
|
475 |
%{_libdir}/xulrunner-%{version_internal}/plugin-container
|
|
476 |
%{_libdir}/xulrunner-%{version_internal}/xulrunner
|
|
477 |
%{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
|
|
478 |
%{_libdir}/xulrunner-%{version_internal}/platform.ini
|
|
479 |
%{_libdir}/xulrunner-%{version_internal}/omni.ja
|
|
480 |
%{_libdir}/xulrunner-%{version_internal}/README.xulrunner
|
|
481 |
# crashreporter files
|
|
482 |
%if %crashreporter
|
|
483 |
%{_libdir}/xulrunner-%{version_internal}/crashreporter
|
|
484 |
%{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
|
|
485 |
%{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
|
|
486 |
%endif
|
|
487 |
# ghosts
|
|
488 |
%ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo
|
|
489 |
%if %suse_version >= 1120
|
|
490 |
%ghost %{_bindir}/xulrunner
|
|
491 |
%endif
|
|
492 |
# API symlink (already in mozilla-js)
|
|
493 |
#%{_libdir}/xulrunner-%{apiversion}
|
|
494 |
# compat symlinks
|
|
495 |
%if 0%{?ga_version:1}
|
|
496 |
%ghost %{_libdir}/xulrunner-%{ga_version}
|
|
497 |
%endif
|
|
498 |
|
|
499 |
%files -n mozilla-js
|
|
500 |
%defattr(-,root,root)
|
|
501 |
%dir %{_libdir}/xulrunner-%{version_internal}/
|
|
502 |
%{_libdir}/xulrunner-%{apiversion}
|
|
503 |
%{_libdir}/xulrunner-%{version_internal}/libmozjs.so
|
|
504 |
|
|
505 |
%files devel
|
|
506 |
%defattr(-,root,root)
|
|
507 |
%{_libdir}/xulrunner-devel-%{version_internal}/
|
|
508 |
# FIXME symlink dynamic libs below sdk/lib
|
|
509 |
%attr(644,root,root) %{_libdir}/pkgconfig/*
|
|
510 |
%{_includedir}/xulrunner-%{version_internal}/
|
|
511 |
%{_datadir}/xulrunner-%{version_internal}/
|
|
512 |
|
|
513 |
%if %localize
|
|
514 |
|
|
515 |
%files translations-common -f %{_tmppath}/translations.common
|
|
516 |
%defattr(-,root,root)
|
|
517 |
%dir %{_libdir}/xulrunner-%{version_internal}/
|
|
518 |
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
|
|
519 |
|
|
520 |
%files translations-other -f %{_tmppath}/translations.other
|
|
521 |
%defattr(-,root,root)
|
|
522 |
%dir %{_libdir}/xulrunner-%{version_internal}/
|
|
523 |
%dir %{_libdir}/xulrunner-%{version_internal}/chrome/
|
|
524 |
%endif
|
|
525 |
|
|
526 |
%if %crashreporter
|
|
527 |
|
|
528 |
%files buildsymbols
|
|
529 |
%defattr(-,root,root)
|
|
530 |
%{_datadir}/mozilla/
|
|
531 |
%endif
|
|
532 |
|
|
533 |
%changelog
|