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