RPMSPEC - Online Linux Manual PageSection : 8
Updated : 29 October 2010
Source : Red Hat, Inc

NAMErpmspec − RPM Spec Tool

SYNOPSIS

QUERYING SPEC FILES:rpmspec {-q|--query} [select-options] [query-options] SPEC_FILE ...

PARSING SPEC FILES TO STDOUT:rpmspec {-P|--parse} SPEC_FILE ...

DESCRIPTIONrpmspec is a tool for querying a spec file. More specifically for querying hypothetical packages which would be created from the given spec file. So querying a spec file with rpmspec is similar to querying a package built from that spec file. But is is not identical. With rpmspec you can't query all fields which you can query from a built package. E. g. you can't query BUILDTIME with rpmspec for obvious reasons. You also cannot query other fields automatically generated during a build of a package like auto generated dependencies.

select-options
[−-rpms]
[
−-srpm]

query-options
[--qf,--queryformat QUERYFMT]
[
--target TARGET_PLATFORM]

QUERY OPTIONSThe general form of an rpm spec query command is rpm {-q|--query} [select-options] [query-options] You may specify the format that the information should be printed in. To do this, you use the
--qf|--queryformat QUERYFMT option, followed by the QUERYFMT format string. See rpm(8) for details.

SELECT OPTIONS
--rpms Operate on the all binary package headers generated from spec.
--builtrpms Operate only on the binary package headers of packages which would be built from spec. That means ignoring package headers of packages that won't be built from spec i. e. ignoring package headers of packages without file section.
--srpm Operate on the source package header(s) generated from spec.

EXAMPLESGet list of binary packages which would be generated from the rpm spec file: $ rpmspec -q rpm.spec rpm-4.11.3-3.fc20.x86_64 rpm-libs-4.11.3-3.fc20.x86_64 rpm-build-libs-4.11.3-3.fc20.x86_64 ... Get summary infos for single binary packages generated from the rpm spec file: $ rpmspec -q --qf "%{name}: %{summary}\n" rpm.spec rpm: The RPM package management system rpm-libs: Libraries for manipulating RPM packages rpm-build-libs: Libraries for building and signing RPM packages ... Get the source package which would be generated from the rpm spec file: $ rpmspec -q --srpm rpm.spec rpm-4.11.3-3.fc20.x86_64 Parse the rpm spec file to stdout: $ rpmspec -P rpm.spec Summary: The RPM package management system Name: rpm Version: 4.14.0 ...

SEE ALSO popt(3), rpm(8), rpmdb(8), rpmkeys(8), rpmsign(8), rpm2cpio(8), rpmbuild(8),rpmspec --help - as rpm supports customizing the options via popt aliases it's impossible to guarantee that what's described in the manual matches what's available. http://www.rpm.org/ <URL:http://www.rpm.org/>

AUTHORSMarc Ewing <marc@redhat.com> Jeff Johnson <jbj@redhat.com> Erik Troan <ewt@redhat.com> Panu Matilainen <pmatilai@redhat.com>
0
Johanes Gumabo
Data Size   :   15,315 byte
man-rpmspec.8Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 198,443
Visitor ID   :     :  
Visitor IP   :   3.138.134.149   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_nr_x|149|rpmspec.8|74|\n" rpm.spec| $ rpmspec -q --qf "%{name}: %{summary}\\n" rpm.spec )