[packages/firefox] - shorter form

arekm arekm at pld-linux.org
Sun Jan 26 02:25:40 CET 2020


commit 91c008fcb75e2fb066c965762079e46aed0a2ac9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Jan 26 02:25:15 2020 +0100

    - shorter form

 firefox.spec | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/firefox.spec b/firefox.spec
index a09070a..f81b3bf 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -2130,11 +2130,10 @@ EOF
 %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=$(echo %{_smp_mflags} | cut -dj -f2)
-%ifarch %{x8864}
-[ -n "RPM_BUILD_NR_THREADS" -a "$RPM_BUILD_NR_THREADS" -gt 4 ] && RPM_BUILD_NR_THREADS=4
-%else
 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/91c008fcb75e2fb066c965762079e46aed0a2ac9



More information about the pld-cvs-commit mailing list