diff --git a/lib/fpm/package/rpm.rb b/lib/fpm/package/rpm.rb index a92525656..33242785d 100644 --- a/lib/fpm/package/rpm.rb +++ b/lib/fpm/package/rpm.rb @@ -473,7 +473,7 @@ def output(output_path) args += ["--define", "dist .#{attributes[:rpm_dist]}"] if attributes[:rpm_dist] args += [ - "--define", "buildroot #{build_path}/BUILD", + "--buildroot", "#{build_path}/BUILD", "--define", "_topdir #{build_path}", "--define", "_sourcedir #{build_path}", "--define", "_rpmdir #{build_path}/RPMS",