I am trying to package an application as an RPM using SPEC files and source code for CentOS 6.5. This application has a dependency on Perl(Bio::Perl). I have also packaged a specific version of Perl (5.14) and Bio::Perl that install to /opt/perl/.
When I proceed to install the application's RPM, yum indicates that the Perl(Bio::Perl) dependency is not resolved. It seems that yum is using the system perl (/usr/bin/perl) to try and resolve the dependency, but obviously /usr/bin/perl doesn't have Bio::Perl installed.
I know the perl module is installed:
$ rpm -qf /opt/perl/lib/site_perl/5.14.2/Bio/Perl.pm opt-perl-BioPerl-1.6.901-2.el6.noarch
$ yum list installed | grep opt-perl-BioPerl opt-perl-BioPerl.noarch
How do I make my SPEC file that it should resolve dependencies using /opt/perl/bin/perl
I still want autorequires to work - I just want it to use /opt/per/bin/perl instead of the system perl.