fedora-helper: Clarify how to generate binary license with dynamic BuildRequires

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-05-30 18:39:58 +02:00
parent d1ee7ed95c
commit fdf954cd36
No known key found for this signature in database
GPG key ID: 115D5AB89C5C1E1E

View file

@ -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)