Add extra generated RPM requires - how?
Till Maas
opensource at till.name
Fri Dec 18 21:06:07 UTC 2009
On Fri, Dec 18, 2009 at 03:54:53PM -0500, Adam Jackson wrote:
> On Fri, 2009-12-18 at 20:26 +0000, Richard W.M. Jones wrote:
> > For libguestfs [RHBZ#547496] I want to add some extra 'Requires'
> > dependencies by running a shell script over a particular file that
> > gets generated during the build.
> >
> > What's the best way, or a way, to do this?
>
> It's... not easy. You want to overload the %__find_provides macro to
> invoke your script as well as the standard script for things like
> library sonames. If you get it working let me know, I want basically
> the same thing for the X server and have so far been defeated.
I once created this for ghc/haskell packages, but I believe it was never
used. I got inspired by a pythondeps.sh script.
The "trick" here is to run the rpm default dependency script from within
the new script. My attempt is available here:
http://till.fedorapeople.org/ghcdeps.sh
Regards
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20091218/ebe49dc6/attachment.sig>
More information about the fedora-devel-list
mailing list