[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Explicit rpm requires
- From: Michael Schwendt <mschwendt gmail com>
- To: fedora-devel-list redhat com
- Subject: Re: Explicit rpm requires
- Date: Wed, 11 Mar 2009 08:07:48 +0100
On Tue, 10 Mar 2009 18:06:50 -0400, Matthew wrote:
> On Tue, Mar 10, 2009 at 03:53:24PM -0500, Rex Dieter wrote:
> > OK, try something like this instead:
> >
> > Requires: cfitsio = %(pkg-config --modversion cfitsio 2>/dev/null || echo 0)
>
> That seems to work.
>
> To satisfy my curiosity (and understanding), why does that work, when
> (at least when I run pkg-config locally) nothing gets spit out on
> stderr?
pkg-config is run multiple times, once when building the src.rpm prior to
populating the buildroot, once more when building the target rpms inside
the buildroot. You need to make sure the generated "Requires" tag is not
rejected with parser errors when building the src.rpm.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]