From b852c59b02e49483f5f11f2a738cdaebdc88af13 Mon Sep 17 00:00:00 2001 From: Wayne Heaney <42350981+wheaney@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:45:47 -0700 Subject: [PATCH] Update rpm.rb Fix how buildroot is specified to better conform with the rpmbuild CLI. The old way was failing with `File not found` errors. --- lib/fpm/package/rpm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fpm/package/rpm.rb b/lib/fpm/package/rpm.rb index a925256561..33242785de 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",