MozillaFirefox/MozillaFirefox.spec
branchfirefox24
changeset 666 0d913ca30238
parent 664 1276f5ff4bcb
child 668 fc8c1da7ec06
equal deleted inserted replaced
664:1276f5ff4bcb 666:0d913ca30238
   163 %if %localize
   163 %if %localize
   164 
   164 
   165 %package translations-common
   165 %package translations-common
   166 Summary:        Common translations for Firefox
   166 Summary:        Common translations for Firefox
   167 Group:          System/Localization
   167 Group:          System/Localization
   168 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)
   168 Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;el;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)
   169 Requires:       %{name} = %{version}
   169 Requires:       %{name} = %{version}
   170 Obsoletes:      %{name}-translations < %{version}-%{release}
   170 Obsoletes:      %{name}-translations < %{version}-%{release}
   171 
   171 
   172 %description translations-common
   172 %description translations-common
   173 This package contains several common languages for the user interface
   173 This package contains several common languages for the user interface
   174 of Firefox.
   174 of Firefox.
   175 
   175 
   176 %package translations-other
   176 %package translations-other
   177 Summary:        Extra translations for Firefox
   177 Summary:        Extra translations for Firefox
   178 Group:          System/Localization
   178 Group:          System/Localization
   179 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)
   179 Provides:       locale(%{name}:ach;af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;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)
   180 Requires:       %{name} = %{version}
   180 Requires:       %{name} = %{version}
   181 Obsoletes:      %{name}-translations < %{version}-%{release}
   181 Obsoletes:      %{name}-translations < %{version}-%{release}
   182 
   182 
   183 %description translations-other
   183 %description translations-other
   184 This package contains rarely used languages for the user interface
   184 This package contains rarely used languages for the user interface
   387 	# remove prefs, profile defaults, and hyphenation from langpack
   387 	# remove prefs, profile defaults, and hyphenation from langpack
   388 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
   388 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
   389 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
   389 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
   390 	# check against the fixed common list and sort into the right filelist
   390 	# check against the fixed common list and sort into the right filelist
   391 	_matched=0
   391 	_matched=0
   392 	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
   392 	for _match in ar ca cs da de en-GB el 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
   393 	  [ "$_match" = "$locale" ] && _matched=1
   393 	  [ "$_match" = "$locale" ] && _matched=1
   394 	done
   394 	done
   395 	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
   395 	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
   396   	echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
   396   	echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
   397 	  >> %{_tmppath}/translations.$_l10ntarget
   397 	  >> %{_tmppath}/translations.$_l10ntarget