]> git.pld-linux.org Git - packages/thunderbird.git/blobdiff - thunderbird.spec
- rebuild with libevent 2.1.11
[packages/thunderbird.git] / thunderbird.spec
index 7ecdd6a971e8dc2ae14a8620a50f5400c017bba2..6d701a9d1288bf0de30ce7a684962011e73b136f 100644 (file)
@@ -41,7 +41,7 @@ Summary:      Thunderbird - email client
 Summary(pl.UTF-8):     Thunderbird - klient poczty
 Name:          thunderbird
 Version:       68.4.2
-Release:       1
+Release:       2
 License:       MPL v2.0
 Group:         X11/Applications/Mail
 Source0:       http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
@@ -1349,7 +1349,16 @@ ac_add_options --with-system-png
 ac_add_options --with-system-zlib
 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
 
 AUTOCONF=/usr/bin/autoconf2_13 ./mach build
 
This page took 0.066615 seconds and 4 git commands to generate.