33 BuildRequires: wireless-tools |
33 BuildRequires: wireless-tools |
34 %endif |
34 %endif |
35 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
35 License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ |
36 Version: 2.0b |
36 Version: 2.0b |
37 Release: 1 |
37 Release: 1 |
38 %define releasedate 2010080300 |
38 %define releasedate 2010081000 |
39 %define version_internal 2.0b3 |
39 %define version_internal 2.0b4pre |
40 %define apiversion 2.0 |
40 %define apiversion 2.0 |
41 %define uaweight 199900 |
41 %define uaweight 199900 |
42 Summary: Mozilla Runtime Environment 2.0 |
42 Summary: Mozilla Runtime Environment 2.0 |
43 Url: http://www.mozilla.org |
43 Url: http://www.mozilla.org |
44 Group: Productivity/Other |
44 Group: Productivity/Other |
45 Provides: gecko20 |
45 Provides: gecko20 |
46 Obsoletes: mozilla-xulrunner193 |
46 Obsoletes: mozilla-xulrunner193 |
47 %if %suse_version >= 1110 |
47 %if %suse_version >= 1110 |
48 # this is needed to match this package with the kde4 helper package without the main package |
48 # this is needed to match this package with the kde4 helper package without the main package |
49 # having a hard requirement on the kde4 package |
49 # having a hard requirement on the kde4 package |
50 #%define kde_helper_version 6 |
50 %define kde_helper_version 6 |
51 #Provides: mozilla-kde4-version = %{kde_helper_version} |
51 Provides: mozilla-kde4-version = %{kde_helper_version} |
52 %endif |
52 %endif |
53 %ifarch %ix86 |
53 %ifarch %ix86 |
54 Provides: mozilla-xulrunner20-32bit = %{version}-%{release} |
54 Provides: mozilla-xulrunner20-32bit = %{version}-%{release} |
55 %endif |
55 %endif |
56 Source: xulrunner-source-%{version}.tar.bz2 |
56 Source: xulrunner-source-%{version}.tar.bz2 |
209 %patch3 -p1 |
209 %patch3 -p1 |
210 %patch4 -p1 |
210 %patch4 -p1 |
211 %patch5 -p1 |
211 %patch5 -p1 |
212 %patch7 -p1 |
212 %patch7 -p1 |
213 %patch8 -p1 |
213 %patch8 -p1 |
214 #%if %suse_version >= 1110 |
214 %if %suse_version >= 1110 |
215 #%patch10 -p1 |
215 %patch10 -p1 |
216 #%endif |
216 %endif |
217 #%patch11 -p1 |
217 #%patch11 -p1 |
218 #%patch12 -p1 |
218 #%patch12 -p1 |
219 #%patch13 -p1 |
219 #%patch13 -p1 |
220 %if %suse_version < 1120 |
220 %if %suse_version < 1120 |
221 %patch14 -p1 |
221 %patch14 -p1 |
222 %endif |
222 %endif |
223 |
223 |
224 %build |
224 %build |
225 #%if %suse_version >= 1110 |
225 %if %suse_version >= 1110 |
226 #kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) |
226 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) |
227 #if test "$kdehelperversion" != %{kde_helper_version}; then |
227 if test "$kdehelperversion" != %{kde_helper_version}; then |
228 # echo fix kde helper version in the .spec file |
228 echo fix kde helper version in the .spec file |
229 # exit 1 |
229 exit 1 |
230 #fi |
230 fi |
231 #%endif |
231 %endif |
232 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
232 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal} |
233 export MOZ_BUILD_DATE=%{releasedate} |
233 export MOZ_BUILD_DATE=%{releasedate} |
234 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
234 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
235 %ifarch ppc64 |
235 %ifarch ppc64 |
236 export CFLAGS="$CFLAGS -mminimal-toc" |
236 export CFLAGS="$CFLAGS -mminimal-toc" |