|
@@ -23,7 +23,7 @@
|
|
%define build_vine5 1
|
|
%define build_vine5 1
|
|
%endif
|
|
%endif
|
|
|
|
|
|
-%define ffrelease 1%{?_dist_release}
|
|
+%define ffrelease 2%{?_dist_release}
|
|
|
|
|
|
%define desktop_file_utils_version 0.6
|
|
%define desktop_file_utils_version 0.6
|
|
%define nspr_version 4.8.7
|
|
%define nspr_version 4.8.7
|
|
@@ -35,6 +35,13 @@
|
|
|
|
|
|
ExclusiveArch: i386 i586 i686 x86_64 ia64 ppc s390 s390x
|
|
ExclusiveArch: i386 i586 i686 x86_64 ia64 ppc s390 s390x
|
|
|
|
|
|
|
|
+# Separated plugins are supported on x86(64) only
|
|
|
|
+%ifarch %{ix86} x86_64
|
|
|
|
+%define separated_plugins 1
|
|
|
|
+%else
|
|
|
|
+%define separated_plugins 0
|
|
|
|
+%endif
|
|
|
|
+
|
|
Summary: Fx4 for Vine Linux
|
|
Summary: Fx4 for Vine Linux
|
|
Summary(ja): Fx4 for Vine Linux
|
|
Summary(ja): Fx4 for Vine Linux
|
|
Name: firefox
|
|
Name: firefox
|
|
@@ -150,8 +157,10 @@ sed -e 's/__RPM_VERSION_INTERNAL__/%{ffmajor}/' \
|
|
%{__cp} -f %{SOURCE220} .mozconfig
|
|
%{__cp} -f %{SOURCE220} .mozconfig
|
|
%endif
|
|
%endif
|
|
|
|
|
|
-%if %build_vine5
|
|
|
|
echo "ac_add_options --with-libxul-sdk=`pkg-config --variable=sdkdir libxul`" >> .mozconfig
|
|
echo "ac_add_options --with-libxul-sdk=`pkg-config --variable=sdkdir libxul`" >> .mozconfig
|
|
|
|
+
|
|
|
|
+%if !%{?separated_plugins}
|
|
|
|
+echo "ac_add_options --disable-ipc" >> .mozconfig
|
|
%endif
|
|
%endif
|
|
|
|
|
|
# update searchplugins
|
|
# update searchplugins
|
|
@@ -163,43 +172,39 @@ echo "ac_add_options --with-libxul-sdk=`pkg-config --variable=sdkdir libxul`" >>
|
|
%{__cp} %{SOURCE24} browser/branding/unofficial/content/about-wordmark.png
|
|
%{__cp} %{SOURCE24} browser/branding/unofficial/content/about-wordmark.png
|
|
%{__cp} browser/branding/unofficial/locales/en-US/brand.* browser/branding/nightly/locales/en-US/
|
|
%{__cp} browser/branding/unofficial/locales/en-US/brand.* browser/branding/nightly/locales/en-US/
|
|
|
|
|
|
-
|
|
|
|
#---------------------------------------------------------------------
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
%build
|
|
%build
|
|
cd %{tarballdir}
|
|
cd %{tarballdir}
|
|
autoconf-2.13
|
|
autoconf-2.13
|
|
|
|
|
|
-#MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %__sed -e 's/-O2/-Os/' -e 's/-Wall//')
|
|
+MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | \
|
|
-MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %__sed -e 's/-Wall//')
|
|
+ %{__sed} -e 's/-Wall//' -e 's/-fexceptions/-fno-exceptions/g')
|
|
export RPM_OPT_FLAGS=$MOZ_OPT_FLAGS
|
|
export RPM_OPT_FLAGS=$MOZ_OPT_FLAGS
|
|
|
|
+export CFLAGS=$MOZ_OPT_FLAGS
|
|
|
|
+export CXXFLAGS=$MOZ_OPT_FLAGS
|
|
|
|
+
|
|
export MOZILLA_OFFICIAL=1
|
|
export MOZILLA_OFFICIAL=1
|
|
export BUILD_OFFICIAL=1
|
|
export BUILD_OFFICIAL=1
|
|
export MOZ_APP_DISPLAYNAME="Fx for Vine Linux"
|
|
export MOZ_APP_DISPLAYNAME="Fx for Vine Linux"
|
|
|
|
|
|
-%ifarch ppc ppc64 s390 s390x
|
|
|
|
-%define moz_mflags -j1
|
|
|
|
-%else
|
|
|
|
-%define moz_mflags %{?_smp_mflags}
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
export PREFIX='%{_prefix}'
|
|
export PREFIX='%{_prefix}'
|
|
export LIBDIR='%{_libdir}'
|
|
export LIBDIR='%{_libdir}'
|
|
|
|
|
|
|
|
+MOZ_SMP_FLAGS=-j1
|
|
|
|
+# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
|
|
|
|
+# however builds tend to fail on other arches when building in parallel.
|
|
|
|
+%ifarch %{ix86} x86_64
|
|
|
|
+[ -z "$RPM_BUILD_NCPUS" ] && \
|
|
|
|
+ RPM_BUILD_NCPUS="/usr/bin/getconf _NPROCESSORS_ONLN"
|
|
|
|
+[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
|
|
|
|
+[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
|
|
|
|
+%endif
|
|
|
|
+
|
|
export LDFLAGS="-Wl,-rpath,%{ffdir}"
|
|
export LDFLAGS="-Wl,-rpath,%{ffdir}"
|
|
-export MAKE="gmake %{moz_mflags}"
|
|
+export MAKE="gmake $MOZ_SMP_FLAGS"
|
|
%__make -f client.mk configure
|
|
%__make -f client.mk configure
|
|
-%__make -f client.mk build
|
|
+%__make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
|
|
-
|
|
|
|
-# build locales
|
|
|
|
-#LOCALEDIRS=`find . -print | grep 'locales/Makefile$' | \
|
|
|
|
-# sed -e 's|\./\(.*\)/locales/.*|\1|g'`
|
|
|
|
-#for dir in $LOCALEDIRS
|
|
|
|
-#do
|
|
|
|
-# for lang in %{MOZ_BUILD_LOCALES} ; do
|
|
|
|
-# make -C $dir/locales AB_CD=$lang
|
|
|
|
-# done
|
|
|
|
-#done
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
@@ -273,11 +278,6 @@ cd $RPM_BUILD_ROOT%{ffdir}/chrome
|
|
find . -maxdepth 1 -mindepth 1 -name "*" -type d -exec %{__rm} -rf {} \;
|
|
find . -maxdepth 1 -mindepth 1 -name "*" -type d -exec %{__rm} -rf {} \;
|
|
cd -
|
|
cd -
|
|
|
|
|
|
-# install locales
|
|
|
|
-#for lang in %{MOZ_BUILD_LOCALES} ; do
|
|
|
|
-# %{__install} -p -D -m 664 dist/bin/chrome/$lang.{jar,manifest} $RPM_BUILD_ROOT%{ffdir}/chrome/
|
|
|
|
-#done
|
|
|
|
-
|
|
|
|
|
|
|
|
echo > ../%{name}.lang
|
|
echo > ../%{name}.lang
|
|
# Extract langpacks, make any mods needed, repack the langpack, and install it.
|
|
# Extract langpacks, make any mods needed, repack the langpack, and install it.
|
|
@@ -364,6 +364,12 @@ fi
|
|
#---------------------------------------------------------------------
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Mar 31 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-2
|
|
|
|
+- add "--disable-ipc" on non-x86 architecture
|
|
|
|
+- update parallel build option
|
|
|
|
+ - mozilla can build up to 4 jobs in parallel on x86
|
|
|
|
+- disable C++ exceptions since mozilla code is not exception-safe
|
|
|
|
+
|
|
* Wed Mar 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-1
|
|
* Wed Mar 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-1
|
|
- update to 4.0
|
|
- update to 4.0
|
|
- BR: libjpeg-turbo-devel >= 1.1.0
|
|
- BR: libjpeg-turbo-devel >= 1.1.0
|