2021-10-06 14:30:00 +01:00
|
|
|
# rpmspec
|
|
|
|
|
|
|
|
> Query a RPM spec file.
|
|
|
|
> More information: <https://manned.org/rpmspec>.
|
|
|
|
|
|
|
|
- List binary packages which would be generated from a rpm spec file:
|
|
|
|
|
|
|
|
`rpmspec --query {{path/to/rpm.spec}}`
|
|
|
|
|
2021-11-06 11:27:28 +00:00
|
|
|
- List all options for `--queryformat`:
|
|
|
|
|
|
|
|
`rpmspec --querytags`
|
|
|
|
|
2021-10-06 14:30:00 +01:00
|
|
|
- Get summary information for single binary packages generated from a rpm spec file:
|
|
|
|
|
|
|
|
`rpmspec --query --queryformat "{{%{name}: %{summary}\n}}" {{path/to/rpm.spec}}`
|
|
|
|
|
|
|
|
- Get the source package which would be generated from a rpm spec file:
|
|
|
|
|
|
|
|
`rpmspec --query --srpm {{path/to/rpm.spec}}`
|
|
|
|
|
|
|
|
- Parse a rpm spec file to `stdout`:
|
|
|
|
|
|
|
|
`rpmspec --parse {{path/to/rpm.spec}}`
|