Fix l10n build of Firefox
authorWolfgang Rosenauer <wr@rosenauer.org>
Thu, 22 Jul 2010 08:38:28 +0200
changeset 101 1678af7b5183
parent 100 f224b7faa82f
child 102 a74c3d7ce5ae
Fix l10n build of Firefox - don't build sync - don't build pt_PT as the currently tagged rev is broken Prepare a bit for FF standalone build
MozillaFirefox/MozillaFirefox.spec
MozillaFirefox/firefox-no-sync-l10n.patch
firefox-no-sync-l10n.patch
series
--- a/MozillaFirefox/MozillaFirefox.spec	Wed Jul 21 08:37:33 2010 +0200
+++ b/MozillaFirefox/MozillaFirefox.spec	Thu Jul 22 08:38:28 2010 +0200
@@ -20,20 +20,23 @@
 
 
 Name:           MozillaFirefox4
+%define use_xulrunner 1
 %define xulrunner mozilla-xulrunner20
 BuildRequires:  autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python unzip update-desktop-files zip fdupes Mesa
-BuildRequires:  %{xulrunner}-devel = 2.0b
 %if %suse_version > 1110
 BuildRequires:  libiw-devel
 %else
 BuildRequires:  wireless-tools
 %endif
+%if 0%{?use_xulrunner}
+BuildRequires:  %{xulrunner}-devel = 2.0b
+%endif
 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
 Provides:       web_browser
 Provides:       firefox
 Version:        4.0b
 Release:        1
-%define         releasedate 2010070700
+%define         releasedate 2010072000
 Summary:        Mozilla Firefox Web Browser
 Url:            http://www.mozilla.org/
 Group:          Productivity/Networking/Web/Browsers
@@ -58,15 +61,18 @@
 Patch8:         firefox-appname.patch
 Patch9:         firefox-kde.patch
 Patch10:        firefox-ui-lockdown.patch
+Patch11:        firefox-no-sync-l10n.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Requires(post):   coreutils shared-mime-info desktop-file-utils
 Requires(postun): shared-mime-info desktop-file-utils
+%if 0%{?use_xulrunner}
 Requires:       %{xulrunner} >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
 %requires_eq    %{xulrunner}
 %ifarch %ix86
 Requires:       %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
 Requires:       %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner})
 %endif
+%endif
 Requires:       %{name}-branding > 3.6
 %define _use_internal_dependency_generator 0
 %define __find_requires sh %{SOURCE4}
@@ -76,8 +82,8 @@
 %define progdir %{_prefix}/%_lib/%{progname}
 %define gnome_dir     %{_prefix}
 ### build options
-%define branding 0
-%define localize 0 
+%define branding 1
+%define localize 1
 ### build options end
 
 %description
@@ -93,7 +99,9 @@
 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)
 Group:          System/Localization
 Requires:       %{name} = %{version}
+%if 0%{?use_xulrunner}
 Requires:       %{xulrunner}-translations-common
+%endif
 Obsoletes:      %{name}-translations < %{version}-%{release}
 
 %description translations-common
@@ -106,7 +114,9 @@
 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)
 Group:          System/Localization
 Requires:       %{name} = %{version}
+%if 0%{?use_xulrunner}
 Requires:       %{xulrunner}-translations-other
+%endif
 Obsoletes:      %{name}-translations < %{version}-%{release}
 
 %description translations-other
@@ -154,6 +164,7 @@
 #install -m 644 %{SOURCE6} browser/app/profile/kde.js
 %endif
 #%patch10 -p1
+%patch11 -p1
 
 %build
 export MOZ_BUILD_DATE=%{releasedate}
@@ -175,7 +186,6 @@
 ac_add_options --includedir=%{_includedir}
 ac_add_options --with-system-nspr
 ac_add_options --with-system-nss
-ac_add_options --with-libxul-sdk=$SDKDIR
 ac_add_options --with-l10n-base=../l10n
 ac_add_options --with-system-jpeg
 #ac_add_options --with-system-png     # doesn't work because of missing APNG support
@@ -185,6 +195,11 @@
 ac_add_options --disable-tests
 ac_add_options --disable-debug
 EOF
+%if 0%{?use_xulrunner}
+cat << EOF >> $MOZCONFIG
+ac_add_options --with-libxul-sdk=$SDKDIR
+EOF
+%endif
 %if %branding
 cat << EOF >> $MOZCONFIG
 ac_add_options --enable-official-branding
@@ -203,7 +218,7 @@
 touch %{_tmppath}/translations.{common,other}
 for locale in $(awk '{ print $1; }' browser/locales/shipped-locales); do
   case $locale in
-   ja-JP-mac|en-US)
+   ja-JP-mac|en-US|pt-PT)
 	;;
    *)
   	make -C browser/locales libs-$locale
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-no-sync-l10n.patch	Thu Jul 22 08:38:28 2010 +0200
@@ -0,0 +1,1 @@
+../firefox-no-sync-l10n.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/firefox-no-sync-l10n.patch	Thu Jul 22 08:38:28 2010 +0200
@@ -0,0 +1,25 @@
+# HG changeset patch
+# Parent 96eedd7737acfc529a441ca0cedd4c06fa737219
+diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in
+--- a/browser/locales/Makefile.in
++++ b/browser/locales/Makefile.in
+@@ -182,17 +182,19 @@ install:: $(addsuffix .xml,$(SEARCH_PLUG
+ 
+ 
+ libs-%:
+ 	$(NSINSTALL) -D $(DIST)/install
+ ifndef LIBXUL_SDK
+ 	@$(MAKE) -C ../../toolkit/locales libs-$* BOTH_MANIFESTS=1
+ 	@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
+ endif
++ifdef MOZ_SERVICES_SYNC
+ 	@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
++endif
+ 	@$(MAKE) -C ../../extensions/reporter/locales libs AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
+ 	@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref BOTH_MANIFESTS=1
+ 	@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
+ 
+ 
+ repackage-win32-installer: WIN32_INSTALLER_OUT="$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe"
+ repackage-win32-installer: $(WIN32_INSTALLER_IN) $(SUBMAKEFILES)
+ 	@echo "Repackaging $(WIN32_INSTALLER_IN) into $(WIN32_INSTALLER_OUT)."
--- a/series	Wed Jul 21 08:37:33 2010 +0200
+++ b/series	Thu Jul 22 08:38:28 2010 +0200
@@ -21,3 +21,4 @@
 firefox-appname.patch
 #firefox-kde.patch
 #firefox-ui-lockdown.patch
+firefox-no-sync-l10n.patch