[Fedora-packaging] Help please? How do I express a dependency on a Perl module not installed in a standard place within an RPM spec file?

richard.hellier at stfc.ac.uk richard.hellier at stfc.ac.uk
Tue Oct 27 16:16:14 UTC 2009



Situation I have is this:


(a)    I have a bunch of perl scripts that use a perl module (say Foo)
that is not installed on the "package build machine"

(b)   On the target machine, the FOO module was "hand installed" in
antiquity in /opt/foo


In the perl scripts, I have:


Use lib qw{/opt/foo/lib};

Use Foo::Bar;


SO - I can build the package fine but when I try to install it, I get
the messages: 


error: Failed dependencies:

        perl(Foo::Bar) is needed by some-package-1.1.1-1.noarch


Any ideas, please, how I can "teach" the spec file that the required
perl module lives in a certain place on the target machine?






Scanned by iCritical.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20091027/99fdf8b9/attachment.htm>

More information about the Fedora-packaging mailing list