We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d71dd commit 8edb1f8Copy full SHA for 8edb1f8
lib/fpm/package/rpm.rb
@@ -455,6 +455,9 @@ def output(output_path)
455
%w(BUILD BUILDROOT RPMS SRPMS SOURCES SPECS).each { |d| FileUtils.mkdir_p(build_path(d)) }
456
args = ["rpmbuild", "-ba"]
457
458
+ # Workaround rpm#2265 in case we've specified an unexpected architecture name
459
+ args += [ "--define", "_smp_build_ncpus 1" ]
460
+
461
if %x{uname -m}.chomp != self.architecture
462
rpm_target = self.architecture
463
end
0 commit comments