From 22ec7362729dc6fcdcf56b419b3a7e9347008ca88036097140d578603abcaf9b Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Fri, 20 Sep 2019 17:52:56 +0000 Subject: [PATCH] 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 --- MozillaThunderbird.changes | 6 ++++++ MozillaThunderbird.spec | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/MozillaThunderbird.changes b/MozillaThunderbird.changes index 0ab030e..459d4b2 100644 --- a/MozillaThunderbird.changes +++ b/MozillaThunderbird.changes @@ -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 - Add fix-top-level-asm-issue.patch in order to fix LTO build. diff --git a/MozillaThunderbird.spec b/MozillaThunderbird.spec index 2292380..c8a325b 100644 --- a/MozillaThunderbird.spec +++ b/MozillaThunderbird.spec @@ -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}/