- use ccache for build
- replace versioned RPM deps with requires_ge - parallelize locale build OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=851
This commit is contained in:
parent
50acacf655
commit
185b328f4f
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 10 09:19:38 UTC 2020 - Wolfgang Rosenauer <wr@rosenauer.org>
|
||||||
|
|
||||||
|
- use ccache for build
|
||||||
|
- replace versioned RPM deps with requires_ge
|
||||||
|
- parallelize locale build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 6 14:37:16 UTC 2020 - Yunhe Guo <i@guoyunhe.me>
|
Thu Aug 6 14:37:16 UTC 2020 - Yunhe Guo <i@guoyunhe.me>
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ BuildRequires: gcc9-c++
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: cargo >= 1.43
|
BuildRequires: cargo >= 1.43
|
||||||
|
BuildRequires: ccache
|
||||||
BuildRequires: libXcomposite-devel
|
BuildRequires: libXcomposite-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libidl-devel
|
BuildRequires: libidl-devel
|
||||||
@ -216,8 +217,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
Requires(post): coreutils shared-mime-info desktop-file-utils
|
Requires(post): coreutils shared-mime-info desktop-file-utils
|
||||||
Requires(postun): shared-mime-info desktop-file-utils
|
Requires(postun): shared-mime-info desktop-file-utils
|
||||||
Requires: %{name}-branding >= 68
|
Requires: %{name}-branding >= 68
|
||||||
Requires: mozilla-nspr >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nspr)
|
%requires_ge mozilla-nspr
|
||||||
Requires: mozilla-nss >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nss)
|
%requires_ge mozilla-nss
|
||||||
|
%requires_ge libfreetype6
|
||||||
Recommends: libcanberra0
|
Recommends: libcanberra0
|
||||||
Recommends: libpulse0
|
Recommends: libpulse0
|
||||||
# addon leads to startup crash (bnc#908892)
|
# addon leads to startup crash (bnc#908892)
|
||||||
@ -463,6 +465,7 @@ ac_add_options --disable-elf-hack
|
|||||||
#%endif
|
#%endif
|
||||||
ac_add_options --with-system-nspr
|
ac_add_options --with-system-nspr
|
||||||
ac_add_options --with-system-nss
|
ac_add_options --with-system-nss
|
||||||
|
ac_add_options --with-ccache
|
||||||
%if %{localize}
|
%if %{localize}
|
||||||
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
|
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
|
||||||
%endif
|
%endif
|
||||||
@ -531,7 +534,7 @@ xvfb-run --server-args="-screen 0 1920x1080x24" \
|
|||||||
mkdir -p %{buildroot}%{progdir}/browser/extensions
|
mkdir -p %{buildroot}%{progdir}/browser/extensions
|
||||||
truncate -s 0 %{_tmppath}/translations.{common,other}
|
truncate -s 0 %{_tmppath}/translations.{common,other}
|
||||||
sed -r '/^(ja-JP-mac|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{srcname}-%{orig_version}/browser/locales/shipped-locales \
|
sed -r '/^(ja-JP-mac|en-US|)$/d;s/ .*$//' $RPM_BUILD_DIR/%{srcname}-%{orig_version}/browser/locales/shipped-locales \
|
||||||
| xargs -n 1 -I {} /bin/sh -c '
|
| xargs -n 1 -P 0 -I {} /bin/sh -c '
|
||||||
locale=$1
|
locale=$1
|
||||||
./mach build langpack-$locale
|
./mach build langpack-$locale
|
||||||
cp -L ../obj/dist/linux-*/xpi/firefox-%{orig_version}.$locale.langpack.xpi \
|
cp -L ../obj/dist/linux-*/xpi/firefox-%{orig_version}.$locale.langpack.xpi \
|
||||||
|
Loading…
Reference in New Issue
Block a user