rpmspec
Query an RPM spec file. tldr-pages
On Linux
Linux
List binary packages which would be generated from an RPM spec file
rpmspec --query path/to/rpm.specIdentifyList all options for --queryformat
rpmspec --querytagsIdentifyGet summary information for single binary packages generated from an RPM spec file
rpmspec --query --queryformat "%{name}: %{summary}\n" path/to/rpm.specIdentifyGet the source package which would be generated from an RPM spec file
rpmspec --query --srpm path/to/rpm.specIdentifyParse an RPM spec file to stdout
rpmspec --parse path/to/rpm.specIdentify