1RPMSPEC(8)                                                          RPMSPEC(8)
2
3
4

NAME

6       rpmspec - RPM Spec Tool
7

SYNOPSIS

9   QUERYING SPEC FILES:
10       rpmspec {-q|--query} [select-options] [query-options] SPEC_FILE ...
11
12   PARSING SPEC FILES TO STDOUT:
13       rpmspec {-P|--parse} SPEC_FILE ...
14

DESCRIPTION

16       rpmspec  is  a  tool  for  querying a spec file.  More specifically for
17       querying hypothetical packages which would be created  from  the  given
18       spec file.  So querying a spec file with rpmspec is similar to querying
19       a package built from that spec file.  But is is  not  identical.   With
20       rpmspec  you  can't  query  all fields which you can query from a built
21       package.  E.  g.  you can't query BUILDTIME with  rpmspec  for  obvious
22       reasons.   You  also  cannot query other fields automatically generated
23       during a build of a package like auto generated dependencies.
24
25   select-options
26       [--rpms] [--srpm]
27
28   query-options
29       [--qf,--queryformat QUERYFMT] [--target TARGET_PLATFORM]
30
31   QUERY OPTIONS
32       The general form of an rpm spec query command is
33
34       rpm {-q|--query} [select-options] [query-options]
35
36       You may specify the format that the information should be  printed  in.
37       To do this, you use the
38
39       --qf|--queryformat QUERYFMT
40
41       option,  followed  by  the  QUERYFMT format string.  See rpm(8) for de‐
42       tails.
43
44   SELECT OPTIONS
45       --rpms Operate on the all binary package headers generated  from  spec.
46       --builtrpms  Operate  only  on  the  binary package headers of packages
47       which would be built from spec.  That means ignoring package headers of
48       packages that won't be built from spec i.  e.  ignoring package headers
49       of packages without file section.  --srpm Operate on the source package
50       header(s) generated from spec.
51

EXAMPLES

53       Get  list of binary packages which would be generated from the rpm spec
54       file:
55
56                      $ rpmspec -q rpm.spec
57                      rpm-4.11.3-3.fc20.x86_64
58                      rpm-libs-4.11.3-3.fc20.x86_64
59                      rpm-build-libs-4.11.3-3.fc20.x86_64
60                      ...
61
62                     Get summary infos for single binary packages generated from the rpm spec file:
63
64                      $ rpmspec -q --qf "%{name}: %{summary}\n" rpm.spec
65                      rpm: The RPM package management system
66                      rpm-libs: Libraries for manipulating RPM packages
67                      rpm-build-libs: Libraries for building and signing RPM packages
68                      ...
69
70                     Get the source package which would be generated from the rpm spec file:
71
72                      $ rpmspec -q --srpm rpm.spec
73                      rpm-4.11.3-3.fc20.x86_64
74
75                     Parse the rpm spec file to stdout:
76
77                      $ rpmspec -P rpm.spec
78                      Summary: The RPM package management system
79                      Name: rpm
80                      Version: 4.14.0
81                      ...
82

SEE ALSO

84              popt(3),
85              rpm(8),
86              rpmdb(8),
87              rpmkeys(8),
88              rpmsign(8),
89              rpm2cpio(8),
90              rpmbuild(8),
91
92       rpmspec --help - as rpm  supports  customizing  the  options  via  popt
93       aliases it's impossible to guarantee that what's described in the manu‐
94       al matches what's available.
95
96       http://www.rpm.org/ <URL:http://www.rpm.org/>
97

AUTHORS

99              Marc Ewing <marc@redhat.com>
100              Jeff Johnson <jbj@redhat.com>
101              Erik Troan <ewt@redhat.com>
102              Panu Matilainen <pmatilai@redhat.com>
103
104
105
106                                29 October 2010                     RPMSPEC(8)
Impressum