From fdf954cd3662358c30088c23f83d5a22b242fdfe Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sat, 30 May 2020 18:39:58 +0200 Subject: [PATCH] fedora-helper: Clarify how to generate binary license with dynamic BuildRequires Signed-off-by: Igor Raits --- tools/fedora-helper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/fedora-helper.py b/tools/fedora-helper.py index 23a3d59..67f0794 100755 --- a/tools/fedora-helper.py +++ b/tools/fedora-helper.py @@ -68,6 +68,12 @@ def get_binary_license(ctx, source, add, verbose): binary license should be result of combining source license and all used crates. + Combined with dynamic BuildRequires generation, the usage would look like: + + \b + rpmbuild -br *.spec -D "_sourcedir $PWD" --without check + fedora-helper.py get-binary-license /path/to/buildreqs.nosrc.rpm + This command resolves dependencies and outputs final license(s). """ os.makedirs(CACHEDIR, exist_ok=True)