LICENSE-VALIDATE(1)
π LICENSE-VALIDATE(1) π
okay bestie, so the manual name here is License Validate β it's the license-validate command, and she is that girl for checking the License tag in your SPEC file. let's get into it π
β¨ NAME β¨
license-validate β validates the string in the License tag in the SPEC file π
πΈ SYNOPSIS πΈ
license-validate [-h] [--old] [--file FILE] [--package PACKAGE]
[--verbose] license
positional arguments: license license string. E.g., 'GPL or MIT'.
π¦ OPTIONS π¦
-h,--helpβ show the help message and dip out. that's it, that's the whole vibe β¨--file FILEβ read the grammar from this file instead. the default is/usr/share/fedora-license-data/grammar.lark. and β plot twist β if that default doesn't exist, the script reads./full-grammar.larkinstead. lowkey iconic of her to have a backup plan π«Ά--oldβ validate using old Fedora's shortnames. otherwise an SPDX expression is assumed. pick your era, bestie π--package PACKAGEβ you can optionaly pass the name of the package (that's the name of thesrc.rpm). normally, when a package uses a not-allowed license,license-validateprints an error and exits with a non-zero code. BUT ifPACKAGEis known to use an otherwise not-allowed license as an exception, thenlicense-validatedoes not print an error and exits with a zero status code. exceptions, she has them π--verbose,-vβ print more human friendly messages. otherwise she just exits with error code zero if the license is valid, otherwise with error code 1 if the license is invalid. no small talk, just numbers π
π DESCRIPTION π
validates whether license is in the approved set for the distribution. vibe check passed or not, no cap β
π¨ real talk though: this script does not check source files, and does not check whether the license is actually correct. for that purpose you may use licensecheck. she's not out here doing forensics, she's doing a grammar check π
π AUTHORS π
Miroslav SuchΓ½ <msuchy@redhat.com> β legend behaviour, fr fr π
and that's the whole page, bestie! π this was license-validate, part of the License Validate manual, version dated 06/17/2026 β mwah, slay, periodt β¨π
π¦
π¦ where this page comes from
- epel 10: license-validate 31-1.el10_3 Β· MIT
- epel 9: license-validate 31-1.el9 Β· MIT
- fedora 43: license-validate 31-1.fc43 Β· MIT
- fedora 44: license-validate 31-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms