]> git.pld-linux.org Git - packages/firefox.git/blobdiff - firefox.spec
- shorter form
[packages/firefox.git] / firefox.spec
index eb347e9016e9622da889adc0fd434599d4e839df..f81b3bf9ff097666305b0e35a4782b8455cc5217 100644 (file)
@@ -46,7 +46,7 @@ Summary(hu.UTF-8):    Firefox web böngésző
 Summary(pl.UTF-8):     Firefox - przeglądarka WWW
 Name:          firefox
 Version:       72.0.2
-Release:       1
+Release:       2
 License:       MPL v2.0
 Group:         X11/Applications/Networking
 Source0:       http://releases.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz
@@ -2127,7 +2127,17 @@ ac_add_options --with-system-zlib
 ac_add_options BINDGEN_CFLAGS="$(pkg-config nspr pixman-1 --cflags)"
 EOF
 
-%{!?with_clang:export MOZ_MAKE_FLAGS="-j1"}
+%if ! %{with clang}
+# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
+# however builds tend to fail on other arches when building in parallel.
+RPM_BUILD_NR_THREADS=1
+%ifarch %{x8664}
+jobs=$(echo %{_smp_mflags} | cut -dj -f2)
+[ -n "$jobs" -a "$jobs" -gt 4 ] && RPM_BUILD_NR_THREADS=4 || RPM_BUILD_NR_THREADS="$jobs"
+%endif
+export MOZ_MAKE_FLAGS="-j${RPM_BUILD_NR_THREADS}"
+%endif
+
 export MOZ_SERVICES_SYNC="1"
 %if %{with pgo}
 D=$(( RANDOM % (200 - 100 + 1 ) + 5 ))
This page took 0.032442 seconds and 4 git commands to generate.