From 0fb0d2615200176adafb1d38354462228022e5b3 Mon Sep 17 00:00:00 2001 From: Wayne Heaney <42350981+wheaney@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:02:31 -0800 Subject: [PATCH] Update rpm.rb Leave old `--define` argument in place for `buildroot` --- lib/fpm/package/rpm.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fpm/package/rpm.rb b/lib/fpm/package/rpm.rb index 33242785d..861568bc0 100644 --- a/lib/fpm/package/rpm.rb +++ b/lib/fpm/package/rpm.rb @@ -474,6 +474,7 @@ def output(output_path) args += [ "--buildroot", "#{build_path}/BUILD", + "--define", "buildroot #{build_path}/BUILD", "--define", "_topdir #{build_path}", "--define", "_sourcedir #{build_path}", "--define", "_rpmdir #{build_path}/RPMS",