From 5c0edfa8c60c51175c94e8697af0509c4e90826e1b549de42526b532d051d6ff Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 13 Jan 2021 14:46:17 +0000 Subject: [PATCH] revert previous change OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=572 --- MozillaThunderbird.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MozillaThunderbird.spec b/MozillaThunderbird.spec index 4473812..bdcaec9 100644 --- a/MozillaThunderbird.spec +++ b/MozillaThunderbird.spec @@ -495,6 +495,7 @@ ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n ac_add_options --disable-updater ac_add_options --enable-official-branding EOF +mkdir -p $RPM_BUILD_DIR/langpacks_artifacts/ sed -r '/^(ja-JP-mac|en-US|$)/d;s/ .*$//' $RPM_BUILD_DIR/%{source_prefix}/comm/mail/locales/shipped-locales \ | xargs -n 1 %{?jobs:-P %jobs} -I {} /bin/sh -c ' @@ -505,10 +506,9 @@ sed -r '/^(ja-JP-mac|en-US|$)/d;s/ .*$//' $RPM_BUILD_DIR/%{source_prefix}/comm/m # nsinstall is needed for langpack-build. It is already built by `./mach build`, but building it again is very fast ./mach build config/nsinstall langpack-$locale cp -rL ../obj_$locale/dist/xpi-stage/locale-$locale \ - %{buildroot}%{progdir}/extensions/langpack-$locale@thunderbird.mozilla.org - # remove prefs, profile defaults, and hyphenation from langpack - rm -rf %{buildroot}%{progdir}/extensions/langpack-$locale@thunderbird.mozilla.org/defaults - rm -rf %{buildroot}%{progdir}/extensions/langpack-$locale@thunderbird.mozilla.org/hyphenation + $RPM_BUILD_DIR/langpacks_artifacts/langpack-$locale@thunderbird.mozilla.org + rm -rf $RPM_BUILD_DIR/langpacks_artifacts/langpack-$locale@thunderbird.mozilla.org/defaults + rm -rf $RPM_BUILD_DIR/langpacks_artifacts/langpack-$locale@thunderbird.mozilla.org/hyphenation # Build systems like to run out of disc-space, so we delete the build-dir here (we copied already all relevant files) rm -rf ../obj_$locale/ # check against the fixed common list and sort into the right filelist @@ -534,6 +534,8 @@ make -C comm/mail/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0 # copy tree into RPM_BUILD_ROOT mkdir -p %{buildroot}%{progdir} cp -rf $RPM_BUILD_DIR/obj/dist/%{progname}/* %{buildroot}%{progdir} +mkdir -p %{buildroot}%{progdir}/extensions +cp -rf $RPM_BUILD_DIR/langpacks_artifacts/* %{buildroot}%{progdir}/extensions/ # remove some executable permissions find %{buildroot}%{progdir} \