Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/rpm_pfg.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ def _pkg_rpm_impl(ctx):
#### Remaining setup

additional_rpmbuild_args = []
if ctx.attr.rpmbuild_args:
additional_rpmbuild_args.extend(ctx.attr.rpmbuild_args)
if ctx.attr.binary_payload_compression:
additional_rpmbuild_args.extend([
"--define",
Expand Down Expand Up @@ -1001,6 +1003,9 @@ pkg_rpm = rule(
"rpmbuild_path": attr.string(
doc = """Path to a `rpmbuild` binary. Deprecated in favor of the rpmbuild toolchain""",
),
"rpmbuild_args": attr.string_list(
doc = """Additional arguments to pass to rpmbuild (such as `--rpmrc=path/to/rpmrc`)""",
),
# Implicit dependencies.
"_make_rpm": attr.label(
default = Label("//pkg:make_rpm"),
Expand Down