Explicit rpm requires

Matthew D Truch matt at truch.net
Tue Mar 10 20:18:23 UTC 2009


> > I used to use the following line in my kst-fits subpackage to explicitly
> > require the exact version of cfitsio that kst was built against (as
> > cfitsio does explicit version checking and will refuse to run
> > otherwise).
> > 
> > Requires:   cfitsio = %(rpm -q cfitsio --qf %{V})
> 
> You've apparently never heard spot's "rpm" talk, which includes something
> like:
> thou shalt not envoke rpm from within a specfile
> 
> I was about to suggest you could use the output of:
> pkg-config --modversion cfitsio
> but that seems to be broken in cfitsio.pc (returns 3.006 on my F-10 box).

Well, I've fixed the pkgconfig file so the version is correct, however
that won't solve this problem.  It seems that koji is having rpm expand
this tiny shell script before it is populating the chroot with all the
build-requires, and therefore cfitsio isn't installed.  

How do I find out the version number of a something I build-require
during the build?  

-- 
"If you have only seen it once, then you haven't seen it twice."
--------------------------
Matthew Truch
Department of Physics and Astronomy
University of Pennsylvania
matt at truch.net
http://matt.truch.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090310/a618402c/attachment.sig>


More information about the fedora-devel-list mailing list