license-validate - Man Page

validates the string in the License tag in the SPEC file


license-validate [-h] [--old] [--file FILE] [--verbose] license

positional arguments: license license string. E.g., 'GPL or MIT'.


-h,  --help

Show help message and exit.


Validate using old Fedora’s shortnames. Otherwise SPDX expression is assumed.

--file FILE

Read the grammar from this file. Default is /usr/share/fedora-license-data/grammar.lark. And if this default does not exists then script reads ./full-grammar.lark.

--verbose,  -v

Print more human friendly messages. Otherwise just exits with error code zero if license is valid otherwise with error code 1 if license is invalid.


Validates whether license is in approved set for the distribution.

This script does not check source files and does not check whether the license is actually correct. For this purpose you may use licensecheck.


Miroslav Suchý <>


04/20/2023 License Validate