MozillaFirefox/MozillaFirefox.spec
branchfirefox24
changeset 669 4b65b5cfd428
parent 668 fc8c1da7ec06
child 671 f5edfe756055
child 672 2268d308dc15
equal deleted inserted replaced
668:fc8c1da7ec06 669:4b65b5cfd428
   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;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)
   168 Provides:       locale(%{name}:ar;ca;cs;da;de;el;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)
   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
   373 	# remove prefs, profile defaults, and hyphenation from langpack
   373 	# remove prefs, profile defaults, and hyphenation from langpack
   374 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
   374 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
   375 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
   375 	rm -rf $RPM_BUILD_ROOT%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
   376 	# check against the fixed common list and sort into the right filelist
   376 	# check against the fixed common list and sort into the right filelist
   377 	_matched=0
   377 	_matched=0
   378 	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
   378 	for _match in ar ca cs da de el 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
   379 	  [ "$_match" = "$locale" ] && _matched=1
   379 	  [ "$_match" = "$locale" ] && _matched=1
   380 	done
   380 	done
   381 	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
   381 	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
   382   	echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
   382   	echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
   383 	  >> %{_tmppath}/translations.$_l10ntarget
   383 	  >> %{_tmppath}/translations.$_l10ntarget