rpmspec provides not showing package itself

Alfred Landrum alfred.landrum at riverbed.com
Thu Oct 6 00:38:07 UTC 2011

I'm working on a system to build rpms from many potential srpms and spec
files, so the rpmspec utility looks like it should be very useful to
calculate build dependencies. However, I find it curious that it doesn't
report a 'provides' entry for the package itself:

[alfred at alfred-f15 ~]$ rpmspec --version
RPM version

[alfred at alfred-f15 ~]$ rpmspec -q --provides --srpm work/specs/m4.spec
[alfred at alfred-f15 ~]$

If built, the rpm reports itself as a provided capability:

[alfred at main-sh270:/work/alfred]$ rpm -qp --provides
m4 = 1.4.13-5.el6
m4(x86-64) = 1.4.13-5.el6

I realize I can use the --queryformat option to build out the envr string,
but just thought it surprising that that wasn't part of the listed
provides.  Plus, I'm trying to use some of the innards of yum, and not
having the provide string is tripping that up.

Thanks for any pointers/advice; I'm new to working with rpm.


More information about the Rpm-list mailing list