Accepting request 607198 from home:pcerny:factory
parellelise locales building (package build speedup 10%+) OBS-URL: https://build.opensuse.org/request/show/607198 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=660
This commit is contained in:
parent
19ab3bdb06
commit
eef38bbb12
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 13:37:38 UTC 2018 - pcerny@suse.com
|
||||||
|
|
||||||
|
- parellelise locales building
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 7 08:32:28 UTC 2018 - wr@rosenauer.org
|
Mon May 7 08:32:28 UTC 2018 - wr@rosenauer.org
|
||||||
|
|
||||||
|
@ -413,13 +413,10 @@ install -m 644 %{SOURCE6} %{buildroot}%{progdir}/browser/defaults/preferences/kd
|
|||||||
install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js
|
install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js
|
||||||
# install additional locales
|
# install additional locales
|
||||||
%if %localize
|
%if %localize
|
||||||
rm -f %{_tmppath}/translations.*
|
truncate -s 0 %{_tmppath}/translations.{common,other}
|
||||||
touch %{_tmppath}/translations.{common,other}
|
sed -r '/^(ja-JP-mac|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{source_prefix}/browser/locales/shipped-locales \
|
||||||
for locale in $(cat $RPM_BUILD_DIR/%{source_prefix}/browser/locales/shipped-locales) ; do
|
| xargs -P 8 -n 1 -I {} /bin/sh -c '
|
||||||
case $locale in
|
locale=$1
|
||||||
ja-JP-mac|en-US|'')
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
pushd $RPM_BUILD_DIR/compare-locales
|
pushd $RPM_BUILD_DIR/compare-locales
|
||||||
PYTHONPATH=lib \
|
PYTHONPATH=lib \
|
||||||
scripts/compare-locales -m ../l10n-merged/$locale \
|
scripts/compare-locales -m ../l10n-merged/$locale \
|
||||||
@ -440,8 +437,7 @@ for locale in $(cat $RPM_BUILD_DIR/%{source_prefix}/browser/locales/shipped-loca
|
|||||||
[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
|
[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
|
||||||
echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
|
echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
|
||||||
>> %{_tmppath}/translations.$_l10ntarget
|
>> %{_tmppath}/translations.$_l10ntarget
|
||||||
esac
|
' -- {}
|
||||||
done
|
|
||||||
%endif
|
%endif
|
||||||
# remove some executable permissions
|
# remove some executable permissions
|
||||||
find %{buildroot}%{progdir} \
|
find %{buildroot}%{progdir} \
|
||||||
@ -452,9 +448,10 @@ find %{buildroot}%{progdir} \
|
|||||||
-name "*.dtd" -o \
|
-name "*.dtd" -o \
|
||||||
-name "*.txt" -o \
|
-name "*.txt" -o \
|
||||||
-name "*.xml" -o \
|
-name "*.xml" -o \
|
||||||
-name "*.css" | xargs chmod a-x
|
-name "*.css" \
|
||||||
|
-exec chmod a-x {} +
|
||||||
# remove mkdir.done files from installed base
|
# remove mkdir.done files from installed base
|
||||||
find %{buildroot}%{progdir} -name ".mkdir.done" | xargs rm || :
|
find %{buildroot}%{progdir} -type f -name ".mkdir.done" -delete
|
||||||
# overwrite the mozilla start-script and link it to /usr/bin
|
# overwrite the mozilla start-script and link it to /usr/bin
|
||||||
mkdir --parents %{buildroot}/usr/bin
|
mkdir --parents %{buildroot}/usr/bin
|
||||||
sed "s:%%PREFIX:%{_prefix}:g
|
sed "s:%%PREFIX:%{_prefix}:g
|
||||||
|
Loading…
Reference in New Issue
Block a user