forked from pool/MozillaThunderbird
Accepting request 732226 from home:munix9
repack the lightning xpi with all available locales (boo#939153) (lp#545778) OBS-URL: https://build.opensuse.org/request/show/732226 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=488
This commit is contained in:
parent
28408893c0
commit
22ec736272
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 15:59:25 UTC 2019 - munix9@googlemail.com
|
||||
|
||||
- repack the lightning xpi with all available locales (boo#939153) (lp#545778)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 09:49:41 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add fix-top-level-asm-issue.patch in order to fix LTO build.
|
||||
|
@ -400,6 +400,23 @@ sed -r '/^(ja-JP-mac|en-US|$)/d;s/ .*$//' $RPM_BUILD_DIR/%{source_prefix}/comm/m
|
||||
echo %{progdir}/extensions/langpack-$locale@thunderbird.mozilla.org \
|
||||
>> %{_tmppath}/translations.$_l10ntarget
|
||||
' -- {}
|
||||
# repack the lightning xpi with all available locales (boo#939153) (lp#545778)
|
||||
_extid="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
|
||||
rm -rf _lightning
|
||||
mkdir -p _lightning
|
||||
unzip -q -d _lightning "%{buildroot}%{progdir}/distribution/extensions/${_extid}.xpi"
|
||||
_langpacks=$(cd "%{buildroot}%{progdir}/extensions/" && find langpack-* -type d -prune -print|cut -d'-' -f2-|cut -d'@' -f1)
|
||||
for _loc in $_langpacks ; do
|
||||
_dir="%{buildroot}%{progdir}/extensions/langpack-${_loc}@thunderbird.mozilla.org"
|
||||
_dir="${_dir}/distribution/extensions/${_extid}"
|
||||
test -d "_lightning/chrome/calendar-${_loc}" && continue
|
||||
test -d "_lightning/chrome/lightning-${_loc}" && continue
|
||||
test -f "${_dir}/chrome.manifest" || continue
|
||||
cp -rL "${_dir}"/chrome/{calendar,lightning}-"${_loc}" _lightning/chrome/
|
||||
cat "${_dir}/chrome.manifest" >> _lightning/chrome.manifest
|
||||
done
|
||||
(cd _lightning && zip -q9r ../"${_extid}.xpi" *)
|
||||
cp -p "${_extid}.xpi" %{buildroot}%{progdir}/distribution/extensions/
|
||||
%endif
|
||||
# overwrite the mozilla start-script and link it to /usr/bin
|
||||
mkdir --parents %{buildroot}%{_bindir}/
|
||||
|
Loading…
Reference in New Issue
Block a user