equal
deleted
inserted
replaced
167 |
167 |
168 %build |
168 %build |
169 export MOZ_BUILD_DATE=%{releasedate} |
169 export MOZ_BUILD_DATE=%{releasedate} |
170 export MOZILLA_OFFICIAL=1 |
170 export MOZILLA_OFFICIAL=1 |
171 export BUILD_OFFICIAL=1 |
171 export BUILD_OFFICIAL=1 |
172 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
172 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing" |
173 export CXXFLAGS="$CFLAGS" |
173 export CXXFLAGS="$CFLAGS" |
174 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
174 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig |
175 SDKDIR=$(pkg-config --variable=sdkdir libxul) |
175 SDKDIR=$(pkg-config --variable=sdkdir libxul) |
176 cat << EOF > $MOZCONFIG |
176 cat << EOF > $MOZCONFIG |
177 mk_add_options MOZILLA_OFFICIAL=1 |
177 mk_add_options MOZILLA_OFFICIAL=1 |
236 make -C browser/locales langpack-$locale |
236 make -C browser/locales langpack-$locale |
237 cp -r dist/xpi-stage/locale-$locale \ |
237 cp -r dist/xpi-stage/locale-$locale \ |
238 $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org |
238 $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org |
239 # remove prefs and profile defaults from langpack |
239 # remove prefs and profile defaults from langpack |
240 rm -rf $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/defaults |
240 rm -rf $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/defaults |
|
241 # remove langpack searchplugins for now (bmo#601899) |
|
242 rm -rf $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/searchplugins |
241 # check against the fixed common list and sort into the right filelist |
243 # check against the fixed common list and sort into the right filelist |
242 _matched=0 |
244 _matched=0 |
243 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 |
245 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 |
244 [ "$_match" = "$locale" ] && _matched=1 |
246 [ "$_match" = "$locale" ] && _matched=1 |
245 done |
247 done |